Get available referrals
Get available referrals <Tip>HTTP Request <br/>GET https://api.firstpromoter.com/api/v2/company/referrals</Tip>
Request
- Base URLhttps://api.firstpromoter.com/api/v2/company
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Search params. Searches by email, uid, username, website
Array of referral ids to get
Filter the referrals by type (lead or customer)
Filter the referrals by a promoter id
Filter the referrals by state
Filter referrals where customer_since is on or after this date (ISO 8601 format: YYYY-MM-DD)
Filter referrals where customer_since is on or before this date (ISO 8601 format: YYYY-MM-DD)
Filter referrals created on or after this date (ISO 8601 format: YYYY-MM-DD)
Filter referrals created on or before this date (ISO 8601 format: YYYY-MM-DD)
Filter referrals cancelled on or after this date (ISO 8601 format: YYYY-MM-DD)
Filter referrals cancelled on or before this date (ISO 8601 format: YYYY-MM-DD)
Headers
Account id. You can find your Account ID on Your FirstPromoter Dashboard. Navigate to Settings → Integrations
Response
List of referrals
Example response
[
{
"promoter_campaign": {
"promoter": {
"id": 3920164,
"status": "active",
"email": "peluwydo@mailinator.com",
"created_at": "2022-04-26T15:28:24.800Z",
"temp_password": "xxxxxxxxxx",
"default_promotion_id": 4210919,
"pref": "db1znwe",
"default_ref_id": "8yi2epelut",
"note": "This is a note",
"parent_promoter_id": 577918,
"earnings_balance": {
"cash": 50744
},
"current_balance": {
"cash": 20044
},
"paid_balance": {
"cash": 30700
},
"auth_token": "xxxxxxxxxxxxxx"
}
}
}
]Changes
No recorded changes to this operation across all 1 revision of this API.