Transfer
Create a transfer¶
POST https://connect.cabital.com/api/v1/accounts/{account_id}/transfers
Transfer between same name accounts from Cabital to partner.
User Account Status¶
- Linked
- KYC Pass
Request Path Parameters¶
| Parameter | Required | Description |
|---|---|---|
account_id |
Yes | Customer account ID provided by Cabital. |
Request Body Parameters¶
Content Type: application/json
| Parameter | Required | Type | Description |
|---|---|---|---|
symbol |
Yes | string | Transfer currency code |
amount |
Yes | string | Transfer amount |
direction |
Yes | string | Indicates the direction of funds:
|
otp |
Conditional | string | A 6-digit code that the customer set up the Google Authenticator at Cabital. When direction is DEBIT, this parameter is required. |
conversion_id |
No | string | Conversion ID for associated conversion and transfer transactions, and it is used for reconciliation. |
external_id |
No | string | Partner's transaction ID. If the ID is duplicated, the transaction will be rejected. |
Response Parameters¶
Precautions:
The transfer transaction status should not stay PROCESSING too long. If a transfer transaction is in the PROCESSING state for a long time, it will need to check manually.
- If the transaction partner already accounted, Cabital will change the status to
SUCCESSmanually. - If the transaction partner not yet accounted, Cabital will change the status to
CANCELmanually.
| Parameter | Type | Description |
|---|---|---|
transfer_id |
string | Transfer transaction ID |
instruction_id |
string | Instruction ID for reconciliation |
external_id |
string | Partner's transaction ID |
instructed_amount |
string | Transfer amount |
customer_fee |
string | The transfer fee charged to the user. |
actual_amount |
string | The amount that the customer receive actually. |
status |
string | Transfer transaction status.
|
Example¶
Request Data¶
curl -X POST "http://connect.cabital.com/api/v1/accounts/6d92e7b4-715c-4ce3-a028-19f1c8c9fa6c/transfers"
-d '{
"amount": "1002.865",
"symbol": "USDT",
"direction": "DEBIT",
"conversion_id": "d81adf6d-0322-41d7-8c32-669203e35f11",
"external_id": "adb8f31d-7a71-4003-85d7-3ac58158461f"
}'
Response Data¶
Confirm a transfer¶
PUT https://connect.cabital.com/api/v1/accounts/{account_id}/transfers/{transfer_id}
When the customer initiates a transfer in Cabital, Cabital will notify partner via Webhook. After partner complete the transfer should update the result via this API.
Notice
If you create a transfer by Create a transfer API, you don't need to confirm the transfer by this API.
User Account Status¶
- Linked
- KYC Pass
Request Path Parameters¶
| Parameter | Required | Description |
|---|---|---|
account_id |
Yes | Customer account ID provided by Cabital. |
transfer_id |
Yes | Transfer transaction ID |
Request Body Parameters¶
Content Type: application/json
| Parameter | Required | Type | Description |
|---|---|---|---|
status |
Yes | string | Transfer transaction status.
|
external_id |
Yes | string | Partner's transaction ID. If the ID is duplicated, the transaction will be rejected. |
handle_time |
Yes | integer | Time of processing the transaction. |
code |
No | string | Please provide the error code when status is FAILED or CANCEL. |
message |
No | string | Please provide the error message when status is FAILED or CANCEL. |
Response Parameters¶
If the HTTP status code of the response is 200 OK, means the content is accepted, no need to retry.
Example¶
Request Data¶
curl -X PUT "http://connect.cabital.com/api/v1/accounts/transfers/30643636-3162-6564-3563-373064383332"
-d '{
"status": "SUCCESS",
"external_id": "12345",
"handle_time": 1658485881
}'
Response Data¶
List all transfers by account ID¶
GET https://connect.cabital.com/api/v1/accounts/{account_id}/transfers
User Account Status¶
- Linked
- KYC Pass
Request Path Parameters¶
| Parameter | Required | Description |
|---|---|---|
account_id |
Yes | Customer account ID provided by Cabital. |
Request Query Parameter¶
| Parameter | Required | Type | Description |
|---|---|---|---|
direction |
No | string | Indicates the direction of funds:
|
symbol |
No | string | Transfer currency |
has_conversion |
No | boolean | Transfer transaction is associated with the conversion transaction. |
cursor |
No | string | Pagination cursor value, default value is -1. |
page_size |
No | integer | Number of transfer transactions returned. Default value is 10, the range of number is between 1 and 30. |
created_from |
No | timestamp | The timestamp when transfer transaction is created. |
created_to |
No | timestamp | The timestamp when transfer transaction is ended. |
Response Parameters¶
| Parameter | Type | Description |
|---|---|---|
account_id |
string | Customer account ID provided by Cabital. |
user_ext_ref |
string | Customer account ID provided by Partner. |
transfer_id |
string | Transfer transaction ID |
instruction_id |
string | Instruction ID for reconciliation |
symbol |
string | Transfer currency |
direction |
string | Indicates the direction of funds:
|
external_id |
string | Partner's transaction ID |
conversion_id |
string | Conversion ID for associated conversion and transfer transactions, and it is used for reconciliation. |
instructed_amount |
string | Transfer amount |
customer_fee |
string | The transfer fee charged to the user. |
actual_amount |
string | The amount that the customer receive actually. |
status |
string | Transfer transaction status.
|
created_at |
timestamp | The timestamp when transfer transaction is created. |
transfer_by |
string | Initiator of transfer transaction.
|
Example¶
Request Data¶
Response Data¶
List all transfers by partner's account ID¶
GET https://connect.cabital.com/api/v1/userextref/{user_ext_ref}/transfers
User Account Status¶
- Linked
- KYC Pass
Request Path Parameters¶
| Parameter | Required | Description |
|---|---|---|
user_ext_ref |
Yes | Customer account ID provided by Partner. |
Request Query Parameter¶
| Parameter | Required | Type | Description |
|---|---|---|---|
direction |
No | string | Indicates the direction of funds:
|
symbol |
No | string | Transfer currency |
has_conversion |
No | boolean | Transfer transaction is associated with the conversion transaction. |
cursor |
No | string | Pagination cursor value, default value is -1. |
page_size |
No | integer | Number of transfer transactions returned. Default value is 10, the range of number is between 1 and 30. |
created_from |
No | timestamp | The timestamp when transfer transaction is created. |
created_to |
No | timestamp | The timestamp when transfer transaction is ended. |
Response Parameters¶
| Parameter | Type | Description |
|---|---|---|
account_id |
string | Customer account ID provided by Cabital. |
user_ext_ref |
string | Customer account ID provided by Partner. |
transfer_id |
string | Transfer transaction ID |
instruction_id |
string | Instruction ID for reconciliation |
symbol |
string | Transfer currency |
direction |
string | Indicates the direction of funds:
|
external_id |
string | Partner's transaction ID |
conversion_id |
string | Conversion ID for associated conversion and transfer transactions, and it is used for reconciliation. |
instructed_amount |
string | Transfer amount |
customer_fee |
string | The transfer fee charged to the user. |
actual_amount |
string | The amount that the customer receive actually. |
status |
string | Transfer transaction status.
|
created_at |
integer | Transfer transaction timestamp. |
transfer_by |
string | Initiator of transfer transaction.
|
Example¶
Request Data¶
Response Data¶
Retrieve a transfer by transfer ID¶
GET https://connect.cabital.com/api/v1/transfers/{transfer_id}
Request Path Parameters¶
| Parameter | Required | Description |
|---|---|---|
transfer_id |
Yes | Transfer transaction ID. |
Response Parameters¶
| Parameter | Type | Description |
|---|---|---|
account_id |
string | Customer account ID provided by Cabital. |
user_ext_ref |
string | Customer account ID provided by Partner. |
transfer_id |
string | Transfer transaction ID |
instruction_id |
string | Instruction ID for reconciliation |
symbol |
string | Transfer currency |
direction |
string | Indicates the direction of funds:
|
external_id |
string | Partner's transaction ID |
conversion_id |
string | Conversion ID for associated conversion and transfer transactions, and it is used for reconciliation. |
instructed_amount |
string | Transfer amount |
customer_fee |
string | The transfer fee charged to the user. |
actual_amount |
string | The amount that the customer receive actually. |
status |
string | Transfer transaction status.
|
created_at |
integer | The timestamp when transfer transaction is created. |
transfer_by |
string | Initiator of transfer transaction.
|
Example¶
Request Data¶
Response Data¶
Retrieve a transfer by partner's transaction ID¶
GET https://connect.cabital.com/api/v1/recon/transfers/{external_id}
Request Path Parameters¶
| Parameter | Required | Type | Description |
|---|---|---|---|
external_id |
Yes | string | Partner's transaction ID |
Response Parameters¶
| Parameter | Type | Description |
|---|---|---|
account_id |
string | Customer account ID provided by Cabital. |
user_ext_ref |
string | Customer account ID provided by Partner. |
transfer_id |
string | Transfer transaction ID |
instruction_id |
string | Instruction ID for reconciliation |
symbol |
string | Transfer currency |
direction |
string | Indicates the direction of funds:
|
external_id |
string | Partner's transaction ID |
conversion_id |
string | Conversion ID for associated conversion and transfer transactions, and it is used for reconciliation. |
instructed_amount |
string | Transfer amount |
customer_fee |
string | The transfer fee charged to the user. |
actual_amount |
string | The amount that the customer receive actually. |
status |
string | Transfer transaction status.
|
created_at |
timestamp | The timestamp when transfer transaction is created. |