Skip to content

Latest commit

 

History

History
76 lines (67 loc) · 2.8 KB

ice-notification-service.mdx

File metadata and controls

76 lines (67 loc) · 2.8 KB

ICE Notification Service

ICE will send POST requests to your server, in which the body will be a JSON representation of the notification.
Your server should return a 200 status code. Any other status code will be considered a failure by our backend.
ICE will retry later (up to 5 times). The retries follow an exponential backoff and jitter mechanism.
After 5 retries, we will stop sending notifications and send you an email containing the event payload.

Sample Payload

{
  "version": "0",
  "id": "6a7e8feb-b491-4cf7-a9f1-bf3703467718",
  "detailType": "ICE Completed Campaign Notification",
  "source": "idn.ice.campaign",
  "timeOfEvent": "2022-23-22T18:43:48Z",
  "timeOfNotification": "2022-23-22T18:43:48Z",
  "detail": {
    "campaignId": 23563,
    "subCampaigns" : [
        {
            "subCampaignId": 235631,
            "status": "COMPLETED"
        },
        {
            "subCampaignId": "235632",
            "status": "COMPLETED"
        },
    ],
    "createdByUserId": 2354,
    "createdByUsername": "Ahmad Sujana",
    "forBusinessUserId": 2644,
    "title": "My Campaign",
    "productName": "Giant Kitchen Ware",
    "categories": [
        {
            "categoryId": 2,
            "category": "Home Living"
        }
    ],
    "objective": "This is the objective of this campaign",
    "startTimeInMillis": 63129836213,
    "endTimeInMillis": 63129836213,
    "createdTimeInMillis": 1680152991343,
    "totalPrice": 685000,
    "totalTax": 75350,
    "totalTaxDeduction": 13700,
    "totalChargeablePriceWithTaxAndDeduction": 746650,
    "invoiceNumber": "INV/2023230/IPL/4399345899",
    "orderNumber": "",
    "status": "COMPLETED"
  }
}

Notification Types

Each notification is identified by its detailType. Below is the list of notification types and their descriptions:

  1. ICE Subcampaign Rejected: A subcampaign was rejected by the influencer.
  2. ICE Awaiting Content: A subcampaign was accepted by the influencer.
  3. ICE Campaign Rejected: All subcampaigns were rejected by the influencer.
  4. ICE Awaiting Content Verification: Influencer has uploaded draft content.
  5. ICE Awaiting POP: Business user approved the draft content.
  6. ICE Awaiting POP Verification: Influencer has uploaded Proof of Post (POP).
  7. ICE Awaiting POI: Business user approved the Proof of Post (POP).
  8. ICE Awaiting POI Verification: Influencer has uploaded Proof of Insight (POI).
  9. ICE Subcampaign Completed:
    • Business user approved the Proof of Insight (POI).
    • Other subcampaigns in the campaign are still incomplete.
  10. ICE Campaign Completed:
    • Business user approved the Proof of Insight (POI).
    • All subcampaigns in the campaign are completed.