Campaign Create

{
  "event": "campaign.create",
  "data": {
    "campaign": {
      "id": "clwt29ci3000km5tjanbzdg8v",
      "name": "Campaign Create Webhook",
      "description": "Create campaign webhook test",
      "status": "ACTIVE",
      "isPublic": true,
      "companyId": "clrtng1mm0000jr08lb74ey9s",
      "commissionEnabled": true,
      "commissionPrequalificationRulesEnabled": true,
      "totalNumberOfSalesEligibleForCommission": 4,
      "commissionSalesMinAmount": "0",
      "commissionSalesMaxAmount": "0",
      "commissionCashRewardEnabled": true,
      "commission": "5",
      "commissionType": "PERCENTAGE",
      "commissionPointsEnabled": true,
      "commissionPointUnitPrice": "1000",
      "minPayoutDays": 30,
      "commissionPeriod": 60,
      "roundUpPoints": false,
      "commissionPointsMinPayoutDays": 30,
      "commissionPointsRedeemableDays": 60,
      "discount": "0",
      "discountType": "PERCENTAGE",
      "discountCode": "",
      "code": "create-webhook",
      "signupBonusEnabled": true,
      "signupBonusCashRewardEnabled": true,
      "signupBonus": "400",
      "signupBonusMinPayoutDays": 30,
      "signupBonusPointsMinPayoutDays": 30,
      "signupBonusPoints": "10",
      "signupBonusPointsEnabled": true,
      "cookieDuration": 30,
      "isDefault": false,
      "createdAt": "2024-05-30T09:36:35.212Z",
      "updatedAt": "2024-05-30T09:36:35.212Z"
    },
    "status": "success"
  }
}

Campaign Update

{
  "event": "campaign.update",
  "data": {
    "campaign": {
      "id": "clwt29ci3000km5tjanbzdg8v",
      "name": "Campaign Update Webhook",
      "description": "Update campaign webhook test",
      "status": "ACTIVE",
      "isPublic": true,
      "companyId": "clrtng1mm0000jr08lb74ey9s",
      "commissionEnabled": true,
      "commissionPrequalificationRulesEnabled": true,
      "totalNumberOfSalesEligibleForCommission": 4,
      "commissionSalesMinAmount": "0",
      "commissionSalesMaxAmount": "0",
      "commissionCashRewardEnabled": true,
      "commission": "5",
      "commissionType": "PERCENTAGE",
      "commissionPointsEnabled": true,
      "commissionPointUnitPrice": "1000",
      "minPayoutDays": 30,
      "commissionPeriod": 60,
      "roundUpPoints": false,
      "commissionPointsMinPayoutDays": 30,
      "commissionPointsRedeemableDays": 60,
      "discount": "10",
      "discountType": "PERCENTAGE",
      "discountCode": "discount",
      "code": "create-webhook",
      "signupBonusEnabled": true,
      "signupBonusCashRewardEnabled": true,
      "signupBonus": "400",
      "signupBonusMinPayoutDays": 30,
      "signupBonusPointsMinPayoutDays": 30,
      "signupBonusPoints": "10",
      "signupBonusPointsEnabled": true,
      "cookieDuration": 30,
      "isDefault": false,
      "createdAt": "2024-05-30T09:36:35.212Z",
      "updatedAt": "2024-05-30T09:37:21.985Z"
    },
    "status": "success"
  }
}

Campaign Delete

{
  "event": "campaign.delete",
  "data": {
    "campaign": {
      "id": "clwt2ef84000sm5tjxk9eclq5",
      "name": "Test Campaign ",
      "code": "campaign-code",
      "description": "Campaign ",
      "companyId": "clrtng1mm0000jr08lb74ey9s",
      "isPublic": true
    },
    "status": "success"
  }
}

Affiliate Joined

{
  "event": "affiliate.joined",
  "data": {
    "status": "success",
    "affiliate": {
      "id": "clwt2lp3c0005svyu3gaakxzj",
      "code": "9kn2cbo"
    },
    "campaign": {
      "id": "clvj6wtzr0000ss97jymhur9j",
      "code": "demo",
      "name": "Demo Campaign",
      "isPublic": true,
      "status": "ACTIVE"
    },
    "createdAt": "2024-05-30T09:46:11.401Z"
  }
}

Affiliate Delete

