cURL
curl --request PATCH \ --url https://demo.api.harmony.compago.com/api/one-time-payment/{id}/cancel \ --header 'x-api-key: <api-key>'
{ "id": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", "status": "CANCELLED", "description": "<string>", "amount": 123, "currency": "<string>", "externalId": "<string>", "expiresAt": "2023-11-07T05:31:56Z", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z" }
The unique identifier of the one-time payment to cancel
Payment successfully cancelled
The cancelled one-time payment object
"aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"
CANCELLED