| GET | /soggetti/by-vat/{VatCode} | Risolve un soggetto tramite Partita IVA. Se non presente a sistema, interroga servizi esterni per il censimento automatico. |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| VatCode | path | string | Yes | Partita IVA del soggetto da risolvere (formato senza prefisso nazione, es: 01234567890). |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | int | No | |
| AreaId | form | int | No | |
| AziendaId | form | int | No | |
| CategoriaId | form | int | No | |
| ContattoCommercialeId | form | int | No | |
| ImportazioneId | form | int | No | |
| ListinoId | form | int | No | |
| MagazzinoSoggettoId | form | int | No | |
| OwnerId | form | int | No | |
| ScadenzaPagamentoId | form | int | No | |
| SoggettoIntermediarioId | form | int | No | |
| TipoDriverCommercialeId | form | int | No | |
| TipoIntermediarioId | form | int | No | |
| TipoPartnerId | form | int | No | |
| TipoSoggettoId | form | int? | No | |
| TipoStatoSoggettoId | form | int | No | |
| TipoTitoloId | form | int? | No | |
| Codice | form | string | No | |
| CodiceFiscale | form | string | No | |
| PartitaIva | form | string | No | |
| CodiceEsterno | form | string | No | |
| NomeRagSoc | form | string | No | |
| Cognome | form | string | No | |
| IsAnagraficaRichiesta | form | bool | No | |
| IsAnagraficaInviata | form | bool | No | |
| IsCliente | form | bool | No | |
| IsEliminato | form | bool | No | |
| IsFornitore | form | bool | No | |
| IsSoggettoConBenestare | form | bool | No | |
| IsVettore | form | bool | No | |
| IsWebReference | form | bool | No | |
| Note | form | string | No | |
| DataCreazione | form | DateTime | No | |
| DataModifica | form | DateTime? | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /soggetti/by-vat/{VatCode} HTTP/1.1
Host: gemma.api.kerberos.energy
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
id: 0,
areaId: 0,
aziendaId: 0,
categoriaId: 0,
contattoCommercialeId: 0,
importazioneId: 0,
listinoId: 0,
magazzinoSoggettoId: 0,
ownerId: 0,
scadenzaPagamentoId: 0,
soggettoIntermediarioId: 0,
tipoDriverCommercialeId: 0,
tipoIntermediarioId: 0,
tipoPartnerId: 0,
tipoSoggettoId: 0,
tipoStatoSoggettoId: 0,
tipoTitoloId: 0,
codice: String,
codiceFiscale: String,
partitaIva: String,
codiceEsterno: String,
nomeRagSoc: String,
cognome: String,
isAnagraficaRichiesta: False,
isAnagraficaInviata: False,
isCliente: False,
isEliminato: False,
isFornitore: False,
isSoggettoConBenestare: False,
isVettore: False,
isWebReference: False,
note: String,
dataModifica: 0001-01-01T00:00:00
}