# POST /api/orders > Orders - Add New Order - **Endpoint:** `POST /api/orders` - **Group:** Orders - **Since:** v1.0.0 - **Defined in:** `RestApi/Controllers/OrdersController.php` ## Headers | Field | Type | Description | | --- | --- | --- | | `authtoken` | String | Authentication token, generated from admin area | ## Parameters | Field | Type | Required | Description | | --- | --- | --- | --- | | `client_id` | number | yes | Mandatory Client ID | | `order_date` | string | yes | Mandatory Order date (Y-m-d) | | `status_id` | number | yes | Mandatory Status ID | | `note` | string | no | Optional Order note | | `project_id` | number | no | Optional Project ID | | `discount_amount` | number | no | Optional Discount amount | | `created_by` | number | no | Optional RISE user ID. Default: 1. Use for proper attribution. | | `items` | Object[] | no | Optional order lines, in the same shape GET /api/orders/:id/items returns. Omit the key to keep the previous behaviour of creating a header with no lines. An empty array is rejected with a 400. | | `items.title` | String | yes | Mandatory line title. A description is accepted instead. | | `items.description` | String | no | Optional line description | | `items.quantity` | Number | yes | Mandatory quantity, numeric | | `items.rate` | Number | yes | Mandatory unit rate, numeric | | `items.unit_type` | String | no | Optional unit type, maximum 20 characters | | `items.sort` | Number | no | Optional display order. Defaults to the array position. | | `items.item_id` | Number | no | Optional items library ID | ## Request example ```bash curl -X POST "https://yoursite.com/index.php/api/orders" \ -H "authtoken: YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "client_id": "...", "order_date": "...", "status_id": "...", "items.title": "...", "items.quantity": "...", "items.rate": "..." }' ``` ## Responses ### Success - Success-Response: ```json HTTP/1.1 201 Created { "status": 200, "messages": {"success": "Order add success"}, "id": 1 } ``` --- Part of the [REST API for RISE CRM](https://risecrm.themesic.com/apiguide/) documentation. Full page: https://risecrm.themesic.com/apiguide/orders/create-order/