Record a payment made outside the gateway
Records cash, a bank transfer or POS the customer paid you directly against an open invoice. It pays the invoice like any payment: invoice.updated, the receipt email (naming how it was paid), a past_due subscription made active and a suspension lifted. Nothing is charged. amount must be what the invoice has left to pay (part payments aren’t kept apart yet). Refused for a card check or a payment link’s checkout, which are paid by card. A payment recorded this way is never refunded to a card: give it back with a credit note settled outside. Uses the invoices scope.
Authorizations
Use a Bouclay secret key (sk_test_..., sk_live_...) or restricted key
(rk_test_..., rk_live_...).
A secret key can call every endpoint. A restricted key can only call the
endpoints its scopes cover. A scope is {resource}:{access}, for example
customers:read or refunds:write, and write includes read. GET
requests need read access and everything else needs write, except
POST /subscriptions/{id}/items/{item}/preview, which only needs
subscriptions:read. A request outside the key's scopes gets 403 permission_denied naming the missing scope, and its Idempotency-Key
is not used up.
Publishable keys (pk_...) are rejected by server-side API endpoints. A
key's mode scopes what it can see and charge: a test key can never reach
a live card.
Headers
Required for POST and PATCH requests. Replays identical method + path + body requests and rejects mismatched re-use.
1 - 255Path Parameters
Body
Major currency units. For example, 15000 means NGN 15,000.
x >= 0cash, bank_transfer, pos A transfer reference or your own receipt number.
100When it was paid; now if left out. Not in the future.