Retrieve the foreign-system IDs for a location: the location-level mappings (GoHighLevel location ID and MX Merchant merchant ID) plus every patient-scoped GHL/MX Merchant ID anchored to this location (each with its patientId). Location-level rows have a null patientId. Filter by system / idType / externalId; externalId enables reverse lookup (e.g. MX Merchant customerId -> patient). Keyset-paginated.
Security
PartnerApiKey and PartnerOAuth
- Mock serverhttps://api-docs.lobbie.com/_mock/openapi/partner/v2/account/{accountId}/location/{locationId}/external-id
- Productionhttps://api-prod.lobbie.com/lobbie/api/partner/v2/account/{accountId}/location/{locationId}/external-id
curl -i -X GET \
'https://api-docs.lobbie.com/_mock/openapi/partner/v2/account/{accountId}/location/{locationId}/external-id?system=GHL&idType=CONTACT_ID&externalId=string&cursor=string&limit=20' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'x-api-key: YOUR_API_KEY_HERE'Response
{ "externalIds": [ { … } ], "nextCursor": "string" }