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",
"attributes": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}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
item_origin_valuestringOpcional
item_origin_typestringOpcional
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: 211
{
"product_id": "text",
"unit_value": 1,
"quantity": 1,
"unit": "text",
"discount": 1,
"item_origin_value": "text",
"item_origin_type": "text",
"product_variation_id": "text",
"attributes": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}{
"id": "text",
"order_id": "text",
"product_id": "text",
"unit_value": 1,
"quantity": 1,
"unit": "text",
"discount": 1,
"product_variation_id": "text",
"attributes": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}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
500
An internal server error was thrown
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",
"attributes": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}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
total_valuenumberObrigatório
item_origin_valuestringOpcional
item_origin_typestringOpcional
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: 488
{
"id": "text",
"product_id": "text",
"unit_value": 1,
"quantity": 1,
"unit": "text",
"discount": 1,
"total_value": 1,
"item_origin_value": "text",
"item_origin_type": "text",
"product_variation_id": "text",
"automation_fields": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"attributes": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"complements": [
{
"product_complement_id": "text",
"product_complement_option_id": "text",
"product_complement_option_key": "text",
"title": "text",
"type": "text",
"value_paid": 1,
"selected_value": "text"
}
]
}{
"id": "text",
"order_id": "text",
"product_id": "text",
"unit_value": 1,
"quantity": 1,
"unit": "text",
"discount": 1,
"product_variation_id": "text",
"attributes": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}