v1
latestOpenAPI 3.0.02026-07-26167441.9 MBCancel Payment
post/payments/{payment_id}/transactions/{transaction_id}/cancel
Path parameters
payment_idstring required
The unique identifier of the payment (UUID, 36 chars).
transaction_idstring required
The unique identifier of the transaction (UUID, 36 chars).
Request body
Response
200
Example response
{
"id": "438bea6c-9061-4416-b824-469c3c05868d",
"type": "CANCEL",
"status": "SUCCEEDED",
"category": "CARD",
"amount": {
"currency": "USD",
"value": 30000
},
"created_at": "2024-06-06T14:03:08.384014Z",
"updated_at": "2024-06-06T14:03:08.453617Z",
"provider_data": {
"id": "YUNO_TEST_PAYMENT_GW",
"status": "SUCCEEDED",
"status_detail": "SUCCEEDED",
"response_code": "SUCCEEDED",
"raw_response": {
"message": "provider response"
},
"iso8583_response_code": "00",
"iso8583_response_message": "Approved or completed successfully"
},
"response_code": "SUCCEEDED",
"response_message": "Transaction successful",
"payment": {
"id": "2d6f75c1-c4bc-4d2d-80ec-0af4d12c85da",
"description": "Test",
"country": "US",
"status": "CANCELED",
"sub_status": "CANCELED",
"merchant_order_id": "0000023",
"created_at": "2024-06-06T14:01:34.286228Z",
"updated_at": "2024-06-06T14:03:08.484781Z",
"amount": {
"currency": "USD",
"value": 30000
}
}
}