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
POST /api/v1/addParticipant HTTP/1.1
Host: app.referralrocket.io
Content-Type: application/json
Accept: */*
Content-Length: 112

{
  "id": "JCu82f30F1",
  "email": "johndoe@example.com",
  "referredByCode": "7ZZp9eBG",
  "referredByEmail": "john@gmail.com"
}
{
  "email": "johndoe@example.com",
  "firstName": "john",
  "lastName": "doe",
  "referralCode": "8Mnu09TD",
  "referredByCode": "7ZZp9eBG",
  "createdOn": "2023-11-04T15:41:08.828+00:00",
  "campaignId": "JCu82f30F1",
  "shareLink": "https://referralrocket.io/campaign?id=JCu82f30F1&referralCode=8Mnu09TD",
  "totalReferrals": 0,
  "referralReward": 0,
  "referralRewardRedeemed": 0,
  "referralRewardBalance": 0,
  "refereeReward": 20,
  "refereeRewardRedeemed": 0,
  "refereeRewardBalance": 0,
  "rewardEventCompleted": false,
  "fraudScore": "Low"
}
get

Get campaign program details for the given Id.

Query parameters
idstringRequired

Campaign Id

Responses
200

OK

application/json
get
GET /api/v1/getCampaign HTTP/1.1
Host: app.referralrocket.io
Accept: */*
{
  "campaignId": "JCu82f30F1",
  "campaignName": "Q4 Growth Program",
  "status": "Active",
  "createdOn": "2023-10-11T00:36:27.753+00:00",
  "end": "2024-10-11T00:36:27.753+00:00",
  "hostURL": "https://referralrocket.io/campaign?id=JCu82f30F1",
  "paused": false,
  "ended": false,
  "rewardHeader": "Refer a friend and win",
  "rewardDescription": "Give friends $20 off their first order, and you'll get $20 when they make a purchase.",
  "shareHeader": "Refer a friend and win",
  "shareDescription": "Use your unique link to give friends $20 off their first order, and you'll get $20 when they make a purchase.",
  "referrerRewardValue": 20,
  "refereeRewardValue": 20,
  "rewardType": "Monetary",
  "participants": 8
}
get

Validate referrer code for a campaign.

Query parameters
campaignIdstringRequired

Campaign Id

codestringRequired

Code

Responses
200

OK

application/json
Responseboolean
get
GET /api/v1/validateCode HTTP/1.1
Host: app.referralrocket.io
Accept: */*
200

OK

true
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
GET /api/v1/getParticipant HTTP/1.1
Host: app.referralrocket.io
Accept: */*
200

OK

{
  "email": "johndoe@example.com",
  "firstName": "john",
  "lastName": "doe",
  "referralCode": "8Mnu09TD",
  "referredByCode": "7ZZp9eBG",
  "createdOn": "2023-11-04T15:41:08.828+00:00",
  "campaignId": "JCu82f30F1",
  "shareLink": "https://referralrocket.io/campaign?id=JCu82f30F1&referralCode=8Mnu09TD",
  "totalReferrals": 0,
  "referralReward": 0,
  "referralRewardRedeemed": 0,
  "referralRewardBalance": 0,
  "refereeReward": 20,
  "refereeRewardRedeemed": 0,
  "refereeRewardBalance": 0,
  "rewardEventCompleted": false,
  "fraudScore": "Low"
}
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
GET /api/v1/getAllParticipants HTTP/1.1
Host: app.referralrocket.io
Accept: */*
200

OK

[
  {
    "email": "johndoe@example.com",
    "firstName": "john",
    "lastName": "doe",
    "referralCode": "8Mnu09TD",
    "referredByCode": "7ZZp9eBG",
    "createdOn": "2023-11-04T15:41:08.828+00:00",
    "campaignId": "JCu82f30F1",
    "shareLink": "https://referralrocket.io/campaign?id=JCu82f30F1&referralCode=8Mnu09TD",
    "totalReferrals": 0,
    "referralReward": 0,
    "referralRewardRedeemed": 0,
    "referralRewardBalance": 0,
    "refereeReward": 20,
    "refereeRewardRedeemed": 0,
    "refereeRewardBalance": 0,
    "rewardEventCompleted": false,
    "fraudScore": "Low"
  }
]
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
GET /api/v1/getReferrals HTTP/1.1
Host: app.referralrocket.io
Accept: */*
200

OK

[
  {
    "email": "johndoe@example.com",
    "firstName": "john",
    "lastName": "doe",
    "referralCode": "8Mnu09TD",
    "referredByCode": "7ZZp9eBG",
    "createdOn": "2023-11-04T15:41:08.828+00:00",
    "campaignId": "JCu82f30F1",
    "shareLink": "https://referralrocket.io/campaign?id=JCu82f30F1&referralCode=8Mnu09TD",
    "totalReferrals": 0,
    "referralReward": 0,
    "referralRewardRedeemed": 0,
    "referralRewardBalance": 0,
    "refereeReward": 20,
    "refereeRewardRedeemed": 0,
    "refereeRewardBalance": 0,
    "rewardEventCompleted": false,
    "fraudScore": "Low"
  }
]
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
POST /api/v1/qualifyParticipant HTTP/1.1
Host: app.referralrocket.io
Content-Type: application/json
Accept: */*
Content-Length: 68

{
  "id": "JCu82f30F1",
  "email": "johndoe@example.com",
  "amountPaid": "250"
}
200

OK

{
  "email": "johndoe@example.com",
  "firstName": "john",
  "lastName": "doe",
  "referralCode": "8Mnu09TD",
  "referredByCode": "7ZZp9eBG",
  "createdOn": "2023-11-04T15:41:08.828+00:00",
  "campaignId": "JCu82f30F1",
  "shareLink": "https://referralrocket.io/campaign?id=JCu82f30F1&referralCode=8Mnu09TD",
  "totalReferrals": 0,
  "referralReward": 0,
  "referralRewardRedeemed": 0,
  "referralRewardBalance": 0,
  "refereeReward": 20,
  "refereeRewardRedeemed": 0,
  "refereeRewardBalance": 0,
  "rewardEventCompleted": false,
  "fraudScore": "Low"
}

Last updated