OK
const response = await fetch('https://api.zydon.com.br/api/sales/prices/product/calculate', { method: 'POST', headers: { "Authorization": "Bearer JWT", "Content-Type": "application/json" }, body: JSON.stringify({ "product_id": [ "text" ], "type": "PRODUCT" }), }); const data = await response.json();
{ "products": [ { "product_id": "text", "price_table_id": "text", "price": 0, "discounts": [ { "id": "text", "name": "text", "is_over_discount": false, "start_date": "2024-12-21T14:33:35.047Z", "end_date": "2024-12-21T14:33:35.047Z", "type": "FIXED", "ranges": [ { "min_quantity": 0, "is_product_value": false, "value_type": "PERCENTAGE", "value": 0 } ] } ] } ] }