9.5 AddServiceInvoice and UpdateServiceInvoice

FieldTypeRequiredDescription
idPaynumberOnly UpdateServiceInvoiceRecord to update
distCodetextYesDistributor code
customerCodetextYesCustomer code
evDatedateYesDate
serviceTypetextYesService name; must exactly match a service name defined in the system
pricenumberNoAmount
invoiceNumbertextNoInvoice number; if filled, the record is created as approved, otherwise as pending
sellerCode, explanation, idInv—NoRepresentative, 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.