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 the operations terminal action catalog
GET
/api/v1/operations/actionsResponses
200 Action catalog
GET
/api/v1/operations/actionsList the operations terminal action catalog
https://api-test.orderly-hub.com/api/v1/operations/actionsPreflight an action pipeline against orders
POST
/api/v1/operations/preflightRequest body
| Field | Type | Description |
|---|---|---|
order_ids | array | |
actions | array |
{
"order_ids": [
"string"
],
"actions": [
{
"type": "string",
"params": {}
}
]
}
Responses
200 Preflight report
POST
/api/v1/operations/preflightPreflight an action pipeline against orders
https://api-test.orderly-hub.com/api/v1/operations/preflightRun an action pipeline against orders and log the run
POST
/api/v1/operations/runRequest body
| Field | Type | Description |
|---|---|---|
order_ids | array | |
actions | array |
{
"order_ids": [
"string"
],
"actions": [
{
"type": "string",
"params": {}
}
]
}
Responses
201 Run executed
POST
/api/v1/operations/runRun an action pipeline against orders and log the run
https://api-test.orderly-hub.com/api/v1/operations/runList operation runs (history)
GET
/api/v1/operations/runsParameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
page | query | no | integer | |
limit | query | no | integer |
Responses
200 Paginated run list
GET
/api/v1/operations/runsList operation runs (history)
https://api-test.orderly-hub.com/api/v1/operations/runsGet an operation run
GET
/api/v1/operations/runs/{id}Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id | path | yes | string |
Responses
200 Run detail
404 Run not found
GET
/api/v1/operations/runs/{id}Get an operation run
https://api-test.orderly-hub.com/api/v1/operations/runs/Re-run only the failed orders of a run
POST
/api/v1/operations/runs/{id}/retryParameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id | path | yes | string |
Responses
201 Retry run executed
400 No failed orders to retry
404 Run not found
POST
/api/v1/operations/runs/{id}/retryRe-run only the failed orders of a run
https://api-test.orderly-hub.com/api/v1/operations/runs//retry