GET api/Rates/PlansByCusotmer/{customerId}/{phoneNumber}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
customerId | integer |
Required |
|
phoneNumber | string |
Required |
Body Parameters
None.
Response Information
Resource Description
PlanRateResponseModelName | Description | Type | Additional information |
---|---|---|---|
CardId | integer |
None. |
|
CardName | string |
None. |
|
CurrencyCode | string |
None. |
|
CountryId | integer |
None. |
|
CountryName | string |
None. |
|
CountryCode | string |
None. |
|
AutorefillPlans | CallingCard |
None. |
|
WithoutAutorefillPlans | CallingCard |
None. |
|
DiscountedPlans | CallingCard |
None. |
|
DiscountedPlansWithAutoRefill | CallingCard |
None. |
Response Formats
application/json, text/json
Sample:
{ "CardId": 1, "CardName": "sample string 2", "CurrencyCode": "sample string 3", "CountryId": 4, "CountryName": "sample string 5", "CountryCode": "sample string 6", "AutorefillPlans": { "RatePerMin": 1.1, "Denominations": [ { "SubCardId": "sample string 1", "Price": 2.1, "ServiceCharge": 3.1, "Priority": 4, "TotalTime": 5.1, "DiscountApplied": 6.1, "DiscountType": "sample string 7", "PromoMinutes": 8, "PromoCode": "sample string 9" }, { "SubCardId": "sample string 1", "Price": 2.1, "ServiceCharge": 3.1, "Priority": 4, "TotalTime": 5.1, "DiscountApplied": 6.1, "DiscountType": "sample string 7", "PromoMinutes": 8, "PromoCode": "sample string 9" } ] }, "WithoutAutorefillPlans": { "RatePerMin": 1.1, "Denominations": [ { "SubCardId": "sample string 1", "Price": 2.1, "ServiceCharge": 3.1, "Priority": 4, "TotalTime": 5.1, "DiscountApplied": 6.1, "DiscountType": "sample string 7", "PromoMinutes": 8, "PromoCode": "sample string 9" }, { "SubCardId": "sample string 1", "Price": 2.1, "ServiceCharge": 3.1, "Priority": 4, "TotalTime": 5.1, "DiscountApplied": 6.1, "DiscountType": "sample string 7", "PromoMinutes": 8, "PromoCode": "sample string 9" } ] }, "DiscountedPlans": { "RatePerMin": 1.1, "Denominations": [ { "SubCardId": "sample string 1", "Price": 2.1, "ServiceCharge": 3.1, "Priority": 4, "TotalTime": 5.1, "DiscountApplied": 6.1, "DiscountType": "sample string 7", "PromoMinutes": 8, "PromoCode": "sample string 9" }, { "SubCardId": "sample string 1", "Price": 2.1, "ServiceCharge": 3.1, "Priority": 4, "TotalTime": 5.1, "DiscountApplied": 6.1, "DiscountType": "sample string 7", "PromoMinutes": 8, "PromoCode": "sample string 9" } ] }, "DiscountedPlansWithAutoRefill": { "RatePerMin": 1.1, "Denominations": [ { "SubCardId": "sample string 1", "Price": 2.1, "ServiceCharge": 3.1, "Priority": 4, "TotalTime": 5.1, "DiscountApplied": 6.1, "DiscountType": "sample string 7", "PromoMinutes": 8, "PromoCode": "sample string 9" }, { "SubCardId": "sample string 1", "Price": 2.1, "ServiceCharge": 3.1, "Priority": 4, "TotalTime": 5.1, "DiscountApplied": 6.1, "DiscountType": "sample string 7", "PromoMinutes": 8, "PromoCode": "sample string 9" } ] } }
application/xml, text/xml
Sample:
<PlanRateResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Raza.Web.Api.Models.Rates"> <AutorefillPlans xmlns:d2p1="http://schemas.datacontract.org/2004/07/Raza.Objects.Business.Rates"> <d2p1:Denominations> <d2p1:Denomination> <d2p1:DiscountApplied>6.1</d2p1:DiscountApplied> <d2p1:DiscountType>sample string 7</d2p1:DiscountType> <d2p1:Price>2.1</d2p1:Price> <d2p1:Priority>4</d2p1:Priority> <d2p1:PromoCode>sample string 9</d2p1:PromoCode> <d2p1:PromoMinutes>8</d2p1:PromoMinutes> <d2p1:ServiceCharge>3.1</d2p1:ServiceCharge> <d2p1:SubCardId>sample string 1</d2p1:SubCardId> <d2p1:TotalTime>5.1</d2p1:TotalTime> </d2p1:Denomination> <d2p1:Denomination> <d2p1:DiscountApplied>6.1</d2p1:DiscountApplied> <d2p1:DiscountType>sample string 7</d2p1:DiscountType> <d2p1:Price>2.1</d2p1:Price> <d2p1:Priority>4</d2p1:Priority> <d2p1:PromoCode>sample string 9</d2p1:PromoCode> <d2p1:PromoMinutes>8</d2p1:PromoMinutes> <d2p1:ServiceCharge>3.1</d2p1:ServiceCharge> <d2p1:SubCardId>sample string 1</d2p1:SubCardId> <d2p1:TotalTime>5.1</d2p1:TotalTime> </d2p1:Denomination> </d2p1:Denominations> <d2p1:RatePerMin>1.1</d2p1:RatePerMin> </AutorefillPlans> <CardId>1</CardId> <CardName>sample string 2</CardName> <CountryCode>sample string 6</CountryCode> <CountryId>4</CountryId> <CountryName>sample string 5</CountryName> <CurrencyCode>sample string 3</CurrencyCode> <DiscountedPlans xmlns:d2p1="http://schemas.datacontract.org/2004/07/Raza.Objects.Business.Rates"> <d2p1:Denominations> <d2p1:Denomination> <d2p1:DiscountApplied>6.1</d2p1:DiscountApplied> <d2p1:DiscountType>sample string 7</d2p1:DiscountType> <d2p1:Price>2.1</d2p1:Price> <d2p1:Priority>4</d2p1:Priority> <d2p1:PromoCode>sample string 9</d2p1:PromoCode> <d2p1:PromoMinutes>8</d2p1:PromoMinutes> <d2p1:ServiceCharge>3.1</d2p1:ServiceCharge> <d2p1:SubCardId>sample string 1</d2p1:SubCardId> <d2p1:TotalTime>5.1</d2p1:TotalTime> </d2p1:Denomination> <d2p1:Denomination> <d2p1:DiscountApplied>6.1</d2p1:DiscountApplied> <d2p1:DiscountType>sample string 7</d2p1:DiscountType> <d2p1:Price>2.1</d2p1:Price> <d2p1:Priority>4</d2p1:Priority> <d2p1:PromoCode>sample string 9</d2p1:PromoCode> <d2p1:PromoMinutes>8</d2p1:PromoMinutes> <d2p1:ServiceCharge>3.1</d2p1:ServiceCharge> <d2p1:SubCardId>sample string 1</d2p1:SubCardId> <d2p1:TotalTime>5.1</d2p1:TotalTime> </d2p1:Denomination> </d2p1:Denominations> <d2p1:RatePerMin>1.1</d2p1:RatePerMin> </DiscountedPlans> <DiscountedPlansWithAutoRefill xmlns:d2p1="http://schemas.datacontract.org/2004/07/Raza.Objects.Business.Rates"> <d2p1:Denominations> <d2p1:Denomination> <d2p1:DiscountApplied>6.1</d2p1:DiscountApplied> <d2p1:DiscountType>sample string 7</d2p1:DiscountType> <d2p1:Price>2.1</d2p1:Price> <d2p1:Priority>4</d2p1:Priority> <d2p1:PromoCode>sample string 9</d2p1:PromoCode> <d2p1:PromoMinutes>8</d2p1:PromoMinutes> <d2p1:ServiceCharge>3.1</d2p1:ServiceCharge> <d2p1:SubCardId>sample string 1</d2p1:SubCardId> <d2p1:TotalTime>5.1</d2p1:TotalTime> </d2p1:Denomination> <d2p1:Denomination> <d2p1:DiscountApplied>6.1</d2p1:DiscountApplied> <d2p1:DiscountType>sample string 7</d2p1:DiscountType> <d2p1:Price>2.1</d2p1:Price> <d2p1:Priority>4</d2p1:Priority> <d2p1:PromoCode>sample string 9</d2p1:PromoCode> <d2p1:PromoMinutes>8</d2p1:PromoMinutes> <d2p1:ServiceCharge>3.1</d2p1:ServiceCharge> <d2p1:SubCardId>sample string 1</d2p1:SubCardId> <d2p1:TotalTime>5.1</d2p1:TotalTime> </d2p1:Denomination> </d2p1:Denominations> <d2p1:RatePerMin>1.1</d2p1:RatePerMin> </DiscountedPlansWithAutoRefill> <WithoutAutorefillPlans xmlns:d2p1="http://schemas.datacontract.org/2004/07/Raza.Objects.Business.Rates"> <d2p1:Denominations> <d2p1:Denomination> <d2p1:DiscountApplied>6.1</d2p1:DiscountApplied> <d2p1:DiscountType>sample string 7</d2p1:DiscountType> <d2p1:Price>2.1</d2p1:Price> <d2p1:Priority>4</d2p1:Priority> <d2p1:PromoCode>sample string 9</d2p1:PromoCode> <d2p1:PromoMinutes>8</d2p1:PromoMinutes> <d2p1:ServiceCharge>3.1</d2p1:ServiceCharge> <d2p1:SubCardId>sample string 1</d2p1:SubCardId> <d2p1:TotalTime>5.1</d2p1:TotalTime> </d2p1:Denomination> <d2p1:Denomination> <d2p1:DiscountApplied>6.1</d2p1:DiscountApplied> <d2p1:DiscountType>sample string 7</d2p1:DiscountType> <d2p1:Price>2.1</d2p1:Price> <d2p1:Priority>4</d2p1:Priority> <d2p1:PromoCode>sample string 9</d2p1:PromoCode> <d2p1:PromoMinutes>8</d2p1:PromoMinutes> <d2p1:ServiceCharge>3.1</d2p1:ServiceCharge> <d2p1:SubCardId>sample string 1</d2p1:SubCardId> <d2p1:TotalTime>5.1</d2p1:TotalTime> </d2p1:Denomination> </d2p1:Denominations> <d2p1:RatePerMin>1.1</d2p1:RatePerMin> </WithoutAutorefillPlans> </PlanRateResponseModel>