request_id must be used to ensure idempotency of cancellation.curl --location '/dpm/payments-gwproxy/v2/payments/combined/cancel' \
--header 'x-transaction-channel-entry;' \
--header 'Content-Type: application/json' \
--data '{
"request_id": "daac03dc-73db-453f-9bea-b1391669d5d3",
"payments": [
{
"idempotency_key": "daac03dc-73db-453f-9bea-b1391669d5d3",
"payment_id": "2c341d28-491b-4cf8-aec7-eeb60136b7a5",
"amount": 8900,
"payment_method": "CREDIT",
"custom_key": "20200630-8900",
"payment_tag": "string"
}
],
"additional_data": {
"property1": {},
"property2": {}
}
}'{
"seller_id": "9406df6c-3100-49ba-b4df-d81c1ad8a62b",
"request_id": "daac03dc-73db-453f-9bea-b1391669d5d3",
"order_id": "ORDER-10187383",
"amount": 8900,
"combined_id": "66f36211-3a61-41fa-8747-052c451e89ad",
"payments": [
{
"idempotency_key": "63c7f8ee-51a6-470d-bb76-ef762b62bfb7",
"seller_id": "9406df6c-3100-49ba-b4df-d81c1ad8a62b",
"request_id": "daac03dc-73db-453f-9bea-b1391669d5d3",
"payment_id": "2c341d28-491b-4cf8-aec7-eeb60136b7a5",
"order_id": "ORDER-10187383",
"amount": 8900,
"currency": "BRL",
"status": "string",
"reason_code": "00",
"reason_message": "TRANSACTION EXECUTED SUCCESSFULLY",
"canceled_at": "2020-07-01T02:15:03.603Z",
"custom_key": "20200630-8900"
}
]
}