The GetAllCancelledPolicies endpoint enables the partners to get a list of the bookings cancelled by users.
Endpoint: /insurances/getAllCancelledPolicies
curl -i -X POST \
-H "X_API_KEY: [my-api-key]" \
-H "Content-Type: application/json" \
-d '{"FromDate":"2018-05-10 00:00:00","ToDate": "2018-09-20 00:00:00","Page": 1}' \
https://api-staging.rentalcover.com/insurances/getAllCancelledPolicies
{
"MetaData":{
"TotalItems":1,
"TotalPages":1,
"CurrentPage":1,
"ItemsPerPage":1000,
"Links":{
"FirstPage":"https://api-testing.rentalcover.com/insurances/getAllCancelledPolicies/page/1"
}
},
"Bookings":[
{
"Booking":{
"BookingId":"2395636",
"Reference":"026J-88W5-INS",
"CancelledOn":"2018-06-28 15:23:39"
}
}
]
}{
"MetaData":{
"TotalItems":1,
"TotalPages":1,
"CurrentPage":1,
"ItemsPerPage":1000,
"Links":{
"FirstPage":"https://api-testing.rentalcover.com/insurances/getAllCancelledPolicies/page/1"
}
},
"Bookings":[
{
"Booking":{
"BookingId":"2395636",
"Reference":"026J-88W5-INS",
"CancelledOn":"2018-06-28 15:23:39"
}
}
]
}