> ## 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 NetSuite cash sale

> NetSuite cash sale created

### Path parameters

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

### Request body

`object`

<ParamField body="orderData" type="object" required>
  Cash sale data in NetSuite format
</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 cash sale created          |
| `401` | Unauthorized                        |
| `424` | NetSuite integration not configured |
| `502` | NetSuite API error                  |

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url 'https://api.sync.stateset.com/v1/tenants/{tenant_id}/netsuite/cash-sales' \
    --header 'x-stateset-api-key: YOUR_API_KEY' \
    --header 'Content-Type: application/json' \
    --data '{
    "orderData": {}
  }'
  ```
</RequestExample>

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