zumpo/docs
Dashboard
Skip to content
accounts / API reference
PUTupdateGoogleBusinessLocationDetails

Update Google Business location details

Writes an exact desired state for the seven safe Zernio location fields. Omitting a field named by updateMask clears it; fields outside the mask are rejected.

TEST MODE ONLY TODAY. No Google Business adapter is composed into the live registry, so a Google Business account cannot be connected in live mode and this operation fails closed there rather than returning partial data. Setting a live-mode environment flag does not change this. Use test mode for this vertical.

Authentication

The following security requirement applies to this operation.

  1. bearerhttp

    scheme
    bearer
    bearerFormat
    zumpo-api-key
Read the authentication guide

Parameters

accountIdpathrequired
accountIdstringrequired
pattern
^[0-9a-f]{24}$
Original schema
{
  "type": "string",
  "pattern": "^[0-9a-f]{24}$"
}
locationIdqueryoptional

Optional accessible Google location id; defaults to the selected location.

locationIdstring
pattern
^[1-9]\d{0,29}$
Original schema
{
  "type": "string",
  "pattern": "^[1-9]\\d{0,29}$"
}

Request body

Required body
application/json
Bodyobjectrequired
#/components/schemas/GoogleBusinessLocationUpdateInputDto
additionalProperties
false
required
[ "updateMask" ]
updateMaskstringrequired

Comma-separated update paths. Supported paths are regularHours, specialHours, profile.description, websiteUri, phoneNumbers, categories, and serviceItems.

minLength
1
maxLength
256
pattern
^(?:regularHours|specialHours|profile\.description|websiteUri|phoneNumbers|categories|serviceItems)(?:,(?:regularHours|specialHours|profile\.description|websiteUri|phoneNumbers|categories|serviceItems))*$
regularHoursobject
#/components/schemas/GoogleBusinessLocationHoursDto
additionalProperties
false
required
[ "periods" ]
periodsarrayrequired
maxItems
168
Array itemobject
#/components/schemas/GoogleBusinessLocationPeriodDto
additionalProperties
false
required
[ "openDay", "openTime", "closeDay", "closeTime" ]
openDaystringrequired
enum
[ "MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY", "SUNDAY" ]
openTimestringrequired

Local wall-clock time in HH:MM form; 24:00 is allowed only at day end.

pattern
^(?:[01]\d|2[0-4]):[0-5]\d$
closeDaystringrequired
enum
[ "DAY_OF_WEEK_UNSPECIFIED", "MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY", "SUNDAY" ]
closeTimestringrequired
pattern
^(?:[01]\d|2[0-4]):[0-5]\d$
specialHoursobject
#/components/schemas/GoogleBusinessLocationSpecialHoursDto
additionalProperties
false
required
[ "specialHourPeriods" ]
specialHourPeriodsarrayrequired
maxItems
366
Array itemobject
#/components/schemas/GoogleBusinessLocationSpecialHourPeriodDto
additionalProperties
false
required
[ "startDate" ]
startDateobjectrequired
#/components/schemas/GoogleBusinessLocationDateDto
additionalProperties
false
yearnumber
minimum
0
maximum
9999
monthnumber
minimum
0
maximum
12
daynumber
minimum
0
maximum
31
endDateobject
#/components/schemas/GoogleBusinessLocationDateDto
additionalProperties
false
yearnumber
minimum
0
maximum
9999
monthnumber
minimum
0
maximum
12
daynumber
minimum
0
maximum
31
openTimestring
pattern
^(?:[01]\d|2[0-4]):[0-5]\d$
closeTimestring
pattern
^(?:[01]\d|2[0-4]):[0-5]\d$
closedboolean
profileobject
#/components/schemas/GoogleBusinessLocationProfileDto
additionalProperties
false
required
[ "description" ]
descriptionstringrequired
minLength
1
maxLength
750
websiteUristring
format
uri
phoneNumbersobject
#/components/schemas/GoogleBusinessLocationPhoneNumbersDto
additionalProperties
false
required
[ "primaryPhone" ]
primaryPhonestringrequired
minLength
1
maxLength
64
additionalPhonesarray
maxItems
2
Array itemstring
maxLength
64
categoriesobject
#/components/schemas/GoogleBusinessLocationPatchCategoriesDto
additionalProperties
false
required
[ "primaryCategory" ]
primaryCategoryobjectrequired
#/components/schemas/GoogleBusinessLocationCategoryReferenceDto
additionalProperties
false
required
[ "name" ]
namestringrequired
pattern
^categories/[A-Za-z0-9:_-]{1,256}$
additionalCategoriesarray
maxItems
10
default
[]
Array itemobject
#/components/schemas/GoogleBusinessLocationCategoryReferenceDto
additionalProperties
false
required
[ "name" ]
namestringrequired
pattern
^categories/[A-Za-z0-9:_-]{1,256}$
serviceItemsarray
maxItems
1000
Array itemobject
#/components/schemas/GoogleBusinessLocationServiceItemDto
additionalProperties
false
priceobject
#/components/schemas/GoogleBusinessLocationMoneyDto
additionalProperties
false
currencyCodestring
minLength
1
pattern
^[A-Z]{3}$
unitsstring
minLength
1
pattern
^-?(?:0|[1-9]\d{0,18})$
nanosnumber
minimum
-999999999
maximum
999999999
structuredServiceItemallOf

