List expiry actions
curl --request GET \
--url https://api.insightchain.ai/v1/inventory/expiry_actions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.insightchain.ai/v1/inventory/expiry_actions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.insightchain.ai/v1/inventory/expiry_actions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"request_id": "ff46a8a5-ef15-4e6e-a54e-f57c36ef4bf2",
"data_as_of": "2026-11-21T04:02:11.000+00:00",
"demand_source": {
"source": "daily_demand",
"history_complete": true,
"history_as_of": "2026-11-21T04:10:00.000+00:00",
"fallback_reason": null
},
"stale": false,
"count": 1,
"total": 1,
"has_more": false,
"actions": [
{
"type": "transfer",
"itemExternalId": "MAT-00000311",
"fromLocationExternalId": "1004",
"toLocationExternalId": "1010",
"quantity": 48,
"rescuedValue": 1296,
"priority": 74,
"rationale": {
"reason": "Store 1010 sells this item fast enough to clear the lot before it expires",
"days_to_expiry": 19,
"transfer_window_days": 12,
"unmovable_units": 0
}
}
],
"compliance": {
"mode": "flag",
"excluded": 0,
"excluded_needs": []
},
"planning": {
"source": "on_request",
"reason": "no_stored_result"
},
"duration_ms": 72,
"notes": [
"Transfers move soon-to-expire stock to locations that can sell it before expiry; markdowns clear what can't be moved in time."
],
"object": "list",
"data": [
{
"type": "transfer",
"itemExternalId": "MAT-00000311",
"fromLocationExternalId": "1004",
"toLocationExternalId": "1010",
"quantity": 48,
"rescuedValue": 1296,
"priority": 74,
"rationale": {
"reason": "Store 1010 sells this item fast enough to clear the lot before it expires",
"days_to_expiry": 19,
"transfer_window_days": 12,
"unmovable_units": 0
}
}
],
"next_cursor": null
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}Inventory
List expiry actions
Transfers and markdowns for stock about to expire. Read-only; planning in the answer says whether it is the latest stored result or one made for this request’s settings. The same proposals are listed as proposed recommendations.
Key scope: read (or execute). Answers the list object (object, data, has_more, next_cursor); the same rows stay under actions, deprecated.
GET
/
v1
/
inventory
/
expiry_actions
List expiry actions
curl --request GET \
--url https://api.insightchain.ai/v1/inventory/expiry_actions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.insightchain.ai/v1/inventory/expiry_actions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.insightchain.ai/v1/inventory/expiry_actions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"request_id": "ff46a8a5-ef15-4e6e-a54e-f57c36ef4bf2",
"data_as_of": "2026-11-21T04:02:11.000+00:00",
"demand_source": {
"source": "daily_demand",
"history_complete": true,
"history_as_of": "2026-11-21T04:10:00.000+00:00",
"fallback_reason": null
},
"stale": false,
"count": 1,
"total": 1,
"has_more": false,
"actions": [
{
"type": "transfer",
"itemExternalId": "MAT-00000311",
"fromLocationExternalId": "1004",
"toLocationExternalId": "1010",
"quantity": 48,
"rescuedValue": 1296,
"priority": 74,
"rationale": {
"reason": "Store 1010 sells this item fast enough to clear the lot before it expires",
"days_to_expiry": 19,
"transfer_window_days": 12,
"unmovable_units": 0
}
}
],
"compliance": {
"mode": "flag",
"excluded": 0,
"excluded_needs": []
},
"planning": {
"source": "on_request",
"reason": "no_stored_result"
},
"duration_ms": 72,
"notes": [
"Transfers move soon-to-expire stock to locations that can sell it before expiry; markdowns clear what can't be moved in time."
],
"object": "list",
"data": [
{
"type": "transfer",
"itemExternalId": "MAT-00000311",
"fromLocationExternalId": "1004",
"toLocationExternalId": "1010",
"quantity": 48,
"rescuedValue": 1296,
"priority": 74,
"rationale": {
"reason": "Store 1010 sells this item fast enough to clear the lot before it expires",
"days_to_expiry": 19,
"transfer_window_days": 12,
"unmovable_units": 0
}
}
],
"next_cursor": null
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}Authorizations
Query Parameters
Response
OK