9.3 add and Update (writing collections/payments)

FieldTypeRequiredDescription
idPaynumberOnly UpdateSlip to update. Ignored in add; the new ID is returned in the response
distCodetextYesDistributor code
customerCodetextYesCustomer code
evDatedateYesDocument date
itemslistYesLine items; the slip amount is the sum of the items
items[].paymentTypetextNoPayment type (Common codes)
items[].pricenumberNoItem amount
items[].explanationtextNoItem note
sellerCodetextNoSales representative
receiptNumbertextNoReceipt number
directiontextNoDefault Collection
explanationtextNoNote
idInvnumberNoLinked invoice ID
{ "distCode": "131", "customerCode": "M001", "sellerCode": "S01", "evDate": "2026-01-15", "receiptNumber": "TH-12", "direction": "Collection", "items": [ { "paymentType": "Cash", "price": 1000 }, { "paymentType": "CreditCard", "price": 500 } ] }

The response returns the record you sent inside data; for add, idPay is the ID of the new slip. Update deletes and rewrites the line items, and makes a canceled slip valid again.