Exactly one of structuredServiceItem or freeFormServiceItem is required.

allOf / 1object
#/components/schemas/GoogleBusinessLocationStructuredServiceItemDto
additionalProperties
false
required
[ "serviceTypeId" ]
serviceTypeIdstringrequired
minLength
1
maxLength
256
descriptionstring
minLength
1
maxLength
300
freeFormServiceItemobject
#/components/schemas/GoogleBusinessLocationFreeFormServiceItemDto
additionalProperties
false
required
[ "category", "label" ]
categorystringrequired
minLength
1
pattern
^categories/[A-Za-z0-9:_-]{1,256}$
labelobjectrequired
#/components/schemas/GoogleBusinessLocationServiceLabelDto
additionalProperties
false
required
[ "displayName" ]
displayNamestringrequired
minLength
1
maxLength
140
descriptionstring
minLength
1
maxLength
250
languageCodestring
pattern
^[A-Za-z0-9-]{2,35}$
Original schema
{
  "$ref": "#/components/schemas/GoogleBusinessLocationUpdateInputDto"
}

Responses

Status codes and shapes declared for this operation. Read each description for the meaning of that response.

200Response schema
application/json
Response 200object
#/components/schemas/GoogleBusinessLocationUpdateResponseDto
additionalProperties
false
required
[ "success", "accountId", "locationId" ]
successbooleanrequired
enum
[ true ]
accountIdstringrequired
pattern
^[0-9a-f]{24}$
locationIdstringrequired
pattern
^[1-9]\d{0,29}$
Original schema
{
  "$ref": "#/components/schemas/GoogleBusinessLocationUpdateResponseDto"
}
400Response schema
application/json
Response 400object
#/components/schemas/ZumpoErrorDto
required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequired

Human-readable message. UNSTABLE — do not branch on it.

example
WhatsApp session window expired; use a template message.
typestringrequired

Stable error category (does not change across versions).

enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]
example
invalid_request_error
codestringrequired

Stable machine-readable code.

example
whatsapp_window_expired
paramstring

Offending parameter, present only when relevant.

example
body
docUrlstringrequired

https://docs.zumpo.io/errors/{code}

example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequired

Support correlation id: req_ + 16 hex.

example
req_7f3a9c2e1b8d4056
detailsobject

Additional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.

additionalProperties
true
example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
  "$ref": "#/components/schemas/ZumpoErrorDto"
}
401Authentication failed

Authentication failed

application/json
Response 401object
#/components/schemas/ZumpoErrorDto
required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequired

Human-readable message. UNSTABLE — do not branch on it.

example
WhatsApp session window expired; use a template message.
typestringrequired

Stable error category (does not change across versions).

enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]
example
invalid_request_error
codestringrequired

Stable machine-readable code.

example
whatsapp_window_expired
paramstring

Offending parameter, present only when relevant.

example
body
docUrlstringrequired

https://docs.zumpo.io/errors/{code}

example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequired

Support correlation id: req_ + 16 hex.

example
req_7f3a9c2e1b8d4056
detailsobject

Additional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.

additionalProperties
true
example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
  "$ref": "#/components/schemas/ZumpoErrorDto"
}
403Response schema
application/json
Response 403object
#/components/schemas/ZumpoErrorDto
required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequired

