Revoke a charge
Cancel a charge that should no longer accept payment.
Revokes a charge by public identifier. Use this request when the charge should no longer accept payment. It must belong to the company and authenticated environment. The record and history remain available for lookup; revocation does not refund or return paid amounts.
Cancellation may depend on bank confirmation. If the request remains pending or ends without a conclusive result, track the same charge through the individual lookup before trying again. Consider the charge canceled only after confirmation.
See the differences between Sandbox and Production and how to track confirmation in Revoke a charge.
Path Params
The charge's public identifier in Raims, received when creating or listing charges.
Up to 100 characters
Headers
Unique key chosen by your system to identify this request. When retrying, send the same key and parameters. Without this header, the request is processed normally. See the idempotency guide for retention and handling pending or uncertain responses.
1 to 255 characters
Responses
Response Body
Revocation confirmed, with canceled status (7). The history remains available for retrieval. Repeating the request returns the same confirmation. Revocation does not refund paid amounts.
Public charge identifier.
Current charge state, accounting for the due date.
Indicates that revocation was confirmed.
Indicates that cancellation is still awaiting confirmation.
Response Body
Cancellation is still awaiting confirmation. The charge has not yet been revoked. Retrieve the charge to track the result.
Public charge identifier.
Current charge status, accounting for the due date.
Indicates that revocation was confirmed.
Indicates that cancellation is still awaiting confirmation.
Response Body
Invalid identifier, or a body or parameters are not allowed. Send this request without a body.
Code and explanation of the error returned by the API.
Stable error code.
Error explanation in English. For validation errors, it summarizes the category; details identify the corrections. Use the codes to handle the response.
Invalid fields or references submitted in the body, with the field, code and explanation. Omitted for general errors and when there is no field correction to indicate.
Public name of the JSON field, query parameter, path parameter or header related to the error. Nested fields and lists retain their path and index. $ represents the root of the JSON body.
Reason for the field error, such as REQUIRED, INVALID_TAXID, UNKNOWN_FIELD, DUPLICATE_FIELD or INVALID_TYPE.
Explanation in English of the problem with this field or parameter and the available correction. Do not use the text to determine your integration flow.
Response Body
No charge was found for the specified id in the authenticated company and environment. Check the identifier.
Code and explanation of the error returned by the API.
Stable error code.
Error explanation in English. For validation errors, it summarizes the category; details identify the corrections. Use the codes to handle the response.
Invalid fields or references submitted in the body, with the field, code and explanation. Omitted for general errors and when there is no field correction to indicate.
Public name of the JSON field, query parameter, path parameter or header related to the error. Nested fields and lists retain their path and index. $ represents the root of the JSON body.
Reason for the field error, such as REQUIRED, INVALID_TAXID, UNKNOWN_FIELD, DUPLICATE_FIELD or INVALID_TYPE.
Explanation in English of the problem with this field or parameter and the available correction. Do not use the text to determine your integration flow.
Response Body
The charge's state or a payment condition prevents revocation. The message identifies the cause and explains how to proceed. When rejected because of its state, it provides the current state and the accepted states. If you have already requested cancellation, retrieve the charge before trying again.
Code and explanation of the error returned by the API.
Stable error code.
Error explanation in English. For validation errors, it summarizes the category; details identify the corrections. Use the codes to handle the response.
Invalid fields or references submitted in the body, with the field, code and explanation. Omitted for general errors and when there is no field correction to indicate.
Public name of the JSON field, query parameter, path parameter or header related to the error. Nested fields and lists retain their path and index. $ represents the root of the JSON body.
Reason for the field error, such as REQUIRED, INVALID_TAXID, UNKNOWN_FIELD, DUPLICATE_FIELD or INVALID_TYPE.
Explanation in English of the problem with this field or parameter and the available correction. Do not use the text to determine your integration flow.
For common errors, see HTTP response codes.