| GET | /document_forced/{BasicAuth}/{MimeType}/{DocumentType}/{IdEntrepot}/{IdSociete}/{IdDocument} | facture / commande | |
|---|---|---|---|
| GET | /document_forced/{BasicAuth}/{MimeType}/{DocumentType}/{IdEntrepot}/{IdGroupe}/{IdSociete}/{Year}/{Month} | r99 : relevé mensuel de factures |
namespace WS_RESTRICTED_API
open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
type eapi_document_type_enum =
| facture = 0
| commande = 1
| r98 = 2
| r99 = 3
| balance = 4
///<summary>
///Service de création de documents
///</summary>
[<Api(Description="Service de création de documents")>]
[<AllowNullLiteral>]
type document() =
///<summary>
///document type
///</summary>
[<ApiMember(DataType="string", Description="document type", IsRequired=true, Name="DocumentType", ParameterType="path")>]
member val DocumentType:eapi_document_type_enum = new eapi_document_type_enum() with get,set
///<summary>
///n° entrepot
///</summary>
[<ApiMember(DataType="integer", Description="n° entrepot", IsRequired=true, Name="IdEntrepot", ParameterType="path")>]
member val IdEntrepot:Int32 = new Int32() with get,set
///<summary>
///n° groupe
///</summary>
[<ApiMember(DataType="integer", Description="n° groupe", IsRequired=true, Name="IdGroupe", ParameterType="path")>]
member val IdGroupe:Int32 = new Int32() with get,set
///<summary>
///n° client
///</summary>
[<ApiMember(DataType="integer", Description="n° client", IsRequired=true, Name="IdSociete", ParameterType="path")>]
member val IdSociete:Int32 = new Int32() with get,set
///<summary>
///n° document
///</summary>
[<ApiMember(DataType="integer", Description="n° document", IsRequired=true, Name="IdDocument", ParameterType="path", Route="/document/{DocumentType}/{IdEntrepot}/{IdSociete}/{IdDocument}")>]
member val IdDocument:Int32 = new Int32() with 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}")>]
member val Year:Int32 = new Int32() with get,set
///<summary>
///mois
///</summary>
[<ApiMember(DataType="integer", Description="mois", IsRequired=true, Name="Month", ParameterType="path", Route="/document/{DocumentType}/{IdEntrepot}/{IdSociete}/{Year}/{Month}")>]
member val Month:Int32 = new Int32() with get,set
///<summary>
///Service de création de documents (OLD SCHOOL)
///</summary>
[<Api(Description="Service de création de documents (OLD SCHOOL)")>]
[<AllowNullLiteral>]
type document_forced() =
///<summary>
///Basic Auth
///</summary>
[<ApiMember(DataType="string", Description="Basic Auth", IsRequired=true, Name="BasicAuth", ParameterType="path")>]
member val BasicAuth:String = null with get,set
///<summary>
///mime-type
///</summary>
[<ApiMember(DataType="string", Description="mime-type", IsRequired=true, Name="MimeType", ParameterType="path")>]
member val MimeType:String = null with get,set
///<summary>
///document type
///</summary>
[<ApiMember(DataType="string", Description="document type", IsRequired=true, Name="DocumentType", ParameterType="path")>]
member val DocumentType:eapi_document_type_enum = new eapi_document_type_enum() with get,set
///<summary>
///n° entrepot
///</summary>
[<ApiMember(DataType="integer", Description="n° entrepot", IsRequired=true, Name="IdEntrepot", ParameterType="path")>]
member val IdEntrepot:Int32 = new Int32() with get,set
///<summary>
///n° groupe
///</summary>
[<ApiMember(DataType="integer", Description="n° groupe", IsRequired=true, Name="IdGroupe", ParameterType="path")>]
member val IdGroupe:Int32 = new Int32() with get,set
///<summary>
///n° client
///</summary>
[<ApiMember(DataType="integer", Description="n° client", IsRequired=true, Name="IdSociete", ParameterType="path")>]
member val IdSociete:Int32 = new Int32() with get,set
///<summary>
///n° document
///</summary>
[<ApiMember(DataType="integer", Description="n° document", IsRequired=true, Name="IdDocument", ParameterType="path", Route="/document_forced/{BasicAuth}/{MimeType}/{DocumentType}/{IdEntrepot}/{IdSociete}/{IdDocument}")>]
member val IdDocument:Int32 = new Int32() with get,set
///<summary>
///année
///</summary>
[<ApiMember(DataType="integer", Description="année", IsRequired=true, Name="Year", ParameterType="path", Route="/document_forced/{BasicAuth}/{MimeType}/{DocumentType}/{IdEntrepot}/{IdSociete}/{Year}/{Month}")>]
member val Year:Int32 = new Int32() with get,set
///<summary>
///mois
///</summary>
[<ApiMember(DataType="integer", Description="mois", IsRequired=true, Name="Month", ParameterType="path", Route="/document_forced/{BasicAuth}/{MimeType}/{DocumentType}/{IdEntrepot}/{IdSociete}/{Year}/{Month}")>]
member val Month:Int32 = new Int32() with get,set
member val document:document = null with get,set
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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /document_forced/{BasicAuth}/{MimeType}/{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
{}