Human-readable message. UNSTABLE — do not branch on it.

example
WhatsApp session window expired; use a template message.
typestringrequired

Stable error category (does not change across versions).

enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]
example
invalid_request_error
codestringrequired

Stable machine-readable code.

example
whatsapp_window_expired
paramstring

Offending parameter, present only when relevant.

example
body
docUrlstringrequired

https://docs.zumpo.io/errors/{code}

example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequired

Support correlation id: req_ + 16 hex.

example
req_7f3a9c2e1b8d4056
detailsobject

Additional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.

additionalProperties
true
example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
  "$ref": "#/components/schemas/ZumpoErrorDto"
}
404Response schema
application/json
Response 404object
#/components/schemas/ZumpoErrorDto
required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequired

Human-readable message. UNSTABLE — do not branch on it.

example
WhatsApp session window expired; use a template message.
typestringrequired

Stable error category (does not change across versions).

enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]
example
invalid_request_error
codestringrequired

Stable machine-readable code.

example
whatsapp_window_expired
paramstring

Offending parameter, present only when relevant.

example
body
docUrlstringrequired

https://docs.zumpo.io/errors/{code}

example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequired

Support correlation id: req_ + 16 hex.

example
req_7f3a9c2e1b8d4056
detailsobject

Additional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.

additionalProperties
true
example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
  "$ref": "#/components/schemas/ZumpoErrorDto"
}
409Response schema
application/json
Response 409object
#/components/schemas/ZumpoErrorDto
required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequired

Human-readable message. UNSTABLE — do not branch on it.

example
WhatsApp session window expired; use a template message.
typestringrequired

Stable error category (does not change across versions).

enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]
example
invalid_request_error
codestringrequired

Stable machine-readable code.

example
whatsapp_window_expired
paramstring

Offending parameter, present only when relevant.

example
body
docUrlstringrequired

https://docs.zumpo.io/errors/{code}

example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequired

Support correlation id: req_ + 16 hex.

example
req_7f3a9c2e1b8d4056
detailsobject

Additional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.

additionalProperties
true
example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
  "$ref": "#/components/schemas/ZumpoErrorDto"
}
429Response schema
application/json
Response 429object
#/components/schemas/ZumpoErrorDto
required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequired

Human-readable message. UNSTABLE — do not branch on it.

example
WhatsApp session window expired; use a template message.
typestringrequired

Stable error category (does not change across versions).

enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]
example
invalid_request_error
codestringrequired

Stable machine-readable code.

example
whatsapp_window_expired
paramstring

Offending parameter, present only when relevant.

example
body
docUrlstringrequired

https://docs.zumpo.io/errors/{code}

example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequired

Support correlation id: req_ + 16 hex.

example
req_7f3a9c2e1b8d4056
detailsobject

Additional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.

additionalProperties
true
example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
  "$ref": "#/components/schemas/ZumpoErrorDto"
}

Response headers

X-RateLimit-Limit

Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.

X-RateLimit-Limitinteger
minimum
1
Original schema
{
  "type": "integer",
  "minimum": 1
}

X-RateLimit-Remaining

Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.

X-RateLimit-Remaininginteger
minimum
0
Original schema
{
  "type": "integer",
  "minimum": 0
}

X-RateLimit-Reset

Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.

X-RateLimit-Resetinteger
format
int64
minimum
0
Original schema
{
  "type": "integer",
  "format": "int64",
  "minimum": 0
}

Retry-After

Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.

Retry-Afterinteger
minimum
1
maximum
86400
Original schema
{
  "type": "integer",
  "minimum": 1,
  "maximum": 86400
}
500Server error

Server error

application/json
Response 500object
#/components/schemas/ZumpoErrorDto
required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequired

Human-readable message. UNSTABLE — do not branch on it.

example
WhatsApp session window expired; use a template message.
typestringrequired

Stable error category (does not change across versions).

enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]
example
invalid_request_error
codestringrequired

Stable machine-readable code.

example
whatsapp_window_expired
paramstring

Offending parameter, present only when relevant.

example
body
docUrlstringrequired

https://docs.zumpo.io/errors/{code}

example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequired

Support correlation id: req_ + 16 hex.

example
req_7f3a9c2e1b8d4056
detailsobject

Additional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.

additionalProperties
true
example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
  "$ref": "#/components/schemas/ZumpoErrorDto"
}
502Response schema
application/json
Response 502object
#/components/schemas/ZumpoErrorDto
required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequired

