Create or update a product
POST
bearerAuthheader
AutorizaciónBearer <token>Your API key, created in Configuración → Claves API. The key alone, without the Bearer prefix, is accepted too.
application/json- body
externalId?|nullcode?|nullname*stringLongitud
1 <= length <= 255description?stringLongitud
length <= 500price?numberRango
0 <= valuePor defecto
0currency?stringPor defecto
"USD"Valor en
"VES""USD""EUR"unitName?stringLongitud
1 <= length <= 120unitId?stringPatrón
^[cC][0-9a-z]{6,}$Formato
cuidexento?booleanPor defecto
falseisService?booleanPor defecto
falseavailableInPortal?booleanavailableForSale?booleanivaRatePercent?|nullisActive?booleanPor defecto
trueid?stringPatrón
^[cC][0-9a-z]{6,}$Formato
cuidavailableInStorefront?booleanisSoldOut?booleancategoryId?|nullimageUrl?|nullconfirmDeactivateAssociatedPlans?booleanPor defecto
falseconfirmPriceChangeAssociatedPlans?booleanPor defecto
falseSuccessful response
application/json- response
currency*stringValor en
"VES""USD""EUR"id*stringPatrón
^[cC][0-9a-z]{6,}$Formato
cuidaccountId*stringunitId*string|nullexternalId*string|nullcode*string|nullname*stringdescription*string|nullimageUrl*string|nullprice*numberexento*booleanisService*booleanisActive*booleanavailableInPortal*booleanavailableForSale*booleanavailableInStorefront*booleanisSoldOut*booleancategoryId*string|nullposition*integerRango
-9007199254740991 <= value <= 9007199254740991ivaRatePercent*|nullcreatedAt*stringupdatedAt*stringunit*|nullcurl -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" }}
