CL$WS Host : D5239-staging-cl

<back to all web services

cl_tournee_dechargementRequest

The following routes are available for this service:
GET, DELETE/cl_tournee_dechargement
GET, DELETE/cl_tournee_dechargement/{id_operateur}
POST, DELETE/cl_tournee_dechargement/{id_operateur}/{id_tournee}
"use strict";
export class _deconsigne {
    /** @param {{id_operateur?:string,id_tournee?:string,num_facture?:string,id_deconsigne?:string,id_client?:string,quantite?:number,pu_euro?:number,montant?:number,date?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    id_operateur;
    /** @type {string} */
    id_tournee;
    /** @type {string} */
    num_facture;
    /** @type {string} */
    id_deconsigne;
    /** @type {string} */
    id_client;
    /** @type {?number} */
    quantite;
    /** @type {?number} */
    pu_euro;
    /** @type {?number} */
    montant;
    /** @type {string} */
    date;
}
export class _encaissement {
    /** @param {{id_operateur?:string,id_tournee?:string,id_client?:string,id_reglement?:string,montant?:number,code_devise?:string,date?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    id_operateur;
    /** @type {string} */
    id_tournee;
    /** @type {string} */
    id_client;
    /** @type {string} */
    id_reglement;
    /** @type {?number} */
    montant;
    /** @type {string} */
    code_devise;
    /** @type {string} */
    date;
}
export class _incident {
    /** @param {{id_operateur?:string,id_tournee?:string,num_facture?:string,id_motif?:string,date?:string,photo?:string,attente?:number}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    id_operateur;
    /** @type {string} */
    id_tournee;
    /** @type {string} */
    num_facture;
    /** @type {string} */
    id_motif;
    /** @type {string} */
    date;
    /** @type {string} */
    photo;
    /** @type {number} */
    attente;
}
export class cl_tournee_dechargementResponse {
    /** @param {{id_operateur?:string,id_tournee?:string,deconsignes?:_deconsigne[],encaissements?:_encaissement[],incidents?:_incident[]}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    id_operateur;
    /** @type {string} */
    id_tournee;
    /** @type {_deconsigne[]} */
    deconsignes;
    /** @type {_encaissement[]} */
    encaissements;
    /** @type {_incident[]} */
    incidents;
}
export class cl_tournee_dechargementRequest {
    /** @param {{id_operateur?:string,id_tournee?:string,deconsignes?:_deconsigne[],encaissements?:_encaissement[],incidents?:_incident[]}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    id_operateur;
    /** @type {string} */
    id_tournee;
    /** @type {_deconsigne[]} */
    deconsignes;
    /** @type {_encaissement[]} */
    encaissements;
    /** @type {_incident[]} */
    incidents;
}

JavaScript cl_tournee_dechargementRequest 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.

POST /cl_tournee_dechargement/{id_operateur}/{id_tournee} HTTP/1.1 
Host: freemotion-staging.milliet.paris 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"id_operateur":"String","id_tournee":"String","deconsignes":[{"id_operateur":"String","id_tournee":"String","num_facture":"String","id_deconsigne":"String","id_client":"String","quantite":0,"pu_euro":0,"montant":0,"date":"String"}],"encaissements":[{"id_operateur":"String","id_tournee":"String","id_client":"String","id_reglement":"String","montant":0,"code_devise":"String","date":"String"}],"incidents":[{"id_operateur":"String","id_tournee":"String","num_facture":"String","id_motif":"String","date":"String","photo":"String","attente":0}]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"id_operateur":"String","id_tournee":"String","deconsignes":[{"id_operateur":"String","id_tournee":"String","num_facture":"String","id_deconsigne":"String","id_client":"String","quantite":0,"pu_euro":0,"montant":0,"date":"String"}],"encaissements":[{"id_operateur":"String","id_tournee":"String","id_client":"String","id_reglement":"String","montant":0,"code_devise":"String","date":"String"}],"incidents":[{"id_operateur":"String","id_tournee":"String","num_facture":"String","id_motif":"String","date":"String","photo":"String","attente":0}]}