Delete a payment. On success, returns the final payment record state.

The API responses shown below are static. If you want to try out the API please login, or register for an API key

API parameters

X-Auth-Token header string Authentication token.
id path string Payment UUID.
on_behalf_of formData string A contact UUID for the sub-acccount you're acting on behalf of.
curl -X POST  --header "X-Auth-Token: XXXX-XXXXX-XXXX"  https://devapi.currencycloud.com/v2/payments/{id}/delete


    "id": "dbec7699-6508-479e-b1cf-d4fbe4bed798",
    "amount": "10.00",
    "beneficiary_id": "5824f6a3-a5a7-4c3e-acf2-5b1ed2939811",
    "currency": "GBP",
    "reference": "This is a updated test reference.",
    "reason": "This is a updated test payment.",
    "status": "deleted",
    "creator_contact_id": "a66ca63f-e668-47af-8bb9-74363240d781",
    "payment_type": "regular",
    "payment_date": "2022-01-31",
    "transferred_at": "",
    "authorisation_steps_required": "0",
    "last_updater_contact_id": "a66ca63f-e668-47af-8bb9-74363240d781",
    "short_reference": "220131-R2M0R4791",
    "conversion_id": null,
    "failure_reason": "",
    "payer_id": "79a8e858-4610-4ac7-a8a6-4bb4aa6a7b66",
    "payer_details_source": "account",
    "created_at": "2022-01-31T14:30:46+00:00",
    "updated_at": "2022-01-31T14:30:51+00:00",
    "payment_group_id": null,
    "unique_request_id": null,
    "failure_returned_amount": "0.00",
    "ultimate_beneficiary_name": null,
    "purpose_code": null,
    "charge_type": null,
    "fee_amount": null,
    "fee_currency": null
Error Codes
HTTP Status Code Description Params
400 invalid_id ID has invalid format
on_behalf_of_self You cannot act on behalf of your own Contact
payment_not_found Payment was not found for this id
contact_not_found Contact was not found for this id
401 invalid_supplied_credentials Authentication failed with the supplied credentials
429 too_many_requests Too many requests have been made to the api. Please refer to the Developer Center for more information
500 internal_server_error Internal server error
503 service_unavailable Service is temporary unavailable
Was this post helpful?
Let us know if you liked the post. That’s the only way we can improve.