Skip to main content
PUT
/
location
/
{locationId}
Update a restaurant location
curl --request PUT \
  --url https://api.example.com/location/{locationId} \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Pizzeria Da Mario",
  "imageId": "img_12345",
  "address": {
    "address": "123 Main Street",
    "postalCode": "1204",
    "city": "Geneva",
    "address2": "Suite 101",
    "country": "CH",
    "latitude": 46.2044,
    "longitude": 6.1432
  },
  "timezone": "Europe/Zurich",
  "openingHours": {
    "pickup": {
      "monday": [
        {
          "from": "09:00",
          "to": "18:00"
        }
      ],
      "tuesday": [
        {
          "from": "09:00",
          "to": "18:00"
        }
      ],
      "wednesday": [
        {
          "from": "09:00",
          "to": "18:00"
        }
      ],
      "thursday": [
        {
          "from": "09:00",
          "to": "18:00"
        }
      ],
      "friday": [
        {
          "from": "09:00",
          "to": "18:00"
        }
      ],
      "saturday": [
        {
          "from": "09:00",
          "to": "18:00"
        }
      ],
      "sunday": [
        {
          "from": "09:00",
          "to": "18:00"
        }
      ]
    },
    "delivery": {
      "monday": [
        {
          "from": "09:00",
          "to": "18:00"
        }
      ],
      "tuesday": [
        {
          "from": "09:00",
          "to": "18:00"
        }
      ],
      "wednesday": [
        {
          "from": "09:00",
          "to": "18:00"
        }
      ],
      "thursday": [
        {
          "from": "09:00",
          "to": "18:00"
        }
      ],
      "friday": [
        {
          "from": "09:00",
          "to": "18:00"
        }
      ],
      "saturday": [
        {
          "from": "09:00",
          "to": "18:00"
        }
      ],
      "sunday": [
        {
          "from": "09:00",
          "to": "18:00"
        }
      ]
    }
  },
  "contactInformation": "Phone: +41 22 123 4567\nEmail: [email protected]",
  "autoAcceptOrders": false,
  "hasSignedContract": true,
  "defaultLanguage": "fr",
  "whatsappCatalogId": "cat_12345"
}
'
{
  "id": "loc_12345",
  "name": "Pizzeria Da Mario",
  "currency": "CHF",
  "country": "CH",
  "address": {
    "address": "123 Main Street",
    "postalCode": "1204",
    "city": "Geneva",
    "address2": "Suite 101",
    "country": "CH",
    "latitude": 46.2044,
    "longitude": 6.1432
  },
  "timezone": "Europe/Zurich",
  "openingHours": {
    "pickup": {
      "monday": [
        {
          "from": "09:00",
          "to": "18:00"
        }
      ],
      "tuesday": [
        {
          "from": "09:00",
          "to": "18:00"
        }
      ],
      "wednesday": [
        {
          "from": "09:00",
          "to": "18:00"
        }
      ],
      "thursday": [
        {
          "from": "09:00",
          "to": "18:00"
        }
      ],
      "friday": [
        {
          "from": "09:00",
          "to": "18:00"
        }
      ],
      "saturday": [
        {
          "from": "09:00",
          "to": "18:00"
        }
      ],
      "sunday": [
        {
          "from": "09:00",
          "to": "18:00"
        }
      ]
    },
    "delivery": {
      "monday": [
        {
          "from": "09:00",
          "to": "18:00"
        }
      ],
      "tuesday": [
        {
          "from": "09:00",
          "to": "18:00"
        }
      ],
      "wednesday": [
        {
          "from": "09:00",
          "to": "18:00"
        }
      ],
      "thursday": [
        {
          "from": "09:00",
          "to": "18:00"
        }
      ],
      "friday": [
        {
          "from": "09:00",
          "to": "18:00"
        }
      ],
      "saturday": [
        {
          "from": "09:00",
          "to": "18:00"
        }
      ],
      "sunday": [
        {
          "from": "09:00",
          "to": "18:00"
        }
      ]
    }
  },
  "catalogs": [
    {}
  ],
  "organizationId": "org_12345",
  "integrations": {},
  "deliverySettings": {
    "mode": "postalCode",
    "postalCodes": [
      {
        "postalCode": 1204,
        "minimumOrderAmount": 2000,
        "deliveryFee": {
          "amount": 995,
          "currency": "CHF",
          "formatted": "CHF 9.95"
        }
      }
    ],
    "feeSharing": {
      "mode": "customerPaysAll",
      "percentage": 70
    },
    "chaskisFlatFee": {
      "amount": 995,
      "currency": "CHF",
      "formatted": "CHF 9.95"
    },
    "chaskisPerKmFee": {
      "amount": 995,
      "currency": "CHF",
      "formatted": "CHF 9.95"
    }
  },
  "paymentSettings": {
    "mode": "stripe",
    "paymentMethods": [
      "card",
      "apple_pay",
      "google_pay",
      "twint"
    ]
  },
  "averagePreparationTime": {
    "hour": 1,
    "minute": 30
  },
  "minOrderAmount": 2000,
  "autoAcceptOrders": true,
  "defaultLanguage": "fr",
  "acceptanceSettings": {
    "mode": "online",
    "extraPreparationTime": 10,
    "reason": "We are closed for the day"
  },
  "image": {
    "id": "img_12345",
    "url": "https://cdn.example.com/images/img_12345.jpg",
    "mediumCompressedUrl": "https://cdn.example.com/images/img_12345_medium.jpg",
    "smallCompressedUrl": "https://cdn.example.com/images/img_12345_small.jpg",
    "base64": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEA...",
    "mediumBase64": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEA..."
  },
  "contactInformation": "Phone: +41 22 123 4567\nEmail: [email protected]"
}

