curl --request POST \
--url https://api.gigstack.io/v2/teams/{id}/integrations/stripe/connection-sessions/{operationId}/cancel \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"livemode": true
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({livemode: true})
};
fetch('https://api.gigstack.io/v2/teams/{id}/integrations/stripe/connection-sessions/{operationId}/cancel', 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/stripe/connection-sessions/{operationId}/cancel"
payload = { "livemode": True }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"data": {
"operation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"team_id": "<string>",
"billing_account_id": "<string>",
"requester": {
"credential_kind": "firebase",
"source_team_id": "<string>",
"credential_id": "<string>",
"person_id": "<string>"
},
"method": "oauth",
"livemode": true,
"expected_generation": 4503599627370495,
"generation": 4503599627370495,
"status": "pending",
"created_at": 4503599627370495,
"expires_at": 4503599627370495,
"updated_at": 4503599627370495,
"steps": {
"oauth_exchange": {
"status": "not_started",
"remote_id": "<string>"
},
"account_verification": {
"status": "not_started",
"remote_id": "<string>"
},
"manual_webhook": {
"status": "not_started",
"remote_id": "<string>"
},
"connect_webhook": {
"status": "not_started",
"remote_id": "<string>"
},
"transfer_webhook": {
"status": "not_started",
"remote_id": "<string>"
},
"credential_commit": {
"status": "not_started",
"remote_id": "<string>"
},
"account_onboarding_link": {
"status": "not_started",
"remote_id": "<string>"
},
"platform_account_create": {
"status": "not_started",
"remote_id": "<string>"
}
},
"provider_revocation": "not_performed",
"provider_webhook_removal": "not_performed",
"provider_account_id": "<string>"
},
"timestamp": 4503599627370495,
"message": "<string>"
}{
"success": false,
"error": {
"code": "validation_failed",
"message": "Request validation failed",
"details": [
"currency: Field is required"
]
},
"timestamp": 1767225600000
}{
"success": false,
"error": {
"code": "validation_failed",
"message": "Request validation failed",
"details": [
"currency: Field is required"
]
},
"timestamp": 1767225600000
}{
"success": false,
"error": {
"code": "validation_failed",
"message": "Request validation failed",
"details": [
"currency: Field is required"
]
},
"timestamp": 1767225600000
}{
"success": false,
"error": {
"code": "validation_failed",
"message": "Request validation failed",
"details": [
"currency: Field is required"
]
},
"timestamp": 1767225600000
}{
"success": false,
"error": {
"code": "validation_failed",
"message": "Request validation failed",
"details": [
"currency: Field is required"
]
},
"timestamp": 1767225600000
}Cancel untouched Stripe setup
Current original team machine grant or current personal editor. Save operation UUID before transport; unknown results require read-only reconciliation. API-key creator history is not impersonated. Local disconnect removes shared live/test credential custody but does not revoke provider authorization or remove remote webhooks; in-flight authorized calls are not cancelled.
curl --request POST \
--url https://api.gigstack.io/v2/teams/{id}/integrations/stripe/connection-sessions/{operationId}/cancel \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"livemode": true
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({livemode: true})
};
fetch('https://api.gigstack.io/v2/teams/{id}/integrations/stripe/connection-sessions/{operationId}/cancel', 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/stripe/connection-sessions/{operationId}/cancel"
payload = { "livemode": True }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"data": {
"operation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"team_id": "<string>",
"billing_account_id": "<string>",
"requester": {
"credential_kind": "firebase",
"source_team_id": "<string>",
"credential_id": "<string>",
"person_id": "<string>"
},
"method": "oauth",
"livemode": true,
"expected_generation": 4503599627370495,
"generation": 4503599627370495,
"status": "pending",
"created_at": 4503599627370495,
"expires_at": 4503599627370495,
"updated_at": 4503599627370495,
"steps": {
"oauth_exchange": {
"status": "not_started",
"remote_id": "<string>"
},
"account_verification": {
"status": "not_started",
"remote_id": "<string>"
},
"manual_webhook": {
"status": "not_started",
"remote_id": "<string>"
},
"connect_webhook": {
"status": "not_started",
"remote_id": "<string>"
},
"transfer_webhook": {
"status": "not_started",
"remote_id": "<string>"
},
"credential_commit": {
"status": "not_started",
"remote_id": "<string>"
},
"account_onboarding_link": {
"status": "not_started",
"remote_id": "<string>"
},
"platform_account_create": {
"status": "not_started",
"remote_id": "<string>"
}
},
"provider_revocation": "not_performed",
"provider_webhook_removal": "not_performed",
"provider_account_id": "<string>"
},
"timestamp": 4503599627370495,
"message": "<string>"
}{
"success": false,
"error": {
"code": "validation_failed",
"message": "Request validation failed",
"details": [
"currency: Field is required"
]
},
"timestamp": 1767225600000
}{
"success": false,
"error": {
"code": "validation_failed",
"message": "Request validation failed",
"details": [
"currency: Field is required"
]
},
"timestamp": 1767225600000
}{
"success": false,
"error": {
"code": "validation_failed",
"message": "Request validation failed",
"details": [
"currency: Field is required"
]
},
"timestamp": 1767225600000
}{
"success": false,
"error": {
"code": "validation_failed",
"message": "Request validation failed",
"details": [
"currency: Field is required"
]
},
"timestamp": 1767225600000
}{
"success": false,
"error": {
"code": "validation_failed",
"message": "Request validation failed",
"details": [
"currency: Field is required"
]
},
"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
^[A-Za-z0-9_-]{1,128}$^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$