Skip to navigation

Quote response data dictionary

Every element AWP returns in a JSON Quote Response.
ElementTypeDefinition
cxidstringCustomer Experience ID. This value is returned by AWP in the first quote response so only applies in customer scenarios where the partner is making multiple quote requests within the customer’s browsing session.
responseIDstringAWP ID for the response generated as a result of the client optimizations request
treatmentIdstringAWP ID of the treatment
treecodestringSelected tree code
segmentcodestringSelected segment code
StatusobjectSystem generated response status object
codestringSuccess indicator
creationDatestringDate/time stamp when the response is generated
errorTextstringSpecific error description
machineNamestringThe name of the machine where the service is running (If configured)
messagestringStatus message
processIdintegerProcess id of the service
reasonstringTextual description of failure
versionstringVersion of the service
ProductSequenceobjectValues in array must be listed in same order as associated example customer)
sequence1integerFirst value listed in list of sequence names
sequence2integerSecond value listed in list of sequence names
sequence3integerThird value listed in list of sequence names
ProductSpecificMessageobject
textstringTextual content of product specific message.
typestringType of product specific message.
uristringLink to product specific message.
Sequenceobject
namestringDescribes/names the ordering (i.e. customer segment leg)
valueintegerValue for the ordering (i.e. 1234)
Optionobject
namestringOption name
valuestringOption value
PriceDataobjectA single price for a product
isAvailablebooleanIndicator flag if price is available
isIncludedbooleanIndicator flag if product/price is included in another product
optionsarrayArray of options specifying this price
pricenumberValue of price (in currency specified in request)
priceHashstringSHA-256 salted hashed value of price - for validation purposes
sequencesarrayPrice sequence array - used when prices are ordered in certain ways
stepNamestringName of step in Pricing Model
stepTypestringType of step in Pricing Model
IndividualPriceobjectPrice for an individual/person
adminFeenumberAdministrative Fee
personTypestringType of person (adult child etc.)
pricenumberPrice
sequenceintegerNumber in sequence for a given person
ProductobjectA single product with prices
externalCodestringThe product code that the partner uses
individualPricesarrayArray of prices per individual
isAvailablebooleanIndicator flag if product is available
offerIdstringInternal AWP ID of an offer
pricesarrayArray of prices for product
pricingModelCodestringAWP Pricing Model Code / Ignored by partner - for debugging purposes only
pricingModelDescriptionstringGeneral description of the pricing strategy e.g. Flat Percentage Banded
pricingModelMaxAmountnumberIf defined the maximum price allowed for this product
pricingModelMinAmountnumberIf defined the minimum price allowed for this product
productCodestringAWP code of the Product-usually based on partner product code
productDescriptionstringAWP short description of the product
productHtmlContentstringHTML content of the product
productNamestringName of product
productSpecificMessagesarray
productTypestringAWP defined type of product (Seats Insurance Checked Baggage etc.)
quoteIdstringInternal AWP ID of a quote
sequenceNamesstringSemicolon-delimited list of descriptions/names for the ordering in array of ProductSequence below (i.e. customer segment leg).
sequencesarray
supplierCodestringAWP defined ID for the supplier
totalAdminFeenumberSum of individual Adminstration fees
totalPricenumberSum of individual prices
totalPriceHashstringHash for totalPrice listed above
totalTaxnumberSum of individual Taxes
TriggerobjectA single trigger that defines an event listener that will cause the changeset to execute
eventstringJavaScript event type that needs to occur within selection
selectorstringCSS selector that defines the DOM elements to listen to
typestringType of trigger to be used. The only currently supported value is Event
InstructionobjectA single instruction in a changeset
actionstringThe type of action to be performed
attributeNamestringHTML content being inserted at a given position relative to each target element.
attributeValuestringValue of attribute to set on each target element
booleanValuebooleanA boolean value used for setting certain properties like checked
classstringClass value being added to or removed from class list of each target element
contentstringHTML content being inserted at a given position relative to each target element.
elementstringElement being inserted at a given position relative to target element.
eventstringevent that is dispatched to each target element
numericValuestringA numeric values used for setting certain properties like selected index
positionstringPosition relative to the target element
scriptstringJavaScript code to be run for each target element.
selectorstringCSS selector that determines DOM elements on which instructions will be applied
valuestringHTML content being inserted at a given position relative to each target element; used for setValue instruction
ChangeSetobjectA single changeset
conditionsarray
itemsobject
attributeNamestringName of attribute on target element(s)
attributeValuestringValue to be compared against the value(s) of target attributes on target element(s)
booleanValuebooleanA boolean value used for evaluating certain properties like checked
classstringClass value to search for in class list of target elements(s)
comparestringHow to compare
matchCasebooleanIf true use case sensitive comparison
maximumCountnumberDesired maximum number of target elements cause the changeset to execute
minimumCountnumberDesired minimum number of target elements
namestringDescribes/names the condition.
numericValuestringA numeric values used for setting certain properties like selected index
operatorstringUsed when the condition type is Operator. Indicates the boolean operator that should be applied to the previous condition(s). Allowed values are AND OR and NOT
selectorstringCSS selector that defines DOM elements the condition applies to
typestringThe type of condition to be checked - see ValidationArray valid values
valuestringValue to be compared against the target element(s); used for InnerHTNL OuterHTML TextContent and Value condition types
instructionsarrayArray of instructions to be executed
namestringThe name of the changeset
selectorstringCSS selector that specifies DOM element(s) used to narrow scope of triggers conditions and instructions
triggersarrayAn array of triggers that cause this changeset to execute. Any of the triggers will cause the changeset to execute. If empty the changet will execute right away
VariationobjectA single variation to be applied to the DOM
changesetsarrayArray of changesets that constitute the variation
responseOfferIdstringId of AWP response offer
validationsarrayConditions to pass in regard to the state of the DOM before the variation is permited to execute
variationCodestringInternal AWP Code identifying the variation
Trackingobject
conditionsarrayConditions that must be satisifed before instruction can be executed.
eventDatastringEvent to be tracked
selectorstringCSS selector that specifies DOM elements to listen to
StatusDataobject
codestringStatus code of the response
errorTextstringDetailed description of error
messagestringDetailed message - if not error
reasonstringReason for status code
OfferobjectContent offer
contentCodestringAWP defined code for content offer
contentTypestringType of content offer (ex. Template Offer …)
idstringAWP ID of content offer
messagesarrayList of messages
sequenceintegerSequence of content offer within array of offers
LocationobjectA single location
autoRenderbooleanIndicator flag if content rendering is applied right away. Applicable only for Variations
locationCodestringAWP defined Code identifying the Location
locationTypestringType of Location
offersarrayArray of content offers for this location
outputstringIn case of HTML locationType this property contains the HTML for the Location
outputTypestringDescribes the format type of the output(HTML JSON XML Message Component …)
selectorstringCSS selector that defines the starting point of the location. If more than one element matches the selector the first element will be used
templateCodestringTemplate code (need better description)
templateTypestringUser/Implementation type of the template.
trackingsarray
treatmentCodestringSelected treatment code
variationsarrayArray of variations to apply to the DOM
CookieobjectRepresentation of a single cookie. The Name of the cookie will be generated by prefixing the name of the cookie with FOS<<DISTRIBUTOR_CODE>>_. The Value of the cookie is the whole JSON of this object
contentstringContent to be stored in browser Cookie. The actual value depends on the type of Cookie.
expirationDatestringThe date that the cookie should expire. With the current implementation this will be the projected end date of the experiment plus a fixed buffer of 7 days. If there is no end date then this will be calculated by adding noOfDays to the current date/time. This is a string formatted as yyyy-mm- ddThh:mi:ss:ffffff
includeInRequestbooleanIndicator if cookie should be included in the request- default to true
namestringName of the cookie without the namespace prefix
noOfDaysintegerLifetime of the cookie in days
typestringThe type the cookie (experiment transactionDetails sessionDetails…)
OfferStateStructureobjectStructure of the offer state
isInternalbooleanIndicator to notify if it is internal or external
isUniqueIdentifierbooleanIndicator to notify if it is unique
ranknumberOrder of the items the cookie is the whole JSON of this object
sourceNamestringName of the source
sourceTypestringType of the source
targetDefaultValuestringDefault value of the target
targetNamestringName of the target
targetParentNamestringName of the target’s parent
targetTypestringType of the target
MessageComponentobjectMessage component
imageURLstringURL of the image
sequenceintegerNumber defining the sequence of the message component
stylestringStyle
textstringText of the message component
MessageobjectOffer message
compiledMessagestringContent and meaning depends on messageTag.
messageComponentsarrayArray of message components
messageTagstringMessage tag Application defined list of tags (BODY DISCLAIMER CALL_TO_ACTION …)
cookiesarrayArray of cookies passed from the AWP backend to the client
locationsarrayArray of locations which are affected by response
productsarrayArray of products with prices
offerStateStructurearrayStructure for offer states. Used by Widget solution where applicable.