invoice_payer_confirmation
Acts on a payer's report, sent from the invoice's client page, that they have paid. action 'accept' records the payment with the same writer as invoice_payment_record, graded counterparty_confirmed: the amount is amount_cents (or amount) when given, else the balance still owed; occurred_at defaults to when the payer reported. An agent's accept waits for the owner's approval. action 'dismiss' closes a report whose money did not arrive. Find reports in invoice_read's payer_confirmations. Refuses a report already accepted or dismissed with CONFLICT (invoice_read shows it), and an invoice with nothing owed unless amount_cents comes with allow_overpayment. Nothing is sent to the payer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The confirmation id from invoice_read's payer_confirmations. | |
| note | No | accept only: your own note on the payment (max 500). | |
| force | No | accept only: confirms a genuine second payment of the same amount on the same day. | |
| action | Yes | accept: record the payment the payer reported. dismiss: the money did not arrive. | |
| amount | No | accept only: the amount as a decimal STRING ("250.00") instead of amount_cents. | |
| method | No | accept only: how the money arrived. | |
| invoice_id | No | Instead of id: the invoice, when exactly one report on it is pending. | |
| occurred_at | No | accept only: epoch milliseconds the money arrived. Omit it to use the time the payer reported. | |
| amount_cents | No | accept only: the amount received in integer CENTS. Omit it to record the balance still owed. | |
| allow_overpayment | No | accept only: record more than the balance still owed. |