POST api/Live/Transaction/InsertTransaction

Request Information

URI Parameters

None.

Body Parameters

TransactionVM
NameDescriptionTypeAdditional 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.

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-03-30T10:01:54.2680334+00:00",
  "CreatedBy": 7,
  "TransactionType": "sample string 8",
  "Status": "sample string 9",
  "ExecutionDate": "2024-03-30T10:01:54.2680334+00:00",
  "TransactionTypeDropDown": 10,
  "AvailableBalance": 1.0,
  "AccountID": "sample string 11",
  "ZainCashID": "sample string 12",
  "SendNotification": true
}

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>
  <AmountQ>sample string 5</AmountQ>
  <AvailableBalance>1</AvailableBalance>
  <CreatedBy>7</CreatedBy>
  <CreatedDate>2024-03-30T10:01:54.2680334+00:00</CreatedDate>
  <Deposit>true</Deposit>
  <ExecutionDate>2024-03-30T10:01:54.2680334+00:00</ExecutionDate>
  <SendNotification>true</SendNotification>
  <Status>sample string 9</Status>
  <TransactionID>1</TransactionID>
  <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

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.