Refund Query


API URL:https://mapi.yabandpay.com/Payments

Method:POST

POST data type:Json

Parameter Type Description Required
user String the UID of cashier account Required
sign String signature Required
method String v3.CreateRefund Required
time Long timestamp Required
  • Parameter
Parameter Type Description Required
refund_id String the refund id from YabandPay Required

Signature:

Lexicographical sequence and URL key-value format new string

"method=v3.QueryRefundOrder&time=1728566835&refund_id=3841510a-4d18-4a61-808d-431a45006de2&user=016683"

Use stringA and secret_key to get stringSign

Get Signature:

"8c15888bd5bcdaa643bf3d54daf5d642c6bab2defbb96017dd12f7c09b3fa498"

Example Request:

{
    "user": "016683",
    "sign": "8c15888bd5bcdaa643bf3d54daf5d642c6bab2defbb96017dd12f7c09b3fa498",
    "method": "v3.QueryRefundOrder",
    "time": 1728566835,
    "data": {
        "refund_id": "3841510a-4d18-4a61-808d-431a45006de2"
    }
}

Example Response:

{
    "status": true,
    "code": "200",
    "data": {

            "transaction_id": "20240903153820059756",
            "refund_id": "20240903154342497308",
            "m_refund_id": null,
            "refund_time": "1725349422",
            "state": "refunded",
            "refund_amount": "0.01",
            "refund_currency": "EUR",
            "refund_description": "gary",
            "notify_url": "null",
            "demo": "",
            "settlement_refund_amount": "0.01",
            "settlement_refund_currency": "EUR",
            "merchant_cost": "0.1",
            "yb_transaction_id": "c07859aa-3d12-69d4-ef2f-a9556d9c4d33"
        },
    "message": ""
}

More Information:

Return results:
  1. On a successful API call, the response will be "status": true.

  2. On a failed API call, the response will be "status": false.

Refund status:
Code State Description
20 to-be-approval Waiting for admin approval.
21 refund pending The current balance is insufficient. It will be automatically submitted when the balance is sufficient.
22 refund processing Refund has been submitted.
23 refunded Refund successfully.
24 refund failed Refund failed, please try again.
25 refund error Please contact our staff.
26 refund cancelled The refund order has been cancelled.

results matching ""

    No results matching ""