authenticationToken (required)(string:50): Komet Sales security token.
customerId (required)(integer:20): customer ID. You can obtain this value from the customer.listAPI method.
locationCode (required)(string:20): company location code. This field is only required if the company is in Multi Location mode. You can obtain this value from the location.list API method.
methodId (required)(integer:20): payment method ID from the master list. You can obtain this value from thepayment.method.listAPI method.
date (required)(date): payment date (date format YYYY-MM-DD).
totalPayment (optional)(decimal:10,2): the total amount of the payment. This field can be used to create overpayments in the system.
referenceNumber (optional)(string:100): check or reference number.
notes (optional)(string:200): payment notes.
invoices (required): array of orders that will be affected with this payment.
invoiceNumber (required)(integer:10): invoice number. You can obtain this value from theinvoice.details.listAPI method.
amount (required)(decimal:10,2): amount paid to this order.
discount (optional)(decimal:10,2): if you want to apply any discount amount to the order.
If the totalPayment field is given it must be at least equal to the total of all the invoices amounts. In case of overpayment, the amount left will be saved as an Overpayment.