| POST | /preventivi |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| SoggettoClienteId | body | integer | Yes | ID del soggetto cliente. Obbligatorio e deve essere un numero positivo (> 0). |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | int | No | |
| SoggettoClienteId | form | int | No | |
| DataCreazione | form | DateTime | No | |
| DataDocumento | form | DateTime | No | |
| TipoDocumentoId | form | int | No | |
| AziendaId | form | int | No | |
| EsercizioId | form | int | No | |
| StatoDocumentoId | form | int | No | |
| NumeroDocumento | form | string | No | |
| CodiceDocumento | form | string | No | |
| SoggettoCliente | form | SoggettoClienteInfo | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | int | No | |
| RagioneSociale | form | string | No | |
| PartitaIva | form | string | No | |
| CodiceFiscale | form | string | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /preventivi HTTP/1.1
Host: gemma.api.kerberos.energy
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"soggettoClienteId":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"id":0,"soggettoClienteId":0,"tipoDocumentoId":0,"aziendaId":0,"esercizioId":0,"statoDocumentoId":0,"numeroDocumento":"String","codiceDocumento":"String","soggettoCliente":{"id":0,"ragioneSociale":"String","partitaIva":"String","codiceFiscale":"String"}}