POST api/Live/Transaction/InsertTransaction
Request Information
URI Parameters
None.
Body Parameters
TransactionVMName | Description | Type | Additional information |
---|---|---|---|
TransactionID | integer |
None. |
|
UserID | integer |
Required |
|
Username | string |
None. |
|
Deposit | boolean |
None. |
|
Withdrawal | boolean |
None. |
|
Amount | decimal number |
None. |
|
AmountQ | string |
Required |
|
CreatedDate | date |
None. |
|
CreatedBy | integer |
None. |
|
TransactionType | string |
None. |
|
Status | string |
None. |
|
ExecutionDate | date |
None. |
|
TransactionTypeDropDown | integer |
None. |
|
AvailableBalance | decimal number |
None. |
|
AccountID | string |
None. |
|
ZainCashID | string |
None. |
|
SendNotification | boolean |
None. |
|
QOrderId | string |
None. |
|
QTransactionID | string |
None. |
|
HyperPayCheckoutID | string |
None. |
|
Description | string |
None. |
|
TransactionMode | string |
None. |
|
AmountAvailableForTrading | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{ "TransactionID": 1, "UserID": 2, "Username": "sample string 3", "Deposit": true, "Withdrawal": true, "Amount": 4.0, "AmountQ": "sample string 5", "CreatedDate": "2024-08-29T23:07:26.340601+00:00", "CreatedBy": 7, "TransactionType": "sample string 8", "Status": "sample string 9", "ExecutionDate": "2024-08-29T23:07:26.340601+00:00", "TransactionTypeDropDown": 10, "AvailableBalance": 1.0, "AccountID": "sample string 11", "ZainCashID": "sample string 12", "SendNotification": true, "QOrderId": "sample string 14", "QTransactionID": "sample string 15", "HyperPayCheckoutID": "sample string 16", "Description": "sample string 17", "TransactionMode": "sample string 18", "AmountAvailableForTrading": 1.0 }
application/xml, text/xml
Sample:
<TransactionVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StockTrading.Entities.Models"> <AccountID>sample string 11</AccountID> <Amount>4</Amount> <AmountAvailableForTrading>1</AmountAvailableForTrading> <AmountQ>sample string 5</AmountQ> <AvailableBalance>1</AvailableBalance> <CreatedBy>7</CreatedBy> <CreatedDate>2024-08-29T23:07:26.340601+00:00</CreatedDate> <Deposit>true</Deposit> <Description>sample string 17</Description> <ExecutionDate>2024-08-29T23:07:26.340601+00:00</ExecutionDate> <HyperPayCheckoutID>sample string 16</HyperPayCheckoutID> <QOrderId>sample string 14</QOrderId> <QTransactionID>sample string 15</QTransactionID> <SendNotification>true</SendNotification> <Status>sample string 9</Status> <TransactionID>1</TransactionID> <TransactionMode>sample string 18</TransactionMode> <TransactionType>sample string 8</TransactionType> <TransactionTypeDropDown>10</TransactionTypeDropDown> <UserID>2</UserID> <Username>sample string 3</Username> <Withdrawal>true</Withdrawal> <ZainCashID>sample string 12</ZainCashID> </TransactionVM>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |