ghl_affiliate_validate_referral_id
Checks whether a referral ID is available before use, accounting for location-wide uniqueness so taken IDs report as unavailable even if from another campaign.
Instructions
Validate Referral Id Check whether a referral id is free to use. Referral ids are unique across a location, so a taken id reports as unavailable even when it belongs to a different campaign. Endpoint: GET /affiliate-manager/affiliate-campaign/{locationId}/referral-id/validate (Version header: v3; source: v3/affiliate-manager-v3.json) Requires a Sub-Account (location) token. OAuth scopes: affiliate-manager.readonly
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| locationId | Yes | Location Id | |
| referralId | Yes | Referral id to check, as it would appear in a referral link |