Unsubscribe from a plan
DELETE
Deletes a subscription that has no orders. A subscription with orders is ended instead: it becomes INACTIVE, its end date moves to the day before its first unbilled cycle, and its orders are kept. Ending one that is already inactive succeeds without changes.
bearerAuthheader
AutorizaciónBearer <token>Your API key, created in Configuración → Claves API. The key alone, without the Bearer prefix, is accepted too.
planId*stringPatrón
^[cC][0-9a-z]{6,}$Formato
cuidsubscriptionId*stringPatrón
^[cC][0-9a-z]{6,}$Formato
cuidSuccessful response
application/json- response
success*booleancurl -X DELETE 'https://api.unopago.com/v1/plans/string/subscriptions/string'Ejemplo de respuesta
{ "success": true}
