Ir al contenido
UnoPagoDocumentación
Referencia de la APICatalogProducts

Create or update a product

POST
/v1/products/save

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.

application/json
  1. body
externalId?|null
code?|null
name*string
Longitud1 <= length <= 255
description?string
Longitudlength <= 500
price?number
Rango0 <= value
Por defecto0
currency?string
Por defecto"USD"
Valor en"VES""USD""EUR"
unitName?string
Longitud1 <= length <= 120
unitId?string
Patrón^[cC][0-9a-z]{6,}$
Formatocuid
exento?boolean
Por defectofalse
isService?boolean
Por defectofalse
availableInPortal?boolean
availableForSale?boolean
ivaRatePercent?|null
isActive?boolean
Por defectotrue
id?string
Patrón^[cC][0-9a-z]{6,}$
Formatocuid
availableInStorefront?boolean
isSoldOut?boolean
categoryId?|null
imageUrl?|null
confirmDeactivateAssociatedPlans?boolean
Por defectofalse
confirmPriceChangeAssociatedPlans?boolean
Por defectofalse

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 POST 'https://api.unopago.com/v1/products/save' \  -H 'Content-Type: application/json' \  -d '{  "name": "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"  }}