Order Execution Plan Services

All services related to Order Execution Plans are listed in this page.

GET Order Execution Plan List

This method is used to get a list of order execution plans.

Path: /api/v1/oms/orderexecutionplans/

Example Request

To get list of order execution plans, a GET request should be sent to /api/v1/oms/orderexecutionplans/ endpoint. No query parameters are required, and the request body should remain empty.


import requests

url = "https://{oms_base_url}/api/v1/oms/orderexecutionplans/"
api_token = "f532eXXXXXXXXXXXXXXXXX201XXXXX9332d"

headers = {
'Accept': 'application/json',
'Authorization': 'Token {}'.format(api_token)
}

response = requests.request("GET", url, headers=headers)

print(response.json())

Example Response (200 OK)

In a successful response with a status code of 200 OK, the API returns list of order execution plans.

Parameter
Data Type
Description

id

integer

The primary key of the order execution plan

state

string

Indicates the current state of the plan (start, pending, cancelled, completed)

order

object

The order info of the execution plan

commands

string

List of state transitions that can be applied on the plan

created_date

date

The creation date of the order execution plan

modified_date

date

The modified date of the order execution plan

orderexecutionplanitem_set

object list

Order execution plan items for each order item

context

object

Stock data for each stock location during every attempt at fulfillment

This example response serves as a reference to understand the structure and data format of order execution plan list response.

GET Order Execution Plan Detail

This method is used to retrieve details of the order execution plan for given ID parameter.

Path: /api/v1/oms/orderexecutionplans/{id}/

Example Request

To retrieve order execution plan detail, a GET request should be sent to /api/v1/oms/orderexecutionplans/{id}/ endpoint. No query parameters or body are required.

Example Response (200 OK)

In a successful response with a status code of 200 OK, the API returns order execution plan detail in the JSON format.

Parameter
Data Type
Description

id

integer

The primary key of the order execution plan

state

string

Indicates the current state of the plan (start, pending, cancelled, completed)

order

object

The order info of the execution plan

commands

string

List of state transitions that can be applied on the plan

created_date

date

The creation date of the order execution plan

modified_date

date

The modified date of the order execution plan

orderexecutionplanitem_set

object list

Order execution plan items for each order item

context

object

Stock data for each stock location during every attempt at fulfillment

This example response serves as a reference to understand the structure and data format of order execution plan.

Was this helpful?