Retrieve Insurance on a Booking by Insurance ID
GET /[context]/[contextId]/Insurance/[id]
Context in Request URI should be 'bookings'
ContextId in Request URI should be Booking ID
ID of the insurance
Name of Insurance Product
Name of the Insurance Supplier
Policy Name
Policy Number the Insurance
Policy Details of the Insurance
Number of days for Insurance
Number of infants
Number of children
Number of adults
Total gross price for all customers on insurance
Currency of the insurance amount
Valid To Date
Valid From Date
Date Issued
URI used to retrieve all customers on insurance
Key/value pairs indicating the number of customers per status on the insurance; e.g.: { ''confirmed'': 2, ''cancelled'': 1 }
List of customer statuses along with url for each customer on that status
ID of the resource
URI of the resource
Sequence of product
URI of the resource
Customers status
Url of Customers in relevant status
{
"insuranceName": "Adult Insurance 8 days ",
"supplierName": "Pete",
"policyName": "Policy XYZ",
"policyNumber": "ABC12345",
"policyDetails": "Policy details",
"duration": "9",
"numberOfInfants": 1,
"numberOfChildren": 2,
"numberOfAdults": 3,
"totalPrice": 185.0,
"currency": "AUD",
"validToDate": "2017-08-25",
"validFromDate": "2017-08-25",
"dateOfIssue": "2017-08-25",
"customers": {
"href": "/insurance/887154/customers"
},
"customerStatuses": {
"confirmed": 2,
"tentative": 1
},
"customerStatusIds": [
{
"status": "tentative",
"customers": [
{
"href": "/context/5057124/customers/4945398"
},
{
"href": "/context/5057124/customers/4945398"
}
]
},
{
"status": "tentative",
"customers": [
{
"href": "/context/5057124/customers/4945398"
},
{
"href": "/context/5057124/customers/4945398"
}
]
}
],
"id": 887124,
"href": "context/contextid/insurance/887124",
"sequence": "202403312359580000"
}