Get a plan by id
GET
bearerAuthheader
AutorizaciónBearer <token>Your API key, created in Configuración → Claves API. The key alone, without the Bearer prefix, is accepted too.
planId*stringPatrón
^[cC][0-9a-z]{6,}$Formato
cuidSuccessful response
application/json- response
schedule*stringValor en
"SUBSCRIPTION_START""PLAN_DATES"billingCycle*|nullcurrency*stringValor en
"VES""USD""EUR"pricingMode*stringValor en
"CURRENCY""REFERENCE"status*stringValor en
"ACTIVE""INACTIVE"lateFeeType*|nulldiscountValueType*|nullid*stringPatrón
^[cC][0-9a-z]{6,}$Formato
cuidaccountId*stringname*stringdescription*string|nullprice*numberadvanceBillingDays*|nulladvanceDueDateDays*|nullstartDate*stringendDate*string|nulllateFee*number|nulldiscountValue*number|nulldiscountExpiresIn*|nullsingleInvoicePerSubscription*booleancreatedAt*stringupdatedAt*stringpaymentMethods*array<>planProducts*array<>billingDates?array<>_count?curl -X GET 'https://api.unopago.com/v1/plans/string'Ejemplo de respuesta
{ "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 }}
