9. Payments

The payment methods read and write collection, payment, service invoice and balance adjustment records. All methods are POST, with the address prefix {base_url}/api/v1/integ/payments/.

MethodFunctionRequired role
getPayReturns collection/payment slips with their line items (legacy format, underscore field names)Integration.Payments.GetPayments
GetPaymentReturns collection/payment slips with their line itemsIntegration.Payments.GetPayment
GetServiceInvoiceReturns service invoicesIntegration.Payments.GetServiceInvoice
BalanceEqualizingReturns balance adjustment recordsIntegration.Payments.BalanceEqualizing
addAdds a collection/payment slipIntegration.Payments.Add
UpdateUpdates a collection/payment slipIntegration.Payments.Update
CancelCancels a slipIntegration.Payments.Cancel
AddServiceInvoiceAdds a service invoiceIntegration.Payments.AddServiceInvoice
UpdateServiceInvoiceUpdates a service invoiceIntegration.Payments.UpdateServiceInvoice

The Integration.Payments role grants access to all of these methods. The distributor permission applies to the read methods (section 2).

Common codes

FieldValues
directionCollection = collection, Payment = payment
paymentTypeCash = cash, CreditCard = credit card, BankTransfer = bank transfer, Check = check, Bond = promissory note

Values are case-sensitive; an unrecognized value is treated as Collection and Cash.

Read methods mark records as "exported". getPay, GetPayment, GetServiceInvoice and BalanceEqualizing mark the records they return. When you call again with exported: false, the next page is returned. Records that are updated or canceled revert to "not exported" and are returned again.

Methods in this chapter