API Endpoint

post

Add participants to a program by providing the campaign ID and their email address. Optionally, if a 'referredByCode' or 'referredByEmail' is provided, the user will be added as a referral to the participant with the corresponding code.

Body
idstringRequired

The ID of the campaign.

Example: JCu82f30F1
emailstringRequired

The email address of the participant.

Example: johndoe@example.com
referredByCodestringOptional

Referral code of the participant referring.

Example: 7ZZp9eBG
referredByEmailstringOptional

Email of the participant referring.

Example: john@gmail.com
Responses
200

OK

application/json
post
/api/v1/addParticipant
get

Get campaign program details for the given Id.

Query parameters
idstringRequired

Campaign Id

Responses
200

OK

application/json
get
/api/v1/getCampaign
get

Validate referrer code for a campaign.

Query parameters
campaignIdstringRequired

Campaign Id

codestringRequired

Code

Responses
200

OK

application/json
Responseboolean
get
/api/v1/validateCode
200

OK

get

Get participant details for given campaign Id and email.

Query parameters
emailstringRequired

Email address of the participant

idstringRequired

Campaign Id

Responses
200

OK

application/json
get
/api/v1/getParticipant
200

OK

get

Get all participants of a campaign. API returns 20 records at a time. You can adjust the size by passing in the Pageable params.

Query parameters
idstringRequired

Campaign Id

Responses
200

OK

application/json
get
/api/v1/getAllParticipants
200

OK

get

Return all referrals of a participant. The API returns 20 records at a time. You can adjust the size by passing the Pageable params.

Query parameters
idstringRequired

Campaign Id

emailstringRequired

Email address of the participant

Responses
200

OK

application/json
get
/api/v1/getReferrals
200

OK

post

Mark qualifying event complete for a participant. Marking a qualifying event complete for a participant will result in the referrer being eligible for a reward. Only referred participants can be can complete a qualifying event and hence marked as qualified.

Body
idstringRequired

The ID of the campaign.

Example: JCu82f30F1
emailstringRequired

The email address of the participant.

Example: johndoe@example.com
amountPaidstringOptional

Amount spent/paid by participant.

Example: 250
Responses
200

OK

application/json
post
/api/v1/qualifyParticipant
200

OK

Last updated