关闭订单
接口地址
POST https://api.tokenpay.me/v1/transaction/close
接口参数
名称
位置
类型
必选
说明
app_id
header
string
是
应用 ID,示例值:8e4b8c2e7cxxxxxxxx1a1cbd3d59e0bd
mch_id
body
string
是
商户 ID,示例值:1234567890
transaction_id
body
string
否
平台订单号,示例值:2a1cfa6568xxxxxxxx3050957024c559
参数示例
{
"app_id": "8e4b8c2e7cxxxxxxxx1a1cbd3d59e0bd",
"mch_id": "1234567890",
"transaction_id": "2a1cfa6568xxxxxxxx3050957024c559"
}
接口返回
名称
类型
说明
说明
返回示例
{
"code": 0,
"msg": "成功",
"request_id": "f23ade4a-e5ca-48f4-a4bb-59114ac360ba",
}
代码示例
curl --location --request POST 'https://api.tokenpay.me/v1/transaction/close' \
--header 'Authorization: <Authorization>' \
--header 'User-Agent: tokenpay API (https://tokenpay.me)' \
--header 'Content-Type: application/json' \
--data-raw '<body data here>'
Last updated