| 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.*
/**
* Service de création de documents
*/
@Api(Description="Service de création de documents")
open class document
{
/**
* document type
*/
@ApiMember(DataType="string", Description="document type", IsRequired=true, Name="DocumentType", ParameterType="path")
open var documentType:eapi_document_type_enum? = null
/**
* n° entrepot
*/
@ApiMember(DataType="integer", Description="n° entrepot", IsRequired=true, Name="IdEntrepot", ParameterType="path")
open var idEntrepot:Int? = null
/**
* n° groupe
*/
@ApiMember(DataType="integer", Description="n° groupe", IsRequired=true, Name="IdGroupe", ParameterType="path")
open var idGroupe:Int? = null
/**
* n° client
*/
@ApiMember(DataType="integer", Description="n° client", IsRequired=true, Name="IdSociete", ParameterType="path")
open var idSociete:Int? = null
/**
* n° document
*/
@ApiMember(DataType="integer", Description="n° document", IsRequired=true, Name="IdDocument", ParameterType="path", Route="/document/{DocumentType}/{IdEntrepot}/{IdSociete}/{IdDocument}")
open var idDocument:Int? = null
/**
* année
*/
@ApiMember(DataType="integer", Description="année", IsRequired=true, Name="Year", ParameterType="path", Route="/document/{DocumentType}/{IdEntrepot}/{IdSociete}/{Year}/{Month}")
open var year:Int? = null
/**
* mois
*/
@ApiMember(DataType="integer", Description="mois", IsRequired=true, Name="Month", ParameterType="path", Route="/document/{DocumentType}/{IdEntrepot}/{IdSociete}/{Year}/{Month}")
open var month:Int? = null
}
enum class eapi_document_type_enum
{
Facture,
Commande,
R98,
R99,
Balance,
}
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/{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
{}