cURL
curl --request POST \ --url https://api.getjusto.com/api/v2/products/outOfStockItem \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "storeId": "<string>", "productId": "<string>", "untilDate": "<string>", "type": "<string>" } '
{ "status": "ok", "data": [ { "_id": "<string>", "type": "<string>", "websiteId": "<string>", "productId": "<string>", "createdAt": "2023-11-07T05:31:56Z", "until": "2023-11-07T05:31:56Z", "untilDate": "2023-11-07T05:31:56Z" } ] }
Usa este metodo cuando quieras modificar o agotar un producto
{ "storeId": "Li4eEa3W2hiuGGCFa", "productId": "XS3wWdedwKRRYrZZt", "untilDate": "Thu Jul 30 2020 10:11:45 GMT-0400 (hora estándar de Chile)", "type": "product" }
{ "status": "ok", "data": { <OutOfStockItem> } }
POST /addOutOfStockItem
{ "storeId": "Li4eEa3W2hiuGGCFa", "modifierId": "XS3wWdedwKRRYrZZt", "modifierOptionId": "Na4Ha7ShFbDsvcRKg", "untilDate": "Thu Jul 30 2020 10:11:45 GMT-0400 (hora estándar de Chile)", "type": "modifier" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
ID del local
ID del producto
Fecha de agotamiento
Tipo de producto
success
Estado de la operación
"ok"
Show child attributes