Listing invoice currency pairs
GET /api/public/v1/invoices/currency_pairs
Returns all available invoice currency pairs. Use this endpoint to discover which currencies (billedCurrency) can be used to denominate an invoice and which cryptocurrencies (chargedCurrency) the customer can pay with, along with the networks available for each.
To construct a Create Invoice request from the response:
Choose a pair —
billedCurrencygives you thebilledCurrencyparameter,chargedCurrencygives you thechargedCurrencyparameter.Find the
chargedCurrencyentry inincludedand follow itsnetworksreferences.Find the matching
networkobjects inincluded— thecodeis thenetworkvalue to use.
Headers
Content-Type
application/vnd.api+json
Authorization
Bearer <api_key>
Response Body
data[].id
string
Currency pair ID.
data[].type
string
Always invoiceCurrencyPairs.
data[].attributes.direction
string
Always sell — the platform sells the chargedCurrency received from the customer and settles the invoice in billedCurrency.
data[].attributes.enabled
boolean
Whether this pair is currently available for invoices.
data[].relationships.billedCurrency.data.id
string
Currency code of the invoice denomination. Use as the billedCurrency parameter in Create Invoice.
data[].relationships.chargedCurrency.data.id
string
Currency code of the cryptocurrency the customer pays with. Use as the chargedCurrency parameter in Create Invoice.
included[].type(currencies).attributes.code
string
Currency code.
included[].type(currencies).attributes.crypto
boolean
true for cryptocurrencies, false for fiat.
included[].type(currencies).attributes.symbol
string
Display symbol for the currency.
included[].type(currencies).attributes.subunitToUnit
number
Number of smallest units in one whole unit (e.g. 100000000 for BTC, 100 for EUR).
included[].type(currencies).relationships.networks
array
Network references for this currency. Resolve against network objects in included to get the network codes.
included[].type(network).attributes.code
string
Network code. Use as the network parameter in Create Invoice.
included[].type(network).attributes.name
string
Human-readable network name.
included[].type(network).attributes.currencyCode
string
Currency code this network belongs to.
Response
Last updated