commercepaymentsInvoice
commercepaymentsInvoice is a data model used within the Commerce Payments platform to represent an invoice issued to a customer as part of a transaction. It encapsulates billing details, amounts, and payment status, and serves as the central reference for payments, refunds, and reconciliation. The object typically includes identifiers such as id and invoiceNumber, references to the related customer and order, financial fields like amountDue, currency, tax, shipping, and totalAmount, and operational fields such as status (draft, open, paid, past_due, canceled), dueDate, issueDate, paymentTerms, and whether it is programmable via API.
In a typical workflow, an invoice is created when an order requires payment after capture or when
The commercepaymentsInvoice object is commonly exposed through REST or SDK APIs alongside related entities such as