Ir al contenido
UnoPagoDocumentación

Get all plans

GET
/v1/plans

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.

page?number
Rango1 <= value
Por defecto1
pageSize?number
Rango1 <= value <= 1000
Por defecto10
status?string
Valor en"ACTIVE""INACTIVE"
startDate?string
endDate?string
searchTerm?string

Cuerpo de la respuesta

Successful response

application/json
  1. response
results*array<>
total*number
totalPages*number
nextCursor?|

The cursor to get the next page of results

exchangeRates?
Ejemplo de solicitud
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    }  }}