Cancel Subscription
/rpy/be-subscription/v1/subscriptions/{subscription_id}/cancelCancel an Existing Subscription
This endpoint allows you to cancel an existing subscription using its unique identifier. It updates the subscription status to CANCELED and optionally logs a reason for audit and tracking purposes.
Usage Scenarios:
- When a customer explicitly requests to stop their subscription.
- As part of automated processes (e.g., failed payments, policy violations).
- When a service or product is discontinued.
Notes:
- You can optionally provide a status_details field to document the reason for cancellation (useful for audit or business insights).
- Once canceled, the subscription will not generate further billing events or renewals.
Header Parameters
User who is registering. This information can be used for audit purposes.
Path Parameters
Buyer identifier.
Body application/json
ECommerce identification code
Details of the recurrence subscription status.
Response
Request made successfully
Invalid Requisition
Detailed error message.
Name of the module or system in which the error occurred.
HTTP status code of the error.
Error details.
Error details.
combinedId.
orderId.
sellerId.
Not Found
Detailed error message.
Name of the module or system in which the error occurred.
HTTP status code of the error.
Error details.
Error details.
combinedId.
orderId.
sellerId.
Unprocessable Entity
Detailed error message.
Name of the module or system in which the error occurred.
HTTP status code of the error.
Error details.
Error details.
combinedId.
orderId.
sellerId.
Internal server or service error
Detailed error message.
Name of the module or system in which the error occurred.
HTTP status code of the error.
Error details.
Error details.
combinedId.
orderId.
sellerId.