Accounts Receivable
Calculate Invoice Payment
Calculate the payment details for an invoice.
This endpoint calculates:
- Total amount due on the invoice
- Applied payments (existing + proposed)
- Applied credits (existing + proposed credit memos)
- Payment term discounts (based on payment dates) - ALL OR NOTHING: discount only applies if paying full invoice
- Remaining balance due
Supports payment terms with early payment discounts (all-or-nothing).
post/coa/api/v1/invoice/{invoice_id}/calculate-payment
Request
- Base URLhttps://api.meetcampfire.com
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
invoice_idinteger required
ID of the invoice
Request body
Response
Changes
No recorded changes to this operation across all 1 revision of this API.