Get google location details
GEThttps://api.staging.powerapi.com/api/v2/google/locations/:location_id
Returns a Google location object that corresponds to the given google_location_id. The location_id is a unique identifier for each location.
Request
Path Parameters
location_id stringrequired
Responses
- 200
- 400
- 401
- 403
- 404
- 422
- 500
- application/json
- Schema
- Example (auto)
Schema
id stringrequired
Unique identifier for the location
Example:
6047dac0604f33da03018004
location_name string
Name of the location
Example:
Annie - HQ
store_code stringnullable
Code for the store
Example:
annie-hq
region_code stringnullable
Region code
Example:
FR
postal_code stringnullable
Postal code
Example:
75018
address_details stringnullable
Detailed address information
Example:
130 rue mont cenis
locality stringnullable
Locality
Example:
Paris
place_id string
Google Place ID
Example:
ChIJ3Qu-HpFt5kcRNHUedqwIzQY
google_verifications object
phone_numbers stringnullable
Phone number
Example:
675181818
{
"id": "6047dac0604f33da03018004",
"location_name": "Annie - HQ",
"store_code": "annie-hq",
"region_code": "FR",
"postal_code": "75018",
"address_details": "130 rue mont cenis",
"locality": "Paris",
"place_id": "ChIJ3Qu-HpFt5kcRNHUedqwIzQY",
"google_verifications": {
"status": "verified",
"checked_at": "2023-01-30T14:25:11.163950Z"
},
"phone_numbers": 675181818
}
- application/json
- Schema
- Example (auto)
Schema
statusCode integerrequired
HTTP status code
Example:
404
message string
Error message
Example:
Cannot find item
error string
Error name
Example:
Not Found
{
"statusCode": 404,
"message": "Cannot find item",
"error": "Not Found"
}
- application/json
- Schema
- Example (auto)
Schema
statusCode integerrequired
HTTP status code
Example:
404
message string
Error message
Example:
Cannot find item
error string
Error name
Example:
Not Found
{
"statusCode": 404,
"message": "Cannot find item",
"error": "Not Found"
}
- application/json
- Schema
- Example (auto)
Schema
statusCode integerrequired
HTTP status code
Example:
404
message string
Error message
Example:
Cannot find item
error string
Error name
Example:
Not Found
{
"statusCode": 404,
"message": "Cannot find item",
"error": "Not Found"
}
- application/json
- Schema
- Example (auto)
Schema
statusCode integerrequired
HTTP status code
Example:
404
message string
Error message
Example:
Cannot find item
error string
Error name
Example:
Not Found
{
"statusCode": 404,
"message": "Cannot find item",
"error": "Not Found"
}
- application/json
- Schema
- Example (auto)
Schema
statusCode integerrequired
HTTP status code
Example:
404
message string
Error message
Example:
Cannot find item
location stringrequired
Where in the request the error occurred
Possible values: [query
, body
, response
, param
]
errors object[]required
{
"statusCode": 404,
"message": "Cannot find item",
"location": "query",
"errors": [
{
"path": "business.id",
"constraints": {
"object_required_property": "Required property"
}
}
]
}
- application/json
- Schema
- Example (auto)
Schema
statusCode integerrequired
HTTP status code
Example:
404
message string
Error message
Example:
Cannot find item
error string
Error name
Example:
Not Found
{
"statusCode": 404,
"message": "Cannot find item",
"error": "Not Found"
}
Authorization: http
name: bearertype: httpscheme: bearerbearerFormat: JWT
- curl
- python
- go
- nodejs
- ruby
- java
- powershell
- CURL
curl -L 'https://api.staging.powerapi.com/api/v2/google/locations/:location_id' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
ResponseClear