POST api/Recharge/v1/MobileApp/{planId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
planId

string

Required

Body Parameters

RechargeRequestModelWithMultipleCurrency
NameDescriptionTypeAdditional information
OrderId

string

None.

Amount

decimal number

None.

CurrencyCode

string

None.

CouponCode

string

None.

PaymentMethod

string

None.

IsPaymentProcessed

boolean

None.

CreditCardId

integer

None.

Cvv2

string

None.

PaymentTransactionId

string

None.

ZipCodeResponse

string

None.

AddressResponse

string

None.

Cvv2Response

string

None.

Cavv

string

None.

EciFlag

string

None.

Xid

string

None.

IpAddress

string

None.

PayPalPayerId

string

None.

IsAutoReFill

boolean

None.

AutoReFillAmount

decimal number

None.

nonce

string

None.

DeviceId

string

None.

DeviceType

string

None.

DeviceName

string

None.

DeviceModel

string

None.

AppVersion

string

None.

ActualAmountCharge

decimal number

None.

PaymentCurrency

string

None.

Request Formats

application/json, text/json

Sample:
{
  "OrderId": "sample string 1",
  "Amount": 2.1,
  "CurrencyCode": "sample string 3",
  "CouponCode": "sample string 4",
  "PaymentMethod": "sample string 5",
  "IsPaymentProcessed": true,
  "CreditCardId": 7,
  "Cvv2": "sample string 8",
  "PaymentTransactionId": "sample string 9",
  "ZipCodeResponse": "sample string 10",
  "AddressResponse": "sample string 11",
  "Cvv2Response": "sample string 12",
  "Cavv": "sample string 13",
  "EciFlag": "sample string 14",
  "Xid": "sample string 15",
  "IpAddress": "sample string 16",
  "PayPalPayerId": "sample string 17",
  "IsAutoReFill": true,
  "AutoReFillAmount": 19.1,
  "nonce": "sample string 20",
  "DeviceId": "sample string 21",
  "DeviceType": "sample string 22",
  "DeviceName": "sample string 23",
  "DeviceModel": "sample string 24",
  "AppVersion": "sample string 25",
  "ActualAmountCharge": 26.1,
  "PaymentCurrency": "sample string 27"
}

application/xml, text/xml

Sample:
<RechargeRequestModelWithMultipleCurrency xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Raza.Web.Api.Models.Recharge">
  <ActualAmountCharge>26.1</ActualAmountCharge>
  <AddressResponse>sample string 11</AddressResponse>
  <Amount>2.1</Amount>
  <AppVersion>sample string 25</AppVersion>
  <AutoReFillAmount>19.1</AutoReFillAmount>
  <Cavv>sample string 13</Cavv>
  <CouponCode>sample string 4</CouponCode>
  <CreditCardId>7</CreditCardId>
  <CurrencyCode>sample string 3</CurrencyCode>
  <Cvv2>sample string 8</Cvv2>
  <Cvv2Response>sample string 12</Cvv2Response>
  <DeviceId>sample string 21</DeviceId>
  <DeviceModel>sample string 24</DeviceModel>
  <DeviceName>sample string 23</DeviceName>
  <DeviceType>sample string 22</DeviceType>
  <EciFlag>sample string 14</EciFlag>
  <IpAddress>sample string 16</IpAddress>
  <IsAutoReFill>true</IsAutoReFill>
  <IsPaymentProcessed>true</IsPaymentProcessed>
  <OrderId>sample string 1</OrderId>
  <PayPalPayerId>sample string 17</PayPalPayerId>
  <PaymentCurrency>sample string 27</PaymentCurrency>
  <PaymentMethod>sample string 5</PaymentMethod>
  <PaymentTransactionId>sample string 9</PaymentTransactionId>
  <Xid>sample string 15</Xid>
  <ZipCodeResponse>sample string 10</ZipCodeResponse>
  <nonce>sample string 20</nonce>
</RechargeRequestModelWithMultipleCurrency>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

TransactionResponse
NameDescriptionTypeAdditional information
Status

boolean

None.

Message

string

None.

ErrorMessages

Collection of string

None.

OrderId

string

None.

IsPendingOrder

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": true,
  "Message": "sample string 2",
  "ErrorMessages": [
    "sample string 1",
    "sample string 2"
  ],
  "OrderId": "sample string 3",
  "IsPendingOrder": true
}

application/xml, text/xml

Sample:
<TransactionResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Raza.Objects.Business.Transactions">
  <ErrorMessages xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </ErrorMessages>
  <IsPendingOrder>true</IsPendingOrder>
  <Message>sample string 2</Message>
  <OrderId>sample string 3</OrderId>
  <Status>true</Status>
</TransactionResponse>