Ir al contenido
UnoPagoDocumentación

Update customer subscription information

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

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

subscriptionId*string
Patrón^[cC][0-9a-z]{6,}$
Formatocuid
planId*string
Patrón^[cC][0-9a-z]{6,}$
Formatocuid
application/json
  1. body
name*string
Longitud1 <= length
startDate?string
endDate*string|null
status*string
Valor en"ACTIVE""INACTIVE"
studentId?string
Patrón^[cC][0-9a-z]{6,}$
Formatocuid

Cuerpo de la respuesta

Successful response

application/json
  1. response
status*string
Valor en"ACTIVE""INACTIVE"
id*string
Patrón^[cC][0-9a-z]{6,}$
Formatocuid
accountId*string
customerId*string
planId*string
externalId*string|null
name*string
startDate*string
endDate*string|null
nextBillingDate*string|null
studentId*string|null
createdAt*string
updatedAt*string
Ejemplo de solicitud
curl -X PUT 'https://api.unopago.com/v1/plans/string/subscriptions/string' \  -H 'Content-Type: application/json' \  -d '{  "name": "string",  "endDate": "string",  "status": "ACTIVE"}'
Ejemplo de respuesta
{  "status": "ACTIVE",  "id": "string",  "accountId": "string",  "customerId": "string",  "planId": "string",  "externalId": "string",  "name": "string",  "startDate": "string",  "endDate": "string",  "nextBillingDate": "string",  "studentId": "string",  "createdAt": "string",  "updatedAt": "string"}