Requires payments:write, and payment records switched on for the environment (EXTERNAL_MONEY_RECORDS_ENABLED, else 503). Records money you have already collected against one open client invoice, using one of the practice's manual payment methods (GET /payment-methods). Nothing is charged, refunded, credited or sent to an accounting system. The amount must fit what the invoice still owes (else 409 balance_conflict) and be in the invoice's currency (else 422). paymentDate is an RFC 3339 date-time of a real calendar date, no more than 24 hours in the future. externalReference is your own reference for this payment and cannot be used for another. Repeating a request with the same Idempotency-Key and body answers 200 with replayed true. 422 unsupported_configuration is answered when the practice has a live Xero connection or webhooks on invoices, payments, payment sources or payment lines, the invoice has a credit note or is linked to a payment provider, or the key's account holds a membership of a team role that no longer exists. The appointment type list does not check the practice's set-up. GET /payment-methods shows whether the practice has a usable currency, a manual payment method and a sound account, but not whether it has a live Xero connection or such webhooks: those are only found when a record is refused. POST /invoices/payments retains its established payment contract.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
400Invalid fields, amount or Idempotency-Key.
403Current financial write authority refused.
404Current invoice, client or payment method not accessible.
409The amount is more than the invoice still owes (balance_conflict), or the Idempotency-Key or externalReference was used with another request.
422A currency or payment method the invoice cannot take, or a practice or invoice that cannot take payment records (unsupported_configuration): see the description.
503Payment records are not switched on for the environment, or the invoice is being written by another request: retry.
