Google — connect location to review site

Connect a Google Business Profile location to a store review site. Persists the account/location/place ids + token, sets sendto_scrapper=Y, url_status=enable, connection_status=connected; soft-deletes obsolete RD-scraped Google reviews for the (store, Google) pair (Google's own API becomes source of truth). And records a gbp_connection_events row (CONNECTED / RECONNECTED / ACCOUNT_SWITCHED). Emits audit STORE_REVIEW_SITE_OAUTH_CONNECTED (and GOOGLE_OAUTH_WIPED_RD_REVIEWS when rows are wiped).

Auth

  • Auth-optional. Bearer token (api guard, scoped by an ownership check) OR an invite hash (no token) whose encoded store must own store_review_site_id.

Rate limit

  • 30 requests/min per IP (public).

Body

FieldTypeRequiredNotes
store_review_site_idintegerRequiredMust exist; in caller scope (an ownership check) unless using hash.
google_access_token_idintegerRequiredthe Google connection's id from the token exchange.
account_namestring (≤255)RequiredGoogle account resource, e.g. accounts/123. No angle brackets.
location_namestring (≤255)RequiredGoogle location resource, e.g. locations/456. No angle brackets.
google_place_idstringRequiredGoogle Place ID.
mapsUriurl (≤2000)RequiredGoogle Maps URL → stored as review_site_url.
newReviewUriurl (≤2000)RequiredWrite-review URL → stored as landing_page_url.
google_responseanyOptionalRaw Google API payload.
force_updateinteger (0,1)OptionalRe-link even if a different location is already connected (wipes prior reviews).
hashstringOptionalInvite hash [store_id, 15]; grants access without a token, must match the row's store.

Behaviour

  • 200 on connect. 400 if the location belongs to a different location without force_update, or (production) if the Google location is already linked elsewhere.

Errors: 422 on validation failure.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
integer
string
string
string
string
string
integer
Responses

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json