Skip to navigation

Create a withdrawal

This endpoint creates a withdrawal for a instrument that will be sent either to a bank account or a cryptocurrency address depending on the type of the instrument. It returns the details about the withdrawal when it has successfully been created, otherwise it returns an error message.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
subAccountIdstringRequiredformat: "uuid"

Identifier of the sub-account that will be debited.

instrumentIdstringRequiredformat: "uuid"
Identifier of the instrument of the withdrawal.
quantitystringRequiredformat: "decimal"
Quantity of the withdrawal. Must be greater than zero.
bankAccountIdstringOptionalformat: "uuid"
The unique identifier of a bank account of the account.
externalAddressIdstringOptionalformat: "uuid"
The unique identifier of a whitelisted external address.

Response

A successful response.
resultobject

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error
503
Service Unavailable Error