我正在尝试向此交易发送无效种类:
{
"transactions": [
{
"id": xxxxxx,
"order_id": yyyyyy,
"kind": "authorization",
"gateway": "mercado_pago",
"status": "success",
"message": null,
"created_at": "2019-10-09T09:00:08-04:00",
"test": false,
"authorization": null,
"location_id": null,
"user_id": null,
"parent_id": null,
"processed_at": "2019-10-09T09:00:08-04:00",
"device_id": null,
"receipt": {},
"error_code": null,
"source_name": "xxxxxx",
"amount": "300.00",
"currency": "BRL",
"admin_graphql_api_id": "gid://shopify/OrderTransaction/xxxxxx"
}
]
}
我现在的无效格式请求:(我尝试更改所有可能的参数,但一直说它不是 “要求parent_id引用可作废/可退款的交易”)
请求:
{
"transaction": {
"parent_id": xxxxxx, // < same id of the previous transaction
"gateway": "mercado_pago",
"kind": "void"
}
}
响应:
{
"errors": {
"transactions": [
"require a parent_id referring to a voidable/refundable transaction"
]
}
}
我真的不知道如何通过API取消此授权。
预先感谢