Human-readable message. UNSTABLE — do not branch on it.

example
WhatsApp session window expired; use a template message.
typestringrequired

Stable error category (does not change across versions).

enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]
example
invalid_request_error
codestringrequired

Stable machine-readable code.

example
whatsapp_window_expired
paramstring

Offending parameter, present only when relevant.

example
body
docUrlstringrequired

https://docs.zumpo.io/errors/{code}

example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequired

Support correlation id: req_ + 16 hex.

example
req_7f3a9c2e1b8d4056
detailsobject

Additional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.

additionalProperties
true
example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
  "$ref": "#/components/schemas/ZumpoErrorDto"
}
503Response schema
application/json
Response 503object
#/components/schemas/ZumpoErrorDto
required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequired

Human-readable message. UNSTABLE — do not branch on it.

example
WhatsApp session window expired; use a template message.
typestringrequired

Stable error category (does not change across versions).

enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]
example
invalid_request_error
codestringrequired

Stable machine-readable code.

example
whatsapp_window_expired
paramstring

Offending parameter, present only when relevant.

example
body
docUrlstringrequired

https://docs.zumpo.io/errors/{code}

example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequired

Support correlation id: req_ + 16 hex.

example
req_7f3a9c2e1b8d4056
detailsobject

Additional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.

additionalProperties
true
example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
  "$ref": "#/components/schemas/ZumpoErrorDto"
}

Referenced schemas

Original local definitions used by this operation. Recursive and deeply nested references can be inspected here without expanding them repeatedly.

GoogleBusinessLocationUpdateInputDto

#/components/schemas/GoogleBusinessLocationUpdateInputDto

{
  "type": "object",
  "properties": {
    "updateMask": {
      "type": "string",
      "minLength": 1,
      "maxLength": 256,
      "pattern": "^(?:regularHours|specialHours|profile\\.description|websiteUri|phoneNumbers|categories|serviceItems)(?:,(?:regularHours|specialHours|profile\\.description|websiteUri|phoneNumbers|categories|serviceItems))*$",
      "description": "Comma-separated update paths. Supported paths are regularHours, specialHours, profile.description, websiteUri, phoneNumbers, categories, and serviceItems."
    },
    "regularHours": {
      "$ref": "#/components/schemas/GoogleBusinessLocationHoursDto"
    },
    "specialHours": {
      "$ref": "#/components/schemas/GoogleBusinessLocationSpecialHoursDto"
    },
    "profile": {
      "$ref": "#/components/schemas/GoogleBusinessLocationProfileDto"
    },
    "websiteUri": {
      "type": "string",
      "format": "uri"
    },
    "phoneNumbers": {
      "$ref": "#/components/schemas/GoogleBusinessLocationPhoneNumbersDto"
    },
    "categories": {
      "$ref": "#/components/schemas/GoogleBusinessLocationPatchCategoriesDto"
    },
    "serviceItems": {
      "maxItems": 1000,
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/GoogleBusinessLocationServiceItemDto"
      }
    }
  },
  "additionalProperties": false,
  "required": [
    "updateMask"
  ]
}
GoogleBusinessLocationHoursDto

#/components/schemas/GoogleBusinessLocationHoursDto

{
  "type": "object",
  "properties": {
    "periods": {
      "maxItems": 168,
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/GoogleBusinessLocationPeriodDto"
      }
    }
  },
  "additionalProperties": false,
  "required": [
    "periods"
  ]
}
GoogleBusinessLocationPeriodDto

#/components/schemas/GoogleBusinessLocationPeriodDto

{
  "type": "object",
  "properties": {
    "openDay": {
      "type": "string",
      "enum": [
        "MONDAY",
        "TUESDAY",
        "WEDNESDAY",
        "THURSDAY",
        "FRIDAY",
        "SATURDAY",
        "SUNDAY"
      ]
    },
    "openTime": {
      "type": "string",
      "pattern": "^(?:[01]\\d|2[0-4]):[0-5]\\d$",
      "description": "Local wall-clock time in HH:MM form; 24:00 is allowed only at day end."
    },
    "closeDay": {
      "type": "string",
      "enum": [
        "DAY_OF_WEEK_UNSPECIFIED",
        "MONDAY",
        "TUESDAY",
        "WEDNESDAY",
        "THURSDAY",
        "FRIDAY",
        "SATURDAY",
        "SUNDAY"
      ]
    },
    "closeTime": {
      "type": "string",
      "pattern": "^(?:[01]\\d|2[0-4]):[0-5]\\d$"
    }
  },
  "additionalProperties": false,
  "required": [
    "openDay",
    "openTime",
    "closeDay",
    "closeTime"
  ]
}
GoogleBusinessLocationSpecialHoursDto

