Cancel Recurring Application Charge

The Cancel Recurring Application Charge API is used to cancel a recurring application charge subscription. This API does not delete the subscription but updates its status to reflect the cancellation. In RESTful API design, a DELETE request can imply logical deletion or physical deletion. In this case, the subscription remains in the database, but its status is updated to indicate it has been canceled.

This API is especially useful for:

  1. Managing subscription cancellations without deleting the record.
  2. Auditing and tracking canceled subscriptions.
  3. Maintaining a consistent history of subscription changes.

Note: The operation updates fields such as canceled_on, updated_at, and status to reflect the cancellation.

Request Parameters

Public Request Parameters

📘

Public Request Parameters

Path Parameters

ParameterTypeRequiredDescriptionExample
charge_idstringrequiredThe unique identifier of the recurring charge37222669345671159

Response Explanation

Public Response Parameters

📘

Public Response Parameters

Success Response

FieldTypeDescriptionExample
{}objectEmpty object indicating success.{}

Error Response

Error responses in the API can be represented using two different fields: errors and error. Both fields provide details about issues encountered during request processing. Below is an explanation of the fields with their respective examples and descriptions.

FieldTypeExampleDescription
errorsArray[ "file number error"]A list of errors encountered during the request processing.
FieldTypeExampleDescription
errorString "page not found"Indicates an error encountered during the process

Error Detail

Status CodeMessagePossible ReasonExample Response
400Bad RequestInvalid input format or request structure (e.g., missing required fields or incorrect data types).Bad Request
UnauthorizedThe request is missing valid authentication credentials or the credentials provided are invalid.Unauthorized
404Not FoundThe charge Id is not found."Record not found"
422Unprocessable EntityThe charge Id is empty."ChargedId is required"

API Structure Overview

Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!