Unico3.Link.API

<back to all web services

RicercaDocumentiEmessi

Documenti
The following routes are available for this service:
GET/documenti/emessi/da/{Da}Restituisce tutti i documenti con ID > {Da}
GET/documenti/emessi/ultimi/{Ultimi}Restituisce gli ultimi N documenti (utile per test)
GET/intervento/numero/{NumeroIntervento}/documentiRestituisce i documenti, se presenti, collegati ad un dato intervento
GET/intervento/id/{IdIntervento}/documentiRestituisce i documenti, se presenti, collegati ad un dato intervento
GET/interventi/{IdIntervento}/documentiRestituisce i documenti, se presenti, collegati ad un dato intervento
GET/documenti/emessi/da/data/{DataDa}/a/data/{DataA}Resituisce tutti i documenti con data compresa tra due date (estremi inclusi)
GET/documenti/emessi/da/data/{DataDa}Resituisce i documenti con data maggiore o uguale a una data limite
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Unico3.Link.API.Messages.Documenti
Imports Unico3.Link.API.Messages
Imports Unico3.Link.API.Messages.Assistenza
Imports Unico3.Link.API.Messages.Magazzino

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.Assistenza

        Public Partial Class Intervento
            Public Sub New()
                Validazioni = New List(Of ValidazioneIntervento)
            End Sub

            Public Overridable Property Id As Integer
            Public Overridable Property Numero As Nullable(Of Integer)
            Public Overridable Property Richiesta As FK_Attivita
            Public Overridable Property Impianto As FK_Impianto
            Public Overridable Property Tipologia As FK_TipologiaIntervento
            Public Overridable Property Tecnico As FK_Tecnico
            Public Overridable Property StatoSessioneMobile As StatoSessioneMobile
            Public Overridable Property StatoValidazione As StatoValidazione
            Public Overridable Property Validazioni As List(Of ValidazioneIntervento)
            Public Overridable Property Descrizione As String
            Public Overridable Property Note As String
            Public Overridable Property Data As Date
            Public Overridable Property OraInizio As Nullable(Of TimeSpan)
            Public Overridable Property Durata As Nullable(Of TimeSpan)
        End Class

        Public Partial Class ValidazioneIntervento
            Public Overridable Property IsEseguita As Boolean
            Public Overridable Property Note As String
            Public Overridable Property StepValidazione As FK_StepValidazione
        End Class
    End Namespace

    Namespace Unico3.Link.API.Messages.Documenti

        Public Partial Class DettaglioDocumento
            Public Overridable Property Id As Integer
            Public Overridable Property Tipo As TipoRiga
            Public Overridable Property Articolo As FK_Articolo
            Public Overridable Property Codice As String
            Public Overridable Property Descrizione As String
            Public Overridable Property DescrizioneEstesa As String
            Public Overridable Property Quantita As Nullable(Of Double)
            Public Overridable Property UdM As FK_UdM
            Public Overridable Property PrezzoUnitario As Nullable(Of Double)
            Public Overridable Property Importo As Nullable(Of Double)
            Public Overridable Property Sconto As String
            Public Overridable Property Contropartita As FK_Conto
            Public Overridable Property AliquotaIVA As FK_AliquotaIVA
            Public Overridable Property IsGaranzia As Boolean
            Public Overridable Property TipoPrezzoDistinta As Nullable(Of TipoPrezzoDistinta)
            Public Overridable Property IsComponenteDistinta As Boolean
            Public Overridable Property IdTestataDistinta As Nullable(Of Integer)
        End Class

        Public Partial Class Documento
            Public Sub New()
                Dettagli = New List(Of DettaglioDocumento)
            End Sub

            Public Overridable Property Id As Integer
            Public Overridable Property CodiceExport As String
            Public Overridable Property Data As Nullable(Of Date)
            Public Overridable Property Numero As String
            Public Overridable Property Tipologia As FK_TipologiaDocumento
            Public Overridable Property CAT As FK_CAT
            Public Overridable Property Intervento As Intervento
            Public Overridable Property Cliente As FK_Anagrafica
            Public Overridable Property CodiceFiscale As String
            Public Overridable Property PartitaIva As String
            Public Overridable Property NominativoIntestatario As String
            Public Overridable Property IndirizzoIntestatario As String
            Public Overridable Property ComuneIntestatario As String
            Public Overridable Property CAPIntestatario As String
            Public Overridable Property ProvinciaIntestatario As String
            Public Overridable Property TelefonoIntestatario As String
            Public Overridable Property NominativoDestinatario As String
            Public Overridable Property IndirizzoDestinatario As String
            Public Overridable Property ComuneDestinatario As String
            Public Overridable Property CAPDestinatario As String
            Public Overridable Property ProvinciaDestinatario As String
            Public Overridable Property MagazzinoDestinazione As FK_Magazzino
            Public Overridable Property MagazzinoOrigine As FK_Magazzino
            Public Overridable Property Impianto As FK_Impianto
            Public Overridable Property NominativoImpianto As String
            Public Overridable Property IndirizzoImpianto As String
            Public Overridable Property NumeroCivicoImpianto As String
            Public Overridable Property ComuneImpianto As String
            Public Overridable Property CAPImpianto As String
            Public Overridable Property ProvinciaImpianto As String
            Public Overridable Property Imponibile As Nullable(Of Double)
            Public Overridable Property Imposta As Nullable(Of Double)
            Public Overridable Property Esente As Nullable(Of Double)
            Public Overridable Property Arrotondamento As Nullable(Of Double)
            Public Overridable Property TotaleImporto As Nullable(Of Double)
            Public Overridable Property PagamentoContestuale As FK_Pagamento
            Public Overridable Property Pagato As Nullable(Of Double)
            Public Overridable Property PagamentoDifferito As FK_Pagamento
            Public Overridable Property IvaDiCassa As Nullable(Of Boolean)
            Public Overridable Property IsFatturare As Nullable(Of Boolean)
            Public Overridable Property CausaleDiTrasporto As FK_CausaleTrasporto
            Public Overridable Property Dettagli As List(Of DettaglioDocumento)
        End Class

        Public Partial Class FK_Anagrafica
            Inherits FK
            Implements IUniqueCodiceNumerico
            Implements IUniqueCodiceExport
            Public Overridable Property Codice As Nullable(Of Integer)
            Public Overridable Property CodiceExport As String
        End Class

        Public Partial Class FK_Attivita
            Inherits FK
            Implements IUniqueNumero
            Public Overridable Property Numero As Nullable(Of Integer)
        End Class

        Public Partial Class FK_CAT
            Inherits FK
            Implements IUniqueCodice
            Public Overridable Property Codice As String
        End Class

        Public Partial Class FK_CausaleTrasporto
            Inherits FK
            Implements IUniqueDescrizione
            Public Overridable Property Descrizione As String
        End Class

        Public Partial Class FK_Impianto
            Inherits FK
            Implements IUniqueCodiceNumerico
            Implements IUniqueCodiceExport
            Public Overridable Property Codice As Nullable(Of Integer)
            Public Overridable Property CodiceExport As String
        End Class

        Public Partial Class FK_Intervento
            Inherits FK
            Implements IUniqueNumero
            Public Overridable Property Numero As Nullable(Of Integer)
        End Class

        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

        Public Partial Class FK_StepValidazione
            Inherits FK
            Public Overridable Property Descrizione As String
        End Class

        Public Partial Class FK_Tecnico
            Inherits FK
            Implements IUniqueSigla
            Implements IUniqueNominativo
            Public Overridable Property Sigla As String
            Public Overridable Property Nominativo As String
        End Class

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

        Public Partial Class FK_TipologiaIntervento
            Inherits FK
            Implements IUniqueSigla
            Implements IUniqueDescrizione
            Public Overridable Property Descrizione As String
            Public Overridable Property Sigla As String
        End Class

        Public Partial Class GetDocumentiResponse
            Public Sub New()
                Documenti = New List(Of Documento)
            End Sub

            Public Overridable Property Documenti As List(Of Documento)
        End Class

        Public Partial Class RicercaDocumentiEmessi
            Public Overridable Property Da As Nullable(Of Integer)
            Public Overridable Property Ultimi As Nullable(Of Integer)
            Public Overridable Property DaFatturare As Nullable(Of Boolean)
            Public Overridable Property IsFatturato As Nullable(Of Boolean)
            Public Overridable Property IsIntervento As Boolean
            Public Overridable Property IsCommessa As Boolean
            Public Overridable Property Intervento As FK_Intervento
            Public Overridable Property Tipologia As FK_TipologiaDocumento
            Public Overridable Property CAT As FK_CAT
            Public Overridable Property Tecnico As FK_Tecnico
            Public Overridable Property DataA As Nullable(Of Date)
            Public Overridable Property DataDa As Nullable(Of Date)
            Public Overridable Property SessioneMobile As Nullable(Of StatoSessioneMobile)
            Public Overridable Property Validazione As Nullable(Of StatoValidazione)
            Public Overridable Property IsSupportoDistinte As Boolean
        End Class

        Public Enum StatoSessioneMobile
            APERTA
            CHIUSA
        End Enum

        Public Enum StatoValidazione
            DA_VALIDARE
            VALIDATI
        End Enum

        Public Enum TipoPrezzoDistinta
            ANALITICO
            FORFAIT
        End Enum

        Public Enum TipoRiga
            Articolo
            Manuale
            Testo
            Distinta
        End Enum
    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_Articolo
            Inherits FK
            Implements IUniqueCodice
            Public Overridable Property Codice 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_Magazzino
            Inherits FK
            Implements IUniqueDescrizione
            Implements IUniqueCodiceExport
            Public Overridable Property Descrizione As String
            Public Overridable Property CodiceExport As String
        End Class

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

