MyNearStoresPartners
Lightspeed

Lightspeed OAuth callback

GET
/lightspeed/oauth/callback

Lightspeed redirects the popup here; do not call it directly. Exchanges the code, registers the MyNearStores webhook with Lightspeed in the background, and posts { type: 'LIGHTSPEED_OAUTH_SUCCESS', domain_prefix, bu_id, terminal_id } (or { type: 'LIGHTSPEED_OAUTH_ERROR', error }) to window.opener.

Query Parameters

code*string
domain_prefix*string
state*string

Response Body

Success page.

response?stringtext/html
curl -X GET "https://example.com/lightspeed/oauth/callback?code=string&domain_prefix=string&state=string"
"string"