cURL
curl --request PATCH \ --url https://demo.api.harmony.compago.com/api/one-time-payment/{id}/cancel \ --header 'x-api-key: <api-key>'
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "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
CANCELLED