api/v1/customer/stores/{id}/in-app-promotions

GET

/api/v1/customer/stores/{id}/in-app-promotions

This API method will retrieve all valid in-app promotions for the logged in user.

Sample Request body

Nothing required

Sample Response

{
   "status":true,
   "items":[
      {
         "id":"LZWBJx0PmYkEwjGdr2vO",
         "name":"Test Promotion - August 2022",
         "imageType":"image\/jpg",
         "adId":"ADID-OI085-D4",
         "viewLink":"http:\/\/controlcenter.ftx\/ia-promo\/TFpXQkp4MFBtWWtFd2pHZHIydk8=\/view?c=TmtkVjZXR3ZFa1hsZTNCcHJYZzQ=",
         "clickLink":"http:\/\/controlcenter.ftx\/ia-promo\/TFpXQkp4MFBtWWtFd2pHZHIydk8=\/link?c=TmtkVjZXR3ZFa1hsZTNCcHJYZzQ=",
         "image":"[Base64Image]",
         "viewedPreviously":true
      }
   ]
}
{
  "status": false,
  "errorCode": "NO_ITEMS",
  "message": "No product mapping exists for this customer"
}
{
  "status": false,
  "errorCode": "NO_ITEMS",
  "message": "No in-app promotions are available"
}