Skip to content

Query Refund

Function Description

  • Query refund order

Query Refund API

Request URL

  • /refunds/{REFUND_ID}
    • {REFUND_ID}:Your refund order ID

Request Method

  • refund.detail

HTTP Verb

  • GET

Request Parameters

The request parameters are as follows:

Response Parameters

The response parameters are as follows:

  • Response Body
ParameterTypeDescriptionExample
amountnumberOrder amount, note that this is a numeric type, floating point number, up to two decimal places3.23
idstringChargeback ID, globally unique"M948164T2023072607034709567189_R1"
merchantIdstringMerchant ID"M948164"
orderIdstringThe order ID"M948164T2023072607034709567189"
merchantRefundIdstringMerchant refund order ID"TEST934759263495634"
refundTransactionIdstringRefund operation transaction ID"M948164T2023072607034709567189_2"
originTransactionIdstringOrder transaction ID"M948164T2023072607034709567189_1"
paymentMethodstringPayment method:
stcpay
mastercard
applePay
tap
"mastercard"
statusstringRefund status:
pending: Refund in progress
success: Refund completed
fail: Refund failed
"pending"
currencystringcurrency type currency type, three uppercase letters"SAR"
"KWD"
"BHD"
"AED"
"OMR"
"QAR"
reasonstringReason for refund"Return Shipping Fee"
finishedAtstringRefund completion time"2023-07-27T11:38:11.000Z"
createdAtstringCreation time"2023-07-26T04:06:33.227Z"
updatedAtstringUpdate time"2023-07-26T04:06:33.227Z"

Response Parameter Example

json
{
  "amount": 7, // order amount
  "id": "M948164T2023072607034709567189_R1", // Chargeback ID
  "merchantId": "M948164", // Merchant ID
  "orderId": "M948164T2023072607034709567189", // Order ID
  "merchantRefundId": "TEST456345768345", // Merchant refund order ID
  "refundTransactionId": "M948164T2023072607034709567189_2", // Refund operation transaction ID
  "originTransactionId": "M948164T2023072607034709567189_1", // Order transaction ID
  "paymentMethod": "mastercard", // payment method
  "status": "success", // Refund status
  "currency": "SAR", // currency type
  "reason": null, //Refund reason
  "finishedAt": "2023-07-27T11:38:11.000Z", // Refund completion time
  "createdAt": "2023-07-26T04:06:33.000Z", // Creation time
  "updatedAt": "2023-07-27T11:38:11.000Z" // Update time
}