Operations
Bulk order operations and execution
All endpoints require a bearer token (oh_... API key or user JWT) and are served under https://api.orderly-hub.com. Use the Try it consoles to run a request against the Preview (test) server.
List operations
/api/v1/operationsParameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
page | query | no | integer | |
limit | query | no | integer | |
status | query | no | string | |
typeId | query | no | string |
Responses
200 Paginated operation list
/api/v1/operationsList operations
https://api-test.orderly-hub.com/api/v1/operationsCreate an operation
/api/v1/operationsRequest body
| Field | Type | Description |
|---|---|---|
name | string | |
typeId | string | |
description | string | |
metadata | object |
{
"name": "Jane Doe",
"typeId": "550e8400-e29b-41d4-a716-446655440000",
"description": "string",
"metadata": {}
}
Responses
201 Operation created
/api/v1/operationsCreate an operation
https://api-test.orderly-hub.com/api/v1/operationsEvaluate AI rules for operations
/api/v1/operations/evaluate-rulesRequest body
{}
Responses
200 Rule evaluation result
/api/v1/operations/evaluate-rulesEvaluate AI rules for operations
https://api-test.orderly-hub.com/api/v1/operations/evaluate-rulesList operation types
/api/v1/operations/typesResponses
200 Operation type list
/api/v1/operations/typesList operation types
https://api-test.orderly-hub.com/api/v1/operations/typesGet operation type details
/api/v1/operations/types/{id}Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id | path | yes | string |
Responses
200 Operation type details
/api/v1/operations/types/{id}Get operation type details
https://api-test.orderly-hub.com/api/v1/operations/types/Get operation details
/api/v1/operations/{id}Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id | path | yes | string |
Responses
200 Operation details
/api/v1/operations/{id}Get operation details
https://api-test.orderly-hub.com/api/v1/operations/Update an operation
/api/v1/operations/{id}Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id | path | yes | string |
Request body
{}
Responses
200 Operation updated
/api/v1/operations/{id}Update an operation
https://api-test.orderly-hub.com/api/v1/operations/Delete an operation
/api/v1/operations/{id}Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id | path | yes | string |
Responses
200 Operation deleted
/api/v1/operations/{id}Delete an operation
https://api-test.orderly-hub.com/api/v1/operations/Apply an action to operation items
/api/v1/operations/{id}/actions/applyParameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id | path | yes | string |
Request body
{}
Responses
200 Action applied
/api/v1/operations/{id}/actions/applyApply an action to operation items
https://api-test.orderly-hub.com/api/v1/operations//actions/applyExecute an operation
/api/v1/operations/{id}/executeParameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id | path | yes | string |
Request body
{}
Responses
200 Execution started
/api/v1/operations/{id}/executeExecute an operation
https://api-test.orderly-hub.com/api/v1/operations//executeGet operation action history
/api/v1/operations/{id}/historyParameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id | path | yes | string |
Responses
200 Action history
/api/v1/operations/{id}/historyGet operation action history
https://api-test.orderly-hub.com/api/v1/operations//historyGet insights for an operation
/api/v1/operations/{id}/insightsParameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id | path | yes | string |
Responses
200 Operation insights
/api/v1/operations/{id}/insightsGet insights for an operation
https://api-test.orderly-hub.com/api/v1/operations//insightsApply an insight recommendation
/api/v1/operations/{id}/insights/{insightId}/applyParameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id | path | yes | string | |
insightId | path | yes | string |
Responses
200 Insight applied
/api/v1/operations/{id}/insights/{insightId}/applyApply an insight recommendation
https://api-test.orderly-hub.com/api/v1/operations//insights//applyList operation items
/api/v1/operations/{id}/itemsParameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id | path | yes | string |
Responses
200 Operation items
/api/v1/operations/{id}/itemsList operation items
https://api-test.orderly-hub.com/api/v1/operations//itemsAdd items to an operation
/api/v1/operations/{id}/itemsParameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id | path | yes | string |
Request body
| Field | Type | Description |
|---|---|---|
orderIds | array |
{
"orderIds": [
"string"
]
}
Responses
201 Items added
/api/v1/operations/{id}/itemsAdd items to an operation
https://api-test.orderly-hub.com/api/v1/operations//itemsBulk remove items from an operation
/api/v1/operations/{id}/items/bulk-removeParameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id | path | yes | string |
Request body
| Field | Type | Description |
|---|---|---|
itemIds | array |
{
"itemIds": [
"string"
]
}
Responses
200 Items removed
/api/v1/operations/{id}/items/bulk-removeBulk remove items from an operation
https://api-test.orderly-hub.com/api/v1/operations//items/bulk-removeUpdate an operation item
/api/v1/operations/{id}/items/{itemId}Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id | path | yes | string | |
itemId | path | yes | string |
Request body
{}
Responses
200 Item updated
/api/v1/operations/{id}/items/{itemId}Update an operation item
https://api-test.orderly-hub.com/api/v1/operations//items/Remove an item from an operation
/api/v1/operations/{id}/items/{itemId}Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id | path | yes | string | |
itemId | path | yes | string |
Responses
200 Item removed
/api/v1/operations/{id}/items/{itemId}Remove an item from an operation
https://api-test.orderly-hub.com/api/v1/operations//items/Get operation execution progress
/api/v1/operations/{id}/progressParameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id | path | yes | string |
Responses
200 Progress details
/api/v1/operations/{id}/progressGet operation execution progress
https://api-test.orderly-hub.com/api/v1/operations//progressRate shop for an operation
/api/v1/operations/{id}/rate-shopParameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id | path | yes | string |
Request body
{}
Responses
200 Rate shopping result
/api/v1/operations/{id}/rate-shopRate shop for an operation
https://api-test.orderly-hub.com/api/v1/operations//rate-shopUndo an operation action
/api/v1/operations/{id}/undo/{historyId}Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id | path | yes | string | |
historyId | path | yes | string |
Responses
200 Action undone
/api/v1/operations/{id}/undo/{historyId}Undo an operation action
https://api-test.orderly-hub.com/api/v1/operations//undo/