Currency methods
Last updated
Last updated
Name | Type | Description |
---|---|---|
GET
[base]/currency/
{id}
Filtering by object parameters can be applied according to the JSON API Specification.
In case of success, the response body contains a currency object or an array of objects (if the id
wasn’t specified).
The wallets list is paginated and the default page size is 10. You can adjust pagination according to the JSON API Specification.
Name | Type | Required | Description |
---|---|---|---|
HTTP code | Application code | Description | Suggested action |
---|---|---|---|
id
string
The unique system identifier of a currency, matching the ISO code.
blockchain_name
string
The name of a blockchain, for example: Bitcoin
.
The value is filled in by default only for coins. For other currencies, the value is an empty string.
iso
number
The ISO code of a currency.
name
string
The name of a currency, for example: Bitcoin
.
alpha
string
The alphabetic code of a currency, for example: BTC
.
alias
string or null
The alternative identifier used to identify similar currencies in different blockchains.
tags
string
The tags assigned via the B2BINPAY Back Office.
exp
number
The currency precision, that is the number of digits after the decimal separator.
confirmation_blocks
number or null
For cryptocurrencies, the default number of blocks needed to send a callback.
For fiat currencies, null
.
minimal_transfer_amount
string
The minimum possible amount of transfers.
block_delay
number
For cryptocurrencies, the estimated block mining time, in seconds.
For fiat currencies, 0
.
parent
object
For tokens only.
The parent currency of a token, in the same blockchain. For other currencies, returns "data": null
.
The object contains the string id
field matching the parent currency ISO code.
id
string
No
The unique system identifier of a currency, matching the ISO code.
200
—
The request succeeded.
—
401
2007: No active account found with the given credentials
Incorrect credentials.
Send correct credentials.
404
404: Not found
The currency with the given id
wasn’t found.
Send a correct id
.
500
—
Internal server error.
Try again later.
502
—
Bad gateway.
Try again later.
503
—
Service unavailable.
Try again later.
504
—
Gateway timeout.
Try again later.
5xx
—
Other server errors.
Try again later.