Authorizations
B2B’s White Label API uses OAuth2. Currently there is only one supported authentication flow:
- clientCredentials allows you to access your own B2B account (First-Party Integration) and performs transactions against the public API. This oauth2 flow is well suited for this API, as it allows machine-to-machine communication.
Every call to the API has to be authenticated with an OAuth2 Token. In order to request this token, you will need to have sandbox or production API Keys (client id and client secret) that will be needed to generate a credential in order to negotiate an ephemeral access token.
Every request must be accompianed by an Authorization
header with a value that follows the following schema: Bearer ACCESS_TOKEN
Body
End use's external ref
Currency of the amount to be withdrwaled
Destination address
Blockchain network to operate
Amount to withdrawal. Is the amount that the destination address will receive.
An external identifier, usually a unique UUID
Indicates the withdrawal fee id to use in order to define the applied fees on this withdrawal.
Response
Created
UUID used as withdrawal identifier.
Indicates the withdrawal request creation date.
Identifies the withdrawal confirmation date. This field will be null if the withdrawal is still pending.
Indicates the hash of the blockchain transaction, once completed. This field will be null if the withdrawal is still pending.
Identifies the user that owns this operation.
Indicates the asset name involved in the withdrawal.
Indicates the amount withdrawed.
Identifies the destination address.
128
BITCOIN
, ETHEREUM
Specifies the withdrawal status.
The ID of the associated transaction object
Indicates the provisory hash of the blockchain transaction, could be different to txn_hash
indicates the risk score of the withdrawal
indicates if the withdrawal was blocked
indicates the block reason if the withdrawal was blocked
Withdrawal external_ref defined in creation request
The withdrawal amount plus the withdrawal fee amount