Calculate

Calculate price given parameters

post
Autorizações
Corpo
product_idstring[]Obrigatório
typestring · enumObrigatórioValores possíveis:
price_table_idstringOpcional
partner_idstringOpcional
profile_idstringOpcional
company_idstringOpcional
payment_method_idstringOpcional
Respostas
200
OK
application/json
post
POST /api/sales/prices/product/calculate HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 151

{
  "product_id": [
    "text"
  ],
  "type": "PRODUCT",
  "price_table_id": "text",
  "partner_id": "text",
  "profile_id": "text",
  "company_id": "text",
  "payment_method_id": "text"
}
{
  "products": [
    {
      "product_id": "text",
      "price_table_id": "text",
      "price": 1,
      "discounts": [
        {
          "id": "text",
          "name": "text",
          "is_over_discount": true,
          "start_date": "2025-07-01T00:35:26.152Z",
          "end_date": "2025-07-01T00:35:26.152Z",
          "type": "FIXED",
          "ranges": [
            {
              "min_quantity": 1,
              "is_product_value": true,
              "value_type": "PERCENTAGE",
              "value": 1
            }
          ]
        }
      ]
    }
  ]
}