Measure units

Get measure unit

get
Autorizações
Parâmetros de rota
idstringObrigatório
Respostas
200

OK

application/json
get
GET /api/sales/measure-units/{id} HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer JWT
Accept: */*
{
  "id": "text",
  "abbreviation": "text",
  "description": "text",
  "decimals_for_quantity": 1,
  "active": true
}

Update measure unit

put
Autorizações
Parâmetros de rota
idstringObrigatório
Corpo
abbreviationstringObrigatório
descriptionstringObrigatório
decimals_for_quantitynumberObrigatório
activebooleanObrigatório
Respostas
200

MeasureUnit updated successfully

application/json
put
PUT /api/sales/measure-units/{id} HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 136

{
  "abbreviation": "text",
  "description": "text",
  "decimals_for_quantity": 1,
  "active": true,
  "attributes": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  }
}
{
  "id": "text",
  "abbreviation": "text",
  "description": "text",
  "decimals_for_quantity": 1,
  "active": true
}

Remove measure unit

delete
Autorizações
Parâmetros de rota
idstringObrigatório
Respostas
204

MeasureUnit removed successfully

application/json
delete
DELETE /api/sales/measure-units/{id} HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer JWT
Accept: */*
{
  "id": "text"
}

List measure units

get
Autorizações
Parâmetros de consulta
searchstringOpcionalDefault: ""
pageinteger · int32OpcionalDefault: 0
perPageinteger · int32OpcionalDefault: 25
sortstringOpcionalDefault: ""
dirstringOpcionalDefault: asc
only_activebooleanOpcional
Respostas
200

OK

application/json
get
GET /api/sales/measure-units HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer JWT
Accept: */*
{
  "currentPage": 1,
  "perPage": 1,
  "total": 1,
  "items": [
    {
      "id": "text",
      "abbreviation": "text",
      "description": "text",
      "decimals_for_quantity": 1,
      "active": true
    }
  ]
}

Create measure unit

post
Autorizações
Corpo
idstringOpcional
abbreviationstringObrigatório
descriptionstringObrigatório
decimals_for_quantitynumberObrigatório
activebooleanObrigatório
Respostas
201

MeasureUnit created successfully

application/json
post
POST /api/sales/measure-units HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 148

{
  "id": "text",
  "abbreviation": "text",
  "description": "text",
  "decimals_for_quantity": 1,
  "active": true,
  "attributes": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  }
}
{
  "id": "text",
  "abbreviation": "text",
  "description": "text",
  "decimals_for_quantity": 1,
  "active": true
}