POST api/MobileTopups/MobileApp

Request Information

URI Parameters

None.

Body Parameters

MobileTopUpRequestModel
NameDescriptionTypeAdditional information
OrderId

string

None.

CouponCode

string

None.

PaymentMethod

string

None.

IsPaymentProcessed

boolean

None.

CreditCardId

integer

None.

CreditCard

CreditCard

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.

OperatorCode

string

None.

Operator

string

None.

CountryId

integer

None.

PurchaseAmount

decimal number

None.

SourceAmount

decimal number

None.

CurrencyCode

CurrencyCode

None.

DestinationAmt

decimal number

None.

DestinationPhoneNumber

string

None.

SmsTo

string

None.

StoreNumber

integer

None.

DestinationCountryCode

string

None.

nonce

string

None.

DeviceId

string

None.

DeviceType

string

None.

DeviceName

string

None.

DeviceModel

string

None.

AppVersion

string

None.

Request Formats

application/json, text/json

Sample:
{
  "OrderId": "sample string 1",
  "CouponCode": "sample string 2",
  "PaymentMethod": "sample string 3",
  "IsPaymentProcessed": true,
  "CreditCardId": 5,
  "CreditCard": {
    "CardNumber": "sample string 1",
    "Type": 1,
    "ExpiryDate": "sample string 2sample string 3",
    "ExpiryMonth": "sample string 2",
    "ExpiryYear": "sample string 3",
    "Cvv": "sample string 4",
    "Status": true,
    "CardHolderName": "sample string 6",
    "InstanceId": 7
  },
  "Cvv2": "sample string 6",
  "PaymentTransactionId": "sample string 7",
  "ZipCodeResponse": "sample string 8",
  "AddressResponse": "sample string 9",
  "Cvv2Response": "sample string 10",
  "Cavv": "sample string 11",
  "EciFlag": "sample string 12",
  "Xid": "sample string 13",
  "IpAddress": "sample string 14",
  "PayPalPayerId": "sample string 15",
  "OperatorCode": "sample string 16",
  "Operator": "sample string 17",
  "CountryId": 18,
  "PurchaseAmount": 19.1,
  "SourceAmount": 20.1,
  "CurrencyCode": 1,
  "DestinationAmt": 21.1,
  "DestinationPhoneNumber": "sample string 22",
  "SmsTo": "sample string 23",
  "StoreNumber": 24,
  "DestinationCountryCode": "sample string 25",
  "nonce": "sample string 26",
  "DeviceId": "sample string 27",
  "DeviceType": "sample string 28",
  "DeviceName": "sample string 29",
  "DeviceModel": "sample string 30",
  "AppVersion": "sample string 31"
}

application/xml, text/xml

Sample:
<MobileTopUpRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Raza.Web.Api.Models.Transactions">
  <AddressResponse>sample string 9</AddressResponse>
  <AppVersion>sample string 31</AppVersion>
  <Cavv>sample string 11</Cavv>
  <CountryId>18</CountryId>
  <CouponCode>sample string 2</CouponCode>
  <CreditCard xmlns:d2p1="http://schemas.datacontract.org/2004/07/Raza.Objects.Business.Accounts">
    <InstanceId xmlns="http://schemas.datacontract.org/2004/07/Raza.Core">7</InstanceId>
    <d2p1:CardHolderName>sample string 6</d2p1:CardHolderName>
    <d2p1:CardNumber>sample string 1</d2p1:CardNumber>
    <d2p1:Cvv>sample string 4</d2p1:Cvv>
    <d2p1:ExpiryMonth>sample string 2</d2p1:ExpiryMonth>
    <d2p1:ExpiryYear>sample string 3</d2p1:ExpiryYear>
    <d2p1:Status>true</d2p1:Status>
    <d2p1:Type>Visa</d2p1:Type>
  </CreditCard>
  <CreditCardId>5</CreditCardId>
  <CurrencyCode>USD</CurrencyCode>
  <Cvv2>sample string 6</Cvv2>
  <Cvv2Response>sample string 10</Cvv2Response>
  <DestinationAmt>21.1</DestinationAmt>
  <DestinationCountryCode>sample string 25</DestinationCountryCode>
  <DestinationPhoneNumber>sample string 22</DestinationPhoneNumber>
  <DeviceId>sample string 27</DeviceId>
  <DeviceModel>sample string 30</DeviceModel>
  <DeviceName>sample string 29</DeviceName>
  <DeviceType>sample string 28</DeviceType>
  <EciFlag>sample string 12</EciFlag>
  <IpAddress>sample string 14</IpAddress>
  <IsPaymentProcessed>true</IsPaymentProcessed>
  <Operator>sample string 17</Operator>
  <OperatorCode>sample string 16</OperatorCode>
  <OrderId>sample string 1</OrderId>
  <PayPalPayerId>sample string 15</PayPalPayerId>
  <PaymentMethod>sample string 3</PaymentMethod>
  <PaymentTransactionId>sample string 7</PaymentTransactionId>
  <PurchaseAmount>19.1</PurchaseAmount>
  <SmsTo>sample string 23</SmsTo>
  <SourceAmount>20.1</SourceAmount>
  <StoreNumber>24</StoreNumber>
  <Xid>sample string 13</Xid>
  <ZipCodeResponse>sample string 8</ZipCodeResponse>
  <nonce>sample string 26</nonce>
</MobileTopUpRequestModel>

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>