#/components/schemas/GoogleBusinessLocationSpecialHoursDto

{
  "type": "object",
  "properties": {
    "specialHourPeriods": {
      "maxItems": 366,
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/GoogleBusinessLocationSpecialHourPeriodDto"
      }
    }
  },
  "additionalProperties": false,
  "required": [
    "specialHourPeriods"
  ]
}
GoogleBusinessLocationSpecialHourPeriodDto

#/components/schemas/GoogleBusinessLocationSpecialHourPeriodDto

{
  "type": "object",
  "properties": {
    "startDate": {
      "$ref": "#/components/schemas/GoogleBusinessLocationDateDto"
    },
    "endDate": {
      "$ref": "#/components/schemas/GoogleBusinessLocationDateDto"
    },
    "openTime": {
      "type": "string",
      "pattern": "^(?:[01]\\d|2[0-4]):[0-5]\\d$"
    },
    "closeTime": {
      "type": "string",
      "pattern": "^(?:[01]\\d|2[0-4]):[0-5]\\d$"
    },
    "closed": {
      "type": "boolean"
    }
  },
  "additionalProperties": false,
  "required": [
    "startDate"
  ]
}
GoogleBusinessLocationDateDto

#/components/schemas/GoogleBusinessLocationDateDto

{
  "type": "object",
  "properties": {
    "year": {
      "type": "number",
      "minimum": 0,
      "maximum": 9999
    },
    "month": {
      "type": "number",
      "minimum": 0,
      "maximum": 12
    },
    "day": {
      "type": "number",
      "minimum": 0,
      "maximum": 31
    }
  },
  "additionalProperties": false
}
GoogleBusinessLocationProfileDto

#/components/schemas/GoogleBusinessLocationProfileDto

{
  "type": "object",
  "properties": {
    "description": {
      "type": "string",
      "minLength": 1,
      "maxLength": 750
    }
  },
  "additionalProperties": false,
  "required": [
    "description"
  ]
}
GoogleBusinessLocationPhoneNumbersDto

#/components/schemas/GoogleBusinessLocationPhoneNumbersDto

{
  "type": "object",
  "properties": {
    "primaryPhone": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64
    },
    "additionalPhones": {
      "maxItems": 2,
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 64
      }
    }
  },
  "additionalProperties": false,
  "required": [
    "primaryPhone"
  ]
}
GoogleBusinessLocationPatchCategoriesDto

#/components/schemas/GoogleBusinessLocationPatchCategoriesDto

{
  "type": "object",
  "properties": {
    "primaryCategory": {
      "$ref": "#/components/schemas/GoogleBusinessLocationCategoryReferenceDto"
    },
    "additionalCategories": {
      "maxItems": 10,
      "default": [],
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/GoogleBusinessLocationCategoryReferenceDto"
      }
    }
  },
  "additionalProperties": false,
  "required": [
    "primaryCategory"
  ]
}
GoogleBusinessLocationCategoryReferenceDto

#/components/schemas/GoogleBusinessLocationCategoryReferenceDto

{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "pattern": "^categories/[A-Za-z0-9:_-]{1,256}$"
    }
  },
  "additionalProperties": false,
  "required": [
    "name"
  ]
}
GoogleBusinessLocationServiceItemDto

#/components/schemas/GoogleBusinessLocationServiceItemDto

{
  "type": "object",
  "properties": {
    "price": {
      "$ref": "#/components/schemas/GoogleBusinessLocationMoneyDto"
    },
    "structuredServiceItem": {
      "description": "Exactly one of structuredServiceItem or freeFormServiceItem is required.",
      "allOf": [
        {
          "$ref": "#/components/schemas/GoogleBusinessLocationStructuredServiceItemDto"
        }
      ]
    },
    "freeFormServiceItem": {
      "$ref": "#/components/schemas/GoogleBusinessLocationFreeFormServiceItemDto"
    }
  },
  "additionalProperties": false
}
GoogleBusinessLocationMoneyDto

