GET api/ReservationCancellation/GetCancelCalculation?apiKey={apiKey}&reservationId={reservationId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
apiKey

string

Required

reservationId

globally unique identifier

Required

Body Parameters

None.

Response Information

Resource Description

RateDetailWithSubtotal
NameDescriptionTypeAdditional information
RentalRateDetail

Collection of RateDetail

None.

RentalTotal

decimal number

None.

InsuranceTotal

decimal number

None.

AncillaryTotal

decimal number

None.

SubTotal

decimal number

None.

TotalTax

decimal number

None.

TotalAmount

decimal number

None.

PayNowDiscAmount

decimal number

None.

ModificationCharge

ModificationCharge

None.

CancellationCharge

CancellationCharge

None.

IsDocumentUploadMandatory

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "RentalRateDetail": [
    {
      "RentalRateDetailID": "75b21867-aa4e-4769-9e9a-ac00822172ba",
      "ItemID": "31cfac6c-54c1-4bd5-aeb0-8e9b332a6aab",
      "Item": "sample string 3",
      "Description": "sample string 4",
      "Days": 5,
      "Qty": 6,
      "Rate": 7.1,
      "DiscRate": 8.1,
      "TaxAmt": 9.1,
      "FreeDays": 10,
      "SequenceNo": 11,
      "RateChargeType": 0,
      "RateOffered": 12.1,
      "OnlinePayDiscPer": 13.1,
      "DiscTotal": -30.0,
      "SubTotal": 243.0,
      "TotalWithOutDisc": 222.1,
      "TotalAmt": 252.1,
      "CanBeDeleted": true
    },
    {
      "RentalRateDetailID": "75b21867-aa4e-4769-9e9a-ac00822172ba",
      "ItemID": "31cfac6c-54c1-4bd5-aeb0-8e9b332a6aab",
      "Item": "sample string 3",
      "Description": "sample string 4",
      "Days": 5,
      "Qty": 6,
      "Rate": 7.1,
      "DiscRate": 8.1,
      "TaxAmt": 9.1,
      "FreeDays": 10,
      "SequenceNo": 11,
      "RateChargeType": 0,
      "RateOffered": 12.1,
      "OnlinePayDiscPer": 13.1,
      "DiscTotal": -30.0,
      "SubTotal": 243.0,
      "TotalWithOutDisc": 222.1,
      "TotalAmt": 252.1,
      "CanBeDeleted": true
    }
  ],
  "RentalTotal": 1.1,
  "InsuranceTotal": 2.1,
  "AncillaryTotal": 3.1,
  "SubTotal": 4.1,
  "TotalTax": 5.1,
  "TotalAmount": 6.1,
  "PayNowDiscAmount": 7.1,
  "ModificationCharge": {
    "AmountPaid": 1.1,
    "AmountToRefund": 2.1,
    "AmountToPay": 3.1
  },
  "CancellationCharge": {
    "AmountCancellationCharge": 1.1,
    "AmountToRefund": 2.1,
    "AmountToPay": 3.1,
    "AmountPaid": 4.1
  },
  "IsDocumentUploadMandatory": true
}

application/xml, text/xml

Sample:
<RateDetailWithSubtotal xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fleetlet.Entity.Rental">
  <AncillaryTotal>3.1</AncillaryTotal>
  <CancellationCharge>
    <AmountCancellationCharge>1.1</AmountCancellationCharge>
    <AmountPaid>4.1</AmountPaid>
    <AmountToPay>3.1</AmountToPay>
    <AmountToRefund>2.1</AmountToRefund>
  </CancellationCharge>
  <InsuranceTotal>2.1</InsuranceTotal>
  <IsDocumentUploadMandatory>true</IsDocumentUploadMandatory>
  <ModificationCharge>
    <AmountPaid>1.1</AmountPaid>
    <AmountToPay>3.1</AmountToPay>
    <AmountToRefund>2.1</AmountToRefund>
  </ModificationCharge>
  <PayNowDiscAmount>7.1</PayNowDiscAmount>
  <RentalRateDetail>
    <RateDetail>
      <CanBeDeleted>true</CanBeDeleted>
      <Days>5</Days>
      <Description>sample string 4</Description>
      <DiscRate>8.1</DiscRate>
      <FreeDays>10</FreeDays>
      <Item>sample string 3</Item>
      <ItemID>31cfac6c-54c1-4bd5-aeb0-8e9b332a6aab</ItemID>
      <OnlinePayDiscPer>13.1</OnlinePayDiscPer>
      <Qty>6</Qty>
      <Rate>7.1</Rate>
      <RateChargeType>BookingCharge</RateChargeType>
      <RateOffered>12.1</RateOffered>
      <RentalRateDetailID>75b21867-aa4e-4769-9e9a-ac00822172ba</RentalRateDetailID>
      <SequenceNo>11</SequenceNo>
      <TaxAmt>9.1</TaxAmt>
    </RateDetail>
    <RateDetail>
      <CanBeDeleted>true</CanBeDeleted>
      <Days>5</Days>
      <Description>sample string 4</Description>
      <DiscRate>8.1</DiscRate>
      <FreeDays>10</FreeDays>
      <Item>sample string 3</Item>
      <ItemID>31cfac6c-54c1-4bd5-aeb0-8e9b332a6aab</ItemID>
      <OnlinePayDiscPer>13.1</OnlinePayDiscPer>
      <Qty>6</Qty>
      <Rate>7.1</Rate>
      <RateChargeType>BookingCharge</RateChargeType>
      <RateOffered>12.1</RateOffered>
      <RentalRateDetailID>75b21867-aa4e-4769-9e9a-ac00822172ba</RentalRateDetailID>
      <SequenceNo>11</SequenceNo>
      <TaxAmt>9.1</TaxAmt>
    </RateDetail>
  </RentalRateDetail>
  <RentalTotal>1.1</RentalTotal>
  <SubTotal>4.1</SubTotal>
  <TotalAmount>6.1</TotalAmount>
  <TotalTax>5.1</TotalTax>
</RateDetailWithSubtotal>