Ir al contenido
UnoPagoDocumentación
Referencia de la APICatalogProducts

Get paginated products

GET
/v1/products/paginated

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.

cursor?string
limit?number
Rango1 <= value <= 250
Por defecto100
searchTerm?string
isActive?boolean
exento?boolean
isService?boolean
unitId?string
Patrón^[cC][0-9a-z]{6,}$
Formatocuid
currency?string
Valor en"VES""USD""EUR"
sortKey?string
Por defecto"name"
Valor en"externalId""name""unit""price""currency""exento""isService""isActive"
sortDirection?string
Por defecto"asc"
Valor en"asc""desc"

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/products/paginated'
Ejemplo de respuesta
{  "results": [    {      "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",      "unit": {        "category": "COUNT",        "id": "string",        "accountId": "string",        "name": "string",        "description": "string",        "isActive": true,        "isBaseUnit": true,        "baseUnitId": "string",        "conversionNumerator": -9007199254740991,        "conversionDenominator": -9007199254740991,        "decimalPrecision": -9007199254740991,        "createdAt": "string",        "updatedAt": "string"      }    }  ],  "total": 0,  "totalPages": 0,  "nextCursor": "string",  "exchangeRates": {    "property1": {      "rate": 0,      "rateDate": "string",      "daysAhead": 0    },    "property2": {      "rate": 0,      "rateDate": "string",      "daysAhead": 0    }  }}