POST api/Transaction?mode={mode}&key={key}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| mode | string |
Required |
|
| key | string |
Default value is |
Body Parameters
transactionmodel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| PortfolioId | integer |
None. |
|
| Quantity | decimal number |
None. |
|
| PurchasePrice | decimal number |
None. |
|
| TransactionDate | date |
None. |
|
| UpdatedDate | date |
None. |
|
| Note | string |
None. |
|
| CoinId | integer |
None. |
|
| IsDeleted | integer |
None. |
|
| IsStar | boolean |
None. |
|
| DisplayOrder | integer |
None. |
|
| IsProfit | integer |
None. |
|
| Type | string |
None. |
|
| SellDate | date |
None. |
|
| SellQuantity | decimal number |
None. |
|
| SellPrice | decimal number |
None. |
|
| ParentId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"PortfolioId": 2,
"Quantity": 3.0,
"PurchasePrice": 4.0,
"TransactionDate": "2026-01-29T00:33:13.3398056-08:00",
"UpdatedDate": "2026-01-29T00:33:13.3398056-08:00",
"Note": "sample string 7",
"CoinId": 8,
"IsDeleted": 9,
"IsStar": true,
"DisplayOrder": 11,
"IsProfit": 12,
"Type": "sample string 13",
"SellDate": "2026-01-29T00:33:13.3398056-08:00",
"SellQuantity": 15.0,
"SellPrice": 16.0,
"ParentId": 17
}
application/xml, text/xml
Sample:
<transactionmodel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApp.Models"> <CoinId>8</CoinId> <DisplayOrder>11</DisplayOrder> <Id>1</Id> <IsDeleted>9</IsDeleted> <IsProfit>12</IsProfit> <IsStar>true</IsStar> <Note>sample string 7</Note> <ParentId>17</ParentId> <PortfolioId>2</PortfolioId> <PurchasePrice>4</PurchasePrice> <Quantity>3</Quantity> <SellDate>2026-01-29T00:33:13.3398056-08:00</SellDate> <SellPrice>16</SellPrice> <SellQuantity>15</SellQuantity> <TransactionDate>2026-01-29T00:33:13.3398056-08:00</TransactionDate> <Type>sample string 13</Type> <UpdatedDate>2026-01-29T00:33:13.3398056-08:00</UpdatedDate> </transactionmodel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
DataTable| Name | Description | Type | Additional information |
|---|---|---|---|
| CaseSensitive | boolean |
None. |
|
| IsInitialized | boolean |
None. |
|
| RemotingFormat | SerializationFormat |
None. |
|
| ChildRelations | Collection of Object |
None. |
|
| Columns | Collection of Object |
None. |
|
| Constraints | Collection of Object |
None. |
|
| DataSet | DataSet |
None. |
|
| DefaultView | Collection of Object |
None. |
|
| DisplayExpression | string |
None. |
|
| ExtendedProperties | Dictionary of Object [key] and Object [value] |
None. |
|
| HasErrors | boolean |
None. |
|
| Locale | CultureInfo |
None. |
|
| MinimumCapacity | integer |
None. |
|
| ParentRelations | Collection of Object |
None. |
|
| PrimaryKey | Collection of DataColumn |
None. |
|
| Rows | Collection of Object |
None. |
|
| TableName | string |
None. |
|
| Namespace | string |
None. |
|
| Prefix | string |
None. |
|
| Site | ISite |
None. |
|
| Container | IContainer |
None. |
|
| DesignMode | boolean |
None. |
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.