Order Item Services
All services related to order items are listed in this page.
GET
Order Item List
GET
Order Item ListThis method gets a comprehensive list of order items, providing detailed information for each item.
Path: /api/v1/oms/order_items/
Query Parameters
The following query parameters can be used to get the details of order items.
token
string
header
The API key of the customer account
{order_number}
string
query
The number of the order we want to get the order items
Example Request
To get a detailed list of all order items, a GET
request should be sent to the /api/v1/oms/order_items/
endpoint. In the headers, set the Authorization
header to include the token for authentication.
Here's an example of how to make the request in python:
Example Response (200 OK)
In a successful response with a status code of 200 OK
, the API returns all the details of the order items in a JSON
format. The response body contains a JSON object with the order items and their associated attributes, which may include ID, created and modified date, product, state, etc.
These parameters are described in the following table.
id
integer
The primary key of the order item
state
json
The status information of the order item
product
json
The product information of the order item
created_date
date
The creation date
modified_date
date
The last modified date
omnitron_id
integer
The primary key of the order item on omnitron
net_amount
string
The net amount of the order item
price
string
The price of the order item
price_currency
string
The currency of the price
retail_price
string
The retail price of the order item
tax_rate
string
The tax rate of the order item
tax_amount
string
The tax amount of the order item
discount_amount
string
The discount amount of the order item
without_net_amount
string
The without net amount of the order item
installment_interest_amount
string
The installment interest amount of the order item
attributes
json
The properties of the order item such as sku, base code, color etc.
attributes_kwargs
json
The above data in key-value format
image
json
The image information of the order item
price_list
json
The price list information of the order item
stock_list
json
The stock list information of the order item
extra_field
json
The additional information for the order item
parent_omnitron_id
integer
The information for bundled order items
order
integer
The order ID of the order item
This example response serves as a reference to understand the structure and data format returned from this API service.
GET
Order Item List - Simple
GET
Order Item List - SimpleThis method is used to get a list of order items with less detailed information.
Path: /api/v1/oms/order_items/list-simple/
Query Parameters
The following query parameters can be used to get the details of order items.
token
string
header
The API key of the customer account
{order_number}
string
query
The number of the order we want to get the order items
Example Request
To get a less detailed information of the order items, a GET
request should be sent to the /api/v1/oms/order_items/list-simple/
endpoint. In the headers, set the Authorization
header to include the token for authentication.
Here's an example of how to make the request in python:
Example Response (200 OK)
In a successful response with a status code of 200 OK
, the API returns information about the order items in a JSON format. The response body contains a JSON object with the order items and their associated attributes that are only used on the frontend.
id
integer
The primary key of the order item
created_date
date
The creation date
modified_date
date
The last modified date
omnitron_id
integer
The primary key of the order item on omnitron
net_amount
string
The net amount of the order item
price
string
The price of the order item
price_currency
string
The currency of the price
retail_price
string
The retail price of the order item
tax_rate
string
The tax rate of the order item
tax_amount
string
The tax amount of the order item
discount_amount
string
The discount amount of the order item
without_net_amount
string
The without net amount of the order item
installment_interest_amount
string
The installment interest amount of the order item
attributes
json
The properties of the order item such as sku, base code, color etc.
attributes_kwargs
json
The above data in key-value format
image
json
The image information of the order item
price_list
json
The price list information of the order item
stock_list
json
The stock list information of the order item
extra_field
json
The additional information for the order item
parent_omnitron_id
integer
The information for bundled order items
state
integer
The state ID of the order item
order
integer
The order ID of the order item
product
integer
The product ID of the order item
This example response serves as a reference to understand the structure and data format returned from this API service.
GET
Order Item - Single
GET
Order Item - SingleThis method is used to get detailed information about a single order item based on its ID.
Path: /api/v1/oms/order_items/{id}/
Query Parameters
The following query parameters can be used to get the details of order items.
token
string
header
The API key of the customer account
{id}
integer
url
The ID of the order item
Example Request
To retrieve detailed information of given order item, a GET
request should be sent to the /api/v1/oms/order_items/{id}/
endpoint. In the headers, set the Authorization
header to include the token for authentication.
Here's an example of how to make the request in python:
Example Response (200 OK)
In a successful response with a status code of 200 OK
, the API returns all the details of the order items in a JSON
format. The response body contains a JSON object with the order items and their associated attributes, which may include ID, created and modified date, product, state, etc.
These parameters are described in the following table.
id
integer
The primary key of the order item
state
json
The status information of the order item
product
json
The product information of the order item
created_date
date
The creation date
modified_date
date
The last modified date
omnitron_id
integer
The primary key of the order item on omnitron
net_amount
string
The net amount of the order item
price
string
The price of the order item
price_currency
string
The currency of the price
retail_price
string
The retail price of the order item
tax_rate
string
The tax rate of the order item
tax_amount
string
The tax amount of the order item
discount_amount
string
The discount amount of the order item
without_net_amount
string
The without net amount of the order item
installment_interest_amount
string
The installment interest amount of the order item
attributes
json
The properties of the order item such as sku, base code, color etc.
attributes_kwargs
json
The above data in key-value format
image
json
The image information of the order item
price_list
json
The price list information of the order item
stock_list
json
The stock list information of the order item
extra_field
json
The additional information for the order item
parent_omnitron_id
integer
The information for bundled order items
order
integer
The order ID of the order item
This example response serves as a reference to understand the structure and data format returned from this API service.
Last updated
Was this helpful?