Gerenciamento de estoque dos produtos da plataforma
Criar/Editar Estoque
PUT
https://api.dooca.store/stocks
A edição do registro pode ser parcial ou total. O limite é 150 objetos nesse array.
[{ "variation_id": 1, "balance": 1 }, { "variation_id": 2, "balance": 2 }, { "variation_id": 999999, "balance": 1 }]
Status: 200
Listar Estoque
GET
https://api.dooca.store/stocks
HTTP STATUS: 200 OK { "variation_id": 257, "product_id": 234, "external_id": null, "balance": 0, "name": "imac", "variation": "cor cinza / 2kg", "options": { "Cor": "cor cinza", "peso": "2kg" }, "image": null, "reserved": 0, "has_movement": false, "sell_out_of_stock": false } ], "links": { "first": "http://api.dooca.local/stocks?page=1", "last": "http://api.dooca.local/stocks?page=170", "prev": null, "next": "http://api.dooca.local/stocks?page=2" }, "meta": { "current_page": 1, "from": 1, "last_page": 170, "path": "http://api.dooca.local/stocks", "per_page": 25, "to": 25, "total": 4226 } }