Destination Bank Account management API

The following API end points should be used for creation of DBA (Destination Bank Account) or management of several DBAs.

circle-exclamation
circle-exclamation

There are two ways to manage DBAs - host-to-host and using the XGateway UI.

Managing DBAs using UI

This API endpoints returns a URL with an interface for managing DBAs of a corresponding customer.

triangle-exclamation

Generates a Destination Bank Account checkout link for a customer.

post

Initiates a Destination Bank Account (DBA) checkout link for a specified customer.

It generates a Destination Bank Account checkout link for the customer, optionally localized by the provided locale.

Authorizations
x-api-keystringRequired
Path parameters
idstringRequired
  • Unique identifier of the customer.
Body
  • The request body containing DBA link options.
isKycNoSdkbooleanOptional
applicationIdstringOptional
localestringOptional
Responses
post
/customer/{id}/bank-transfer/destination-bank-account/initiate

Host-to-host DBA management

Use the following APIs for direct management of DBAs.

triangle-exclamation

List existing DBAs

Returns destination bank accounts for a specified customer.

get

Returns a list of destination bank accounts for a specified customer.

Access to this endpoint requires a valid API key. The API key is sent in the x-api-key header on requests.

Authorizations
x-api-keystringRequired
Path parameters
idstringRequired
  • The external identifier for the customer.
Example: 937a41ae-a867-420b-92ae-98f922923b3a
Responses
chevron-right
200

Returned list of destination bank accounts

application/json
get
/customer/{id}/bank-transfer/destination-bank-account/accounts

Create a DBA

Sets up a destination bank account for a specified customer.

post

Sets up a new destination bank account for a specified customer. Destination Bank Account is required for Crypto To Fiat (Withdrawal) Bank Transfer flow. The customer must pass the KYC process before setting up a DBA.

Access to this endpoint requires a valid API key. The API key is sent in the x-api-key header on requests.

Authorizations
x-api-keystringRequired
Path parameters
idstringRequired
  • The external identifier for the customer.
Body
  • Request body containing bank account details.
or
Responses
chevron-right
200

29ceac55-8332-4daa-9652-00b13f3e2e7b

application/json
post
/customer/{id}/bank-transfer/destination-bank-account/setup

Select a DBA from the list of existing accounts

Sets the main destination bank account for a customer.

patch

Activates the specified destination bank account as the main beneficiary for a customer.

Access to this endpoint requires a valid API key. The API key is sent in the x-api-key header on requests.

Authorizations
x-api-keystringRequired
Path parameters
idstringRequired
  • The external identifier for the customer.
Example: 937a41ae-a867-420b-92ae-98f922923b3a
bankAccountUuidstringRequired
  • The UUID of the destination bank account to be selected as the main one.
Example: acc-f34ae252-f4d4-45f0-bf01-62704c99907c
Responses
chevron-right
200

Destination bank account successfully activated!

application/json
patch
/customer/{id}/bank-transfer/destination-bank-account/{bankAccountUuid}/select

Delete a DBA

Deletes a destination bank account for a specified customer.

delete

Deletes a specified destination bank account for a customer.

Access to this endpoint requires a valid API key. The API key is sent in the x-api-key header on requests.

Authorizations
x-api-keystringRequired
Path parameters
idstringRequired
  • The external identifier for the customer, used to uniquely identify them and associate them with a merchant.
Example: 937a41ae-a867-420b-92ae-98f922923b3a
bankAccountUuidstringRequired
  • The UUID of the destination bank account to be deleted.
Example: acc-31c5fa85-2a01-4ba0-a72f-fcf2d2c6a7d3
Responses
chevron-right
200

Destination bank account successfully deleted!

application/json
delete
/customer/{id}/bank-transfer/destination-bank-account/{bankAccountUuid}/delete

Last updated