Overview /
Stock & supply /
List purchase orders
List purchase orders
get
https://api.flactrum.com/v1/purchase-orders
| Required scope | purchases.read |
| Panel screen | Stock & supply → Purchase orders |
| Success status | 200 |
| Returns | A paginated list of PurchaseOrder objects |
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| supplier_id | query | string | — |
| branch_id | query | string | — |
| warehouse_id | query | string | — |
| status | query | string | — |
| page | query | integer | Page number. |
| per_page | query | integer | Page size. Values above the maximum are rejected rather than silently clamped. |
| updated_since | query | string | Only records changed at or after this instant. Use it for incremental sync. |
| sort | query | string | Column to sort by. Each endpoint lists what it accepts. |
| direction | query | string | Sort direction. |
Response fields
| Field | Type | Description |
|---|---|---|
| id | string | — |
| code | string | — |
| supplier_id | string | — |
| branch_id | string|null | — |
| warehouse_id | string|null | — |
| status | string | — |
| total_amount | number | Always derived from the lines; it cannot be written directly. |
| items | array | — |
Examples
Recorded from the test suite — these are real requests and their real responses.
curl -X GET 'https://api.flactrum.com/v1/purchase-orders' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Accept: application/json'
HTTP 200 · application/json
{
"data": [
{
"id": "01m43mzm12ex4a55v2er82tchm",
"code": "TS-261004-BILV",
"supplier_id": "01m43mzm0rvy02zyfn5hc1zmf9",
"branch_id": "01m43mzm05sety6gtbg1kwg62k",
"warehouse_id": null,
"status": "draft",
"total_amount": 1200,
"note": null,
"requested_at": "2026-10-04T14:27:13+00:00",
"approved_at": null,
"shipped_at": null,
"expected_at": null,
"received_at": null,
"item_count": 1,
"items": [
{
"id": "01m43mzm15hnxsbc3qr0k3h157",
"stock_item_id": "01m43mzm0eg82jh2t1rhvakj09",
"purchase_unit_id": null,
"ordered_quantity": 25000,
"received_quantity": null,
"unit_price": 0.05,
"total_price": 1200
}
],
"created_at": "2026-10-04T14:27:13+00:00",
"updated_at": "2026-10-04T14:27:13+00:00"
}
],
"meta": {
"total": 1,
"page": 1,
"per_page": 25,
"last_page": 1
}
}