Record a prepayment
invoices_record_prepaymentRecord money a customer paid before there is an invoice, like a deposit, as Xero's prepayments: it waits as their credit (CR-0001 on) until invoices_use_credit puts it on their invoice or pays it back. With tax_rate it carries its VAT, owed when the money came in (as the EU has it for advance payments); using it on the invoice takes that VAT back off, so the sale's VAT counts once. With books kept it is posted at once: the bank against Customer prepayments (2400, made when missing) and the tax owed. Costs $0.01 per call; nothing if it fails.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | When it came in. Default today. | |
| note | No | ||
| amount | Yes | What they paid, tax included, e.g. "3570.00". | |
| method | No | bank_transfer | |
| currency | No | ISO 4217, e.g. "USD", "EUR" or "JPY". | |
| customer | Yes | Who paid: a CRM contact or company, or a name and email. | |
| tax_rate | No | The VAT in it, in percent, e.g. 19. Default none. | |
| reference | No |