Get all plans
GET
bearerAuthheader
AutorizaciónBearer <token>Your API key, created in Configuración → Claves API. The key alone, without the Bearer prefix, is accepted too.
page?numberRango
1 <= valuePor defecto
1pageSize?numberRango
1 <= value <= 1000Por defecto
10status?stringValor en
"ACTIVE""INACTIVE"startDate?stringendDate?stringsearchTerm?stringSuccessful response
application/json- response
results*array<>total*numbertotalPages*numbernextCursor?|The cursor to get the next page of results
exchangeRates?curl -X GET 'https://api.unopago.com/v1/plans'Ejemplo de respuesta
{ "results": [ { "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", "paymentMethods": [ { "id": "string", "planId": "string", "accountPaymentMethodId": "string", "createdAt": "string", "updatedAt": "string", "accountPaymentMethod": { "method": "BANK_TRANSFER", "scopes": [ "PORTAL" ], "id": "string", "accountId": "string", "isDefault": true, "displayName": "string", "enabled": true, "isPayerCharged": true, "fee": 0, "processorId": "string", "createdAt": "string", "updatedAt": "string" } } ], "planProducts": [ { "id": "string", "accountId": "string", "planId": "string", "productId": "string", "quantity": -9007199254740991, "amount": 0, "createdAt": "string", "updatedAt": "string", "product": { "currency": "VES", "id": "string", "accountId": "string", "unitId": "string", "externalId": "string", "code": "string", "name": "string", "description": "string", "imageUrl": "string", "price": 0, "exento": true, "isService": true, "isActive": true, "availableInPortal": true, "availableForSale": true, "availableInStorefront": true, "isSoldOut": true, "categoryId": "string", "position": -9007199254740991, "ivaRatePercent": -9007199254740991, "createdAt": "string", "updatedAt": "string" } } ], "billingDates": [ { "id": "string", "planId": "string", "issueDate": "string", "dueDate": "string", "description": "string", "createdAt": "string", "updatedAt": "string" } ], "_count": { "subscriptions": 0 } } ], "total": 0, "totalPages": 0, "nextCursor": "string", "exchangeRates": { "property1": { "rate": 0, "rateDate": "string", "daysAhead": 0 }, "property2": { "rate": 0, "rateDate": "string", "daysAhead": 0 } }}
