curl --request DELETE \
--url https://api.gigstack.io/v2/teams/{id}/integrations/shopify-app \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
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"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"success": true,
"data": {
"revoked": 3,
"unlinked": true
},
"timestamp": 1767225600000
}Disconnect the Shopify app
Disconnects the callerās OAuth connection and clears the teamās Shopify app link. The Shopify app calls it when the merchant disconnects gigstack or uninstalls the app. No request body.
Only a gigstack OAuth access token can call it (403 oauth_token_required otherwise), and
{id} must be the tokenās own team (404 not_found otherwise).
It revokes every OAuth token of the callerās connection: the live and test tokens minted for the same team, the same approving person and the same client tag, including the token that made this call. The teamās other OAuth clients, and the same client approved by another person, stay connected. A token issued before client tags were recorded has none, and revokes only itself.
The link is cleared only when the tokenās client tag is the Shopify appās for the store the
team is linked to (unlinked: true). Otherwise unlinked is false and the link is left as
is, for example after the team was linked to another store.
Repeating the call fails with 401, because the token that made it is now revoked.
curl --request DELETE \
--url https://api.gigstack.io/v2/teams/{id}/integrations/shopify-app \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
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"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"success": true,
"data": {
"revoked": 3,
"unlinked": true
},
"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.