Replace services
Replaces the entire service list for a location. Google's API requires full replacement; individual item updates are not supported. Each service can be structured (using a predefined serviceTypeId) or free-form (custom label).
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
Query Parameters
Override which location to target. If omitted, uses the account's selected location.
Response Body
application/json
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.gmbservices.updateGoogleBusinessServices({ path: { accountId: 'account_abc123', }, body: { serviceItems: [ { structuredServiceItem: { serviceTypeId: 'servicetype_abc123', }, freeFormServiceItem: { category: 'string', label: { displayName: 'Example', }, }, price: { currencyCode: 'string', units: 'string', nanos: 0, }, }, ], },});console.log(data);{
"success": true,
"services": [
{}
]
}{
"error": "string",
"type": "invalid_request_error",
"code": "string",
"param": "string",
"platform": "string",
"platformError": {},
"details": {}
}{
"error": "string",
"type": "invalid_request_error",
"code": "string",
"param": "string",
"platform": "string",
"platformError": {},
"details": {}
}Get services GET
Gets the services offered by a Google Business Profile location. Returns an array of service items (structured or free-form with optional price).
Get verification state GET
Returns the location's Voice of Merchant state plus its verification history. `voiceOfMerchantState.hasVoiceOfMerchant` tells you whether the listing is verified and published; when it is false, `verify` reports whether a verification is already pending. Each entry in `verifications` has a `state` of PENDING, COMPLETED, or FAILED.