Richemont.Booster2.PublicApi

<back to all web services

GetDocument

Requires Authentication
The following routes are available for this service:
GET/document/{erpSystemId}/{documentType}/{documentId}/{relatedDocumentId*}Get Document file
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Richemont.Booster2.PublicApi.Communication.ServiceModel

Namespace Global

    Namespace Richemont.Booster2.PublicApi.Communication.ServiceModel

        Public Partial Class GetDocument
            '''<Summary>
            '''ERP system id, e.g. ES100
            '''</Summary>
            <ApiMember(Description:="ERP system id, e.g. ES100", IsRequired:=true)>
            Public Overridable Property erpSystemId As String

            '''<Summary>
            '''Document Type, e.g. INV, CRN, RAF, RDN, CAD
            '''</Summary>
            <ApiMember(Description:="Document Type, e.g. INV, CRN, RAF, RDN, CAD", IsRequired:=true)>
            Public Overridable Property documentType As String

            '''<Summary>
            '''Unique Document Id, e.g. 12345
            '''</Summary>
            <ApiMember(Description:="Unique Document Id, e.g. 12345", IsRequired:=true)>
            Public Overridable Property documentId As Long

            '''<Summary>
            '''Unique related Document Id, e.g. 12345
            '''</Summary>
            <ApiMember(Description:="Unique related Document Id, e.g. 12345")>
            Public Overridable Property relatedDocumentId As Nullable(Of Long)
        End Class
    End Namespace
End Namespace

VB.NET GetDocument DTOs

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

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /document/{erpSystemId}/{documentType}/{documentId}/{relatedDocumentId*} HTTP/1.1 
Host: dev-api-booster.richemont.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	
}