LogoLogo
  • Introduction
  • Authentication
  • Endpoints
    • Content
    • Quote
    • Status
    • Update
    • Purchase
    • Cancel
    • InstantBooking
    • Update Customer
    • Notifications/list
    • Notification/update
    • GetAllPurchasedPolicies
    • GetAllCancelledPolicies
    • CoverOptOut
    • Invoice
  • Webhook
    • HMAC Verification
    • Events
      • Cancellation Event
  • Testing
  • Errors
    • Quote Errors
    • Purchase Errors
    • Cancel Errors
  • Supported Currencies
  • Supported Languages
  • Supported Regions
  • Non-API Functions
Powered by GitBook
On this page
  1. Endpoints

GetAllCancelledPolicies

The GetAllCancelledPolicies endpoint enables the partners to get a list of the bookings cancelled by users.

Endpoint: /insurances/getAllCancelledPolicies

Method: POST

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"
         }
      }
   ]
}

Request Parameters

X_API_KEY string [varchar(32)] required

API Key, provided by RentalCover.

FromDate datetime

Start date/time for the filter.

ToDate datetime

End date/time for the filter.

Page integer

Pagination index.

PreviousGetAllPurchasedPoliciesNextCoverOptOut

Last updated 1 year ago