API to manage sales order configurations (v0)
Download OpenAPI specification:Download
Use these APIs to manage order configurations in the NewStore platform.
Get order ID sequence parameters
Retrieves order ID sequence parameters, that are used to generate human-readable order identifiers. These are required for order processing, as unique IDs are assigned to orders in the NewStore platform via these parameters.
Authorizations:
Responses
Response samples
- 200
- 500
{- "value": {
- "prefix": "NS",
- "size": 16,
- "start": 1,
- "step": 2
}, - "updated_at": "2021-07-13T20:18:25Z"
}
Set order ID sequence parameters
Sets or creates order ID sequence parameters for the retailer, that are used to generate human-readable order identifiers. These are required for order processing, as unique IDs are assigned to orders in the NewStore platform via these parameters.
Authorizations:
Request Body schema: application/json
required | object | ||||||||
|
Responses
Request samples
- Payload
{- "value": {
- "prefix": "NS",
- "size": 16,
- "start": 1,
- "step": 2
}
}
Response samples
- 200
- 400
- 500
{- "value": {
- "prefix": "NS",
- "size": 16,
- "start": 1,
- "step": 2
}, - "updated_at": "2021-07-13T20:18:25Z"
}
Get grace period for orders
Retrieves the grace period for orders in your business. This is the duration for an on hold order in seconds, after which it is routed for fulfillment.
Authorizations:
Responses
Response samples
- 200
- 500
{- "schema": {
- "title": "Schema for setting timer duration for on hold orders",
- "type": "object",
- "required": [
- "value",
- "updated_at"
], - "properties": {
- "value": {
- "description": "Timer duration in seconds",
- "type": "integer"
}, - "updated_at": {
- "type": "string",
- "format": "date-time"
}
}
}, - "value": 20,
- "updated_at": "2021-07-13T20:18:25Z"
}
Create grace period for orders
Sets the grace period for orders in your business. This is the duration for an on hold order in seconds, after which it is routed for fulfillment.
Note: You can also set the grace period for orders via the fulfillment configuration set up for your business.
Authorizations:
Request Body schema: application/json
value required | integer Timer duration in seconds |
Responses
Request samples
- Payload
{- "value": 20
}
Response samples
- 200
- 400
- 500
{- "value": 20,
- "updated_at": "2021-07-13T20:18:25Z"
}
List locations from which orders can be canceled
Retrieves the locations from which orders in your business can be canceled.
Note: By default, orders routed to stores can be canceled by all retailers, unless it is excluded from this configuration. If not specified in a configuration, orders cannot be canceled from DCs.
Authorizations:
Responses
Response samples
- 200
- 500
{- "schema": {
- "title": "Schema for setting location types from which orders can be cancelled",
- "type": "object",
- "required": [
- "value",
- "updated_at"
], - "properties": {
- "value": {
- "description": "Defines from which location type orders can be canceled. By default (if no config is set) orders routed to stores can be canceled by every tenant, unless it is excluded from this list.",
- "type": "array",
- "minItems": 1,
- "items": {
- "type": "string",
- "enum": [
- "store",
- "dc"
]
}
}, - "updated_at": {
- "type": "string",
- "minLength": 1,
- "format": "date-time"
}
}
}, - "value": [
- "store",
- "dc"
], - "updated_at": "2021-07-13T20:18:25Z"
}
Set locations from which orders can be canceled
Sets the locations from which orders in your business can be canceled.
Note: By default, orders routed to stores can be canceled by all retailers, unless it is excluded from this configuration. If not specified in a configuration, orders cannot be canceled from DCs.
Authorizations:
Request Body schema: application/json
value required | Array of strings non-empty [ items non-empty ] Items Enum: "store" "dc" Defines from which location type orders can be canceled. By default (if no config is set) orders routed to stores can be canceled by every tenant, unless it is excluded from this list. |
Responses
Request samples
- Payload
{- "value": [
- "store",
- "dc"
]
}
Response samples
- 200
- 400
- 500
{- "value": [
- "store",
- "dc"
], - "updated_at": "2021-07-13T20:18:25Z"
}
Get limits on items for large orders
Retrieves the order item limits that determine if the order is routed or is considered a big order and placed on hold.
You can set specific limits for items that orders can contain in your business. For example, you can specify the maximum number of items an order can contain (such as 300 items), exceeding which it is put on hold.
Authorizations:
Responses
Response samples
- 200
- 500
{- "value": {
- "soft_limit_for_big_orders": 300
}, - "updated_at": "2021-07-13T20:18:25Z"
}
Set limits on items for large orders
Specifies the order item limits that determine if the order is routed or is considered a big order and placed on hold.
You can set specific limits for items that orders can contain in your business. For example, you can specify the maximum number of items an order can contain (such as 300 items), exceeding which it is put on hold.
Authorizations:
Request Body schema: application/json
required | object | ||
|
Responses
Request samples
- Payload
{- "value": {
- "soft_limit_for_big_orders": 300
}
}
Response samples
- 200
- 400
- 500
{- "value": {
- "soft_limit_for_big_orders": 300
}, - "updated_at": "2021-07-13T20:18:25Z"
}