Items
Autorizações
AuthorizationstringObrigatório
Bearer authentication header of the form Bearer <token>.
Parâmetros de rota
orderstringObrigatório
idstringObrigatório
Respostas
200
OK
application/json
404
Item was not found
application/json
500
An internal server error was thrown
application/json
get
/orders/{order}/items/{id}GET /api/sales/orders/{order}/items/{id} HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "text",
"order_id": "text",
"product_id": "text",
"unit_value": 1,
"quantity": 1,
"unit": "text",
"discount": 1,
"product_variation_id": "text"
}Autorizações
AuthorizationstringObrigatório
Bearer authentication header of the form Bearer <token>.
Parâmetros de rota
orderstringObrigatório
idstringObrigatório
Corpo
product_idstringObrigatório
unit_valuenumberObrigatório
quantitynumberObrigatório
unitstringObrigatório
discountnumberObrigatório
product_variation_idstringOpcional
Respostas
200
Item updated successfully
application/json
422
A validation error was thrown
application/json
500
An internal server error was thrown
application/json
put
/orders/{order}/items/{id}PUT /api/sales/orders/{order}/items/{id} HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 106
{
"product_id": "text",
"unit_value": 1,
"quantity": 1,
"unit": "text",
"discount": 1,
"product_variation_id": "text"
}{
"id": "text",
"order_id": "text",
"product_id": "text",
"unit_value": 1,
"quantity": 1,
"unit": "text",
"discount": 1,
"product_variation_id": "text"
}Autorizações
AuthorizationstringObrigatório
Bearer authentication header of the form Bearer <token>.
Parâmetros de rota
orderstringObrigatório
idstringObrigatório
Respostas
204
Item removed successfully
application/json
422
A validation error was thrown
application/json
500
An internal server error was thrown
application/json
delete
/orders/{order}/items/{id}DELETE /api/sales/orders/{order}/items/{id} HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "text"
}Autorizações
AuthorizationstringObrigatório
Bearer authentication header of the form Bearer <token>.
Parâmetros de rota
orderstringObrigatório
Parâmetros de consulta
searchstringOpcionalDefault:
""pageinteger · int32OpcionalDefault:
0perPageinteger · int32OpcionalDefault:
25sortstringOpcionalDefault:
""dirstringOpcionalDefault:
ascRespostas
200
OK
application/json
404
Item was not found
application/json
500
An internal server error was thrown
application/json
get
/orders/{order}/itemsGET /api/sales/orders/{order}/items HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "text",
"order_id": "text",
"product_id": "text",
"unit_value": 1,
"quantity": 1,
"unit": "text",
"discount": 1,
"product_variation_id": "text"
}Autorizações
AuthorizationstringObrigatório
Bearer authentication header of the form Bearer <token>.
Parâmetros de rota
orderstringObrigatório
Corpo
idstringOpcional
product_idstringObrigatório
unit_valuenumberObrigatório
quantitynumberObrigatório
unitstringObrigatório
discountnumberObrigatório
product_variation_idstringOpcional
Respostas
201
Item created successfully
application/json
422
A validation error was thrown
application/json
500
An internal server error was thrown
application/json
post
/orders/{order}/itemsPOST /api/sales/orders/{order}/items HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 118
{
"id": "text",
"product_id": "text",
"unit_value": 1,
"quantity": 1,
"unit": "text",
"discount": 1,
"product_variation_id": "text"
}{
"id": "text",
"order_id": "text",
"product_id": "text",
"unit_value": 1,
"quantity": 1,
"unit": "text",
"discount": 1,
"product_variation_id": "text"
}