> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List purchase orders

> List purchase orders

### Query parameters

<ParamField query="supplier_id" type="string" />

<ParamField query="status" type="string" />

<ParamField query="limit" type="integer (int32)" />

<ParamField query="offset" type="integer (int32)" />

<ParamField query="after" type="string">
  Cursor for keyset pagination (opaque token from `next_cursor`).
</ParamField>

### Responses

<ResponseField name="200" type="PurchaseOrderListResponse" />

<RequestExample>
  ```bash cURL theme={null}
  curl --request GET \
    --url 'https://api.stateset.com/api/v1/purchase-orders' \
    --header 'Authorization: Bearer YOUR_API_KEY'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "has_more": true,
    "next_cursor": null,
    "purchase_orders": [
      {
        "approved_by": null,
        "created_at": "string",
        "currency": "string",
        "discount_amount": "string",
        "id": "string",
        "items": [],
        "payment_terms": "string",
        "po_number": "string",
        "shipping_cost": "string",
        "status": "string",
        "subtotal": "string",
        "supplier_id": "string",
        "supplier_reference": null,
        "tax_amount": "string",
        "total": "string"
      }
    ],
    "total": 1
  }
  ```
</ResponseExample>
