Get customer subscriptions
GET
This API is used to get customer subscriptions
bearerAuthheader
AutorizaciónBearer <token>Your API key, created in Configuración → Claves API. The key alone, without the Bearer prefix, is accepted too.
customerId*stringPatrón
^[cC][0-9a-z]{6,}$Formato
cuidplanId?stringPatrón
^[cC][0-9a-z]{6,}$Formato
cuidSuccessful response
application/json- response
[index: integer]?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" } }]
