Ir al contenido
UnoPagoDocumentación
Referencia de la APICustomer dataCustomers

Get customer subscriptions

GET
/v1/customers/{customerId}/subscriptions

This API is used to get customer 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

customerId*string
Patrón^[cC][0-9a-z]{6,}$
Formatocuid
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/customers/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",    "plan": {      "schedule": "SUBSCRIPTION_START",      "billingCycle": "WEEKLY",      "currency": "VES",      "pricingMode": "CURRENCY",      "status": "ACTIVE",      "lateFeeType": "PERCENTAGE",      "discountValueType": "PERCENTAGE",      "id": "string",      "accountId": "string",      "name": "string",      "description": "string",      "price": 0,      "advanceBillingDays": -9007199254740991,      "advanceDueDateDays": -9007199254740991,      "startDate": "string",      "endDate": "string",      "lateFee": 0,      "discountValue": 0,      "discountExpiresIn": -9007199254740991,      "singleInvoicePerSubscription": true,      "createdAt": "string",      "updatedAt": "string"    }  }]