Skip to main content
A purchase payment records money paid to a supplier against purchase invoices. These endpoints record, update, delete and read purchase payments, list the purchase credit notes a payment raised, and manage payment notes and their files. This area has 15 endpoints, each available in all seven SDKs.
Deleting a purchase payment or a note cannot be undone.

At a glance

Before you call

Register your API credentials once when your app starts, as shown in Authentication. Every SDK sample on these pages then gets its client in one line. With cURL, send the access token in an Authorization header: Authorization: Bearer $ACCESS_TOKEN.

Things to know

  • Every JSON write body is wrapped in purchase_payment, and amounts are decimal strings such as "1.00". The note create and update are multipart forms.
  • A payment needs payment_method_applications. Each entry names a payment processor by id and an amount.
  • Paying more than the invoices take raises a purchase credit note. It appears in the purchase credit notes list with this payment under purchase_payment.
  • The invoice-scoped create pays the invoice in the path. Send only payment_method_applications to it.
  • Listings page by cursor. Records are under data; pass pagination.next_cursor as cursor while pagination.has_more is true.