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

# Create an item receipt in NetSuite from a DCL PO receipt

> NetSuite item receipt created

### Path parameters

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

### Request body

`object`

<ParamField body="dclReceipt" type="object" required>
  DCL receipt data
</ParamField>

<ParamField body="netsuiteOrderNumber" type="string">
  NetSuite order number to receive against
</ParamField>

### Response

`object`

<ResponseField name="recordId" type="string" required>
  NetSuite internal record ID
</ResponseField>

<ResponseField name="data" type="object" required>
  Full record data
</ResponseField>

### Status codes

| Code  | Meaning                                    |
| ----- | ------------------------------------------ |
| `200` | NetSuite item receipt created              |
| `401` | Unauthorized                               |
| `424` | DCL or NetSuite integration not configured |
| `502` | API error                                  |

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

<ResponseExample>
  ```json 200 theme={null}
  {
    "recordId": "string",
    "data": {}
  }
  ```
</ResponseExample>
