💰Withdraw

Apply for Withdrawal POST https://openapi.fokawa.com/sapi/v1/withdraw/apply

Headers:

  • X-CH-APIKEY*: String (Your API-key)

  • X-CH-SIGN*: String (Sign)

  • X-CH-TS*: Integer (Timestamp)

Request Body:

  • withdrawOrderId*: String (Custom withdrawal ID, guaranteed to be unique)

  • amount*: String (Quantity)

  • address*: String (Withdrawal address)

  • label: String (Some currencies such as XRP, XMR allow filling of secondary address labels)

  • symbol: String (Currency name, for coins that support multiple mainchains, the actual currency name needs to be transmitted)

Response Example:

{
    "code": "Ѳ",
    "msg": "success",
    "data": {
        "id": 518353 // Platform withdrawal ID
    }
}

Weight (IP/UID): 100

Withdrawal Record Query POST https://openapi.fokawa.com/sapi/v1/withdraw/query

Headers:

  • X-CH-APIKEY*: String (Your API-key)

  • X-CH-SIGN*: String (Sign)

  • X-CH-TS*: String (Timestamp)

Request Body:

  • symbol: String (Currency name, for coins that support multiple mainchains, the actual currency name needs to be transmitted)

  • withdrawId: String (Platform withdrawal ID)

  • withdrawOrderId: String (Custom withdrawal ID)

  • startTime: String (Start time, timestamp, default 90 days ago)

  • endTime: String (End time, timestamp, default current time)

  • page: String (Page number, starting at 1)

Response Example:

Responses Parameters:

  • symbol: String (Withdrawal currency)

  • amount: Number (Quantity)

  • address: String (Withdrawal address)

  • withdrawOrderId: String (Custom withdrawal ID)

  • fee: Number (Fee)

  • ctime: Number (Creation time)

  • txId: String (Withdrawal transaction ID)

  • id: Number (Platform withdrawal ID)

  • applyTime: Number (On-chain time)

  • status: Number (Withdrawal status: 0-unapproved, 1-approved, 2-approved rejected, 3-payment, 4-payment failed, 5-completed, 6-revoked)

  • info: String (Withdrawal address error, review rejection reasons)

Last updated