支付
关闭支付订单
关闭该支付单下所有待支付订单。 若已发生支付,关单将失败。
标头参数
X-R-Ts*string
请求时间戳(毫秒)
X-R-Ak*string
商户 appKey
X-R-Signature*string
请求签名
X-R-Key-Version?string
商户私钥版本,默认 1
请求主体
application/json
TypeScript 定义
在 TypeScript 中使用 request body 类型。
关单处理中
响应主体
*/*
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/openapi/v2/order/close" \ -H "X-R-Ts: 1762327084929" \ -H "X-R-Ak: string" \ -H "X-R-Signature: string" \ -H "Content-Type: application/json" \ -d '{ "orderSn": "RAP20260205064728752085952" }'"Open API 通用响应"{ "code": "paramFormatError", "message": "request param invalid"}{ "code": "authorizationInvalid", "message": "authorizationInvalid invalid"}{ "code": "notInWhiteList", "message": "request ip not in the white list"}{ "code": "frequencyLimited", "message": "Too many requests, please try again later"}