Complete a verification
Completes a PENDING verification by submitting the PIN/code Google sent the business (postcard code, SMS PIN, etc.). On success the verification moves to COMPLETED.
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
The Zernio account ID (from /v1/accounts)
The last segment of a verification name from GET /gmb-verifications.
Query Parameters
Override which location to target. If omitted, uses the account's selected location.
The code Google sent to the business.
Response Body
application/json
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.gmbverifications.completeGoogleBusinessVerification({ path: { accountId: 'account_abc123', verificationId: 'verification_abc123', }, body: { pin: 'string', },});console.log(data);{
"success": true,
"accountId": "string",
"locationId": "string",
"verification": {
"name": "string",
"method": "ADDRESS",
"state": "PENDING",
"createTime": "2019-08-24T14:15:22Z"
}
}{
"error": "string",
"details": {}
}{
"error": "string",
"details": {}
}{
"error": "Not found"
}Start a verification POST
Starts a verification for the location. This is a mutating action: depending on `method`, Google mails a postcard, places a call, or sends an SMS/email to the business. Submit the resulting code with POST /gmb-verifications/{verificationId}/complete. Use POST /gmb-verifications/options first to discover which methods are eligible.
List media GET
Lists media items (photos) for a Google Business Profile location. Returns photo URLs, descriptions, categories, and metadata.