POST api/Transazioni/NuovaTransazione

Request Information

URI Parameters

None.

Body Parameters

NuovaTransazioneModel
NameDescriptionTypeAdditional information
DESCRIZIONE

string

Required

IMPORTO

decimal number

Required

DATA_TRANSAZIONE

date

Required

ID_CONTO

integer

Required

ID_TIPO_TRANSAZIONE

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "DESCRIZIONE": "sample string 1",
  "IMPORTO": 2.0,
  "DATA_TRANSAZIONE": "2025-05-21T19:28:19.7067286+02:00",
  "ID_CONTO": 4,
  "ID_TIPO_TRANSAZIONE": 5
}

application/xml, text/xml

Sample:
<NuovaTransazioneModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HomeFinance.Models">
  <DATA_TRANSAZIONE>2025-05-21T19:28:19.7067286+02:00</DATA_TRANSAZIONE>
  <DESCRIZIONE>sample string 1</DESCRIZIONE>
  <ID_CONTO>4</ID_CONTO>
  <ID_TIPO_TRANSAZIONE>5</ID_TIPO_TRANSAZIONE>
  <IMPORTO>2</IMPORTO>
</NuovaTransazioneModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>