Path Parameters

locationId
string
required

ID of the location to update

Example:

"loc_12345"

Body

application/json

Updated location details

name
string

Restaurant name

Example:

"Pizzeria Da Mario"

imageId
string

ID of the uploaded restaurant image

Example:

"img_12345"

address
object

Address information

timezone
string

IANA timezone string

Example:

"Europe/Zurich"

openingHours
object

Opening hours by day of the week

contactInformation
string

Contact information (phone numbers, emails)

Example:

"Phone: +41 22 123 4567\nEmail: [email protected]"

autoAcceptOrders
boolean

Whether to automatically accept orders without manual confirmation

Example:

false

hasSignedContract
boolean

Has the contract been signed for this location

Example:

true

defaultLanguage
enum<string>

Default language for the restaurant location

Available options:
fr,
en,
de,
it,
es
Example:

"fr"

whatsappCatalogId
string

Whatsapp catalog ID

Example:

"cat_12345"

Response

Location updated successfully

id
string
required

Location ID

Example:

"loc_12345"

name
string
required

Location name

Example:

"Pizzeria Da Mario"

currency
enum<string>
required

Currency used by the location

Available options:
CHF,
EUR,
USD
Example:

"CHF"

country
enum<string>
required

Country where the location is situated

Available options:
CH,
FR
Example:

"CH"

address
object
required

Location address

timezone
string
required

Location timezone

Example:

"Europe/Zurich"

openingHours
object
required

Location opening hours

catalogs
object[]
required

Location catalogs

organizationId
string
required

Location organization ID

Example:

"org_12345"

integrations
object
required

Location integrations

deliverySettings
object
required

Location delivery settings

paymentSettings
object
required

Location payment settings

averagePreparationTime
object
required

Average preparation time for orders

minOrderAmount
number
required

Minimum order amount in smallest currency unit (e.g. cents)

Example:

2000

autoAcceptOrders
boolean
required

Auto accept orders

Example:

true

defaultLanguage
enum<string>
required

Default language for the restaurant location

Available options:
fr,
en,
de,
it,
es
Example:

"fr"

acceptanceSettings
object
required

Location acceptance settings

image
object

Location image

contactInformation
string

Location contact information

Example:

"Phone: +41 22 123 4567\nEmail: [email protected]"