/
Retrieve a referral code
Retrieve one of the caller organisation's referral codes.
Security
oauth2(Required scopes: referral:read)
- Mock serverhttps://developers.ev.energy/_mock/ev.energy-api-v2/referral_codes/{referral_code_id}
- Live API for both production and sandbox requests.https://api.ev.energy/v2/referral_codes/{referral_code_id}
- Staging server for internal testing only.https://api-staging.ev.energy/v2/referral_codes/{referral_code_id}
curl -i -X GET \
https://developers.ev.energy/_mock/ev.energy-api-v2/referral_codes/prom01JZQ8V5T7MKXR9NBCDEFGHJ4A \
-H 'Accept-Language: string' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'EvEnergy-Version: 2'Returns a single referral code.
Unique identifier for the given referral code.
Example:"prom01JZQ8V5T7MKXR9NBCDEFGHJ4A"
Example:"https://api.ev.energy/v2/referral_codes/prom01JZQ8V5T7MKXR9NBCDEFGHJ4A"
The public string a driver types. Immutable once issued.
Example:"SPRING24"
Internal name for the owning organisation's UI. Never shown to drivers.
Example:"Forecourt poster - spring"
Free-text tag the owning organisation groups and reports on.
Example:"spring-forecourt"
INACTIVE refuses new redemptions and preserves every historical redemption.
Enum:"ACTIVE""INACTIVE"
Example:"ACTIVE"
How many times the code may be redeemed.
Enum:"SINGLE_USE""SINGLE_USE_PER_USER""UNLIMITED"
Example:"UNLIMITED"
Response
{ "id": "prom01JZQ8V5T7MKXR9NBCDEFGHJ4A", "url": "https://api.ev.energy/v2/referral_codes/prom01JZQ8V5T7MKXR9NBCDEFGHJ4A", "code": "SPRING24", "label": "Forecourt poster - spring", "campaign_ref": "spring-forecourt", "status": "ACTIVE", "limitation": "UNLIMITED", "created_at": "2026-07-01T09:12:00Z", "performance": { "redeemed_count": 64, "qualified_count": 41, "in_progress_count": 23 } }