POST api/Transactions/Paypal/Generate

Request Information

URI Parameters

None.

Body Parameters

GenerateTransactionRequestModel
NameDescriptionTypeAdditional information
TransactionType

TransactionType

None.

PlanId

string

None.

PurchaseAmount

decimal number

None.

cardId

integer

None.

SubCardId

string

None.

CardName

string

None.

CurrencyCode

CurrencyCode

None.

Request Formats

application/json, text/json

Sample:
{
  "TransactionType": 1,
  "PlanId": "sample string 1",
  "PurchaseAmount": 2.1,
  "cardId": 3,
  "SubCardId": "sample string 4",
  "CardName": "sample string 5",
  "CurrencyCode": 1
}

application/xml, text/xml

Sample:
<GenerateTransactionRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Raza.Web.Api.Models.Transactions">
  <CardName>sample string 5</CardName>
  <CurrencyCode>USD</CurrencyCode>
  <PlanId>sample string 1</PlanId>
  <PurchaseAmount>2.1</PurchaseAmount>
  <SubCardId>sample string 4</SubCardId>
  <TransactionType>R</TransactionType>
  <cardId>3</cardId>
</GenerateTransactionRequestModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>