Record a bank-transfer (or other offline) payment
Needs the invoices:write scope, or a full-access key. About scopes
api/v1/invoices/{id}/record-paymentAuthorization
AuthorizationRequiredBearer <token>
An API key: gpy_test_… or gpy_live_… (or an agent key, agk_…).
In: header
Request Body
application/jsonOptionalmethodstring
"bank_transfer"Value in: "bank_transfer" | "cash" | "cheque" | "other"referenceRequiredstring
The bank reference (or receipt / cheque number). Repeating it is a no-op.
1Maximum length: 200amount_centsinteger
A JSON integer in minor units (not a string). Defaults to the amount due; anything else is refused.
received_onstring
"date"Path Parameters
idRequiredstring
"uuid"Header Parameters
Idempotency-KeyRequiredstring
Required. A unique value for this operation, chosen by you. A retry with the same key and the same body returns the first response instead of running again. The same key with a different body answers 409 idempotency_key_reused; a key whose first request is still running answers 409 idempotency_in_progress.
The invoice is paid. Emits invoice.paid and payment.succeeded (method = the recorded method) once per invoice; a repeat with the same reference changes nothing and returns the recorded payment.