curl --request PUT \
--url https://api.gigstack.io/v2/teams/{id}/integrations/shopify-app \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"shop": "tienda-ejemplo.myshopify.com"
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({shop: 'tienda-ejemplo.myshopify.com'})
};
fetch('https://api.gigstack.io/v2/teams/{id}/integrations/shopify-app', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.gigstack.io/v2/teams/{id}/integrations/shopify-app"
payload = { "shop": "tienda-ejemplo.myshopify.com" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"success": true,
"data": {
"legacyWebhookActive": false
},
"timestamp": 1767225600000
}Link the Shopify app to a team
Records that the team is linked to the gigstack Shopify app for one store. The Shopify app calls it right after the merchant approves the OAuth connection.
Only a gigstack OAuth access token can call it. API keys, dashboard sessions and MCP
tokens get 403 oauth_token_required. {id} must be the tokenās own team; any other id
answers 404 not_found. The token must have been granted to the Shopify app for this
same store: its authorization request was started with from=Shopify (<store>.myshopify.com),
and that value is recorded as the tokensā client tag. Otherwise the call answers
403 client_mismatch.
The person who approved the OAuth connection must still be a member of the team
(403 not_a_member). A team links one store at a time: linking a different store replaces
the previous link and returns that store in replacedShop; the replaced storeās tokens are
left active. Linking the same store again only refreshes the link.
A new link counts toward the planās integration limit. On plans with an integration limit
(maxIntegrations), a team that has reached it gets 403 integration_limit; a team that is
already linked is not checked again. The Shopify app and the legacy Shopify webhook
integration count as one integration together.
legacyWebhookActive: true means the team also has the legacy Shopify integration (a
webhook pasted into the store) connected. This route never changes it. Ask the merchant to
remove that webhook, or the same orders can be invoiced by both paths.
The link is team configuration: a test-mode access token (access_token_test) changes the
same link as a live one.
curl --request PUT \
--url https://api.gigstack.io/v2/teams/{id}/integrations/shopify-app \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"shop": "tienda-ejemplo.myshopify.com"
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({shop: 'tienda-ejemplo.myshopify.com'})
};
fetch('https://api.gigstack.io/v2/teams/{id}/integrations/shopify-app', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.gigstack.io/v2/teams/{id}/integrations/shopify-app"
payload = { "shop": "tienda-ejemplo.myshopify.com" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"success": true,
"data": {
"legacyWebhookActive": false
},
"timestamp": 1767225600000
}Authorizations
Authentication Method: HTTP Bearer token.
The runtime requires the literal Bearer prefix ā a bare token in the
Authorization header is rejected with 401 unauthorized.
Header Format: Authorization: Bearer YOUR_API_KEY
Your API key is a JWT. Live keys operate on live data (livemode: true);
test keys operate on isolated test data (livemode: false).
Get your key at: app.gigstack.pro/settings?tab=api
Errors: credential failures are answered by the authentication layer with a raw
{ "message": ⦠} body, not the standardized envelope ā 401 for a missing, malformed or
expired token, 403 for a revoked key or a plan without API access. See the Unauthorized
and AuthForbidden responses.
Path Parameters
Body
The store's permanent domain, <store>.myshopify.com, not a custom domain. The
store name may contain letters, digits and hyphens and cannot start with a hyphen.
Surrounding spaces are trimmed and the value is lowercased before it is checked.
Must be the store named in the token's client tag.
"tienda-ejemplo.myshopify.com"