VPL360_IPExtractPromo
This Integration Procedure accepts an array of product codes
and returns an array of promotions corresponding to the product codes, if any.
Sample Input
1{
2 "Promo": [
3 {
4 "ProdCode": "VPL-PlayBundesliga"
5 },
6 {
7 "ProdCode": "VPL-PlayMarvel"
8 }
9 ]
10}|
Parameter |
Required/Optional |
|---|---|
|
ProdCode |
Required |
|
Promo |
Required |
Sample Output
1[
2 {
3 "promoId": [
4 {
5 "Promoitem": {
6 "SubType": "ADD-ON",
7 "Productcode": "VPL-PlayMarvel",
8 "ProdName": "PromotionItem__ca3x3h000000LkRm",
9 "ProdDescription": "Marvel Universe Movies",
10 "Name": "Play Marvel"
11 },
12 "promocode": "VPLMovie-Promo",
13 "promoDescription": "This promotion is for Movies Channels.",
14 "Startdate": "2020-07-31T18:30:00.000Z",
15 "PromoitemName": "VPLMoviePromo",
16 "Id": "a3z4W000000gnY2QAI",
17 "Active": true
18 }
19 ]
20 },
21 {
22 "promoId": [
23 {
24 "Promoitem": {
25 "SubType": "ADD-ON",
26 "Productcode": "VPL-PlayBundesliga",
27 "ProdName": "PromotionItem__ca3x3h000000LkS6",
28 "ProdDescription": "Watch German football League Bundesliga",
29 "Name": "Play Bundesliga"
30 },
31 "promocode": "VPLSports-Promo",
32 "promoDescription": "This Promotion is for Sports events.",
33 "Startdate": "2020-07-31T18:30:00.000Z",
34 "PromoitemName": "VPLSportsPromo",
35 "Id": "a3z4W000000gnY3QAI",
36 "Active": true
37 }
38 ]
39 }
40]