POST api/Transactions/Generate
Request Information
URI Parameters
None.
Body Parameters
GenerateTransactionRequestModelName | Description | Type | Additional 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
TransactionRequestName | Description | Type | Additional information |
---|---|---|---|
Jwt | string |
None. |
|
TransactionType | TransactionType |
None. |
|
Order | TransactionOrder |
None. |
Response Formats
application/json, text/json
Sample:
{ "Jwt": "sample string 1", "TransactionType": 1, "Order": { "OrderDetails": { "OrderNumber": "sample string 1", "Amount": 2.1, "CurrencyCode": "sample string 3", "OrderDescription": "sample string 4" }, "Cart": [ { "Name": "sample string 1", "Quantity": 2 }, { "Name": "sample string 1", "Quantity": 2 } ], "Consumer": { "Email1": "sample string 1", "Account": { "AccountNumber": "sample string 1", "ExpirationMonth": "sample string 2", "ExpirationYear": "sample string 3", "NameOnCard": "sample string 4" }, "BillingAddress": { "FirstName": "sample string 1", "LastName": "sample string 2", "Address1": "sample string 3", "City": "sample string 4", "State": "sample string 5", "CountryCode": "sample string 6", "PostalCode": "sample string 7", "HomePhone": "sample string 8" }, "ShippingAddress": { "FirstName": "sample string 1", "LastName": "sample string 2", "Address1": "sample string 3", "City": "sample string 4", "State": "sample string 5", "CountryCode": "sample string 6", "PostalCode": "sample string 7", "HomePhone": "sample string 8" } } } }
application/xml, text/xml
Sample:
<TransactionRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Raza.Objects.Business.Transactions"> <Jwt>sample string 1</Jwt> <Order> <Cart> <Cart> <Name>sample string 1</Name> <Quantity>2</Quantity> </Cart> <Cart> <Name>sample string 1</Name> <Quantity>2</Quantity> </Cart> </Cart> <Consumer> <Account> <AccountNumber>sample string 1</AccountNumber> <ExpirationMonth>sample string 2</ExpirationMonth> <ExpirationYear>sample string 3</ExpirationYear> <NameOnCard>sample string 4</NameOnCard> </Account> <BillingAddress> <Address1>sample string 3</Address1> <City>sample string 4</City> <CountryCode>sample string 6</CountryCode> <FirstName>sample string 1</FirstName> <HomePhone>sample string 8</HomePhone> <LastName>sample string 2</LastName> <PostalCode>sample string 7</PostalCode> <State>sample string 5</State> </BillingAddress> <Email1>sample string 1</Email1> <ShippingAddress> <Address1>sample string 3</Address1> <City>sample string 4</City> <CountryCode>sample string 6</CountryCode> <FirstName>sample string 1</FirstName> <HomePhone>sample string 8</HomePhone> <LastName>sample string 2</LastName> <PostalCode>sample string 7</PostalCode> <State>sample string 5</State> </ShippingAddress> </Consumer> <OrderDetails> <Amount>2.1</Amount> <CurrencyCode>sample string 3</CurrencyCode> <OrderDescription>sample string 4</OrderDescription> <OrderNumber>sample string 1</OrderNumber> </OrderDetails> </Order> <TransactionType>R</TransactionType> </TransactionRequest>