Gemma.WebApi

<back to all web services

PostPreventivoRequest

Documenti
Requires Authentication
The following routes are available for this service:
POST/preventivi
PostPreventivoRequest Parameters:
NameParameterData TypeRequiredDescription
SoggettoClienteIdbodyintegerYesID del soggetto cliente. Obbligatorio e deve essere un numero positivo (> 0).
PostPreventivoResponse Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
SoggettoClienteIdformintNo
DataCreazioneformDateTimeNo
DataDocumentoformDateTimeNo
TipoDocumentoIdformintNo
AziendaIdformintNo
EsercizioIdformintNo
StatoDocumentoIdformintNo
NumeroDocumentoformstringNo
CodiceDocumentoformstringNo
SoggettoClienteformSoggettoClienteInfoNo
SoggettoClienteInfo Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
RagioneSocialeformstringNo
PartitaIvaformstringNo
CodiceFiscaleformstringNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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: application/json
Content-Type: application/json
Content-Length: length

{"soggettoClienteId":0}
HTTP/1.1 200 OK
Content-Type: application/json
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"}}