9.5 AddServiceInvoice and UpdateServiceInvoice
| Field | Type | Required | Description |
|---|---|---|---|
idPay | number | Only UpdateServiceInvoice | Record to update |
distCode | text | Yes | Distributor code |
customerCode | text | Yes | Customer code |
evDate | date | Yes | Date |
serviceType | text | Yes | Service name; must exactly match a service name defined in the system |
price | number | No | Amount |
invoiceNumber | text | No | Invoice number; if filled, the record is created as approved, otherwise as pending |
sellerCode, explanation, idInv | — | No | Representative, note, linked invoice |
{ "distCode": "131", "customerCode": "M001", "evDate": "2026-01-20", "invoiceNumber": "HZ-1", "price": 250, "serviceType": "Raf Kirası" }
Errors: The read methods use the codes in section 6. On error, the write methods (add, Update, Cancel, AddServiceInvoice, UpdateServiceInvoice) return 400 with only the error text; if items is not sent, the text is Object reference not set to an instance of an object.