Skip to main content
GET
/
api
/
v1
/
merchant
/
payment
/
{mchOriginalTransactionId}
/
cancel
支付取消
curl --request GET \
  --url https://stageapi.paymatrixpay.com/api/v1/merchant/payment/{mchOriginalTransactionId}/cancel \
  --header 'X-Merchant-Id: <x-merchant-id>' \
  --header 'X-Nonce: <x-nonce>' \
  --header 'X-Signature: <x-signature>' \
  --header 'X-Timestamp: <x-timestamp>'
{
  "code": "<string>",
  "msg": "<string>",
  "trace_id": "<string>",
  "data": {
    "platform_transaction_id": "<string>",
    "merchant_transaction_id": "<string>",
    "payment_status": "<string>",
    "order_cancel_time": "2023-11-07T05:31:56Z"
  }
}

Headers

X-Merchant-Id
integer<int64>
required

商户 Id

X-Signature
string
required

签名字符串

Maximum string length: 5000
X-Timestamp
integer<int64>
required

时间戳毫秒值

X-Nonce
string
required

随机字符串

Maximum string length: 10

Path Parameters

mchOriginalTransactionId
string
required

Response

200 - */*

OK

code
string

状态码

msg
string

消息

trace_id
string

调用链ID, 用于定位问题

data
object