create campaigns Creates a new campaign. Options: Create a new source and offer code Creating a new source code Assign existing offer codes to new source code Assign existing offer codes to existing source code For offer assignments please don't fill in offer related fields! Path mapping(intern): /net/dsb/avs3/MasterData/createCampaigns-1.0.0 SAP REST: /CREATE_CAMPAIGN URL POST: /rest/{client}/campaigns?sp={sp}&so={so}&check={check} ParameterDescription client client id sp service provider. (mandatory if the user account can use different service provider values) so sales organization. (mandatory if the user account is only allowed to use some sales orgas of the client) checktrue / false Request Body Examples 1. Create a new source and offer code with random names { "sourceCode": "", "sourceCodeVariant": "", "sourceCodeDesc": "Test", "validFromDate": "2017-01-01", "validToDate": "9999-12-31", "salesChannel": "", "mediaGroup": "", "mediaCode1": "C", "mediaCode2": "2", "mediaCode3": "E", "glAccount": "110009", "offerCode": "", "publication": "00002800", "edition": "00002800", "offerDesc": "13 issues", "offerType": "RN", "marketingText": "Marketing text", "priceUplType": "", "priceUplMethod": "ALL", "term": "13", "freeCycle": "", "shopId": "000", "rejectionRule": 0, "bundleKey": "", "freeIssues": "", "freeIssuesHandling": "", "paymDueImmediately": false, "shopCampaign": "", "giftSet": "STANDARD", "gifts": [ "Gift1", "Gift2", "Gift3" ], "prices": [ { "priceListType": "01", "postageKey": "DM", "price": 220, "currencyKey": "", "contPhase": "" } ] } 2. Create an new step up offer code and assign it to an existing source code { "sourceCode": "Test123", "offerCode": "", "publication": "00002800", "offerDesc": "Offer description", "offerType": "DD", "marketingText": "Marketing text", "priceUplType": "", "priceUplMethod": "ALLC", "glAccount": "110009", "term": "", "freeCycle": "", "rejectionRule": 0, "freeIssues": "", "freeIssuesHandling": "", "paymDueImmediately": false, "shopCampaign": "", "contPaymSetup": [ { "contPhase": "1", "contPaymTerm": "M1", "contNoClaims": 3 }, { "contPhase": "2", "contPaymTerm": "M2", "contNoClaims": 10 }, { "contPhase": "3", "contPaymTerm": "M3", "contNoClaims": 9999 } ], "giftSet": "STANDARD", "gifts": [ "Gift1", "Gift2", "Gift3" ], "PRICES": [ { "contPhase": "1" "priceListType": "01", "postageKey": "DM", "price": 1, "currencyKey": "GBP" }, { "contPhase": "2" "priceListType": "01", "postageKey": "DM", "price": 20, "currencyKey": "GBP" }, { "contPhase": "3" "priceListType": "01", "postageKey": "DM", "price": 50, "currencyKey": "GBP" } ] } 3. Create a bundle new step up campaign { "sourceCode": "Test123", "offerCode": "", "publication": "00002800", "offerDesc": "Offer description", "offerType": "BD", "marketingText": "MarketingText", "priceUplType": "", "priceUplMethod": "ALLC", "mediaCode1": "C", "mediaCode2": "2", "mediaCode3": "E", "glAccount": "110009", "term": "", "freeCycle": "", "rejectionRule": 0, "bundleKey": "BU_KEY", "freeIssues": "", "freeIssuesHandling": "", "contPaymSetup": [ { "contPhase": "1", "contPaymTerm": "M1", "contNoClaims": 3 }, { "contPhase": "2", "contPaymTerm": "M2", "contNoClaims": 10 }, { "contPhase": "3", "contPaymTerm": "M3", "contNoClaims": 9999 } ], "giftSet": "STANDARD", "gifts": [ "Gift1", "Gift2", "Gift3" ], "PRICES": [ { "contPhase": "1" "priceListType": "01", "postageKey": "DM", "price": 1, "currencyKey": "GBP" }, { "contPhase": "2" "priceListType": "01", "postageKey": "DM", "price": 10, "currencyKey": "GBP" }, { "contPhase": "3" "priceListType": "01", "postageKey": "DM", "price": 30, "currencyKey": "GBP" } } ] } 4. Assign existing offer codes to existing source code { "sourceCode": "0002", "assignOffers": [ "1124R", "1124W" ] } 5. Assign existing offer codes to new source code { "sourceCode": "", "sourceCodeVariant": "", "sourceCodeDesc": "Description", "sourceCodeDescLong": "SC description", "validFromDate": "2017-01-01", "validToDate": "9999-12-31", "salesChannel": "MA", "mediaGroup": "", "mediaCode1": "C", "mediaCode2": "2", "mediaCode3": "E", "glAccount": "110009", "assignOffers": [ "1124R", "1124W" ] } 6. Create a source code only { "sourceCode": "Test12", "sourceCodeVariant": "", "sourceCodeDesc": "d", "sourceCodeDescLong": "Test Lang", "validFromDate": "2017-01-01", "validToDate": "9999-12-31", "salesChannel": "MA", "mediaGroup": "", "mediaCode1": "C", "mediaCode2": "2", "mediaCode3": "E", "glAccount": "110009" } 7. Two options are available for creating an RN offer code - 7.1. Term of the phase is provided in field “term” { "sourceCode": "TEST", "offerCode": "XXXX1", "publication": "00000100", "offerDesc": "Desc", "offerType": "RN", "marketingText": "Text", "freeIssues": "", "term": "M1", "freeIssuesHandling": "", "prices": [ { "priceListType": "01", "postageKey": "DM", "price": 1, "currencyKey": "GBP", } ] } - 7.2. Term can be provided as a phase within “contPaymSetup”. Therefore RN and DD offers can set up in a similar way. { "sourceCode": "TEST", "offerCode": "XXXX2", "publication": "00000100", "offerDesc": "Desc", "offerType": "RN", "marketingText": "Text", "freeIssues": "", "term": "", "freeIssuesHandling": "", "contPaymSetup": [ { "contPaymTerm": "M1" } ], "prices": [ { "priceListType": "01", "postageKey": "DM", "price": 22, "currencyKey": "GBP", } ] } The Body of the Post Request contains a JSON document with campaign relevant data. ParameterType / Length Description Mandatory reuse SC Mandatory new SC sourceCodeC/10Source code (if blank the system will generate the SC name automatically)X sourceCodeVariantC/1Source code variation sourceCodeDescC/20Source code descriptionX sourceCodeDescLongC/50Source code description long validFromDateD/8Source code valid-fromX validToDateD/8Source code valid-toX salesChannelC/2Sales Channel salesOrgC/4Sales Organization in source code mediaGroupC/1Media group (used for statistic grouping)X mediaCode1C/1Exceeded logic for creating the media group. Only active on 670.X mediaCode2C/1Exceeded logic for creating the media group. Only active on 670.X mediaCode3C/1Exceeded logic for creating the media group. Only active on 670.X glAccountC/10GL acocunt offerCodeC/5Offer code (if blank the system will generate the offer name automatically) publicationC/8Publication X editionC/8Edition offerDescC/100Offer descriptionX offerTypeC/2Offer type of the offer from current cycle (RN, DD, BU, BD)X giftSetC/10Gift set marketingTextC/100Marketingtext of the offer from current cycle priceUplTypeC/1Price shop upload type ('A' = all prices, ' ' = only specified prices) priceUplMethodC/10Possible payment types (INV, DD, CC, ALL… ) termC/2Payment term (Y1, 06 …) only for offer type RN freeCycleBFree cycle (true = free, false = payed cycle) shopIdC/3Shop ID rejectionRuleN/3Rejection rule Blacksheep detection. Active on 670. bundleKeyC/10Bundle Key (necessary to set up Bu and BD campaigns) freeIssuesC/2Free issues in terms (e.g. M1 = one month, 01 = 1 issue … ) freeIssuesHandlingC/1 RN/BU: ' ' - Free cycle '1' - Free cycle before payed one '2' - Free cycle after payed one '3' - Free continuous cycle '4' -Free Cycle before payed CC cycle DD/BD: D = free issues before Direct Debit (delayed 1st claim) K = follow-up cycle in shopCampaignC/10Shop campaign used to group articles in the shop (offer Code level) shopEditionCampaignC/10Shop campaign used to group articles in the shop (source Code level) (BETA) paymDueImmediatelybooleanPayment will be due immediately giftReleaseAtClaimN/3Claim which will trigger the gift release createDigitalCopybooleanCreate digital copy of the offer code setup (print - digital relationship needs to be maintained first) contPaymSetup contPhaseC/1 1 = first phase, 2 = second phase, 3 = third phase contPaymTermC/2Payment term (Y1, 06 …) contNoClaimsN/4Number of claims (claim last phase = 9999) gifts giftC/18gift (max 3) prices contPhaseC/1 1 = first phase, 2 = second phase, 3 = third phase priceListTypeC/2Price list type postageKeyC/2Postage key (for shipping costs ascertainment) priceC/11Price currencyKeyC/5Currency assignOffers offerCodeC/5offer codes Response The response is a JSON document containing the result. ElementDescription statusOK or NOTOK codeinternal error code messagelist of messages in case of an error campaign sourceCode Source code offerCodes Offer codes which were created / assigned publication Publication code shopArticles generated shop articles (BETA) Example: { "status": "NOTOK", "code": XXXX, "message": "Please enter source description", "campaign": { "sourceCode": "", "offerCodes": [], "publication": "", "shopArticles" [] } } { "status": "OK", "code": 0, "message": "Test successful", "campaign": { "sourceCode": "", "offerCodes": [ "1124R", "1124W" ], "publication": "", "shopArticles" [897270, 897271] } } This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.OKMore information