2.1.36 Cancel Card Query

Path:/openapi/card/cancel/query

Method:POST

Content-Type:application/json

Response Content-Type:application/json

Description:

Example Request:

{
  "card_id": "62612765229810936",
  "end_time": 1691397764,
  "page": 1,
  "size": 10,
  "start_time": 1681397764
}

Request Parameter:

Parameter Name Type Required Description
card_id string false Card ID;
If card_id is not empty, we will try to get this card's cancel data, and do not check other field.
If card_id is empty, then we will use time range you sent to query cancel card data, and other field must not null
end_time string true End time to query in Unix timestamp (second), must be less than 30 day away from start time
page integer true Page number
size integer true Number of records in each page. Minimum is 10 and Maximum is 200
start_time string true Start time to query in Unix timestamp(second)

API Response:

Parameter name Type Description
code string Error Code
data object Data object for this respond
  page integer Current page number
  records array Records
    card_id string Card ID
    card_balance string The balance of the card at the time of cancellation (the fiat currency corresponding to the card), the value of this field is meaningful only after the successful cancellation of the card
    cancel_fee string Cancel Card fee (the fiat currency corresponding to the card), the value of this field is meaningful only after the successful cancellation of the card
    refund_amount string Cancel Card fee (USDT), the value of this field is meaningful only after the successful cancellation of the card
    create_time integer Create time, Unix timestamp (second)
    cancel_type integer Cancel Card Type;0. Passive card cancellation 1. Active card cancellation 2. Background card cancellation
    cancel_status integer Cancel Card Status;1.Pending 2.Success 3.Failed
  size integer Page size
  total integer Total number of record
msg string Error message

Example Response:

{
  "code": "00000",
  "msg": "ok",
  "data": {
    "records": [
      {
        "card_id": "62612765229810936",
        "card_balance": "0.00",
        "cancel_fee": "0.00",
        "refund_amount": "0.00000000",
        "create_time": 1691397764,
        "cancel_type": 1,
        "cancel_status": 3
      }
    ],
    "total": 1,
    "size": 10,
    "page": 1
  }
}
Copyright © HyperCard 2023 all right reserved,powered by GitbookUpdate Time: 2024-09-11 10:55:00

results matching ""

    No results matching ""