Purchase response data dictionary
Every element AWP returns in a JSON Purchase Response.
| Element | Type | Definition |
|---|---|---|
Elementy | Definition | Req. (R) |
| Opt. (O) | Details | |
PurchasesResponse | ||
TransactionID | Unique identifier for each XML transaction (request and response) that is generated by the partner. Typically a cart number. | R |
PurchasesResponse/Status | ||
Code | Status code that indicates whether or the request was processed successfully. Valid values include SUCCESS and FAILURE. | R |
Message | Status message that indicates the type of FAILURE. Examples include System Error, Invalid Data, Missing Data, and Insurance Unavailable. | O |
Reason | Status reason that explains the message in more detail. | O |
Source | Field or element that is the source of the failure. | O |
PurchasesResponse/Purchases/Purchase | ||
PartnerBookingID | Unique identifier for the travel booking and purchase date that is generated by the partner. | R |
OrderID | AWP’s unique identifier for the insurance purchase. | R |
| InsuranceBookingSta tus | The billing status for this insurance booking. Some of the valid values are ‘NEW’, ‘PENDING’, ‘CHARGED’, and ‘DECLINED’. | R |
Elementy | Definition | Req. (R) |
| Opt. (O) | Details | |
PurchasesResponse/Purchases/Purchase/ProductDetails | ||
PurchasesResponse/Purchases/Purchase/ProductDetails/Product | ||
Sequence | Unique sequence number for this purchase and product. | R |
ProductID | The identifier for the insurance product. It may be a product name or code. | O |
ProductBookingID | The insurance product booking id or policy number. | O |
PolicyDateTime | The date and time the insurance product was successfully processed. | O |

