Create Withdrawal
This endpoint allows the creation of a withdrawal. It will debit from the end user’s currency’s balance and credit the amount in the destination address. The subtracted amount will also include a fee amount, returned as charged_fee on the response. If withdrawal_fee_id is provided, the operation will be executed with such fee, otherwise it will proceed with the fee needed to perform the transaction according to current blockchain activity.
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
The body is of type object
.
Response
Created