POST api/Recharge/{planId}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
planId | string |
Required |
Body Parameters
RechargePostModelName | Description | Type | Additional information |
---|---|---|---|
OrderId | string |
None. |
|
Amount | decimal number |
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. |
|
ProcessedBy | string |
None. |
|
SingleCartActualAmountCharge | decimal number |
None. |
|
PaymentCurrency | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "OrderId": "sample string 1", "Amount": 2.1, "CouponCode": "sample string 3", "PaymentMethod": "sample string 4", "IsPaymentProcessed": true, "CreditCardId": 6, "Cvv2": "sample string 7", "PaymentTransactionId": "sample string 8", "ZipCodeResponse": "sample string 9", "AddressResponse": "sample string 10", "Cvv2Response": "sample string 11", "Cavv": "sample string 12", "EciFlag": "sample string 13", "Xid": "sample string 14", "IpAddress": "sample string 15", "PayPalPayerId": "sample string 16", "IsAutoReFill": true, "AutoReFillAmount": 18.1, "nonce": "sample string 19", "ProcessedBy": "sample string 20", "SingleCartActualAmountCharge": 21.1, "PaymentCurrency": "sample string 22" }
application/xml, text/xml
Sample:
<RechargePostModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Raza.Web.Api.Models.Recharge"> <AddressResponse>sample string 10</AddressResponse> <Amount>2.1</Amount> <AutoReFillAmount>18.1</AutoReFillAmount> <Cavv>sample string 12</Cavv> <CouponCode>sample string 3</CouponCode> <CreditCardId>6</CreditCardId> <Cvv2>sample string 7</Cvv2> <Cvv2Response>sample string 11</Cvv2Response> <EciFlag>sample string 13</EciFlag> <IpAddress>sample string 15</IpAddress> <IsAutoReFill>true</IsAutoReFill> <IsPaymentProcessed>true</IsPaymentProcessed> <OrderId>sample string 1</OrderId> <PayPalPayerId>sample string 16</PayPalPayerId> <PaymentCurrency>sample string 22</PaymentCurrency> <PaymentMethod>sample string 4</PaymentMethod> <PaymentTransactionId>sample string 8</PaymentTransactionId> <ProcessedBy>sample string 20</ProcessedBy> <SingleCartActualAmountCharge>21.1</SingleCartActualAmountCharge> <Xid>sample string 14</Xid> <ZipCodeResponse>sample string 9</ZipCodeResponse> <nonce>sample string 19</nonce> </RechargePostModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
TransactionResponseName | Description | Type | Additional 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>