Subscribe to a plan
POST
bearerAuthheader
AutorizaciónBearer <token>Your API key, created in Configuración → Claves API. The key alone, without the Bearer prefix, is accepted too.
planId*stringLongitud
1 <= lengthapplication/json- body
customerId*stringname*stringLongitud
1 <= lengthstartDate*stringendDate?stringstudentId?stringPatrón
^[cC][0-9a-z]{6,}$Formato
cuidSuccessful response
application/json- response
status*stringValor en
"ACTIVE""INACTIVE"id*stringPatrón
^[cC][0-9a-z]{6,}$Formato
cuidaccountId*stringcustomerId*stringplanId*stringexternalId*string|nullname*stringstartDate*stringendDate*string|nullnextBillingDate*string|nullstudentId*string|nullcreatedAt*stringupdatedAt*stringcurl -X POST 'https://api.unopago.com/v1/plans/string/subscriptions' \ -H 'Content-Type: application/json' \ -d '{ "customerId": "string", "name": "string", "startDate": "string"}'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"}
