ghl_saas_get_locations_by_stripe_id
Retrieve agency locations by Stripe customer or subscription ID with a company ID, requiring an agency-level token and both customer and subscription query parameters.
Instructions
REQUIRES AN AGENCY-LEVEL (Company) TOKEN — spec security is Agency-Access-Only. customerId and subscriptionId are both required query params per spec (unlike the deprecated /saas-api twin, where they're optional). Get locations by stripeId with companyId Get locations by stripeCustomerId or stripeSubscriptionId with companyId Endpoint: GET /saas/locations (Version header: v3; source: v3/saas-api-v3.json) Requires an Agency (company-level) token. OAuth scopes: saas/company.read
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"customerId": "<customerId>",
"subscriptionId": "<subscriptionId>"
},
"name": "ghl_saas_get_locations_by_stripe_id"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| customerId | Yes | ||
| subscriptionId | Yes |