DELETE api/Transactions/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

None.

Response Information

Resource Description

Transaction
NameDescriptionTypeAdditional information
Id

integer

Required

Budget

Budget

Required

User

User

Required

Client

Client

Required

TransactionType

string

Required

TransactionDate

date

Required

TransactionDescription

string

None.

TransactionAmount

decimal number

Required

DocumentId

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Budget": {
    "Id": 1,
    "Client": {
      "Id": 1,
      "ClientName": "sample string 2"
    },
    "BudgetName": "sample string 2",
    "BudgetCode": "sample string 3",
    "StartDate": "2017-05-24T14:38:26.2131803+01:00",
    "ExpiryDate": "2017-05-24T14:38:26.2131803+01:00",
    "BudgetSpendLimit": 6.0,
    "ReachedLimitDate": "2017-05-24T14:38:26.2131803+01:00",
    "BranchAllowance": 7.0,
    "Reference": "sample string 8",
    "BudgetStatus": "sample string 9",
    "CancellationDate": "2017-05-24T14:38:26.228802+01:00",
    "CancellationReason": "sample string 10"
  },
  "User": {
    "Id": 1,
    "Username": "sample string 2",
    "Password": "sample string 3",
    "Client": {
      "Id": 1,
      "ClientName": "sample string 2"
    },
    "Role": {
      "Id": 1,
      "Name": "sample string 2"
    },
    "IsAdmin": false
  },
  "Client": {
    "Id": 1,
    "ClientName": "sample string 2"
  },
  "TransactionType": "sample string 2",
  "TransactionDate": "2017-05-24T14:38:26.228802+01:00",
  "TransactionDescription": "sample string 4",
  "TransactionAmount": 5.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.Models">
  <Budget>
    <BranchAllowance>7</BranchAllowance>
    <BudgetCode>sample string 3</BudgetCode>
    <BudgetName>sample string 2</BudgetName>
    <BudgetSpendLimit>6</BudgetSpendLimit>
    <BudgetStatus>sample string 9</BudgetStatus>
    <CancellationDate>2017-05-24T14:38:26.228802+01:00</CancellationDate>
    <CancellationReason>sample string 10</CancellationReason>
    <Client>
      <ClientName>sample string 2</ClientName>
      <Id>1</Id>
    </Client>
    <ExpiryDate>2017-05-24T14:38:26.2131803+01:00</ExpiryDate>
    <Id>1</Id>
    <ReachedLimitDate>2017-05-24T14:38:26.2131803+01:00</ReachedLimitDate>
    <Reference>sample string 8</Reference>
    <StartDate>2017-05-24T14:38:26.2131803+01:00</StartDate>
  </Budget>
  <Client>
    <ClientName>sample string 2</ClientName>
    <Id>1</Id>
  </Client>
  <DocumentId>1</DocumentId>
  <Id>1</Id>
  <TransactionAmount>5</TransactionAmount>
  <TransactionDate>2017-05-24T14:38:26.228802+01:00</TransactionDate>
  <TransactionDescription>sample string 4</TransactionDescription>
  <TransactionType>sample string 2</TransactionType>
  <User>
    <Client>
      <ClientName>sample string 2</ClientName>
      <Id>1</Id>
    </Client>
    <Id>1</Id>
    <Password>sample string 3</Password>
    <Role>
      <Id>1</Id>
      <Name>sample string 2</Name>
    </Role>
    <Username>sample string 2</Username>
  </User>
</Transaction>