Skip to main content

Withdraw (for local entities that require travel rule) (USER_DATA)

API Description

Submit a withdrawal request for local entities that required travel rule.

HTTP Request

POST /sapi/v1/localentity/withdraw/apply

Request Weight(UID)

600

Request Parameters

NameTypeMandatoryDescription
coinSTRINGYES
withdrawOrderIdSTRINGNOwithdrawID defined by the client (i.e. client's internal withdrawID)
networkSTRINGNO
addressSTRINGYES
addressTagSTRINGNOSecondary address identifier for coins like XRP,XMR etc.
amountDECIMALYES
transactionFeeFlagBOOLEANNOWhen making internal transfer, true for returning the fee to the destination account; false for returning the fee back to the departure account. Default false.
nameSTRINGNODescription of the address. Address book cap is 200, space in name should be encoded into %20
walletTypeINTEGERNOThe wallet type for withdraw,0-spot wallet ,1-funding wallet. Default walletType is the current "selected wallet" under wallet->Fiat and Spot/Funding->Deposit
recvWindowLONGNO
timestampLONGYES
questionnaireSTRINGYESJSON format questionnaire answers.
  • If network not send, return with default network of the coin, but if the address could not match default network, the withdraw will be rejected.
  • You can get network and isDefault in networkList of a coin in the response of Get /sapi/v1/capital/config/getall (HMAC SHA256).
  • Questionnaire is different for each local entity, please refer to the Withdraw Questionnaire Contents page.
  • If getting error like Questionnaire format not valid. or Questionnaire must not be blank, please try to verify the format of the questionnaire and use URL-encoded format.

Response Example

{
"trId": 123456, # The travel rule record Id
"accpted": true, # Whether the withdraw request is accepted
"info": "Withdraw request accepted" # The detailed infomation of the withdrawal result.
}