Ir al contenido
UnoPagoDocumentación

Unsubscribe from a plan

DELETE
/v1/plans/{planId}/subscriptions/{subscriptionId}

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.

Autorización

bearerAuth
headerAutorizaciónBearer <token>

Your API key, created in Configuración → Claves API. The key alone, without the Bearer prefix, is accepted too.

Parámetros de ruta

planId*string
Patrón^[cC][0-9a-z]{6,}$
Formatocuid
subscriptionId*string
Patrón^[cC][0-9a-z]{6,}$
Formatocuid

Cuerpo de la respuesta

Successful response

application/json
  1. response
success*boolean
Ejemplo de solicitud
curl -X DELETE 'https://api.unopago.com/v1/plans/string/subscriptions/string'
Ejemplo de respuesta
{  "success": true}