Ir al contenido
UnoPagoDocumentación
Referencia de la APICatalogProducts

Get a product by id

GET
/v1/products/{productId}

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.

Parámetros de ruta

productId*string
Patrón^[cC][0-9a-z]{6,}$
Formatocuid

Cuerpo de la respuesta

Successful response

application/json
  1. response
currency*string
Valor en"VES""USD""EUR"
id*string
Patrón^[cC][0-9a-z]{6,}$
Formatocuid
accountId*string
unitId*string|null
externalId*string|null
code*string|null
name*string
description*string|null
imageUrl*string|null
price*number
exento*boolean
isService*boolean
isActive*boolean
availableInPortal*boolean
availableForSale*boolean
availableInStorefront*boolean
isSoldOut*boolean
categoryId*string|null
position*integer
Rango-9007199254740991 <= value <= 9007199254740991
ivaRatePercent*|null
createdAt*string
updatedAt*string
unit*|null
Ejemplo de solicitud
curl -X GET 'https://api.unopago.com/v1/products/string'
Ejemplo de respuesta
{  "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"  }}