Price tables

Retrieve a price table given an ID

get
Autorizações
Parâmetros de rota
idstringObrigatório
Respostas
200
OK
application/json
get
GET /api/sales/price-tables/{id} HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer JWT
Accept: */*
{
  "id": "text",
  "name": "text",
  "start_date": "2025-07-03T07:13:39.617Z",
  "end_date": "2025-07-03T07:13:39.617Z",
  "criteria": [
    {
      "name": "text",
      "criteria_id": "123e4567-e89b-12d3-a456-426614174000",
      "rate_type": "INCREASE",
      "value_type": "MONETARY",
      "criteria_type": "FILTER",
      "value": 1,
      "products": [
        {
          "product_id": "text",
          "price": 1,
          "base_price": 1,
          "name": "text",
          "sku": "text",
          "product_variation_id": "text"
        }
      ],
      "products_quantity": 1
    }
  ],
  "is_partner_specific": true,
  "partners": [
    {
      "id": "text",
      "partner_id": "text",
      "partner_name": "text"
    }
  ],
  "is_profile_specific": true,
  "profiles": [
    {
      "id": "text",
      "profile_id": "text"
    }
  ],
  "is_company_specific": true,
  "companies": [
    {
      "id": "text",
      "company_id": "text",
      "company_name": "text"
    }
  ],
  "is_payment_method_specific": true,
  "payment_methods": [
    {
      "id": "text",
      "payment_method_id": "text"
    }
  ]
}

Update an existing price table

put
Autorizações
Parâmetros de rota
idstringObrigatório
Corpo
namestringObrigatório
start_datestring · dateObrigatório
end_datestring · dateOpcional
is_partner_specificbooleanObrigatório
is_profile_specificbooleanObrigatório
is_company_specificbooleanObrigatório
is_payment_method_specificbooleanObrigatório
Respostas
200
OK
application/json
put
PUT /api/sales/price-tables/{id} HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 608

{
  "name": "text",
  "start_date": "2025-07-03",
  "end_date": "2025-07-03",
  "criteria": [
    {
      "criteria_id": "123e4567-e89b-12d3-a456-426614174000",
      "rate_type": "INCREASE",
      "value_type": "MONETARY",
      "criteria_type": "FILTER",
      "value": 1,
      "products": [
        {
          "product_id": "text",
          "price": 1,
          "product_variation_id": "text"
        }
      ]
    }
  ],
  "is_partner_specific": true,
  "partners": [
    {
      "id": "text",
      "partner_id": "text"
    }
  ],
  "is_profile_specific": true,
  "profiles": [
    {
      "id": "text",
      "profile_id": "text"
    }
  ],
  "is_company_specific": true,
  "companies": [
    {
      "id": "text",
      "company_id": "text"
    }
  ],
  "is_payment_method_specific": true,
  "payment_methods": [
    {
      "id": "text",
      "payment_method_id": "text"
    }
  ]
}
{
  "id": "text",
  "name": "text",
  "start_date": "2025-07-03T07:13:39.617Z",
  "end_date": "2025-07-03T07:13:39.617Z"
}

Remove an existing price table

delete
Autorizações
Parâmetros de rota
idstringObrigatório
Respostas
204
OK
application/json
Respostaobject
delete
DELETE /api/sales/price-tables/{id} HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer JWT
Accept: */*
{}

Retrieve a page of price tables

get
Autorizações
Parâmetros de consulta
searchstringOpcionalDefault: ""
pageinteger · int32OpcionalDefault: 0
perPageinteger · int32OpcionalDefault: 25
sortstringOpcionalDefault: ""
dirstringOpcionalDefault: asc
Respostas
200
OK
application/json
get
GET /api/sales/price-tables HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer JWT
Accept: */*
{
  "currentPage": 1,
  "perPage": 1,
  "total": 1,
  "items": [
    {
      "id": "text",
      "name": "text",
      "partner_size": 1,
      "profile_size": 1,
      "company_size": 1,
      "payment_method_size": 1,
      "start_date": "2025-07-03T07:13:39.617Z",
      "end_date": "2025-07-03T07:13:39.617Z"
    }
  ]
}

Create a new price table

post
Autorizações
Corpo
idstringOpcional
namestringObrigatório
start_datestring · dateObrigatório
end_datestring · dateOpcional
is_partner_specificbooleanObrigatório
is_profile_specificbooleanObrigatório
is_company_specificbooleanObrigatório
is_payment_method_specificbooleanObrigatório
Respostas
200
OK
application/json
post
POST /api/sales/price-tables HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 620

{
  "id": "text",
  "name": "text",
  "start_date": "2025-07-03",
  "end_date": "2025-07-03",
  "criteria": [
    {
      "criteria_id": "123e4567-e89b-12d3-a456-426614174000",
      "rate_type": "INCREASE",
      "value_type": "MONETARY",
      "criteria_type": "FILTER",
      "value": 1,
      "products": [
        {
          "product_id": "text",
          "price": 1,
          "product_variation_id": "text"
        }
      ]
    }
  ],
  "is_partner_specific": true,
  "partners": [
    {
      "id": "text",
      "partner_id": "text"
    }
  ],
  "is_profile_specific": true,
  "profiles": [
    {
      "id": "text",
      "profile_id": "text"
    }
  ],
  "is_company_specific": true,
  "companies": [
    {
      "id": "text",
      "company_id": "text"
    }
  ],
  "is_payment_method_specific": true,
  "payment_methods": [
    {
      "id": "text",
      "payment_method_id": "text"
    }
  ]
}
{
  "id": "text",
  "name": "text",
  "start_date": "2025-07-03T07:13:39.617Z",
  "end_date": "2025-07-03T07:13:39.617Z"
}