POST api/Transactions

Request Information

URI Parameters

None.

Body Parameters

InsertTransaction
NameDescriptionTypeAdditional information
BudgetId

integer

None.

UserId

integer

None.

ClientId

integer

None.

TransactionType

string

None.

TransactionDate

date

None.

TransactionDescription

string

None.

TransactionAmount

decimal number

None.

DocumentId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "BudgetId": 1,
  "UserId": 2,
  "ClientId": 3,
  "TransactionType": "sample string 4",
  "TransactionDate": "2017-05-24T14:38:15.3560988+01:00",
  "TransactionDescription": "sample string 6",
  "TransactionAmount": 7.0,
  "DocumentId": 1
}

application/xml, text/xml

Sample:
<Transaction xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Gecko.BudgetsService.DataTransferObjects.Insert">
  <BudgetId>1</BudgetId>
  <ClientId>3</ClientId>
  <DocumentId>1</DocumentId>
  <TransactionAmount>7</TransactionAmount>
  <TransactionDate>2017-05-24T14:38:15.3560988+01:00</TransactionDate>
  <TransactionDescription>sample string 6</TransactionDescription>
  <TransactionType>sample string 4</TransactionType>
  <UserId>2</UserId>
</Transaction>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Transaction'.

Response Information

Resource Description

DTOTransaction
NameDescriptionTypeAdditional information
Id

integer

None.

BudgetId

integer

None.

UserId

integer

None.

ClientId

integer

None.

TransactionType

string

None.

TransactionDate

date

None.

TransactionDescription

string

None.

TransactionAmount

decimal number

None.

DocumentId

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "BudgetId": 2,
  "UserId": 3,
  "ClientId": 4,
  "TransactionType": "sample string 5",
  "TransactionDate": "2017-05-24T14:38:15.3717205+01:00",
  "TransactionDescription": "sample string 7",
  "TransactionAmount": 8.0,
  "DocumentId": 1
}

application/xml, text/xml

Sample:
<Transaction xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Gecko.BudgetsService.DataTransferObjects">
  <BudgetId>2</BudgetId>
  <ClientId>4</ClientId>
  <DocumentId>1</DocumentId>
  <Id>1</Id>
  <TransactionAmount>8</TransactionAmount>
  <TransactionDate>2017-05-24T14:38:15.3717205+01:00</TransactionDate>
  <TransactionDescription>sample string 7</TransactionDescription>
  <TransactionType>sample string 5</TransactionType>
  <UserId>3</UserId>
</Transaction>