List orders
curl --request GET \
--url https://api.insightchain.ai/v1/orders \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.insightchain.ai/v1/orders"
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/orders', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"request_id": "1b3265e1-2e67-4f81-b081-de9e198542ce",
"orders": [
{
"id": "1f61fbed-1094-40a3-bb48-572297a6fcd5",
"recommendation_id": "a2c7217b-a102-4f9a-83f2-e3e347c5ebb2",
"connection_id": null,
"kind": "purchase_order",
"status": "proposed",
"mode": null,
"payload": {
"summary": "Purchase 9 of MAT-00000029 from supplier VEND-000020",
"currency": "USD",
"quantity": 9,
"unit_cost": 62.95,
"item_external_id": "MAT-00000029",
"location_external_id": "1010",
"supplier_external_id": "VEND-000020"
},
"expected_impact": {
"cost": 566.55,
"revenue_protected": 10389.32,
"recommended_action": "purchase"
},
"recommendation_snapshot": {
"kind": "purchase",
"currency": "USD",
"priority": 100,
"quantity": 9,
"rationale": {
"cost": 566.55,
"item": "MAT-00000029",
"source": "disruption",
"location": "1010",
"supplier": "Taipei Hardware 0020",
"cost_note": "Priced at this supplier's last PO unit price."
},
"unit_cost": 62.95,
"data_as_of": "2026-11-21T09:18:15.826+00:00",
"captured_at": "2026-11-21T10:44:17.575Z",
"recommended_at": "2026-11-21T09:19:45.238929+00:00",
"expected_impact": {
"cost": 566.55,
"revenue_protected": 10389.32,
"recommended_action": "purchase"
},
"item_external_id": "MAT-00000029",
"recommendation_id": "a2c7217b-a102-4f9a-83f2-e3e347c5ebb2",
"supplier_external_id": "VEND-000020",
"to_location_external_id": "1010",
"from_location_external_id": null
},
"idempotency_key": "rec:a2c7217b-a102-4f9a-83f2-e3e347c5ebb2",
"maker": "daa1ddbf-97c2-446e-88c8-1e7185d6384c",
"maker_api_key_id": "3f406b46-9929-4fa3-a217-c2e156c29a14",
"checker": null,
"checker_api_key_id": null,
"auto_approved": false,
"policy_id": null,
"policy_decision": {
"level": 1,
"checks": [
{
"ok": false,
"rule": "level",
"detail": "a person approves every order of this kind"
}
],
"outcome": "manual",
"reasons": [
"a person approves every order of this kind"
],
"version": null,
"policy_id": null,
"evaluated_at": "2026-11-21T10:44:17.576Z"
},
"amount": 566.55,
"currency": "USD",
"external_ref": null,
"verification": null,
"error": null,
"approved_at": null,
"executed_at": null,
"created_at": "2026-11-21T10:44:17.584267+00:00",
"updated_at": "2026-11-21T10:44:17.584267+00:00"
}
],
"has_more": false,
"next_offset": null,
"object": "list",
"data": [
{
"id": "1f61fbed-1094-40a3-bb48-572297a6fcd5",
"recommendation_id": "a2c7217b-a102-4f9a-83f2-e3e347c5ebb2",
"connection_id": null,
"kind": "purchase_order",
"status": "proposed",
"mode": null,
"payload": {
"summary": "Purchase 9 of MAT-00000029 from supplier VEND-000020",
"currency": "USD",
"quantity": 9,
"unit_cost": 62.95,
"item_external_id": "MAT-00000029",
"location_external_id": "1010",
"supplier_external_id": "VEND-000020"
},
"expected_impact": {
"cost": 566.55,
"revenue_protected": 10389.32,
"recommended_action": "purchase"
},
"recommendation_snapshot": {
"kind": "purchase",
"currency": "USD",
"priority": 100,
"quantity": 9,
"rationale": {
"cost": 566.55,
"item": "MAT-00000029",
"source": "disruption",
"location": "1010",
"supplier": "Taipei Hardware 0020",
"cost_note": "Priced at this supplier's last PO unit price."
},
"unit_cost": 62.95,
"data_as_of": "2026-11-21T09:18:15.826+00:00",
"captured_at": "2026-11-21T10:44:17.575Z",
"recommended_at": "2026-11-21T09:19:45.238929+00:00",
"expected_impact": {
"cost": 566.55,
"revenue_protected": 10389.32,
"recommended_action": "purchase"
},
"item_external_id": "MAT-00000029",
"recommendation_id": "a2c7217b-a102-4f9a-83f2-e3e347c5ebb2",
"supplier_external_id": "VEND-000020",
"to_location_external_id": "1010",
"from_location_external_id": null
},
"idempotency_key": "rec:a2c7217b-a102-4f9a-83f2-e3e347c5ebb2",
"maker": "daa1ddbf-97c2-446e-88c8-1e7185d6384c",
"maker_api_key_id": "3f406b46-9929-4fa3-a217-c2e156c29a14",
"checker": null,
"checker_api_key_id": null,
"auto_approved": false,
"policy_id": null,
"policy_decision": {
"level": 1,
"checks": [
{
"ok": false,
"rule": "level",
"detail": "a person approves every order of this kind"
}
],
"outcome": "manual",
"reasons": [
"a person approves every order of this kind"
],
"version": null,
"policy_id": null,
"evaluated_at": "2026-11-21T10:44:17.576Z"
},
"amount": 566.55,
"currency": "USD",
"external_ref": null,
"verification": null,
"error": null,
"approved_at": null,
"executed_at": null,
"created_at": "2026-11-21T10:44:17.584267+00:00",
"updated_at": "2026-11-21T10:44:17.584267+00:00"
}
],
"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>"
}Orders and approval
List orders
Orders in the approval loop with payload, policy decision, proposer and approver.
Key scope: read (or execute). Module: execution. Answers the list object (object, data, has_more, next_cursor); the same rows stay under orders, deprecated.
GET
/
v1
/
orders
List orders
curl --request GET \
--url https://api.insightchain.ai/v1/orders \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.insightchain.ai/v1/orders"
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/orders', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"request_id": "1b3265e1-2e67-4f81-b081-de9e198542ce",
"orders": [
{
"id": "1f61fbed-1094-40a3-bb48-572297a6fcd5",
"recommendation_id": "a2c7217b-a102-4f9a-83f2-e3e347c5ebb2",
"connection_id": null,
"kind": "purchase_order",
"status": "proposed",
"mode": null,
"payload": {
"summary": "Purchase 9 of MAT-00000029 from supplier VEND-000020",
"currency": "USD",
"quantity": 9,
"unit_cost": 62.95,
"item_external_id": "MAT-00000029",
"location_external_id": "1010",
"supplier_external_id": "VEND-000020"
},
"expected_impact": {
"cost": 566.55,
"revenue_protected": 10389.32,
"recommended_action": "purchase"
},
"recommendation_snapshot": {
"kind": "purchase",
"currency": "USD",
"priority": 100,
"quantity": 9,
"rationale": {
"cost": 566.55,
"item": "MAT-00000029",
"source": "disruption",
"location": "1010",
"supplier": "Taipei Hardware 0020",
"cost_note": "Priced at this supplier's last PO unit price."
},
"unit_cost": 62.95,
"data_as_of": "2026-11-21T09:18:15.826+00:00",
"captured_at": "2026-11-21T10:44:17.575Z",
"recommended_at": "2026-11-21T09:19:45.238929+00:00",
"expected_impact": {
"cost": 566.55,
"revenue_protected": 10389.32,
"recommended_action": "purchase"
},
"item_external_id": "MAT-00000029",
"recommendation_id": "a2c7217b-a102-4f9a-83f2-e3e347c5ebb2",
"supplier_external_id": "VEND-000020",
"to_location_external_id": "1010",
"from_location_external_id": null
},
"idempotency_key": "rec:a2c7217b-a102-4f9a-83f2-e3e347c5ebb2",
"maker": "daa1ddbf-97c2-446e-88c8-1e7185d6384c",
"maker_api_key_id": "3f406b46-9929-4fa3-a217-c2e156c29a14",
"checker": null,
"checker_api_key_id": null,
"auto_approved": false,
"policy_id": null,
"policy_decision": {
"level": 1,
"checks": [
{
"ok": false,
"rule": "level",
"detail": "a person approves every order of this kind"
}
],
"outcome": "manual",
"reasons": [
"a person approves every order of this kind"
],
"version": null,
"policy_id": null,
"evaluated_at": "2026-11-21T10:44:17.576Z"
},
"amount": 566.55,
"currency": "USD",
"external_ref": null,
"verification": null,
"error": null,
"approved_at": null,
"executed_at": null,
"created_at": "2026-11-21T10:44:17.584267+00:00",
"updated_at": "2026-11-21T10:44:17.584267+00:00"
}
],
"has_more": false,
"next_offset": null,
"object": "list",
"data": [
{
"id": "1f61fbed-1094-40a3-bb48-572297a6fcd5",
"recommendation_id": "a2c7217b-a102-4f9a-83f2-e3e347c5ebb2",
"connection_id": null,
"kind": "purchase_order",
"status": "proposed",
"mode": null,
"payload": {
"summary": "Purchase 9 of MAT-00000029 from supplier VEND-000020",
"currency": "USD",
"quantity": 9,
"unit_cost": 62.95,
"item_external_id": "MAT-00000029",
"location_external_id": "1010",
"supplier_external_id": "VEND-000020"
},
"expected_impact": {
"cost": 566.55,
"revenue_protected": 10389.32,
"recommended_action": "purchase"
},
"recommendation_snapshot": {
"kind": "purchase",
"currency": "USD",
"priority": 100,
"quantity": 9,
"rationale": {
"cost": 566.55,
"item": "MAT-00000029",
"source": "disruption",
"location": "1010",
"supplier": "Taipei Hardware 0020",
"cost_note": "Priced at this supplier's last PO unit price."
},
"unit_cost": 62.95,
"data_as_of": "2026-11-21T09:18:15.826+00:00",
"captured_at": "2026-11-21T10:44:17.575Z",
"recommended_at": "2026-11-21T09:19:45.238929+00:00",
"expected_impact": {
"cost": 566.55,
"revenue_protected": 10389.32,
"recommended_action": "purchase"
},
"item_external_id": "MAT-00000029",
"recommendation_id": "a2c7217b-a102-4f9a-83f2-e3e347c5ebb2",
"supplier_external_id": "VEND-000020",
"to_location_external_id": "1010",
"from_location_external_id": null
},
"idempotency_key": "rec:a2c7217b-a102-4f9a-83f2-e3e347c5ebb2",
"maker": "daa1ddbf-97c2-446e-88c8-1e7185d6384c",
"maker_api_key_id": "3f406b46-9929-4fa3-a217-c2e156c29a14",
"checker": null,
"checker_api_key_id": null,
"auto_approved": false,
"policy_id": null,
"policy_decision": {
"level": 1,
"checks": [
{
"ok": false,
"rule": "level",
"detail": "a person approves every order of this kind"
}
],
"outcome": "manual",
"reasons": [
"a person approves every order of this kind"
],
"version": null,
"policy_id": null,
"evaluated_at": "2026-11-21T10:44:17.576Z"
},
"amount": 566.55,
"currency": "USD",
"external_ref": null,
"verification": null,
"error": null,
"approved_at": null,
"executed_at": null,
"created_at": "2026-11-21T10:44:17.584267+00:00",
"updated_at": "2026-11-21T10:44:17.584267+00:00"
}
],
"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>"
}Authorizations
Query Parameters
Response
OK