List the referral/promo codes owned by the caller's organisation, each with its redemption counts broken down by stage.
The organisation comes from the credential, never from a query parameter: a Clerk session token carries exactly one active organization, and that is the tenant. Codes with no owning organisation (globally administered promo codes) are never returned.
- Mock serverhttps://developers.ev.energy/_mock/ev.energy-api-v2/referral_codes
- Live API for both production and sandbox requests.https://api.ev.energy/v2/referral_codes
- Staging server for internal testing only.https://api-staging.ev.energy/v2/referral_codes
curl -i -X GET \
'https://developers.ev.energy/_mock/ev.energy-api-v2/referral_codes?page_before=xmpl01HNFZM7Q8FXASZXYZ6XM3TQRR&page_after=xmpl01HNFZM7Q8FXASZXYZ6XM3TQRR&page_size=10&status=ACTIVE&campaign_ref=spring-forecourt' \
-H 'Accept-Language: string' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'EvEnergy-Version: 2'Returns the organisation's referral codes.
Provides links to the previous and next pages of data, if they exist.
Indicates the version of the API that generated this response. If EvEnergy-Version was not specified in the request, this will be your OAuth application's default version.
The maximum number of requests that can be made to this endpoint per hour. Defaults to 1000 but may vary per client.
The number of requests remaining until this client's rate limit is reached.
Unique identifier for the given referral code.
The public string a driver types. Immutable once issued.
Internal name for the owning organisation's UI. Never shown to drivers.
Free-text tag the owning organisation groups and reports on.
INACTIVE refuses new redemptions and preserves every historical redemption.
How many times the code may be redeemed.
[ { "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": { … } } ]