List and get payments
Overview
The payment endpoints expose the payments recorded on your venue’s invoices:GET /payments?invoice_id={id}- list every payment attached to an invoiceGET /payments/{id}- retrieve a single payment by its document ID
payment.* webhook.
Security deposits (holds) are out of scope - they are excluded from the list and return
404 on the single-get, consistent with the payment webhooks (which never emit for holds). Amounts are integer cents, dates are YYYY-MM-DD strings in the Europe/Paris timezone, timestamps are Unix milliseconds, and missing values are explicit null.Authentication
All requests require a Bearer token (your BookingShake API key):List payments of an invoice
GET /payments?invoice_id={id} returns every payment attached to the given invoice. The result is scoped to the authenticated venue, so an invoice that does not exist or belongs to another venue simply returns an empty array.
ID of the invoice whose payments you want to list - the
invoice_id carried by the payment.* webhooks, and the id of GET /invoices/{id}.{ message, data } envelope, where data is an array of payment objects (each identical in shape to GET /payments/{id}).
Get a payment
GET /payments/{id} returns a single payment by its document ID, in the same shape as the list items.
Fields
Amounts are signed: a negative amount with status
paid represents a refund - see Refunds.
See the payment webhook documentation for the full field reference.
Errors
Out-of-scope payments are never disclosed: the single-get returns a uniform
404, and the list silently omits them - an invoice belonging to another venue returns an empty array, never an error revealing its existence.Next Steps
Get an Invoice
Retrieve the invoice linked to a payment via invoice_id
Payment Events
Receive payments in real time via the payment.* webhooks
Update a payment
Overview
PATCH /payments/{id} updates a single payment by its document ID. It is a partial update: only the fields you include in the body are modified, everything else is left untouched.
The request body uses the same conventions as the response - amount in integer cents, dates as YYYY-MM-DD (interpreted in the Europe/Paris timezone), and status verbatim.
Send only the fields you change. Do not send the whole object read from GET /payments/{id} back: read-only fields (id, created_at, invoice_id…) and any unknown field are refused with a 400, so that a misspelt field is never ignored silently.
Updating a payment emits the
payment.updated webhook when at least one exposed field changes. Two exceptions: no event is emitted when a date is cleared with null on a venue outside the fiscal engine, nor when a method_id is attached to a payment whose method label is unchanged. Security deposits (holds) are out of scope and return 404, consistent with the payment webhooks.Receiving a payment
To record that a payment was received, setstatus to paid:
method_idis required.amountdefaults to the expected amount and must be positive. The only exception is a payment that expects zero (balance of zero after deposits) on a venue outside the fiscal engine.received_datecannot benull, in the future, nor more than 365 days in the past. Without it, the payment keeps the date it already carries when that date is within these bounds, and takes today otherwise. “Today” and the bounds are evaluated in theEurope/Paristimezone, whatever the venue timezone.- Nothing can be received on a canceled invoice (
409 invoice_canceled): neither a receipt, nor a new amount on a payment already received. Such a payment can still be canceled. - If
amountis lower than the expected amount, the remainder is recreated as a newwaitingpayment with the same name, due date and links (invoice, quote, booking). It is capped to what the invoice still expects: none is created when the invoice schedule is already full. - The invoice becomes paid once the total received reaches its amount due. It goes back to ongoing if a later change brings the total received under the amount due. No webhook announces an invoice status change: read it with
GET /invoices/{id}.
The response only contains the payment you updated. The remainder is a separate payment: find it with the
payment.created webhook or by listing the payments of the invoice. On venues running the fiscal engine it is created right after the receipt, in a second step: in the rare case where that step fails, the receipt is kept and the venue recreates the expected payment in the app. Check it when you reconcile.waiting, cancel that remainder yourself: it is not adjusted automatically.
Idempotency
A request whose values are already stored returns200 and writes nothing: no new webhook, no double receipt. Retrying the same request after a timeout or a 503 is safe.
Venues on the French fiscal engine
Most French venues record their invoices and payments in a sealed journal (the “fiscal engine”). The API does not expose whether a venue runs it, so build your integration for the rules below: a request accepted by a fiscal engine venue is accepted by every venue, the reverse is not true. On these venues a receipt is final:- Sending other values for a payment that is already
paidreturns409 payment_already_received. To correct the receipt (amount, date, method or name), send the new values with areason: the journal records a reversal and a new receipt. - Changing the amount, due date or name of a
waitingpayment requires areason. - Cancelling a payment (
status: "canceled"), waiting or paid, requires areason. - A
paidpayment cannot go back towaiting. status: "paid"cannot be combined with a newnameordue_date, andstatus: "canceled"cannot be combined with any other change: send them in separate requests.method_idandreceived_dateare set when the payment is received: they cannot be set on awaitingpayment. Thedue_dateof apaidpayment cannot change.- A payment can only be received or amended once it is attached to an invoice. It can still be canceled.
- Refunds, and receipts that were refunded, cannot be changed through the API.
reason is not used (it is still validated when sent).
Authentication
All requests require a Bearer token (your BookingShake API key):Path Parameters
Body Parameters
All body fields are optional, but at least one (other thanreason) must be provided. Unknown fields are refused.
Amount in integer cents (e.g.,
90000 = €900.00). Must be a non-negative integer. 0 is only accepted on a venue outside the fiscal engine, and with status: "paid" only on a payment that expects zero.Stable ID of a payment method from the venue catalog - see
GET /payment-methods. Must reference an active (non-archived) method; the display label stored on the payment is derived from the catalog. Required when status is set to paid.Date the payment was received,
YYYY-MM-DD. A new date cannot be in the future nor more than 365 days in the past (Europe/Paris). When status is set to paid without it, the payment keeps the date it already has, or takes today. Pass null to clear it (not allowed together with status: "paid", nor on a paid payment of a fiscal engine venue).Reason for the change (non-empty, max 500 characters), recorded in the sealed journal. Required on a venue running the fiscal engine to amend or cancel a
waiting payment, and to correct or cancel a paid one. Not used on other venues.Request
Response
The full payment is returned in its post-update state, wrapped in the standard{ message, data } envelope - identical in shape to GET /payments/{id}.
Errors
Errors raised by the payment rules (
400 field validation, 409, 422, 503) carry a stable machine-readable code in data.code. Rely on the code, not on the message wording. Authentication errors, an empty or invalid body, 404 and most 500 return "data": "" (an empty string), and 429 returns the rate limit object: check that data is an object before reading data.code.
A
404 is returned uniformly whenever the payment is outside your scope, so the existence of another venue’s payment is never disclosed.Next Steps
Get a Payment
Retrieve a payment before updating it
Payment Events
Receive payment changes in real time via the payment.* webhooks
