POST Cancel Subscription
Cancels a subscription given its identifier. The operation is idempotent: if the subscription is already cancelled, the system returns the ALREADY_CANCELLED status.
ALREADY_CANCELLED status without generating an error.
Required Headers
Request Body Parameters
Validation Rules
Required Fields
Common Validation Error Messages
The following are common validation error messages returned by the API (in Spanish)::attribute es obligatorio.- Required field missing:attribute debe ser una cadena de texto.- Invalid data type (expected string):attribute no puede tener más de :max caracteres.- Maximum length exceeded:attribute no es válido.- Invalid value
Response Fields
Success Response (200 OK)
"SUCCESS": Subscription cancelled successfully"ALREADY_CANCELLED": The subscription was already cancelled (idempotent operation)
true when successful (even if already cancelled)HTTP Status Codes
Response Codes
Headers
Unique identifier of the Merchant invoking Card Payment services. Should not be used to authenticate end users.
Tracking identifier associated with the request, used to establish a correlation_id between ecosystem components.
Token for authentication.
Basic authentication.
Body
"sub_93af8f63-97d1-4be0-9e0d-f6fd8c2d92a0"
Response
Subscription cancelled successfully or was already cancelled (idempotency). Check 'code' field to distinguish between 'SUCCESS' and 'ALREADY_CANCELLED'.
Response to the cancellation process. The 'status' field is always true (even for ALREADY_CANCELLED) due to idempotency.
Response code. Values: 'SUCCESS' (cancelled successfully), 'ALREADY_CANCELLED' (was already cancelled)
SUCCESS, ALREADY_CANCELLED "SUCCESS"
Operation status. Always true for successful responses (even if already cancelled)
true
Descriptive message about the cancellation result
"Suscripción cancelada exitosamente"