Ir al contenido
UnoPagoDocumentación

Get subscriptions of a plan

GET
/v1/plans/{planId}/subscriptions

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

Cuerpo de la respuesta

Successful response

application/json
  1. response
[index: integer]?
Ejemplo de solicitud
curl -X GET 'https://api.unopago.com/v1/plans/string/subscriptions'
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",    "customer": {      "id": "string",      "firstName": "string",      "lastName": "string",      "nationalId": "string",      "externalId": "string"    },    "student": {      "id": "string",      "firstName": "string",      "lastName": "string",      "nationalId": "string",      "externalId": "string"    }  }]