curl --request PATCH \
--url https://api.bookingshake.io/api/payments/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"status": "paid",
"received_date": "2026-06-10",
"amount": 90000,
"method_id": "wire_transfer"
}
'import requests
url = "https://api.bookingshake.io/api/payments/{id}"
payload = {
"status": "paid",
"received_date": "2026-06-10",
"amount": 90000,
"method_id": "wire_transfer"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
status: 'paid',
received_date: '2026-06-10',
amount: 90000,
method_id: 'wire_transfer'
})
};
fetch('https://api.bookingshake.io/api/payments/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.bookingshake.io/api/payments/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'status' => 'paid',
'received_date' => '2026-06-10',
'amount' => 90000,
'method_id' => 'wire_transfer'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.bookingshake.io/api/payments/{id}"
payload := strings.NewReader("{\n \"status\": \"paid\",\n \"received_date\": \"2026-06-10\",\n \"amount\": 90000,\n \"method_id\": \"wire_transfer\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.bookingshake.io/api/payments/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"status\": \"paid\",\n \"received_date\": \"2026-06-10\",\n \"amount\": 90000,\n \"method_id\": \"wire_transfer\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bookingshake.io/api/payments/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"status\": \"paid\",\n \"received_date\": \"2026-06-10\",\n \"amount\": 90000,\n \"method_id\": \"wire_transfer\"\n}"
response = http.request(request)
puts response.read_body{
"message": "success",
"data": {
"id": "payment-789",
"amount": 90000,
"status": "paid",
"name": "Acompte 30%",
"method_id": "wire_transfer",
"received_date": "2026-06-10",
"due_date": "2026-06-15",
"created_at": 1749549600000,
"updated_at": 1749722400000,
"invoice_id": "file-456",
"invoice_number": "FAC-2026-0021",
"quote_id": "quote-123",
"booking_id": "booking-abc"
}
}{
"message": "status must be one of: waiting, paid, canceled",
"data": {
"code": "invalid_request"
}
}{
"message": "this token is read-only"
}{
"message": "not found"
}{
"message": "this payment is already received with different values: a receipt is final, send a `reason` to correct it (reversal in the sealed journal)",
"data": {
"code": "payment_already_received"
}
}{
"message": "method_id is required to set a payment to paid (see GET /payment-methods)",
"data": {
"code": "method_id_required"
}
}{
"message": "Rate limit exceeded",
"data": {
"limit": 60,
"window": "60 seconds",
"remaining": 0,
"resetAt": "2025-11-17T14:30:00.000Z",
"retryAfter": 45
}
}{
"message": "error",
"data": {
"code": "internal_error"
}
}{
"message": "the fiscal engine is temporarily unavailable: the change may or may not have been recorded, retry the same request, it is safe",
"data": {
"code": "fiscal_engine_unavailable"
}
}Update a payment
Partially update a payment by its document ID. Only the fields provided in the body are modified; omitted fields are left unchanged.
The body follows the same contract as the response: amount in integer cents, dates as YYYY-MM-DD (interpreted in Europe/Paris), and status verbatim. The received_date and due_date fields accept null to clear them.
Receiving a payment (status: "paid"):
method_idis required.amountdefaults to the expected amount and must be positive (zero is only accepted on a payment that expects zero, on a venue outside the fiscal engine).received_datecannot benull, in the future, nor more than 365 days in the past (Europe/Paris). Without it, the payment keeps the date it already carries when that date is within these bounds, and takes today otherwise.- Nothing can be received on a canceled invoice (
409 invoice_canceled): neither a receipt, nor a new amount on a payment already received. - 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), announced by apayment.createdwebhook; it is not part of the response. It is capped to what the invoice still expects: none is created when the invoice schedule is already full. On fiscal engine venues it is created in a second step after the receipt: verify it when you reconcile. - 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.
Send only the fields you change: unknown fields and the read-only fields of the response are refused with a 400.
Idempotency: a request whose values are already stored returns 200 and writes nothing, so retrying the same request is safe.
Venues on the French fiscal engine (sealed journal). The API does not expose whether a venue runs it: build for these rules, a request accepted by a fiscal engine venue is accepted by every venue. Never send reason by default, only after a 422 reason_required or a 409 payment_already_received you decided to override. On these venues a receipt is final:
- Sending other values for a payment that is already
paidreturns409 payment_already_received, unless you send areason: the receipt is then corrected by a reversal in the journal. - Changing the amount, due date or name of a
waitingpayment, or cancelling a payment (status: "canceled"), requires areason. - A
paidpayment cannot go back towaiting. status: "paid"cannot be combined with a newnameordue_date, andstatus: "canceled"with any other change: send them in separate requests.method_idandreceived_datecannot 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.
On other venues (including every venue outside France) a payment stays freely editable and reason is not used (it is still validated when sent).
Updating a payment emits the payment.updated webhook when at least one exposed field changes (not when a date is cleared with null on a venue outside the fiscal engine). Security deposits (holds) are out of scope and return 404.
curl --request PATCH \
--url https://api.bookingshake.io/api/payments/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"status": "paid",
"received_date": "2026-06-10",
"amount": 90000,
"method_id": "wire_transfer"
}
'import requests
url = "https://api.bookingshake.io/api/payments/{id}"
payload = {
"status": "paid",
"received_date": "2026-06-10",
"amount": 90000,
"method_id": "wire_transfer"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
status: 'paid',
received_date: '2026-06-10',
amount: 90000,
method_id: 'wire_transfer'
})
};
fetch('https://api.bookingshake.io/api/payments/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.bookingshake.io/api/payments/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'status' => 'paid',
'received_date' => '2026-06-10',
'amount' => 90000,
'method_id' => 'wire_transfer'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.bookingshake.io/api/payments/{id}"
payload := strings.NewReader("{\n \"status\": \"paid\",\n \"received_date\": \"2026-06-10\",\n \"amount\": 90000,\n \"method_id\": \"wire_transfer\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.bookingshake.io/api/payments/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"status\": \"paid\",\n \"received_date\": \"2026-06-10\",\n \"amount\": 90000,\n \"method_id\": \"wire_transfer\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bookingshake.io/api/payments/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"status\": \"paid\",\n \"received_date\": \"2026-06-10\",\n \"amount\": 90000,\n \"method_id\": \"wire_transfer\"\n}"
response = http.request(request)
puts response.read_body{
"message": "success",
"data": {
"id": "payment-789",
"amount": 90000,
"status": "paid",
"name": "Acompte 30%",
"method_id": "wire_transfer",
"received_date": "2026-06-10",
"due_date": "2026-06-15",
"created_at": 1749549600000,
"updated_at": 1749722400000,
"invoice_id": "file-456",
"invoice_number": "FAC-2026-0021",
"quote_id": "quote-123",
"booking_id": "booking-abc"
}
}{
"message": "status must be one of: waiting, paid, canceled",
"data": {
"code": "invalid_request"
}
}{
"message": "this token is read-only"
}{
"message": "not found"
}{
"message": "this payment is already received with different values: a receipt is final, send a `reason` to correct it (reversal in the sealed journal)",
"data": {
"code": "payment_already_received"
}
}{
"message": "method_id is required to set a payment to paid (see GET /payment-methods)",
"data": {
"code": "method_id_required"
}
}{
"message": "Rate limit exceeded",
"data": {
"limit": 60,
"window": "60 seconds",
"remaining": 0,
"resetAt": "2025-11-17T14:30:00.000Z",
"retryAfter": 45
}
}{
"message": "error",
"data": {
"code": "internal_error"
}
}{
"message": "the fiscal engine is temporarily unavailable: the change may or may not have been recorded, retry the same request, it is safe",
"data": {
"code": "fiscal_engine_unavailable"
}
}Authorizations
Path Parameters
Body
Fields that can be updated on a payment. All fields are optional (partial update): only the fields present in the body are modified. Same conventions as the response - amount in integer cents, dates as YYYY-MM-DD in the Europe/Paris timezone. At least one field other than reason must be provided. method_id is 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 when that date is within these bounds, and takes today otherwise. Pass null to clear (not allowed together with status: paid, nor on a paid payment of a venue running the fiscal engine).
"2026-06-10"
Response
Payment updated successfully. Returns the full payment in its post-update state.
