API overview
Last updated
Was this helpful?
Last updated
Was this helpful?
The B2BINPAY API is organized in accordance with JSON API paradigm. For a better understanding of the paradigm principles, read the .
We use conventional HTTP response codes, OAuth 2.0 protocol for authentication, and HMAC-SHA256 algorithm for encryption.
All methods are private. All requests except for and should contain HTTP header: Authorization: Bearer <Access Token>
.
According to , all requests should contain HTTP header: Content-Type: application/vnd.api+json
.
Filters by object parameters can be applied to any GET
-method according to the .
The B2BINPAY API also provides flexible options for callback — an asynchronous notification about changing statuses of deposits and payouts. To learn more, refer to .
To receive callbacks, specify a callback URL when sending a or request. When a transaction receives the required number of confirmation blocks, the callback is sent via an HTTP POST
-request to the specified URL. If you also want to be notified when the number of confirmations received for a transaction doesn’t reach a specific threshold or exceeds it, indicate the required number of confirmations in the request.
All date-time values are specified as per , with milliseconds precision and timezone included: YYYY-MM-DDThh:mm:ss[.SSSSSS]±hh:mm
.
The object contains the following fields:
address
(string)
The deposit address.
For payments in XRP, an array of objects is returned containing the x-address
and address
(with a destination tag
additionally specified):
For payments in XLM, the destination
object is as follows:
where:
address_type
is always "address"
.
address
is a string value containing the wallet address.
tag_type
is a number value containing tag or memo type. Possible values:
0
— no memo
1
— a 64-bit unsigned integer
tag
is a string value containing the tag.
The number of requests to the endpoint without prior authentication is limited to 15 per 1 minute.
To check the network availability of the system, use the /ping
endpoint without authorization headers.
[base]
address_type
(string or null)
For wallets denominated in BTC, LTC, BCH, XRP: the address type. Refer to for supported values.
For other wallets the value is null.