Skip to content

Query Payment Status

Request Method and Path

POST /payin/v1/getPaymentStatus

Request Headers

Field NameTypeRequiredDescription
content-typestringYesapplication/json
x-api-keystringYesProvided by Paydify, same as appId
x-api-timestampstringYesTimestamp in milliseconds
x-api-signaturestringYesSignature, see Signature Algorithm

Request Body

Field NameTypeRequiredDescription
mchTxnIdstringNoMerchant order ID, either mchTxnId or txnId must be provided
txnIdstringNoPaydify order ID, either mchTxnId or txnId must be provided

Response Headers

Field NameTypeRequiredDescription
x-api-keystringYesProvided by Paydify, same as appId
x-api-timestampstringYesTimestamp in milliseconds
x-api-signaturestringYesSignature, see Signature Algorithm

Response

Field NameTypeDescription
codestringResponse code, SYS_SUCCESS indicates success
messagestringResponse message
messageDetailstringDetailed response message
successbooleanWhether the request was successful
data[i].txnIdstringPaydify order ID
data[i].mchTxnIdstringMerchant order ID
data[i].txnHashstringBlockchain transaction hash
data[i].txnAmountstringOrder amount, if currency is USDT, then 1.23 means 1.23 USDT
data[i].paidAmountstringActual paid amount, if currency is USDT, then 1.23 means 1.23 USDT
data[i].mchReceivedAmountstringAmount merchant should receive, if currency is USDT, then 1.23 means 1.23 USDT
data[i].mchFeestringFee charged by Paydify, if currency is USDT, then 0.23 means 0.23 USDT
data[i].mchFeeRatestringFee rate charged by Paydify, 1 means 1%
data[i].currencystringPayment currency
data[i].gasFeestringBlockchain gas fee
data[i].gasFeeCurrencystringGas fee currency
data[i].payMethod1stringPayment wallet, enum values see Supported Blockchains and Currencies
data[i].payMethod2stringPayment blockchain, enum values see Supported Blockchains and Currencies
data[i].appIdstringProvided by Paydify
data[i].statestringPayment status, enum values see Payment Status
data[i].refundTypestringRefund identifier, note distinction from refund status
data[i].mchExtInfostringMerchant extension information, JSON string
data[i].errorMsgstringPayment failure reason description
data[i].envTypestring
data[i].fromAddressstringPayer address
data[i].checkoutModeintCheckout mode, possible values: MERCHANT (merchant-specified payment amount), CUSTOMER (customer input payment amount)
data[i].paidTimeintPayment success timestamp in milliseconds, only has value when payment is successful
data[i].failedTimeintPayment failure timestamp in milliseconds, only has value when payment fails/times out
data[i].expiredTimeintExpected payment timeout timestamp in milliseconds
data[i].createdTimeintPayment initiation timestamp in milliseconds

Request Example

shell
# Request

# Successful response
{
  "code": "SYS_SUCCESS",
  "message": null,
  "messageDetail": null,
  "data": [{
    "txnId": "2209141130105863014",
    "mchTxnId": "220914xxx",
    "state": "pending",
    "errorMsg": "xxx",
    "paidTime": 1756725871000,
    "failedTime": 0,
    "expiredTime": 1756729471000,
    "createdTime": 1756697092000
  }],
  "success": true
}

# Failed response
{
  "code": "SYS_ERROR",
  "message": "System error",
  "messageDetail": "Error details",
  "data": null,
  "success": false
}
# Request

# Successful response
{
  "code": "SYS_SUCCESS",
  "message": null,
  "messageDetail": null,
  "data": [{
    "txnId": "2209141130105863014",
    "mchTxnId": "220914xxx",
    "state": "pending",
    "errorMsg": "xxx",
    "paidTime": 1756725871000,
    "failedTime": 0,
    "expiredTime": 1756729471000,
    "createdTime": 1756697092000
  }],
  "success": true
}

# Failed response
{
  "code": "SYS_ERROR",
  "message": "System error",
  "messageDetail": "Error details",
  "data": null,
  "success": false
}