Create Invoice Payment

Record a manual payment against an invoice. **Request body** - `amount`: Positive number in **dollars** - `paymentDate`: ISO 8601 datetime string - `paymentMethod`: One of `CASH`, `ACH`, `CREDIT_CARD`, `KLARNA`, `AFFIRM`, `CHECK` - `notes` (optional) - `paymentReference` (optional)

Authentication

x-api-keystring
API Key authentication via header

Path parameters

invoice_idintegerRequired
Invoice identifier

Request

This endpoint expects an object.
amountdoubleRequired
Payment amount in dollars
paymentMethodenumRequired
Payment method
paymentDatestringRequiredformat: "date-time"
notesstringOptional
Optional notes about the payment
paymentReferencestring or nullOptional

Response

Payment created successfully
idinteger
Payment record identifier
amountdouble
Payment amount in dollars
statusstring
Payment status
paymentMethodenum
Payment method
invoiceNumberinteger or nullOptional

Payment display number (when present)

paymentDatestring or nullOptionalformat: "date-time"

When the payment was recorded (ISO 8601); null if absent from upstream

paymentReferencestring or nullOptional
notesstring or nullOptional
isExternalboolean or nullOptional

Whether the payment originated from an external processor (e.g. Stripe)

createdAtstring or nullOptionalformat: "date-time"
updatedAtstring or nullOptionalformat: "date-time"
createdByobject or nullOptional

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error