Unico3.Link.API

<back to all web services

RicercaAnagrafiche

Amministrazione
The following routes are available for this service:
GET/anagrafiche/ricerca
GET/anagrafiche/codicefiscale/{CodiceFiscale}
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Unico3.Link.API.Messages.Anagrafiche
Imports Unico3.Link.API.Messages
Imports Unico3.Link.API.Messages.Magazzino
Imports Unico3.Link.API.Messages.Documenti

Namespace Global

    Namespace Unico3.Link.API.Messages

        Public Partial Class FK
            Public Overridable Property Id As Nullable(Of Integer)
        End Class
    End Namespace

    Namespace Unico3.Link.API.Messages.Anagrafiche

        Public Partial Class Anagrafica
            Public Overridable Property Id As Nullable(Of Integer)
            Public Overridable Property Codice As Nullable(Of Integer)
            Public Overridable Property CodiceExport As String
            Public Overridable Property TipoPersona As Nullable(Of TipoPersona)
            Public Overridable Property Denominazione As String
            Public Overridable Property Nome As String
            Public Overridable Property Cognome As String
            Public Overridable Property CodiceFiscale As String
            Public Overridable Property PIVA As String
            Public Overridable Property ProfiloFGas As Nullable(Of ProfiloFGas)
            Public Overridable Property TipoSoggettoSdI As Nullable(Of TipoSoggettoSdI)
            Public Overridable Property CodiceSdI As String
            Public Overridable Property PECSdI As String
            Public Overridable Property Email As String
            Public Overridable Property Tribunale As String
            Public Overridable Property PEC As String
            Public Overridable Property CCIAA As String
            Public Overridable Property EORI As String
            Public Overridable Property TipoTelefono1 As Nullable(Of TipoTelefono)
            Public Overridable Property TipoTelefono2 As Nullable(Of TipoTelefono)
            Public Overridable Property TipoTelefono3 As Nullable(Of TipoTelefono)
            Public Overridable Property Telefono1 As String
            Public Overridable Property Telefono2 As String
            Public Overridable Property Telefono3 As String
            Public Overridable Property Indirizzo As String
            Public Overridable Property NumeroCivico As String
            Public Overridable Property Comune As FK_Comune
            Public Overridable Property Gruppo As String
            Public Overridable Property Suffisso As String
            Public Overridable Property NotePrincipali As String
            Public Overridable Property NoteStorico As String
            Public Overridable Property NoteRiservato As String
            Public Overridable Property NoteBloccato As String
            Public Overridable Property IsCliente As Nullable(Of Boolean)
            Public Overridable Property DatiVendita As DatiCliente
            Public Overridable Property IsFornitore As Nullable(Of Boolean)
            Public Overridable Property DatiAcquisto As DatiFornitore
        End Class

        Public Partial Class DatiCliente
            Public Overridable Property ContoCliente As FK_Conto
            Public Overridable Property Pagamento As FK_Pagamento
            Public Overridable Property AliquotaIVA As FK_AliquotaIVA
            Public Overridable Property ScontoAbituale As String
            Public Overridable Property Listino As FK_Listino
            Public Overridable Property IsRitenutaAcconto As Nullable(Of Boolean)
        End Class

        Public Partial Class DatiFornitore
            Public Overridable Property Listino As FK_Listino
            Public Overridable Property Pagamento As FK_Pagamento
            Public Overridable Property ContoFornitore As FK_Conto
            Public Overridable Property Contropartita As FK_Conto
        End Class

        Public Partial Class FK_Comune
            Inherits FK
            Public Overridable Property CAP As String
            Public Overridable Property Denominazione As String
            Public Overridable Property Provincia As String
            Public Overridable Property CodiceISTAT As String
        End Class

        Public Enum ProfiloFGas
            Privato = 1
            Impresa = 2
            Enti = 3
            Altro = 4
        End Enum

        Public Partial Class RicercaAnagrafiche
            Public Overridable Property CodiceFiscale As String
        End Class

        Public Partial Class RisultatoRicercaAnagrafiche
            Public Sub New()
                Anagrafiche = New List(Of Anagrafica)
            End Sub

            Public Overridable Property Anagrafiche As List(Of Anagrafica)
        End Class

        Public Enum TipoPersona
            Giuridica
            Fisica
        End Enum

        Public Enum TipoSoggettoSdI
            Privato = 1
            PA = 2
            SoggettoSdI = 3
            NonSoggettoSdI = 4
            Condominio = 5
        End Enum

        Public Enum TipoTelefono
            Fisso
            Fax
            Cellulare
            SMS
        End Enum
    End Namespace

    Namespace Unico3.Link.API.Messages.Documenti

        Public Partial Class FK_Pagamento
            Inherits FK
            Implements IUniqueDescrizione
            Implements IUniqueCodiceExport
            Public Overridable Property CodiceExport As String
            Public Overridable Property Descrizione As String
        End Class
    End Namespace

    Namespace Unico3.Link.API.Messages.Magazzino

        Public Partial Class FK_AliquotaIVA
            Inherits FK
            Implements IUniqueCodice
            Implements IUniqueCodiceExport
            Public Overridable Property Codice As String
            Public Overridable Property CodiceExport As String
        End Class

        Public Partial Class FK_Conto
            Inherits FK
            Implements IUniqueCodice
            Implements IUniqueCodiceExport
            Public Overridable Property Codice As String
            Public Overridable Property CodiceExport As String
        End Class

        Public Partial Class FK_Listino
            Inherits FK
            Implements IUniqueCodice
            Implements IUniqueDescrizione
            Public Overridable Property Codice As String
            Public Overridable Property Descrizione As String
        End Class
    End Namespace
End Namespace

VB.NET RicercaAnagrafiche DTOs

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.

GET /anagrafiche/ricerca HTTP/1.1 
Host: unico3.link.api 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Anagrafiche":[{"Id":0,"Codice":0,"CodiceExport":"String","TipoPersona":"Giuridica","Denominazione":"String","Nome":"String","Cognome":"String","CodiceFiscale":"String","PIVA":"String","ProfiloFGas":"0","TipoSoggettoSdI":"0","CodiceSdI":"String","PECSdI":"String","Email":"String","Tribunale":"String","PEC":"String","CCIAA":"String","EORI":"String","TipoTelefono1":"Fisso","TipoTelefono2":"Fisso","TipoTelefono3":"Fisso","Telefono1":"String","Telefono2":"String","Telefono3":"String","Indirizzo":"String","NumeroCivico":"String","Comune":{"CAP":"String","Denominazione":"String","Provincia":"String","CodiceISTAT":"String","Id":0},"Gruppo":"String","Suffisso":"String","NotePrincipali":"String","NoteStorico":"String","NoteRiservato":"String","NoteBloccato":"String","IsCliente":false,"DatiVendita":{"ContoCliente":{"Codice":"String","CodiceExport":"String","Id":0},"Pagamento":{"CodiceExport":"String","Descrizione":"String","Id":0},"AliquotaIVA":{"Codice":"String","CodiceExport":"String","Id":0},"ScontoAbituale":"String","Listino":{"Codice":"String","Descrizione":"String","Id":0},"IsRitenutaAcconto":false},"IsFornitore":false,"DatiAcquisto":{"Listino":{"Codice":"String","Descrizione":"String","Id":0},"Pagamento":{"CodiceExport":"String","Descrizione":"String","Id":0},"ContoFornitore":{"Codice":"String","CodiceExport":"String","Id":0},"Contropartita":{"Codice":"String","CodiceExport":"String","Id":0}}}]}