#/components/schemas/GoogleBusinessLocationMoneyDto

{
  "type": "object",
  "properties": {
    "currencyCode": {
      "type": "string",
      "minLength": 1,
      "pattern": "^[A-Z]{3}$"
    },
    "units": {
      "type": "string",
      "minLength": 1,
      "pattern": "^-?(?:0|[1-9]\\d{0,18})$"
    },
    "nanos": {
      "type": "number",
      "minimum": -999999999,
      "maximum": 999999999
    }
  },
  "additionalProperties": false
}
GoogleBusinessLocationStructuredServiceItemDto

#/components/schemas/GoogleBusinessLocationStructuredServiceItemDto

{
  "type": "object",
  "properties": {
    "serviceTypeId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 256
    },
    "description": {
      "type": "string",
      "minLength": 1,
      "maxLength": 300
    }
  },
  "additionalProperties": false,
  "required": [
    "serviceTypeId"
  ]
}
GoogleBusinessLocationFreeFormServiceItemDto

#/components/schemas/GoogleBusinessLocationFreeFormServiceItemDto

{
  "type": "object",
  "properties": {
    "category": {
      "type": "string",
      "minLength": 1,
      "pattern": "^categories/[A-Za-z0-9:_-]{1,256}$"
    },
    "label": {
      "$ref": "#/components/schemas/GoogleBusinessLocationServiceLabelDto"
    }
  },
  "additionalProperties": false,
  "required": [
    "category",
    "label"
  ]
}
GoogleBusinessLocationServiceLabelDto

#/components/schemas/GoogleBusinessLocationServiceLabelDto

{
  "type": "object",
  "properties": {
    "displayName": {
      "type": "string",
      "minLength": 1,
      "maxLength": 140
    },
    "description": {
      "type": "string",
      "minLength": 1,
      "maxLength": 250
    },
    "languageCode": {
      "type": "string",
      "pattern": "^[A-Za-z0-9-]{2,35}$"
    }
  },
  "additionalProperties": false,
  "required": [
    "displayName"
  ]
}
GoogleBusinessLocationUpdateResponseDto

#/components/schemas/GoogleBusinessLocationUpdateResponseDto

{
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean",
      "enum": [
        true
      ]
    },
    "accountId": {
      "type": "string",
      "pattern": "^[0-9a-f]{24}$"
    },
    "locationId": {
      "type": "string",
      "pattern": "^[1-9]\\d{0,29}$"
    }
  },
  "additionalProperties": false,
  "required": [
    "success",
    "accountId",
    "locationId"
  ]
}
ZumpoErrorDto

#/components/schemas/ZumpoErrorDto

{
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable message. UNSTABLE — do not branch on it.",
      "example": "WhatsApp session window expired; use a template message."
    },
    "type": {
      "type": "string",
      "description": "Stable error category (does not change across versions).",
      "enum": [
        "invalid_request_error",
        "authentication_error",
        "permission_error",
        "not_found",
        "conflict",
        "rate_limit_error",
        "platform_error",
        "platform_rejected",
        "account_disconnected",
        "media_error",
        "api_error"
      ],
      "example": "invalid_request_error"
    },
    "code": {
      "type": "string",
      "description": "Stable machine-readable code.",
      "example": "whatsapp_window_expired"
    },
    "param": {
      "type": "string",
      "description": "Offending parameter, present only when relevant.",
      "example": "body"
    },
    "docUrl": {
      "type": "string",
      "description": "https://docs.zumpo.io/errors/{code}",
      "example": "https://docs.zumpo.io/errors/whatsapp_window_expired"
    },
    "requestId": {
      "type": "string",
      "description": "Support correlation id: req_ + 16 hex.",
      "example": "req_7f3a9c2e1b8d4056"
    },
    "details": {
      "type": "object",
      "additionalProperties": true,
      "description": "Additional structured context, present only when an error has more to say than a single `param` can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.",
      "example": {
        "created": [
          {
            "kind": "campaign",
            "platformId": "120210000000000001"
          },
          {
            "kind": "adSet",
            "platformId": "120210000000000002"
          }
        ]
      }
    }
  },
  "required": [
    "error",
    "type",
    "code",
    "docUrl",
    "requestId"
  ]
}