> ## 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 a backorders

> Create a backorders

### Request body

`CreateBackorderRequest`

<ParamField body="customer_id" type="string" required />

<ParamField body="expected_date" type="string,null">
  RFC 3339 expected availability date.
</ParamField>

<ParamField body="notes" type="string,null" />

<ParamField body="order_id" type="string" required />

<ParamField body="order_line_id" type="string,null" />

<ParamField body="priority" type="string,null">
  One of `low`, `normal`, `high`, `critical`.
</ParamField>

<ParamField body="promised_date" type="string,null">
  RFC 3339 date promised to the customer.
</ParamField>

<ParamField body="quantity" type="string" required>
  Decimal quantity as a string.
</ParamField>

<ParamField body="sku" type="string" required />

### Responses

<ResponseField name="201" type="BackorderResponse" />

<ResponseField name="400" type="ErrorBody" />

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url 'https://api.stateset.com/api/v1/backorders' \
    --header 'Authorization: Bearer YOUR_API_KEY' \
    --header 'Content-Type: application/json' \
    --data '{
    "customer_id": "string",
    "expected_date": null,
    "notes": null,
    "order_id": "string",
    "order_line_id": null,
    "priority": null,
    "promised_date": null,
    "quantity": "string",
    "sku": "string"
  }'
  ```
</RequestExample>

<ResponseExample>
  ```json 201 theme={null}
  {
    "backorder_number": "string",
    "created_at": "string",
    "customer_id": "string",
    "expected_date": null,
    "id": "string",
    "order_id": "string",
    "priority": "string",
    "promised_date": null,
    "quantity_fulfilled": "string",
    "quantity_ordered": "string",
    "quantity_remaining": "string",
    "sku": "string",
    "status": "string"
  }
  ```
</ResponseExample>
