# Müşteri PO numarası

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

Siparişin müşteri satınalma sipariş numarasını (`customer_po`) yazar ya da boş göndererek siler; boşluklar sadeleşir, en çok 60 karakter. ERP'ye gönderilmiş (`sent`, `open`, `shipped`, `invoiced`, `closed`) siparişte 409 — numara ERP'de değiştirilir. Yanıt güncel sipariş satırı (`order`) ve değişip değişmediği (`changed`). Sipariş satırları (firma / fırsat kartındaki `orders`) `customer_po`, `product_id` (anlık stok için), `status`, `due_date`, `amount` ve ERP gönderim durumunu (`erp`: `status`, `label`, `tone`, `ext_no`, `error`; gönderilmediyse `null`) taşır.

## Yol parametreleri

| Alan | Tür | Açıklama |
|---|---|---|
| `id` (zorunlu) | integer | Sipariş kimliği. |

## Gövde

| Alan | Tür | Açıklama |
|---|---|---|
| `customer_po` | string | Müşterinin PO numarası; boş = sil. |

## Yanıt

```json 200
{
  "changed": true,
  "ok": true,
  "order": {
    "amount": 24720.0,
    "currency": "EUR",
    "customer_id": 9,
    "customer_po": "PO-7790",
    "date": "2026-09-23",
    "due_date": null,
    "erp": null,
    "id": 16,
    "kg": 4000.0,
    "kind": "Yeni Sipariş",
    "note": "",
    "opp_id": 52,
    "payment_days": 90,
    "price": 6.18,
    "product": "HS 30 Isıl Yapışma Laki",
    "product_id": 5,
    "pu": "€/kg",
    "status": "Kapandı",
    "unit": "kg"
  }
}
```
