GET api/Rates/GetRateDetailByParentCountryId/{countryFrom}/{countryTo}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
countryFrom

integer

Required

countryTo

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of RateDetail
NameDescriptionTypeAdditional information
CountryFrom

integer

None.

CountryId

integer

None.

CountryName

string

None.

CountryCode

string

None.

countryISOCode

string

None.

CardId

integer

None.

CardName

string

None.

MinRegularCallingRate

decimal number

None.

MinDiscountedCallingRate

decimal number

None.

Denominations

Collection of RateDetailDenomination

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "CountryFrom": 1,
    "CountryId": 2,
    "CountryName": "sample string 3",
    "CountryCode": "sample string 4",
    "countryISOCode": "sample string 5",
    "CardId": 6,
    "CardName": "sample string 7",
    "MinRegularCallingRate": 8.1,
    "MinDiscountedCallingRate": 9.1,
    "Denominations": [
      {
        "SubCardId": "sample string 1",
        "TotalTime": 2,
        "Price": 3.0,
        "ServiceFee": 4.1,
        "DiscountApplied": 5.1,
        "DiscountType": "sample string 6",
        "PromoMinutes": 7,
        "PromoCode": "sample string 8",
        "RegularCallingRate": 9.1,
        "DiscountedCallingRate": 10.1
      },
      {
        "SubCardId": "sample string 1",
        "TotalTime": 2,
        "Price": 3.0,
        "ServiceFee": 4.1,
        "DiscountApplied": 5.1,
        "DiscountType": "sample string 6",
        "PromoMinutes": 7,
        "PromoCode": "sample string 8",
        "RegularCallingRate": 9.1,
        "DiscountedCallingRate": 10.1
      }
    ]
  },
  {
    "CountryFrom": 1,
    "CountryId": 2,
    "CountryName": "sample string 3",
    "CountryCode": "sample string 4",
    "countryISOCode": "sample string 5",
    "CardId": 6,
    "CardName": "sample string 7",
    "MinRegularCallingRate": 8.1,
    "MinDiscountedCallingRate": 9.1,
    "Denominations": [
      {
        "SubCardId": "sample string 1",
        "TotalTime": 2,
        "Price": 3.0,
        "ServiceFee": 4.1,
        "DiscountApplied": 5.1,
        "DiscountType": "sample string 6",
        "PromoMinutes": 7,
        "PromoCode": "sample string 8",
        "RegularCallingRate": 9.1,
        "DiscountedCallingRate": 10.1
      },
      {
        "SubCardId": "sample string 1",
        "TotalTime": 2,
        "Price": 3.0,
        "ServiceFee": 4.1,
        "DiscountApplied": 5.1,
        "DiscountType": "sample string 6",
        "PromoMinutes": 7,
        "PromoCode": "sample string 8",
        "RegularCallingRate": 9.1,
        "DiscountedCallingRate": 10.1
      }
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfRateDetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Raza.Objects.Business.Rates">
  <RateDetail>
    <CardId>6</CardId>
    <CardName>sample string 7</CardName>
    <CountryCode>sample string 4</CountryCode>
    <CountryFrom>1</CountryFrom>
    <CountryId>2</CountryId>
    <CountryName>sample string 3</CountryName>
    <Denominations>
      <RateDetailDenomination>
        <DiscountApplied>5.1</DiscountApplied>
        <DiscountType>sample string 6</DiscountType>
        <DiscountedCallingRate>10.1</DiscountedCallingRate>
        <Price>3</Price>
        <PromoCode>sample string 8</PromoCode>
        <PromoMinutes>7</PromoMinutes>
        <RegularCallingRate>9.1</RegularCallingRate>
        <ServiceFee>4.1</ServiceFee>
        <SubCardId>sample string 1</SubCardId>
        <TotalTime>2</TotalTime>
      </RateDetailDenomination>
      <RateDetailDenomination>
        <DiscountApplied>5.1</DiscountApplied>
        <DiscountType>sample string 6</DiscountType>
        <DiscountedCallingRate>10.1</DiscountedCallingRate>
        <Price>3</Price>
        <PromoCode>sample string 8</PromoCode>
        <PromoMinutes>7</PromoMinutes>
        <RegularCallingRate>9.1</RegularCallingRate>
        <ServiceFee>4.1</ServiceFee>
        <SubCardId>sample string 1</SubCardId>
        <TotalTime>2</TotalTime>
      </RateDetailDenomination>
    </Denominations>
    <MinDiscountedCallingRate>9.1</MinDiscountedCallingRate>
    <MinRegularCallingRate>8.1</MinRegularCallingRate>
    <countryISOCode>sample string 5</countryISOCode>
  </RateDetail>
  <RateDetail>
    <CardId>6</CardId>
    <CardName>sample string 7</CardName>
    <CountryCode>sample string 4</CountryCode>
    <CountryFrom>1</CountryFrom>
    <CountryId>2</CountryId>
    <CountryName>sample string 3</CountryName>
    <Denominations>
      <RateDetailDenomination>
        <DiscountApplied>5.1</DiscountApplied>
        <DiscountType>sample string 6</DiscountType>
        <DiscountedCallingRate>10.1</DiscountedCallingRate>
        <Price>3</Price>
        <PromoCode>sample string 8</PromoCode>
        <PromoMinutes>7</PromoMinutes>
        <RegularCallingRate>9.1</RegularCallingRate>
        <ServiceFee>4.1</ServiceFee>
        <SubCardId>sample string 1</SubCardId>
        <TotalTime>2</TotalTime>
      </RateDetailDenomination>
      <RateDetailDenomination>
        <DiscountApplied>5.1</DiscountApplied>
        <DiscountType>sample string 6</DiscountType>
        <DiscountedCallingRate>10.1</DiscountedCallingRate>
        <Price>3</Price>
        <PromoCode>sample string 8</PromoCode>
        <PromoMinutes>7</PromoMinutes>
        <RegularCallingRate>9.1</RegularCallingRate>
        <ServiceFee>4.1</ServiceFee>
        <SubCardId>sample string 1</SubCardId>
        <TotalTime>2</TotalTime>
      </RateDetailDenomination>
    </Denominations>
    <MinDiscountedCallingRate>9.1</MinDiscountedCallingRate>
    <MinRegularCallingRate>8.1</MinRegularCallingRate>
    <countryISOCode>sample string 5</countryISOCode>
  </RateDetail>
</ArrayOfRateDetail>