WS-RESTRICTED_API Host [RESTRICTED_API] : D5290-staging

<back to all web services

document

Document

Service de création de documents

Requires Authentication
The following routes are available for this service:
GET/document/{DocumentType}/{IdEntrepot}/{IdSociete}/{IdDocument}facture / commande
GET/document/{DocumentType}/{IdEntrepot}/{IdGroupe}/{IdSociete}/{Year}/{Month}r99 : relevé mensuel de factures
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    /**
    * Service de création de documents
    */
    @Api(Description="Service de création de documents")
    public static class document
    {
        /**
        * document type
        */
        @ApiMember(DataType="string", Description="document type", IsRequired=true, Name="DocumentType", ParameterType="path")
        public eapi_document_type_enum documentType = null;

        /**
        * n° entrepot
        */
        @ApiMember(DataType="integer", Description="n° entrepot", IsRequired=true, Name="IdEntrepot", ParameterType="path")
        public Integer idEntrepot = null;

        /**
        * n° groupe
        */
        @ApiMember(DataType="integer", Description="n° groupe", IsRequired=true, Name="IdGroupe", ParameterType="path")
        public Integer idGroupe = null;

        /**
        * n° client
        */
        @ApiMember(DataType="integer", Description="n° client", IsRequired=true, Name="IdSociete", ParameterType="path")
        public Integer idSociete = null;

        /**
        * n° document
        */
        @ApiMember(DataType="integer", Description="n° document", IsRequired=true, Name="IdDocument", ParameterType="path", Route="/document/{DocumentType}/{IdEntrepot}/{IdSociete}/{IdDocument}")
        public Integer idDocument = null;

        /**
        * année
        */
        @ApiMember(DataType="integer", Description="année", IsRequired=true, Name="Year", ParameterType="path", Route="/document/{DocumentType}/{IdEntrepot}/{IdSociete}/{Year}/{Month}")
        public Integer year = null;

        /**
        * mois
        */
        @ApiMember(DataType="integer", Description="mois", IsRequired=true, Name="Month", ParameterType="path", Route="/document/{DocumentType}/{IdEntrepot}/{IdSociete}/{Year}/{Month}")
        public Integer month = null;
        
        public eapi_document_type_enum getDocumentType() { return documentType; }
        public document setDocumentType(eapi_document_type_enum value) { this.documentType = value; return this; }
        public Integer getIdEntrepot() { return idEntrepot; }
        public document setIdEntrepot(Integer value) { this.idEntrepot = value; return this; }
        public Integer getIdGroupe() { return idGroupe; }
        public document setIdGroupe(Integer value) { this.idGroupe = value; return this; }
        public Integer getIdSociete() { return idSociete; }
        public document setIdSociete(Integer value) { this.idSociete = value; return this; }
        public Integer getIdDocument() { return idDocument; }
        public document setIdDocument(Integer value) { this.idDocument = value; return this; }
        public Integer getYear() { return year; }
        public document setYear(Integer value) { this.year = value; return this; }
        public Integer getMonth() { return month; }
        public document setMonth(Integer value) { this.month = value; return this; }
    }

    public static enum eapi_document_type_enum
    {
        Facture,
        Commande,
        R98,
        R99,
        Balance;
    }

}

Java document 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 /document/{DocumentType}/{IdEntrepot}/{IdSociete}/{IdDocument} HTTP/1.1 
Host: milliet.io 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{}