ghl_saas_get_locations_by_stripe_id_deprecated
Retrieves company locations filtered by Stripe customer or subscription ID using a company ID. Deprecated legacy fallback requiring an agency-level token; use GET /saas/locations instead.
Instructions
DEPRECATED per spec — superseded by GET /saas/locations. REQUIRES AN AGENCY-LEVEL (Company) TOKEN. [DEPRECATED per official docs — prefer the documented replacement if one exists.] [LEGACY FALLBACK — this endpoint is no longer in the live v3 docs (checked 2026-10-28) but is still served under the legacy Version header. Expect removal; prefer a current equivalent.] Get locations by stripeId with companyId Get locations by stripeCustomerId or stripeSubscriptionId with companyId Endpoint: GET /saas-api/public-api/locations (Version header: 2021-04-15; source: saas-api.json) Requires an Agency (company-level) token.
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": {
"companyId": "<companyId>"
},
"name": "ghl_saas_get_locations_by_stripe_id_deprecated"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| companyId | Yes | Company ID to filter locations | |
| customerId | No | Stripe customer ID to find locations for | |
| subscriptionId | No | Stripe subscription ID to find locations for |