Record a completed external manual payment without moving money

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.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required
length between 1 and 200
string
length between 1 and 200
string
length between 1 and 200
string
required
length between 1 and 200
string
enum
required
Allowed:
date-time
required

RFC 3339 date-time of a real calendar date (31 February is refused), no more than 24 hours in the future.

string
required
^\d+(\.\d{1,2})?$
string
required
length between 3 and 3

Supported two-decimal ISO currency only.

string
required
length between 1 and 500
string
required
length between 1 and 200

Stable identity of the completed external payment.

Headers
string
required
length ≤ 100
Responses

400

Invalid fields, amount or Idempotency-Key.

403

Current financial write authority refused.

404

Current invoice, client or payment method not accessible.

409

The amount is more than the invoice still owes (balance_conflict), or the Idempotency-Key or externalReference was used with another request.

422

A currency or payment method the invoice cannot take, or a practice or invoice that cannot take payment records (unsupported_configuration): see the description.

503

Payment records are not switched on for the environment, or the invoice is being written by another request: retry.

Language
Credentials
Bearer
API Key
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json