post
https://www.pelcro.com/api/v1/core/invoices//apply_balance
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Overview
Apply a customer's credit balance to an open or past-due invoice. If the credit covers the full amount due, the invoice is marked as paid. Otherwise the balance is partially applied and the amount due is reduced.
Behavior
- Only works on
openorpast_dueinvoices - Returns 400 if the customer has no credit balance
- Returns 400 if the invoice is already paid, voided, or uncollectible
- When fully paid, fires the
invoice.payment_succeededevent - The customer's balance is debited by the applied amount
