> ## 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.

# Fetch PO receipts from DCL

> DCL PO receipts

### Path parameters

<ParamField path="tenant_id" type="string" required>
  Tenant identifier
</ParamField>

### Request body

`object`

<ParamField body="startDate" type="string">
  Start date filter (YYYY-MM-DD)
</ParamField>

<ParamField body="endDate" type="string">
  End date filter (YYYY-MM-DD)
</ParamField>

### Response

`object`

<ResponseField name="status" type="integer" required>
  HTTP status code from DCL
</ResponseField>

<ResponseField name="poReceipts" type="object[]" required>
  List of PO receipts
</ResponseField>

<ResponseField name="body" type="object" required>
  Raw response body
</ResponseField>

### Status codes

| Code  | Meaning                        |
| ----- | ------------------------------ |
| `200` | DCL PO receipts                |
| `401` | Unauthorized                   |
| `424` | DCL integration not configured |
| `502` | DCL API error                  |

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url 'https://api.sync.stateset.com/v1/tenants/{tenant_id}/dcl/po-receipts' \
    --header 'x-stateset-api-key: YOUR_API_KEY' \
    --header 'Content-Type: application/json' \
    --data '{
    "startDate": "string",
    "endDate": "string"
  }'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "status": 1,
    "poReceipts": [
      {}
    ],
    "body": {}
  }
  ```
</ResponseExample>
