Skip to main content
PATCH
/
location
/
{locationId}
/
settings
Update location settings
curl --request PATCH \
  --url https://api.example.com/location/{locationId}/settings \
  --header 'Content-Type: application/json' \
  --data '
{
  "averagePreparationTime": {
    "hour": 1,
    "minute": 30
  },
  "minOrderAmount": 2000,
  "whatsappCatalogId": "123",
  "defaultLanguage": "fr"
}
'
{
  "success": true,
  "locationId": "loc_12345",
  "averagePreparationTime": {
    "hour": 1,
    "minute": 30
  },
  "minOrderAmount": 2000
}

Path Parameters

locationId
string
required

ID of the location to update settings for

Example:

"loc_12345"

Body

application/json

Updated location settings

averagePreparationTime
object

Average preparation time for orders

minOrderAmount
number

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

Required range: x >= 0
Example:

2000

whatsappCatalogId
string

Whatsapp catalog id

Example:

"123"

defaultLanguage
enum<string>

Default language for the restaurant location

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

"fr"

Response

Location settings updated successfully

success
boolean
required

Operation success status

Example:

true

locationId
string
required

Location ID

Example:

"loc_12345"

averagePreparationTime
object

Average preparation time for orders

minOrderAmount
number

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

Example:

2000