{
  "event": "affiliate.delete",
  "data": {
    "affiliate": {
      "id": "clwt2lp3c0005svyu3gaakxzj",
      "userId": "clrtnfplr0000js08inlix1b4",
      "campaignId": "clvj6wtzr0000ss97jymhur9j",
      "companyId": "clrtng1mm0000jr08lb74ey9s",
      "status": "ACTIVE",
      "code": "9kn2cbo",
      "signUpMethod": "INVITE",
      "points": "0",
      "createdAt": "2024-05-30T09:46:11.401Z",
      "updatedAt": "2024-05-30T09:46:11.401Z"
    },
    "campaign": {
      "id": "clvj6wtzr0000ss97jymhur9j",
      "name": "Demo Campaign",
      "description": "This is a demo campaign",
      "status": "ACTIVE",
      "isPublic": true,
      "companyId": "clrtng1mm0000jr08lb74ey9s",
      "commissionEnabled": true,
      "commissionPrequalificationRulesEnabled": false,
      "totalNumberOfSalesEligibleForCommission": 0,
      "commissionSalesMinAmount": "0",
      "commissionSalesMaxAmount": "0",
      "commissionCashRewardEnabled": true,
      "commission": "5",
      "commissionType": "PERCENTAGE",
      "commissionPointsEnabled": true,
      "commissionPointUnitPrice": "1000",
      "minPayoutDays": 30,
      "commissionPeriod": 60,
      "roundUpPoints": false,
      "commissionPointsMinPayoutDays": 30,
      "commissionPointsRedeemableDays": 60,
      "discount": "500",
      "discountType": "FLAT",
      "discountCode": "code",
      "code": "demo",
      "signupBonusEnabled": true,
      "signupBonusCashRewardEnabled": true,
      "signupBonus": "1000",
      "signupBonusMinPayoutDays": 14,
      "signupBonusPointsMinPayoutDays": 30,
      "signupBonusPoints": "100",
      "signupBonusPointsEnabled": true,
      "cookieDuration": 30,
      "isDefault": false,
      "createdAt": "2024-04-28T07:09:25.333Z",
      "updatedAt": "2024-05-30T09:30:53.782Z"
    },
    "status": "success"
  }
}

Referral Created

{
  "event": "referral.create",
  "data": {
    "campaign": {
      "id": "clvj6wtzr0000ss97jymhur9j",
      "name": "Demo Campaign",
      "description": "This is a demo campaign",
      "status": "ACTIVE",
      "isPublic": true,
      "companyId": "clrtng1mm0000jr08lb74ey9s",
      "commissionEnabled": true,
      "commissionPrequalificationRulesEnabled": false,
      "totalNumberOfSalesEligibleForCommission": 0,
      "commissionSalesMinAmount": "0",
      "commissionSalesMaxAmount": "0",
      "commissionCashRewardEnabled": true,
      "commission": "5",
      "commissionType": "PERCENTAGE",
      "commissionPointsEnabled": true,
      "commissionPointUnitPrice": "1000",
      "minPayoutDays": 30,
      "commissionPeriod": 60,
      "roundUpPoints": false,
      "commissionPointsMinPayoutDays": 30,
      "commissionPointsRedeemableDays": 60,
      "discount": "500",
      "discountType": "FLAT",
      "discountCode": "code",
      "code": "demo",
      "signupBonusEnabled": true,
      "signupBonusCashRewardEnabled": true,
      "signupBonus": "1000",
      "signupBonusMinPayoutDays": 14,
      "signupBonusPointsMinPayoutDays": 30,
      "signupBonusPoints": "100",
      "signupBonusPointsEnabled": true,
      "cookieDuration": 30,
      "isDefault": false,
      "createdAt": "2024-04-28T07:09:25.333Z",
      "updatedAt": "2024-05-30T09:30:53.782Z"
    },
    "affiliate": {
      "id": "clwt2lp3c0005svyu3gaakxzj",
      "userId": "clrtnfplr0000js08inlix1b4",
      "campaignId": "clvj6wtzr0000ss97jymhur9j",
      "companyId": "clrtng1mm0000jr08lb74ey9s",
      "status": "ACTIVE",
      "code": "9kn2cbo",
      "signUpMethod": "INVITE",
      "points": "0",
      "createdAt": "2024-05-30T09:46:11.401Z",
      "updatedAt": "2024-05-30T09:46:11.401Z"
    },
    "referral": {
      "id": "clwt6nmrh000514oecbjk2yx1",
      "affiliateId": "clwt2lp3c0005svyu3gaakxzj",
      "campaignId": "clvj6wtzr0000ss97jymhur9j",
      "companyId": "clrtng1mm0000jr08lb74ey9s",
      "username": "[email protected]",
      "status": "CONVERTED",
      "lastUserAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36",
      "lastIpAddress": "::1",
      "signUpPoints": "100",
      "signupPointsRedemptionDate": "2024-06-29T11:39:55.292Z",
      "signupPointsRedeemed": false,
      "signupBonus": "1000",
      "signupBonusRedemptionDate": "2024-06-13T11:39:55.292Z",
      "signupBonusRedeemed": false,
      "payoutReferenceId": null,
      "createdAt": "2024-05-30T11:39:40.157Z",
      "updatedAt": "2024-05-30T11:41:38.914Z"
    },
    "status": "success",
    "createdAt": "2024-05-30T11:39:40.157Z"
  }
}

