Records a payment and/or applies store credit to an invoice.
Requires ManageInvoices and an Idempotency-Key header. Same rules as the Record Payment dialog: at least one of amount or store credit is required, a payment needs a paymentMethod, and the total may not exceed the balance due (extra money belongs in store credit, not on the invoice). Only a finalized invoice takes payments — a draft must be marked sent first; a consolidated member is paid through the consolidated invoice. The invoice moves to PartiallyPaid or Paid (which fires invoice.paid), and the job's or sales order's payment status follows. Returns the updated invoice; the payment itself appears in GET /api/v1/invoices/{id}.
Request
- Base URL: https://app.flexonthejob.com
- URL: https://app.flexonthejob.com/api/v1/invoices/{id}/payments
- Auth: HTTP bearer
Path parameters
Numeric invoice id.
Request body
Response
The invoice after the payment (status, amountPaid, balanceDue).
Changes
No recorded changes to this operation across all 1 revision of this API.