Skip to navigation

Purchase request data dictionary

Every element in a JSON Purchase Request. The Object column gives its path, and the Required column marks required (R) and optional (O) elements.

ObjectElementDefinitionRequiredTypeExampleNotes
PartnerUserIDUser ID assigned by AWP. AWP will validate each request using Partner’s ACCAM, User ID and Password.Rstring”test”
PartnerPasswordPartner’s password that is provided by AWP.Rstring”test”
PurchaseRequestAccamAWP’s company identifier for the partner.Rstring”F123456”
PurchaseRequestBusinessUnitThis is the business unit that processes the purchase request or point of sale locationRstring”US, UK, CA”
PurchaseRequestTransactionIDUnique identifier for each XML transaction (request and response) that is generated by the partner. Typically a cart numberRstring”ABC0000 0001”
PurchasesPartnerBookingIDUnique identifier for the travel booking and purchase date that is generated by the partner. i.e. PNR. This number must be unique per calendar dayRstring”ABC123”
InsuranceBookingDetailsPurchaseDateTimeDate and time that the insurance purchase was made.Rdate/ti me”2012-04- 3010:00:0 0”
InsuranceBookingDetailsCoSourceIDThe cosource id, marketing id, or banner id that resulted in insurance being purchased.Ostring”1234”
InsuranceBookingDetailsReferringURLThe referring URL that is related to insurance being purchased.Ostring”URL”
InsuranceBookingDetailsOpt. (O)Details
InsuranceBookingDetailsStatusThe billing status for this insurance booking.Rstring”NEW, CHARGED “Typically the value is NEW. CHARGED only applies if AWP is not the merchant of record; in that case CC details are not required
InsuranceBookingDetailsTypeThe transaction type for the insurance booking.Rstring”ADD, CNCL, CANCEL, CHNG, CHANGE”ADD is used for all new bookings
InsuranceBookingDetailsCurrencyThe local, 3 digit ISO currency codeRstring”USD”
InsuranceBookingDetailsTotalCoverageAmou ntThe total trip cost to be covered by the insurance purchase.Rdouble”500”
InsuranceBookingDetailsTotalPriceThe total price for the insurance purchase including premium and taxes.Rdouble”27.50”
InsuranceBookingDetailsWaiverPricedouble
InsuranceBookingDetailsTotalTaxesThe total taxes for the insurance purchase.Odouble”0”
InsuranceBookingDetailsTotalCharitableContr ibutionThe total charitable contributions for the insurance purchase.Odouble”0”
InsuranceBookingDetailsTaxRegionThe tax region or code that identifies the tax rate that applies to this insurance booking.Ostring”XX”Not applicable if the point of sale is in the US
InsuranceBookingDetailsPromotionCodeThe promotion code used to complete this insurance booking.Ostring”AB13”
InsuranceBookingDetailsOpt. (O)Details
InsuranceBookingDetailsSubscribeToMarketi ngA flag that indicates whether or not the purchaser or partner would like marketing material sent from AWP to the purchaser.Oboolean”FALSE”
InsuranceBookingDetails / PurchaserFirstNamePurchaser’s first name.Rstring”Chris”
InsuranceBookingDetails / PurchaserMiddleInitialPurchaser’s middle initial.Ostring”S”
InsuranceBookingDetails / PurchaserLastNamePurchaser’s last name.Rstring”Smith”
InsuranceBookingDetails / Purchaser / BillingAddressStreetThe billing street address.Rstring”9950 Mayland Dr”
InsuranceBookingDetails / Purchaser / BillingAddressStreet2The billing street address - 2nd line.Ostring”Ste 100”
InsuranceBookingDetails / Purchaser / BillingAddressCityThe billing city.Rstring”Richmon d”
InsuranceBookingDetails / Purchaser / BillingAddressRegionThe two digit state or province code.Rstring”VA”Required for all U.S. and Canadian addresses only
InsuranceBookingDetails / Purchaser / BillingAddressPostalCodeThe billing zip code or postal code.Rstring”23233”
InsuranceBookingDetails / Purchaser / BillingAddressCountryThe billing ISO 3 digit country code.Rstring”USA”
InsuranceBookingDetails / PurchaserEmailAddressPurchaser’s email address. Required if fulfillment method is EMAIL.Ostring”test@tes t.com”Required if E- mail is the chosen method of policy fulfillment
InsuranceBookingDetails / PurchaserSecondaryEmailAddr essA second email address that fulfillment will be sent to on behalf of the purchaser if the fulfillment method is EMAIL.Ostring”test@tes t.com”
InsuranceBookingDetails / PurchaserOpt. (O)Details
InsuranceBookingDetails / PurchaserPhoneNumberPurchaser’s phone number.Olong”8041234 567”Strongly recommended that this is sent
InsuranceBookingDetails / PurchaserFaxNumberPurchaser’s fax numberOlongExample “999-999- 999”
InsuranceBookingDetails / PurchaserMembershipStatusIndicates if the Primary Booker is singed in or booking as a guest.Ostring“Guest”
InsuranceBookingDetails / PurchaserUsePromotionCodeTracks whether or not a unique promotional code is being used”Oboolean“true”
InsuranceBookingDetails / PurchaserTripIndicatorThe type of trip being bookedOString“One_Wa y”
InsuranceBookingDetails / PurchaserDiscountTypeThe type of discount being provided.OString“Military”
InsuranceBookingDetails / PurchaserTicketDeliveryMetho dThe method the customer wants to receive the ticket, such as electronic or paper ticket.OString“electroni c”
InsuranceBookingDetails (repeatable)FulfillmentMethodFulfillment method for insurance purchase. Valid values include ‘EMAIL’ and ‘MAIL’Rstring”EMAIL”
InsuranceBookingDetails (repeatable)PaymentMethodPayment method for insurance purchase. Valid values include ‘CC’ and ‘CW’Rstring”CC”CC = Credit Card, CW = Cash Withheld.
InsuranceBookingDetails (repeatable)PaymentTransaction IDPayment transaction id from payment processor.Ostring”123456”Only applicable if client is charging the CC. Field limit 12 characters
InsuranceBookingDetails (repeatable)PaymentReconciliati onIDPayment reconciliation id from payment processor.Ostring”123456”and AWP is MOR)
InsuranceBookingDetails (repeatable)CardholderNameThe name that appears on the credit card.Rstring”Chris Smith”
InsuranceBookingDetails (repeatable)ExpireMonthThe month the credit card expires.Rint”11”
InsuranceBookingDetails (repeatable)Opt. (O)Details
InsuranceBookingDetails (repeatable)ExpireYearThe 4 digit year the credit card expires.Rint”2014”
InsuranceBookingDetails (repeatable)CardNumberThe credit card number.Rlong”Card Number”
InsuranceBookingDetails (repeatable)CardTypeThe credit card type. Valid values include AE, AX,AO = American ExpressRstring”VI”JC = JCB
InsuranceBookingDetails (repeatable)SecurityCodeThe security or verification code that appears on the back of the credit card.Oint”123”Required for some sales outside the US (i.e. UK)
InsuranceBookingDetails (repeatable)TravelAgentThe identifier for the travel agent who assisted with the insurance purchase. Min length: 0; Max length: 40 chars.Ostring”CSS”Recommended to identify selling agent for reporting
InsuranceBookingDetails (repeatable)AccountUserTypeThe AWP account user type. An account is either for an agent (A) or consumer (C).Ostring”A”
InsuranceBookingDetails (repeatable)AccountUserNameThe AWP account user name.Ostring”test”
InsuranceBookingDetails (repeatable)DescriptionDescription of additional optionOstring
InsuranceBookingDetails (repeatable)CostCost of additional item.Odouble
InsuranceBookingDetails (repeatable)CurrencyTypeThe 3 digit ISO currency code.Ostring“USD”
InsuranceBookingDetails (repeatable)Opt. (O)Details
GadgetDetailsBrowserTypeThe browser being used by the customer.Ostring”IE”Required if insurance is offered via mobile website or mobile application
GadgetDetailsBrowserVersionThe version number of the browser being used by the customer.Ostring”1.2”Required if insurance is offered via mobile website or mobile application
GadgetDetailsDeviceCategoryThe device being used (mobile, tablet, desktop)Ostring”Tablet”Required if insurance is offered via mobile website or mobile application
GadgetDetailsDeviceTypeThe type of device on which the offer is to be presented, i.e.,iphone, Nexus PC or Mac.Ostring”iphone”Required if insurance is offered via mobile website or mobile application
GadgetDetailsOperatingSystemThe operating system on which the offer is to be presented. (i.e. iOS, Blackberry, Android, etc.)Ostring”Android”Required if insurance is offered via mobile website or mobile application
GadgetDetailsOperatingSystemVer sionThe version of the operating system on which the offer is to be presented.Ostring”4.2”Required if insurance is offered via mobile website or mobile application
GadgetDetailsOpt. (O)Details
GadgetDetailsRequestingPlatformThe mobile platform on which the offer is to be presented. (i.e. Mobile Site or Mobile App)Ostring”Mobile App”Required if insurance is offered via mobile website or mobile application
GadgetDetailsRequestingPlatform VersionThe version of the requesting platform on which the offer is to be presented.Ostring”Macintos h OSX”Required if insurance is offered via mobile website or mobile application
TravelBookingDetailsCurrencyThe 3 digit ISO currency code.Rstring”USD”
TravelBookingDetailsTotalTripCostTotal trip cost for all travelers in the booking.Odouble”500.00”If this element is passed its value should match that of TotalCoverageA mount
TravelBookingDetailsTotalMilesThe total airline miles used for the travel booking.Oint”5000”
TravelBookingDetails / TripCostIncludesItemList of items included in the total trip cost. Valid values include air, car, cruise, event, hotel, package, rail, tour.Oarray”Air, Cruise”
TravelBookingDetailsDepositDateThe date the first payment for the booking is made by the customer. If unsure of this date please use the policy purchase dateOdate/ti me”2012-04- 30:10:00: 00”Desired to identify eligibility for coverage by product
TravelBookingDetailsOpt. (O)Details
TravelBookingDetailsFinalPaymentDateThe date the final payment for the booking is made by the customer.Odate/ti me”2012-04- 30:10:00: 00”Desired to identify eligibility for coverage (only applicable for specific products)
TravelBookingDetailsCustomerIDThe customer identifier, frequent flyer number, or membership number for the customer who made the travel booking.Ostring”1234”
TravelBookingDetailsTravelAgentThe identifier for the agent who completed the booking for the customer.Ostring”CSS”Desired to identify selling agent for reporting
TravelBookingDetailsLanguageThe ISO language code used to complete the travel booking.Ostring”ENG”
TravelDetailsDepartureDateThe first date of travel.Rdate/ti me”2012-06- 01:10:00: 00”
TravelDetailsReturnDateThe last date of travel.Rdate/ti me”2012-06- 07:00:00: 00”
TravelDetailsRentalCarStartDateThe first rental car date.Odate/ti me”2012-06- 02:10:00: 00”Required if a rental car is purchased and the rental car start and end date are different from the departure and return date
TravelDetailsRentalCarEndDateThe last rental car dateOdate/ti me”2012-06- 04:10:00: 00”Required if a rental car is purchased and the rental car start and end date are different from the departure and return date
TravelDetailsOpt. (O)Details
TravelDetails / OriginCodeThe airport code or other identifier for the location.Ostring”LAX”Strongly recommended that this is sent
TravelDetails / OriginRegionThe two digit state or province code.Ostring”VA”Strongly recommended that this is sent
TravelDetails / OriginCountryThe ISO country code for the location.Ostring”US”Strongly recommended that this is sent
TravelDetails / DestinationCodeThe airport code or other identifier for the location.Ostring”LAX”Strongly recommended that this is sent
TravelDetails / DestinationRegionThe abbreviation or code for state, province, or region.Ostring”VA”Strongly recommended that this is sent
TravelDetails / DestinationCountryThe ISO country code for the location.Ostring”US”Strongly recommended that this is sent
TravelDetails / Providers / ProviderCodeCode for travel provider.Ostring”test”
TravelDetails / Providers / ProviderNameName of travel provider.Ostring”test”
TravelDetailsTravelReasonReason for travel. i.e. ‘Business’ or ‘Leisure’Ostring”Leisure”Desired additional customer information
TravelDetails / FlightDetails / Flights / FlightFlightDateDate of the flight.ODate/ Time”2012-06- 04:10:00: 00”
TravelDetails / FlightDetails / Flights / FlightAirlineTwo digit airline codeOstring“DL”
TravelDetails / FlightDetails / Flights / FlightOpt. (O)Details
TravelDetails / FlightDetails / Flights / FlightFlightNumberFlight numberOstring“2234”
TravelDetails / FlightDetails / Flights / FlightAirportThree character airport code.Ostring“RIC”
ProductDetails / ProductSequenceUnique sequence number for this purchase and product. First item in the sequence should be 0Rint”0”
ProductDetails / ProductQuoteIDThe quote id is a value that is obtained from a quote response message from AWP that uniquely identifies a particular quote.Ostring”123”Optional but desired for tracking
ProductDetails / ProductProductIDThe identifier for the insurance product. It may be either the product name or code though use of the code is recommendedRstring”Domestic Air Protector” or “0010011 22”
ProductDetails / Product / InsuredDetails / InsuredInsuredSequenceUnique sequence number for each individual who is purchasing this insurance product.Rint”0”This controls both who is listed as the Primary and the order of the insureds. First item in the sequence should be the primary and the sequence number is 0
ProductDetails / Product / InsuredDetails / InsuredOpt. (O)Details
ProductDetails / Product / InsuredDetails / InsuredInsuredTypeThe type of insured. Valid values include ‘PRIMARY’ or ‘OTHER’.Rstring”PRIMARY “There can be only one PRIMARY per purchase and it should be the first insured in the list
ProductDetails / Product / InsuredDetails / InsuredFirstNameThe first name of the insured.Rstring”Chris”
ProductDetails / Product / InsuredDetails / InsuredMiddleInitialThe middle initial of the insured.Ostring”S”
ProductDetails / Product / InsuredDetails / InsuredLastNameThe last name of the insured.Rstring”Smith”
ProductDetails / Product / InsuredDetails / InsuredBirthdateThe date of birth of the insured. This is required if the insurance product is age-rated.Odate”1982-11- 05”Required for age rated products and strongly recommended that it be sent even if the current product isn’t age rated
ProductDetails / Product / InsuredDetails / InsuredGenderGender of the insured.Oenum“Female”
ProductDetails / Product / InsuredDetails / InsuredIPaddressIP address of the insured.Ostring“199.116. 175.111”
ProductDetails / Product / InsuredDetails / Insured / InsuredAddressStreetThe billing street address.Rstring”9950 Mayland Dr”
ProductDetails / Product / InsuredDetails / Insured / InsuredAddressStreet2The billing street address - 2nd line.Ostring”Ste 100”
ProductDetails / Product / InsuredDetails / Insured / InsuredAddressCityThe billing city.Rstring”Richmon d”
ProductDetails / Product / InsuredDetails / Insured / InsuredAddressRegionThe two digit state or province code.Ostring”VA”Required for all US & CA Addresses
ProductDetails / Product / InsuredDetails / Insured / InsuredAddressPostalCodeThe billing zip code or postal code.Rstring”23233”
ProductDetails / Product / InsuredDetails / Insured / InsuredAddressOpt. (O)Details
ProductDetails / Product / InsuredDetails / Insured / InsuredAddressCountryThe billing ISO country code.Rstring”USA”
ProductDetails / Product / InsuredDetails / InsuredPhoneNumberThe phone number of the PRIMARY insuredRstring”8041234 567”Required for primary insured only
ProductDetails / Product / InsuredDetails / InsuredTripCostThe individual trip cost for the insured.Odouble”2500.00”If this element is passed it supersedes that of TotalCoverageA mount
ProductDetails / Product / InsuredDetails / InsuredMilesThe airline miles used to book a ticket for the insured. This information is relevant if a reward type of travel insurance product is purchased.Oint”10000”
ProductDetails / Product / InsuredDetails / InsuredCustomerID (legacy item - no longer used)The customer identifier, frequent flyer number, or membership number for this traveler.N/Astring”Identifier “This is a legacy item and is no longer used
ProductDetails / Product / InsuredDetails / InsuredBeneficiaryThe name of the beneficiary for this insured.Ostring”Karl Schlebusc h”Desired if the product purchased includes a death benefit
ProductDetails / Product / InsuredDetails / InsuredNumberOfRoomsNumber of rooms being covered by the insurance policy.Oint“2”Value should only be present if this is for hotel.
ProductDetails / Product / InsuredDetails / Insured / MembershipsNameName of the membership.Ostring“Frequent Flyer”
ProductDetails / Product / InsuredDetails / Insured / MembershipsTypeType of membership.Ostring“Platinum ”
ProductDetails / Product / InsuredDetails / Insured / MembershipsNumberNumber or account of the given membership.Ostring“FF10983”
ProductDetails / Product / InsuredDetails / Insured / MembershipsOpt. (O)Details
ProductDetails / ProductCoverageAmountThe trip cost to be covered by the insurance product.Rdouble”500.00”
ProductDetails / ProductPriceThe price for the insurance product including premium and taxesRdouble”27.50”
ProductDetails / ProductPremiumPriceThe premium amount for the insurance product.Odouble”27.50”
ProductDetails / ProductTaxesThe tax amount for the insurance product.Odouble”1.25”
ProductDetails / ProductCharitableContributi onThe charitable contribution amount for the insurance product.Odouble”1.00”
ProductDetails / ProductProductBookingIDThe insurance product booking id or policy number.Ostring”123456”Required if partner is generating the policy number
TuitionFirstNameFirst name of student.Ostring“John”Required for tuition.
TuitionLastNameLast name of student.Ostring“Dow”Required for tuition.
TuitionDOBStudent’s date of birth.Ostring“1982-11- 05”Required for tuition.
TuitionSchoolIDSchool ID of the universityOstring“25246”Required for tuition.
TuitionYearsInSchoolNumber of years the student is in school.Odate/ time“3”Required for tuition.
TuitionOpt. (O)Details
TuitionGPAGPA of the student.Odouble“3.4”Must be an integer, with up to two digits post decimil place: 2.25
TuitionStudyAbroadIs the student studying abroad?Oboolean“true”Required for tuition.