POST api/Recharge
Request Information
URI Parameters
None.
Body Parameters
MobileRechargeModelName | Description | Type | Additional information |
---|---|---|---|
Username | string |
Required Data type: Text String length: inclusive between 10 and 10 |
|
Password | string |
Required Data type: Text |
|
Number | string |
Required Data type: Text String length: inclusive between 10 and 10 |
|
Amount | string |
Required Data type: Text String length: inclusive between 2 and 5 |
|
Operator | string |
Required Data type: Text String length: inclusive between 1 and 2 |
|
YourTransactionID | string |
Required Data type: Text String length: inclusive between 5 and 15 |
Request Formats
application/json, text/json
Sample:
{ "Username": "sample string 1", "Password": "sample string 2", "Number": "sample string 3", "Amount": "sample string 4", "Operator": "sample string 5", "YourTransactionID": "sample string 6" }
application/xml, text/xml
Sample:
<MobileRechargeModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APIModels"> <Amount>sample string 4</Amount> <Number>sample string 3</Number> <Operator>sample string 5</Operator> <Password>sample string 2</Password> <Username>sample string 1</Username> <YourTransactionID>sample string 6</YourTransactionID> </MobileRechargeModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
RechargeResultName | Description | Type | Additional information |
---|---|---|---|
Status | string |
None. |
|
Message | string |
None. |
|
OptID | string |
None. |
|
TranID | string |
None. |
|
ErrorWarning | string |
None. |
|
ErrorCode | string |
None. |
|
Balance | decimal number |
None. |
|
OpeningBalance | decimal number |
None. |
|
RechargeCost | decimal number |
None. |
|
Rechargeid | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Status": "sample string 1", "Message": "sample string 2", "OptID": "sample string 3", "TranID": "sample string 4", "ErrorWarning": "sample string 5", "ErrorCode": "sample string 6", "Balance": 7.0, "OpeningBalance": 8.0, "RechargeCost": 9.0, "Rechargeid": "sample string 10" }
application/xml, text/xml
Sample:
<clsMethods.RechargeResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/"> <Balance>7</Balance> <ErrorCode>sample string 6</ErrorCode> <ErrorWarning>sample string 5</ErrorWarning> <Message>sample string 2</Message> <OpeningBalance>8</OpeningBalance> <OptID>sample string 3</OptID> <RechargeCost>9</RechargeCost> <Rechargeid>sample string 10</Rechargeid> <Status>sample string 1</Status> <TranID>sample string 4</TranID> </clsMethods.RechargeResult>