Campaign standard
Campaigns is separated into two groups:
Product based campaigns - provided with product data.
Institution based campaigns - Periodical campaigns. Applies for whole invoice
Campaign object contains three parameters – name, code and operation.
Campaign code contains data that can determine for who is the campaign valid and campaign type. Campaign operation is conditional operation written in Javascript.
Campaign code calculation
Campaign code = CLIENT_IDENTIFICATION
(1 place) + CLIENT_CARD_IDENTIFICATION
(8 places) + CAMPAIGN_CODE
(3 places)
campaign code starting with 0 is product based campaign
campaign code starting with 5 is institution based campaign
Client card identification calculation
00000000
– Available for all
00000SKP
– Available only for clients who has customer card with machine readable code (SKP)
Example
Amount modification campaign available for all clients.
Code:
B00000000001
Amount base unit price campaign available only clients who has SKP customer card
Code:
C00000SKP002
Campaign type descriptions
Amount modification campaign operation description (001)
Input parameters
Output parameters
Example
Client who has SKP client card will get every second piece for free.
Amount based unit price campaign (002)
Input parameters
Output parameters
Example
Customer will get 50 cent discount for each product if customer will buy at least 5 pieces of product
Total modification campaign (501)
Input parameters
Output parameters
Example
Client will get 2% discount if their purchase is bigger than 50 euros.
Last updated