# Send order to ERP

`POST /api/v1/orders/{id}/erp`

Sends the CRM order to the main order connection as a sales order: the customer's PO number (`customer_po`), ERP account code, item code, quantity, price, currency, due date. If the company is missing in the ERP and *Create new account* is on, the account is created first. The response is the send state (`status`: `sent`, `open`…; `queued` on a Solk ERP API connection — the middleware picks it up) and the ERP document number (`ext_no`). An order is not sent twice; a failed one is retried.

## Path parameters

| Field | Type | Description |
|---|---|---|
| `id` (required) | integer | Order id. |

## Response

```json 200
{
  "ext_id": null,
  "ext_no": null,
  "label": "Sırada",
  "ok": true,
  "status": "queued"
}
```
