curl --request GET \
--url https://api.partoo.co/v2/business/{business_id}/attributes \
--header 'x-APIKey: <api-key>'import requests
url = "https://api.partoo.co/v2/business/{business_id}/attributes"
headers = {"x-APIKey": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-APIKey': '<api-key>'}};
fetch('https://api.partoo.co/v2/business/{business_id}/attributes', 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/business/{business_id}/attributes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api.partoo.co/v2/business/{business_id}/attributes"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-APIKey", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.partoo.co/v2/business/{business_id}/attributes")
.header("x-APIKey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.partoo.co/v2/business/{business_id}/attributes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-APIKey"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"attributes": [
{
"type": "BOOL",
"gmb_id": "has_curbside_pickup",
"value": false
},
{
"type": "BOOL",
"gmb_id": "has_delivery",
"value": true
},
{
"type": "ENUM",
"gmb_id": "wi_fi",
"value": "free_wi_fi"
},
{
"type": "REPEATABLE_ENUM",
"gmb_id": "pay_credit_card_types_accepted",
"value": {
"set_values": [
"american_express",
"discover"
],
"unset_values": []
}
},
{
"type": "URL",
"gmb_id": "url_menu",
"value": "https://www.test.fr"
},
{
"type": "REPEATABLE_URL",
"gmb_id": "url_order_ahead",
"value": null
},
{
"type": "REPEATABLE_URL",
"gmb_id": "url_reservations",
"value": [
"https://www.test1.fr",
"https://www.test2.fr"
]
}
]
}{
"errors": {
"authentication": "User not authenticated"
}
}{
"errors": {
"authorization": "Operation not allowed"
}
}{
"errors": {
"json": "Resource not found"
}
}Google attributes for your business
This endpoint allows you to view the Google attributes set for your business.
curl --request GET \
--url https://api.partoo.co/v2/business/{business_id}/attributes \
--header 'x-APIKey: <api-key>'import requests
url = "https://api.partoo.co/v2/business/{business_id}/attributes"
headers = {"x-APIKey": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-APIKey': '<api-key>'}};
fetch('https://api.partoo.co/v2/business/{business_id}/attributes', 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/business/{business_id}/attributes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api.partoo.co/v2/business/{business_id}/attributes"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-APIKey", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.partoo.co/v2/business/{business_id}/attributes")
.header("x-APIKey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.partoo.co/v2/business/{business_id}/attributes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-APIKey"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"attributes": [
{
"type": "BOOL",
"gmb_id": "has_curbside_pickup",
"value": false
},
{
"type": "BOOL",
"gmb_id": "has_delivery",
"value": true
},
{
"type": "ENUM",
"gmb_id": "wi_fi",
"value": "free_wi_fi"
},
{
"type": "REPEATABLE_ENUM",
"gmb_id": "pay_credit_card_types_accepted",
"value": {
"set_values": [
"american_express",
"discover"
],
"unset_values": []
}
},
{
"type": "URL",
"gmb_id": "url_menu",
"value": "https://www.test.fr"
},
{
"type": "REPEATABLE_URL",
"gmb_id": "url_order_ahead",
"value": null
},
{
"type": "REPEATABLE_URL",
"gmb_id": "url_reservations",
"value": [
"https://www.test1.fr",
"https://www.test2.fr"
]
}
]
}{
"errors": {
"authentication": "User not authenticated"
}
}{
"errors": {
"authorization": "Operation not allowed"
}
}{
"errors": {
"json": "Resource not found"
}
}Authorizations
The authentication system on Partoo API is using API Key that should be put in the header of the request (the name of the header is x-APIKey). An api_key is linked to a user. This user's role will give you different access level to the API features.
Path Parameters
Business id.
It may be replaced by c-{code} where code is the store code, which should be unique per organization. This can be used only for ORG_ADMIN, GROUP_MANAGER and BUSINESS_MANAGER users.
Query Parameters
Category for which availabe attributes will be fetched.
"gcid:restaurant"
Country for which available attributes will be fetched - use ISO 3166 alpha2 code ("FR", "EN", "IT"). Defaults to the country of the business' address.
Response
OK
List of Business Attributes
A Google Attribute
- Boolean
- Enum
- Repeatable Enum
- URL
- Repeatable URL
Show child attributes
Show child attributes
[ { "type": "BOOL", "gmb_id": "has_curbside_pickup", "value": false }, { "type": "BOOL", "gmb_id": "has_delivery", "value": true }, { "type": "ENUM", "gmb_id": "wi_fi", "value": "free_wi_fi" }, { "type": "REPEATABLE_ENUM", "gmb_id": "pay_credit_card_types_accepted", "value": { "set_values": ["american_express", "discover"], "unset_values": [] } }, { "type": "URL", "gmb_id": "url_menu", "value": "https://www.test.fr" }, { "type": "REPEATABLE_URL", "gmb_id": "url_order_ahead", "value": null }, { "type": "REPEATABLE_URL", "gmb_id": "url_reservations", "value": [ "https://www.test1.fr", "https://www.test2.fr" ] } ]
Was this page helpful?