跳到主要内容

Fiat Withdraw(WITHDRAW)

API Description

Submit withdraw request, in this version, we only support BRL withdrawal via bank_transfer.

You need to call this api first, and call query order detail api in a loop to get the status of the order until this order is successful.

Before calling this api, please make sure you have already completed your KYC or KYB, and already activated your fiat service on our website.

HTTP Request

POST /sapi/v2/fiat/withdraw

Request Weight(UID)

45000

Request Parameters

NameTypeMandatoryDescription
recvWindowLongNO
timestampLongYES

Request Body

NameTypeMandatoryDescription
currencySTRINGYESfiat currency, such as BRL
apiPaymentMethodSTRINGYESpayment method
current supported:
bank_transfer
amountNUMBERYESwithdraw amount
accountInfoOBJECTYESwithdraw account info
accountInfo.accountNumberSTRINGYESyour bank account number to receive the withdrawal
extOBJECTNOwithdraw requst ext info

you need to bind your bank account on web/app before using the corresponding account number

Request Command

{
curl --location '{{domain}}/sapi/v2/fiat/withdraw?timestamp={{timestamp}}&signature={{signature}}' \
--header 'X-MBX-APIKEY: {{apikey}}' \
--header 'Content-Type: application/json' \
--data '{
"currency":"BRL",
"apiPaymentMethod":"bank_transfer",
"amount": 20,
"accountInfo": {
"accountNumber":"1056894222",
"agency":"1234",
"bankCodeForPix":"222",
"accountType":"current"
}
}'
}

Response Example

{
"code": "000000",
"message": "success",
"data": {
"orderId":"04595xxxxxxxxx37"
}
}

Error Codes

indexcodemessage
1-16007Not enough limit
2-16009Not passed KYC/KYB
3-16010Not supported currency or payment method
4-16011Order not exist
5-16012No channel supported