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

# Update fulfillment status for an order

> Update fulfillment status for an order

### Path parameters

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

<ParamField path="order_id" type="string (uuid)" required>
  Order UUID
</ParamField>

### Request body

`object`

<ParamField body="fulfillmentData" type="object" required>
  Fulfillment data JSON
</ParamField>

<ParamField body="netsuiteCashSaleId" type="string">
  NetSuite cash sale ID if applicable
</ParamField>

<ParamField body="status" type="string">
  Fulfillment status (default `FULFILLED`)
</ParamField>

### Response

`object`

<ResponseField name="ok" type="boolean" required>
  Operation success indicator
</ResponseField>

### Status codes

| Code  | Meaning             |
| ----- | ------------------- |
| `200` | Fulfillment updated |
| `401` | Unauthorized        |
| `404` | Order not found     |

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url 'https://api.sync.stateset.com/v1/tenants/{tenant_id}/orders/{order_id}/fulfillment' \
    --header 'x-stateset-api-key: YOUR_API_KEY' \
    --header 'Content-Type: application/json' \
    --data '{
    "fulfillmentData": {},
    "netsuiteCashSaleId": "string",
    "status": "pending"
  }'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "ok": true
  }
  ```
</ResponseExample>
