Payment_Create API — how to allocate payment to a specific invoice

Related to my earlier post, I managed to get Invoice_Create working, but I can’t post the payment.

I am using the Payment_Create API endpoint (v1.2) to mark a sales invoice as paid immediately after creating it via Invoice_Create.

The sandbox example for Payment_Create shows a client-level payment using Designation: CLIENT and DesignatedTo: ClientID. This creates the payment successfully but it remains unallocated — it does not apply to a specific invoice.

Question: What is the correct JSON payload structure to create a payment and allocate it to a specific InvoiceID in a single Payment_Create call?

InvoiceID goes at the same level as PaymentDate and Amount.

You can explore the full schema by expanding out the various + buttons on the documentation tab.

1 Like