CoinbarPay Official Docs
  • Introduction
    • πŸ”΅Coinbar Pay
    • πŸ”΅Key Features
    • πŸ”΅Target Audience
    • πŸ”΅Security and Compliance
  • Getting Started
    • πŸ”΅Summary
  • Service Activation
    • πŸ”΅Create Account
    • πŸ”΅Account Verification
    • πŸ”΅Activate Service
  • Point of Sale
    • πŸ”΅App Installation
    • πŸ”΅App Activation
    • πŸ”΅User Interface
    • πŸ”΅Accepting Payments
    • πŸ”΅Transactions & Reports
  • E-Commerce Plugins
    • πŸ”΅Introduction
    • πŸ”΅Downloads - Plugin
      • ⏺️Wordpress/WooCommerce
      • ⏺️Magento
      • ⏺️Request New
    • πŸ”΅Setup and Configuration
    • πŸ”΅Try your service
  • API Web Integration
    • πŸ”΅Introduction
    • πŸ”΅Service Configuration
    • πŸ”΅API Keys Management
    • πŸ”΅Payment Flow
    • πŸ”΅Payment Statuses
    • πŸ”΅API Documentation
      • ⏺️Authentication
      • ⏺️Request New Payment (web page)
      • ⏺️Payment Gateway
      • ⏺️Get Conversion Quotes (server-to-server)
      • ⏺️Execute Payment External Platform (server-to-server)
      • ⏺️Get Payment Status (server-to-server)
      • ⏺️Reports
    • πŸ”΅Sandbox Enviroment
  • Dashboard Platform
    • πŸ”΅Overview
    • πŸ”΅Manage...
      • ⏺️Payments
      • ⏺️Settlements
    • πŸ”΅Refunds & Assistance
    • πŸ”΅Reports & Exports
Powered by GitBook
On this page
  1. API Web Integration
  2. API Documentation

Get Conversion Quotes (server-to-server)

Our Payment Gateway API provides a GET method to retrieve real-time conversion quotes for cryptocurrency prices. This endpoint is crucial for payment server-to-server flow.

Below you will find the details on how to use this endpoint.

Reminder The payment conversion rate is finalized during payment creation. This API returns just an informative status of the current rates.

Get Quotes

GET https://sandbox.coinbar.io/coinbar/api/v2/pay/gateway/quotes

This endpoint returns up-to-date conversion rates between specified cryptocurrencies and fiat currencies. By utilizing this API, payment systems can ensure that users receive the most current exchange rate information for their cryptocurrency transactions.

Query Parameters

Name
Type
Description

conversion_fiat

String

EUR,GBP Default (EUR)

Headers

Name
Type
Description

CBPAY-API-KEY*

String

{{SERVICE_CLIENT_ID}}

Content-Type

String

application/json

{
    "result": true,
    "data": [
        {
            "code": "BTC",
            "name": "Bitcoin",
            "conversion_fiat": "EUR",
            "conversion_rate": 52372.33459748911
        },
        {
            "code": "ETH",
            "name": "Ethereum",
            "conversion_fiat": "EUR",
            "conversion_rate": 2367.6994724246447
        },
        {
            "code": "USDT",
            "name": "Tether USD",
            "conversion_fiat": "EUR",
            "conversion_rate": 0.9173165543511799
        },
        {
            "code": "XDB",
            "name": "XDB Chain",
            "conversion_fiat": "EUR",
            "conversion_rate": 0.0005691800447701324
        },
        {
            "code": "XRP",
            "name": "Ripple",
            "conversion_fiat": "EUR",
            "conversion_rate": 0.5123986479693387
        }
    ]
}
{
    "result": false,
    "error": "Not Authorized"
}
{
    "result": false,
    "error": "Bad Request"
}
{
    "result": false,
    "error": "Api RATE exceeded"
}

Warning

Each SERVICE_CLIENT_ID has a default API RATE limit of 1000 calls each day. Contact Coinbar Team to extend your limit.

PreviousPayment GatewayNextExecute Payment External Platform (server-to-server)

Last updated 1 year ago

πŸ”΅
⏺️