Skip to main content
Beta - Payment data is currently in beta. The payload structure may still evolve before general availability. Share your feedback at support@bookingshake.com.

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 invoice
  • GET /payments/{id} - retrieve a single payment by its document ID
Both return the same per-payment shape. Useful to reconcile an invoice’s payments on demand, or to back-fill a missed 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.
string
required
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}.
The payments are returned wrapped in the standard { 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.
string
required
The payment document ID - the id field carried by the payment.* webhooks.

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.
Behaviour change (November 2026). If you already use this endpoint, check your integration:
  • setting status to paid now requires method_id (422 method_id_required otherwise);
  • a new received_date cannot be in the future nor more than 365 days in the past;
  • unknown body fields are now refused (400) instead of being ignored;
  • a lower amount sent with status: "paid" now creates a waiting payment for the remainder, and the invoice status follows what is received;
  • venues on the French fiscal engine now accept this endpoint (they used to answer 403), with the rules described below.
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, set status to paid:
  • method_id is required.
  • amount defaults 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_date cannot be null, 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 the Europe/Paris timezone, 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 amount is lower than the expected amount, the remainder is recreated as a new waiting payment 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.
If you later raise the amount of a received payment whose remainder is still waiting, cancel that remainder yourself: it is not adjusted automatically.

Idempotency

A request whose values are already stored returns 200 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 paid returns 409 payment_already_received. To correct the receipt (amount, date, method or name), send the new values with a reason: the journal records a reversal and a new receipt.
  • Changing the amount, due date or name of a waiting payment requires a reason.
  • Cancelling a payment (status: "canceled"), waiting or paid, requires a reason.
  • A paid payment cannot go back to waiting.
  • status: "paid" cannot be combined with a new name or due_date, and status: "canceled" cannot be combined with any other change: send them in separate requests.
  • method_id and received_date are set when the payment is received: they cannot be set on a waiting payment. The due_date of a paid payment 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.
Never send reason by default. Without it, a second request carrying other values for a received payment is refused (409 payment_already_received): this protects you from recording a correction by mistake. Send reason only after a 422 reason_required, or after a 409 payment_already_received that you have decided to override. Every correction is recorded for good in the sealed journal.
On every other venue, including all venues outside France, a payment stays freely editable and reason is not used (it is still validated when sent).

Authentication

All requests require a Bearer token (your BookingShake API key):

Path Parameters

string
required
The payment document ID - the id field carried by the payment.* webhooks.

Body Parameters

All body fields are optional, but at least one (other than reason) must be provided. Unknown fields are refused.
string
Payment label. Non-empty, 255 characters at most.
integer
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.
string
One of waiting, paid, or canceled.
string
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.
string
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).
string
Date the payment is expected, YYYY-MM-DD. Pass null to clear it.
string
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}.
See the Get a Payment reference for the full field descriptions.

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