Skip to content

QueryAvailablePromotionList

This commands shows all promotions that are currently available for your account.

Possible Gateways

The following parameters are standard parameters for this command.

Command
COMMAND = QueryAvailablePromotionList
Response
code = (INT)
description = (TEXT)
property[PROMOTION][0] = (TEXT)
property[ZONE][0] = (TEXT)
property[SERVICE][0] = (TEXT)
property[TYPE][0] = (TEXT)
property[STARTDATE][0] = (TEXT)
property[ENDDATE][0] = (TEXT)
property[USED][0] = (INT)
property[AVAILABLE][0] = (INT)
property[PROMOTYPE][0] = (TEXT)
property[PERIODTYPE][0] = (TEXT)
property[MINPERIOD][0] = (INT)
property[MAXPERIOD][0] = (INT)
property[OBJECTPATTERN][0] = (TEXT)
property[UNIT][0] = (DECIMAL)
property[SETUP][0] = (DECIMAL)
property[APPLICATION][0] = (DECIMAL)
property[TRANSFER][0] = (DECIMAL)
property[CURRENCY][0] = (TEXT)
property[PROMOCODE][0] = (TEXT)
property[COUNT][0] = (INT)
property[FIRST][0] = (INT)
property[LAST][0] = (INT)
property[LIMIT][0] = (INT)
property[TOTAL][0] = (INT)
PROMOTIONThe unique promotion name
ZONEThe zone for the promotion
SERVICEThe service for the promotion
TYPEThe type of service for the promotion
STARTDATEThe startdate of the promotion
ENDDATEThe enddate of the promotion
USEDHow often the promotion was used by you
AVAILABLEHow often the promotion can be used until it is no more available. No value means unlimited.
PROMOTYPEThe type of the promotion
PERIODTYPEThe periodtype of the promotion
MINPERIODThe minperiod needed to use the promotion
MAXPERIODThe maxperiod needed to use the promotion
OBJECTPATTERNThe objectpattern that has to match with the object to use the promotion
UNITThe unit promotion price
SETUPThe setup promotion price
APPLICATIONThe application promotion price
TRANSFERThe transfer promotion price
CURRENCYThe currency of the promotion prices
PROMOCODEThe promocode required to use the promotion
COUNTTotal number of promotions shown
FIRSTPointer to the first shown ID
LASTPointer to the last shown ID
LIMITThe limit given in the command
TOTALTotal number of existing promotions

The following parameters are optional for this command.

Command
COMMAND = QueryAvailablePromotionList
TYPE = RUNNING|UPCOMING|FINISHED
DATE = (DATE)
ZONE = (TEXT)
PROMOTION = (TEXT)
GENERATELIST = 0|1
ORDER = ASC|DESC
ORDERBY = ZONE|PROMOTION|STARTDATE|ENDDATE
SENDLISTEMAIL = (EMAILS)
WIDE = 0|1
FIRST = (INT)
LIMIT = (INT)
Response
code = (INT)
description = (TEXT)
property[PROMOTION][0] = (TEXT)
property[ZONE][0] = (TEXT)
property[SERVICE][0] = (TEXT)
property[TYPE][0] = (TEXT)
property[STARTDATE][0] = (TEXT)
property[ENDDATE][0] = (TEXT)
property[USED][0] = (INT)
property[AVAILABLE][0] = (INT)
property[PROMOTYPE][0] = (TEXT)
property[PERIODTYPE][0] = (TEXT)
property[MINPERIOD][0] = (INT)
property[MAXPERIOD][0] = (INT)
property[OBJECTPATTERN][0] = (TEXT)
property[UNIT][0] = (DECIMAL)
property[SETUP][0] = (DECIMAL)
property[APPLICATION][0] = (DECIMAL)
property[TRANSFER][0] = (DECIMAL)
property[CURRENCY][0] = (TEXT)
property[PROMOCODE][0] = (TEXT)
property[COUNT][0] = (INT)
property[FIRST][0] = (INT)
property[LAST][0] = (INT)
property[LIMIT][0] = (INT)
property[TOTAL][0] = (INT)
TYPEDefines if either currently running, upcoming or finished promotions will he shown in the list. Default is RUNNING. (optional)
DATESet a date to list all active promotions for this date. Only available for FINISHED type. (optional)
ZONEPattern match for zone (optional)
PROMOTIONPattern match for promotion name (optional)
GENERATELISTShow result on screen|Generate a CSV File and upload to ftp or send by email (optional)
ORDEROptional
ORDERBYSort the result by this column (optional)
SENDLISTEMAILEmail address where the CSV will be sent to (optional)
WIDEShow more or less details in the results (optional)
FIRSTStart the output of results from this item (optional)
LIMITShow only this many items in the response (optional)