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
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using WS_RESTRICTED_API;

namespace WS_RESTRICTED_API
{
    ///<summary>
    ///Service de création de documents
    ///</summary>
    [Api(Description="Service de création de documents")]
    public partial class document
    {
        ///<summary>
        ///document type
        ///</summary>
        [ApiMember(DataType="string", Description="document type", IsRequired=true, Name="DocumentType", ParameterType="path")]
        public virtual eapi_document_type_enum DocumentType { get; set; }

        ///<summary>
        ///n° entrepot
        ///</summary>
        [ApiMember(DataType="integer", Description="n° entrepot", IsRequired=true, Name="IdEntrepot", ParameterType="path")]
        public virtual int IdEntrepot { get; set; }

        ///<summary>
        ///n° groupe
        ///</summary>
        [ApiMember(DataType="integer", Description="n° groupe", IsRequired=true, Name="IdGroupe", ParameterType="path")]
        public virtual int IdGroupe { get; set; }

        ///<summary>
        ///n° client
        ///</summary>
        [ApiMember(DataType="integer", Description="n° client", IsRequired=true, Name="IdSociete", ParameterType="path")]
        public virtual int IdSociete { get; set; }

        ///<summary>
        ///n° document
        ///</summary>
        [ApiMember(DataType="integer", Description="n° document", IsRequired=true, Name="IdDocument", ParameterType="path", Route="/document/{DocumentType}/{IdEntrepot}/{IdSociete}/{IdDocument}")]
        public virtual int IdDocument { get; set; }

        ///<summary>
        ///année
        ///</summary>
        [ApiMember(DataType="integer", Description="année", IsRequired=true, Name="Year", ParameterType="path", Route="/document/{DocumentType}/{IdEntrepot}/{IdSociete}/{Year}/{Month}")]
        public virtual int Year { get; set; }

        ///<summary>
        ///mois
        ///</summary>
        [ApiMember(DataType="integer", Description="mois", IsRequired=true, Name="Month", ParameterType="path", Route="/document/{DocumentType}/{IdEntrepot}/{IdSociete}/{Year}/{Month}")]
        public virtual int Month { get; set; }
    }

    public enum eapi_document_type_enum
    {
        facture,
        commande,
        r98,
        r99,
        balance,
    }

}

C# 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

{}