Skip to main content
PATCH
/
accounts
/
{id}
Update an account
curl --request PATCH \
  --url https://api.bookingshake.io/api/accounts/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Acme Corp",
  "vat_number": "FR98765432101"
}
'
import requests

url = "https://api.bookingshake.io/api/accounts/{id}"

payload = {
"name": "Acme Corp",
"vat_number": "FR98765432101"
}
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({name: 'Acme Corp', vat_number: 'FR98765432101'})
};

fetch('https://api.bookingshake.io/api/accounts/{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/accounts/{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([
'name' => 'Acme Corp',
'vat_number' => 'FR98765432101'
]),
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/accounts/{id}"

payload := strings.NewReader("{\n \"name\": \"Acme Corp\",\n \"vat_number\": \"FR98765432101\"\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/accounts/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Acme Corp\",\n \"vat_number\": \"FR98765432101\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.bookingshake.io/api/accounts/{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 \"name\": \"Acme Corp\",\n \"vat_number\": \"FR98765432101\"\n}"

response = http.request(request)
puts response.read_body
{
  "message": "success",
  "data": {
    "id": "account-123",
    "name": "Acme Corp",
    "legal_name": "ACME CORPORATION SAS",
    "company_type": "SAS",
    "company_registration_id": "987654321",
    "siret": "98765432100012",
    "vat_number": "FR98765432101",
    "rcs_number": "RCS Paris 987 654 321",
    "sector": "Technology",
    "address_line_1": "123 rue Example",
    "address_line_2": "Bâtiment A",
    "postal_code": "75001",
    "city": "Paris",
    "country": "France",
    "billing_address_line_1": "123 rue Example",
    "billing_address_line_2": null,
    "billing_postal_code": "75001",
    "billing_city": "Paris",
    "billing_country": "France",
    "accounting_account": "411000",
    "created_at": 1731495000000,
    "custom_u1v2w3x4y5": "50-100",
    "custom_z6a7b8c9d0": null
  }
}
{
"message": "no updatable fields provided"
}
{
"message": "not found"
}
{
"message": "Rate limit exceeded",
"data": {
"limit": 60,
"window": "60 seconds",
"remaining": 0,
"resetAt": "2025-11-17T14:30:00.000Z",
"retryAfter": 45
}
}
{
"message": "error"
}

Authorizations

Authorization
string
header
required

Bearer authentication using your BookingShake API key. Retrieve your API key from Settings > Integrations in your BookingShake dashboard.

Path Parameters

id
string
required

Account ID (the id field carried by the account.* webhooks).

Body

application/json

Fields that can be updated on an account. All fields are optional (partial update): only the fields present in the body are modified. Same conventions as the response (English snake_case names). String fields are trimmed and limited to 255 characters; pass null on any field to clear it. Country fields are stored verbatim. Custom fields (custom_) configured for your venue can be set too; an unknown custom field key is rejected with 400. id and created_at are read-only and ignored. At least one field must be provided.

name
string | null

Company display name

Maximum string length: 255

Registered legal name

Maximum string length: 255
company_type
string | null

Legal form (e.g. SAS, SARL)

Maximum string length: 255
company_registration_id
string | null

Company registration number (SIREN in France)

Maximum string length: 255
siret
string | null

SIRET number (France)

Maximum string length: 255
vat_number
string | null

VAT number

Maximum string length: 255
rcs_number
string | null

Trade register number (RCS)

Maximum string length: 255
sector
string | null

Business sector

Maximum string length: 255
address_line_1
string | null

Main address

Maximum string length: 255
address_line_2
string | null

Main address, line 2

Maximum string length: 255
postal_code
string | null

Main address postal code

Maximum string length: 255
city
string | null

Main address city

Maximum string length: 255
country
string | null

Main address country, stored verbatim

Maximum string length: 255
billing_address_line_1
string | null

Billing address

Maximum string length: 255
billing_address_line_2
string | null

Billing address, line 2

Maximum string length: 255
billing_postal_code
string | null

Billing address postal code

Maximum string length: 255
billing_city
string | null

Billing address city

Maximum string length: 255
billing_country
string | null

Billing address country, stored verbatim

Maximum string length: 255
accounting_account
string | null

Accounting account code

Maximum string length: 255
{key}
any

Custom fields (custom_) configured for your venue: a string (single-value field) or an array of strings (multi-select field). An unknown custom field key, or a value whose shape does not match the field type, is rejected with 400.

Response

Account updated successfully. Returns the full account in its post-update state.

message
string
Example:

"success"

data
object

An account (company) attached to your venue. Every field is present with an explicit null when unset. Country fields are verbatim as entered. Custom fields (custom_<uuid>) configured for your venue are included, also with explicit null when unset.