Order Injection configuration (1.0.0)
Download OpenAPI specification:Download
Use this API to configure and manage order injection process in the NewStore platform.
For more information, see the [configuration guide](/docs/development/configuration/config-order injection.html#configuring-order injection-operations).
Get order injection configuration
Retrieves the current order injection configuration set up for your business. The response payload also contains the current version of the configuration, the timestamp when it was last updated, and who updated it.
Authorizations:
header Parameters
request_id | string |
tenant required | string |
user-id | string |
Responses
Response samples
- 200
- 404
- 500
{- "value": {
- "big_sales_order": {
- "hard_limit_for_big_orders": 0
}, - "skip_soft_routing_on_injection": true
}, - "version": "string",
- "updated_at": "2021-12-31T23:59:59Z",
- "updated_by": "string"
}
Update order injection configuration
Updates the current order injection configuration for your business. The version value in the query parameter must match the latest version returned by the GET endpoint.
Authorizations:
query Parameters
version required | string Example: version=1 |
header Parameters
request_id | string |
tenant required | string |
user-id | string |
Request Body schema: application/json
The updated config value
object The order item limits that determine if the order is routed or is considered a big order and placed on hold. | |
skip_soft_routing_on_injection | boolean When set to true, do not do the soft routing for injected orders with a service level identifier. |
Responses
Request samples
- Payload
{- "big_sales_order": {
- "hard_limit_for_big_orders": 0
}, - "skip_soft_routing_on_injection": true
}
Response samples
- 200
- 400
- 404
- 409
- 500
{- "value": {
- "big_sales_order": {
- "hard_limit_for_big_orders": 0
}, - "skip_soft_routing_on_injection": true
}, - "version": "string",
- "updated_at": "2021-12-31T23:59:59Z",
- "updated_by": "string"
}
Replace order injection configuration
Use this method to create a new order injection configuration or completely replace the current configuration for your business. The version value in the query parameter must either be set to 1 or it must match the latest version returned by the GET endpoint.
Authorizations:
query Parameters
version required | string Example: version=1 |
header Parameters
request_id | string |
tenant required | string |
user-id | string |
Request Body schema: application/json
The updated config value
object The order item limits that determine if the order is routed or is considered a big order and placed on hold. | |
skip_soft_routing_on_injection | boolean When set to true, do not do the soft routing for injected orders with a service level identifier. |
Responses
Request samples
- Payload
{- "big_sales_order": {
- "hard_limit_for_big_orders": 0
}, - "skip_soft_routing_on_injection": true
}
Response samples
- 200
- 400
- 404
- 409
- 500
{- "value": {
- "big_sales_order": {
- "hard_limit_for_big_orders": 0
}, - "skip_soft_routing_on_injection": true
}, - "version": "string",
- "updated_at": "2021-12-31T23:59:59Z",
- "updated_by": "string"
}