List Order Actions
curl --request GET \
--url https://omnicommerce.sg/api/v1/orders/{orderId}/actions \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://omnicommerce.sg/api/v1/orders/{orderId}/actions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.sg/api/v1/orders/{orderId}/actions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"ok": true,
"apiVersion": "developer_v1",
"operationId": "<string>",
"status": "accepted",
"warnings": [
"<string>"
],
"recommendations": [
"<string>"
],
"links": {},
"data": {
"jobs": [
{
"id": "<string>",
"orderId": "<string>",
"action": "ship",
"status": "queued",
"errorMessage": "<string>",
"updatedAt": "<string>",
"completedAt": "<string>",
"labels": [
{
"url": "<string>",
"name": "<string>",
"mimeType": "<string>"
}
]
}
]
},
"jobId": "<string>",
"productId": "<string>"
}Orders
List Order Actions
The order’s 20 most recent action jobs, newest first, plus its latest successful label job. Requires orders:read.
Poll this after queueing an action. A succeeded labels job lists its label files in labels.
GET
/
api
/
v1
/
orders
/
{orderId}
/
actions
List Order Actions
curl --request GET \
--url https://omnicommerce.sg/api/v1/orders/{orderId}/actions \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://omnicommerce.sg/api/v1/orders/{orderId}/actions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.sg/api/v1/orders/{orderId}/actions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"ok": true,
"apiVersion": "developer_v1",
"operationId": "<string>",
"status": "accepted",
"warnings": [
"<string>"
],
"recommendations": [
"<string>"
],
"links": {},
"data": {
"jobs": [
{
"id": "<string>",
"orderId": "<string>",
"action": "ship",
"status": "queued",
"errorMessage": "<string>",
"updatedAt": "<string>",
"completedAt": "<string>",
"labels": [
{
"url": "<string>",
"name": "<string>",
"mimeType": "<string>"
}
]
}
]
},
"jobId": "<string>",
"productId": "<string>"
}Authorizations
Bearer API key for server-to-server access. Session auth is also supported in first-party UI flows.
Path Parameters
Query Parameters
Required for session auth. API keys already belong to one organization.
Maximum string length:
160Response
Action jobs.
Allowed value:
"developer_v1"Available options:
accepted, completed, failed Show child attributes
Show child attributes
Show child attributes
Show child attributes