Authorizations
API key passed as a Bearer token in the Authorization header. You can find your API Key on Your FirstPromoter Dashboard. Navigate to Settings → Integrations section → Manage API Keys
Headers
Account id. You can find your Account ID on Your FirstPromoter Dashboard. Navigate to Settings → Integrations
Path Parameters
Id of the promoter
Body
Email address of the promoter
Find by attribute. Required when you want to find the promoter using another parameter like the email, auth_token, ref_token, or promo_code instead of an ID.
Your request should follow the format https://api.firstpromoter.com/api/v2/company/promoters/{email, auth_token, ref_token, or promo_code}
email
, auth_token
, ref_token
, promo_code
Cust ID of the promoter
Custom fields must be a Hash with the keys being the ones from the company custom fields and values must be String or Array of Strings. These are based on the custom fields that you set in your Settings > Affiliate portal > Custom fields.
Note: Each item will have to be set as custom_fields[my_custom_field_key]: my_custom_field_value
Destroy W8 form
Destroy W9 form
Response
Promoter updated successfully
Id of the promoter
Email address of the promoter
Full name of the promoter
Cust ID of the promoter
Optional note about the promoter
State of the promoter.
pending
, accepted
, rejected
, blocked
, inactive
, not_set
Performance statistics for the promoter
Whether the promoter has customized settings
List of potential fraud flags
Whether the promoter has confirmed their account
Status of the promoter's invoice details
pending
, approved
, denied
Date and time when the promoter joined.
Date and time of the promoter's last login.
Date and time when the promoter was archived, if applicable.
Custom fields for the promoter, based on company settings. This is a key-value pair object where keys are custom field identifiers and values are the corresponding data.
URL for the promoter to set up their password
Date and time of the promoter's first activity.
Date and time when the promoter was created.
ISO date format (YYYY-MM-DD HH:MM:SS)
Date and time when the promoter was last updated.
ISO date format (YYYY-MM-DD HH:MM:SS)
List of campaigns associated with the promoter