Start Google Location Verification Process
curl --request POST \
--url https://api.partoo.co/v2/verifications/google-locations/{google_location_id}/start \
--header 'Content-Type: application/json' \
--header 'x-APIKey: <api-key>' \
--data '
{
"phone_number": "+33187662490",
"email": "email.api@partoo.fr",
"full_name": "John Doe"
}
'import requests
url = "https://api.partoo.co/v2/verifications/google-locations/{google_location_id}/start"
payload = {
"phone_number": "+33187662490",
"email": "email.api@partoo.fr",
"full_name": "John Doe"
}
headers = {
"x-APIKey": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-APIKey': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
phone_number: '+33187662490',
email: 'email.api@partoo.fr',
full_name: 'John Doe'
})
};
fetch('https://api.partoo.co/v2/verifications/google-locations/{google_location_id}/start', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.partoo.co/v2/verifications/google-locations/{google_location_id}/start",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'phone_number' => '+33187662490',
'email' => 'email.api@partoo.fr',
'full_name' => 'John Doe'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-APIKey: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.partoo.co/v2/verifications/google-locations/{google_location_id}/start"
payload := strings.NewReader("{\n \"phone_number\": \"+33187662490\",\n \"email\": \"email.api@partoo.fr\",\n \"full_name\": \"John Doe\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-APIKey", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.partoo.co/v2/verifications/google-locations/{google_location_id}/start")
.header("x-APIKey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"phone_number\": \"+33187662490\",\n \"email\": \"email.api@partoo.fr\",\n \"full_name\": \"John Doe\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.partoo.co/v2/verifications/google-locations/{google_location_id}/start")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-APIKey"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"phone_number\": \"+33187662490\",\n \"email\": \"email.api@partoo.fr\",\n \"full_name\": \"John Doe\"\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"message": null
}{
"errors": {
"json": {
"method": "sms_phone_call_method_without_phone_number"
}
}
}{
"errors": {
"authentication": "User not authenticated"
}
}{
"errors": {
"authorization": "Operation not allowed"
}
}{
"errors": {
"json": "Resource not found"
}
}Google
Start Google Location Verification Process
This endpoint initiates the verification process for a specific Google location identified by google_location_id. It requires authentication and authorization to access. The user must have at least the role of a BUSINESS_MANAGER to use this endpoint.
The endpoint ensures that the chosen verification method has all the necessary information for the specific method chosen. If any required information is missing, it raises an error with the associated error message.
POST
/
verifications
/
google-locations
/
{google_location_id}
/
start
Start Google Location Verification Process
curl --request POST \
--url https://api.partoo.co/v2/verifications/google-locations/{google_location_id}/start \
--header 'Content-Type: application/json' \
--header 'x-APIKey: <api-key>' \
--data '
{
"phone_number": "+33187662490",
"email": "email.api@partoo.fr",
"full_name": "John Doe"
}
'import requests
url = "https://api.partoo.co/v2/verifications/google-locations/{google_location_id}/start"
payload = {
"phone_number": "+33187662490",
"email": "email.api@partoo.fr",
"full_name": "John Doe"
}
headers = {
"x-APIKey": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-APIKey': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
phone_number: '+33187662490',
email: 'email.api@partoo.fr',
full_name: 'John Doe'
})
};
fetch('https://api.partoo.co/v2/verifications/google-locations/{google_location_id}/start', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.partoo.co/v2/verifications/google-locations/{google_location_id}/start",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'phone_number' => '+33187662490',
'email' => 'email.api@partoo.fr',
'full_name' => 'John Doe'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-APIKey: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.partoo.co/v2/verifications/google-locations/{google_location_id}/start"
payload := strings.NewReader("{\n \"phone_number\": \"+33187662490\",\n \"email\": \"email.api@partoo.fr\",\n \"full_name\": \"John Doe\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-APIKey", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.partoo.co/v2/verifications/google-locations/{google_location_id}/start")
.header("x-APIKey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"phone_number\": \"+33187662490\",\n \"email\": \"email.api@partoo.fr\",\n \"full_name\": \"John Doe\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.partoo.co/v2/verifications/google-locations/{google_location_id}/start")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-APIKey"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"phone_number\": \"+33187662490\",\n \"email\": \"email.api@partoo.fr\",\n \"full_name\": \"John Doe\"\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"message": null
}{
"errors": {
"json": {
"method": "sms_phone_call_method_without_phone_number"
}
}
}{
"errors": {
"authentication": "User not authenticated"
}
}{
"errors": {
"authorization": "Operation not allowed"
}
}{
"errors": {
"json": "Resource not found"
}
}Authorizations
Body
application/json
Response
OK
OPTIONAL Details of the error encountered. Can be one of the following:
start_no_verification_found: No verification request has been started.start_error: An error occured during the start of the verification process.
Available options:
start_no_verification_found, start_error Example:
null
Was this page helpful?