Referral Updated

{
  "event": "referral.updated",
  "data": {
    "campaign": {
      "id": "clvj6wtzr0000ss97jymhur9j",
      "name": "Demo Campaign",
      "description": "This is a demo campaign",
      "status": "ACTIVE",
      "isPublic": true,
      "companyId": "clrtng1mm0000jr08lb74ey9s",
      "commissionEnabled": true,
      "commissionPrequalificationRulesEnabled": false,
      "totalNumberOfSalesEligibleForCommission": 0,
      "commissionSalesMinAmount": "0",
      "commissionSalesMaxAmount": "0",
      "commissionCashRewardEnabled": true,
      "commission": "5",
      "commissionType": "PERCENTAGE",
      "commissionPointsEnabled": true,
      "commissionPointUnitPrice": "1000",
      "minPayoutDays": 30,
      "commissionPeriod": 60,
      "roundUpPoints": false,
      "commissionPointsMinPayoutDays": 30,
      "commissionPointsRedeemableDays": 60,
      "discount": "500",
      "discountType": "FLAT",
      "discountCode": "code",
      "code": "demo",
      "signupBonusEnabled": true,
      "signupBonusCashRewardEnabled": true,
      "signupBonus": "1000",
      "signupBonusMinPayoutDays": 14,
      "signupBonusPointsMinPayoutDays": 30,
      "signupBonusPoints": "100",
      "signupBonusPointsEnabled": true,
      "cookieDuration": 30,
      "isDefault": false,
      "createdAt": "2024-04-28T07:09:25.333Z",
      "updatedAt": "2024-05-30T09:30:53.782Z"
    },
    "affiliate": {
      "id": "clwt2lp3c0005svyu3gaakxzj",
      "userId": "clrtnfplr0000js08inlix1b4",
      "campaignId": "clvj6wtzr0000ss97jymhur9j",
      "companyId": "clrtng1mm0000jr08lb74ey9s",
      "status": "ACTIVE",
      "code": "9kn2cbo",
      "signUpMethod": "INVITE",
      "points": "0",
      "createdAt": "2024-05-30T09:46:11.401Z",
      "updatedAt": "2024-05-30T09:46:11.401Z"
    },
    "referral": {
      "id": "clwt6nmrh000514oecbjk2yx1",
      "affiliateId": "clwt2lp3c0005svyu3gaakxzj",
      "campaignId": "clvj6wtzr0000ss97jymhur9j",
      "companyId": "clrtng1mm0000jr08lb74ey9s",
      "username": "[email protected]",
      "status": "CONVERTED",
      "lastUserAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36",
      "lastIpAddress": "::1",
      "signUpPoints": "100",
      "signupPointsRedemptionDate": "2024-06-29T11:39:55.292Z",
      "signupPointsRedeemed": false,
      "signupBonus": "1000",
      "signupBonusRedemptionDate": "2024-06-13T11:39:55.292Z",
      "signupBonusRedeemed": false,
      "payoutReferenceId": null,
      "createdAt": "2024-05-30T11:39:40.157Z",
      "updatedAt": "2024-05-30T11:41:38.914Z"
    },
    "status": "success",
    "createdAt": "2024-05-30T11:39:40.157Z"
  }
}

Referral Converted

{
  "event": "referral.converted",
  "data": {
    "campaign": {
      "name": "Demo Campaign",
      "id": "clvj6wtzr0000ss97jymhur9j",
      "code": "demo",
      "isPublic": true
    },
    "affiliate": {
      "points": "0",
      "id": "clwt2lp3c0005svyu3gaakxzj",
      "code": "9kn2cbo",
      "signUpMethod": "INVITE"
    },
    "referral": {
      "id": "clwt6nmrh000514oecbjk2yx1",
      "username": "[email protected]"
    },
    "referralSale": {
      "id": "clwt6tgzk000e14oed4joczam",
      "referralId": "clwt6nmrh000514oecbjk2yx1",
      "salesReference": "codarat-58ad81a9-05d8-4fd9-aaa8-f283e4ebef56",
      "amount": "10000",
      "commission": "500",
      "discount": "500",
      "duePayoutAt": "2024-06-29T11:44:12.608Z",
      "payoutReferenceId": null,
      "paymentMethod": null,
      "paidAt": null,
      "type": "COMMISSION",
      "status": "SALE",
      "points": "10",
      "pointsRedeemed": false,
      "pointsRedemptionDate": "2024-06-29T11:44:12.608Z",
      "description": null,
      "createdAt": "2024-05-30T11:44:12.609Z",
      "updatedAt": "2024-05-30T11:44:12.609Z"
    },
    "status": "success",
    "createdAt": "2024-05-30T11:44:12.635Z"
  }
}