VB.NET RicercaDocumentiEmessi 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 /documenti/emessi/da/{Da} HTTP/1.1 
Host: unico3.link.api 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Documenti":[{"Id":0,"CodiceExport":"String","Data":"0001-01-01T00:00:00.0000000","Numero":"String","Tipologia":{"CodiceExport":"String","Descrizione":"String","Id":0},"CAT":{"Codice":"String","Id":0},"Intervento":{"Id":0,"Numero":0,"Richiesta":{"Numero":0,"Id":0},"Impianto":{"Codice":0,"CodiceExport":"String","Id":0},"Tipologia":{"Descrizione":"String","Sigla":"String","Id":0},"Tecnico":{"Sigla":"String","Nominativo":"String","Id":0},"StatoSessioneMobile":"APERTA","StatoValidazione":"DA_VALIDARE","Validazioni":[{"IsEseguita":false,"Note":"String","StepValidazione":{"Descrizione":"String","Id":0}}],"Descrizione":"String","Note":"String","Data":"0001-01-01T00:00:00.0000000","OraInizio":"PT0S","Durata":"PT0S"},"Cliente":{"Codice":0,"CodiceExport":"String","Id":0},"CodiceFiscale":"String","PartitaIva":"String","NominativoIntestatario":"String","IndirizzoIntestatario":"String","ComuneIntestatario":"String","CAPIntestatario":"String","ProvinciaIntestatario":"String","TelefonoIntestatario":"String","NominativoDestinatario":"String","IndirizzoDestinatario":"String","ComuneDestinatario":"String","CAPDestinatario":"String","ProvinciaDestinatario":"String","MagazzinoDestinazione":{"Descrizione":"String","CodiceExport":"String","Id":0},"MagazzinoOrigine":{"Descrizione":"String","CodiceExport":"String","Id":0},"Impianto":{"Codice":0,"CodiceExport":"String","Id":0},"NominativoImpianto":"String","IndirizzoImpianto":"String","NumeroCivicoImpianto":"String","ComuneImpianto":"String","CAPImpianto":"String","ProvinciaImpianto":"String","Imponibile":0,"Imposta":0,"Esente":0,"Arrotondamento":0,"TotaleImporto":0,"PagamentoContestuale":{"CodiceExport":"String","Descrizione":"String","Id":0},"Pagato":0,"PagamentoDifferito":{"CodiceExport":"String","Descrizione":"String","Id":0},"IvaDiCassa":false,"IsFatturare":false,"CausaleDiTrasporto":{"Descrizione":"String","Id":0},"Dettagli":[{"Id":0,"Tipo":"Articolo","Articolo":{"Codice":"String","Id":0},"Codice":"String","Descrizione":"String","DescrizioneEstesa":"String","Quantita":0,"UdM":{"Codice":"String","Descrizione":"String","CodiceExport":"String","Id":0},"PrezzoUnitario":0,"Importo":0,"Sconto":"String","Contropartita":{"Codice":"String","CodiceExport":"String","Id":0},"AliquotaIVA":{"Codice":"String","CodiceExport":"String","Id":0},"IsGaranzia":false,"TipoPrezzoDistinta":"ANALITICO","IsComponenteDistinta":false,"IdTestataDistinta":0}]}]}