WS-RESTRICTED_API Host [RESTRICTED_API] : D5290-staging

<back to all web services

payment_initiate

Payment

Paiements : initier un règlement

The following routes are available for this service:
GET,POST/payment_initiate/{payment_target}/{payment_run_mode}/{payment_type}/{id_origin}/{id_societe}/{id_client}/{id_commande}/{type_paiement}/{amount}/{email}Paiements : initier un règlement
GET,POST/payment_initiate/{payment_target}/{payment_run_mode}/{payment_type}/{id_origin}/{id_societe}/{id_client}/{id_commande}/{type_paiement}/{amount}/{email}/{commentaire}Paiements : initier un règlement
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    /**
    * Paiements : initier un règlement
    */
    @Api(Description="Paiements : initier un règlement")
    public static class payment_initiate
    {
        /**
        * environnement cible : PAYBOX, LA BANQUE POSTALE, MILLIET
        */
        @ApiMember(Description="environnement cible : PAYBOX, LA BANQUE POSTALE, MILLIET", IsRequired=true, Name="payment_target")
        public eapi_payment_target_enum payment_target = null;

        /**
        * mode : LIVE, TEST
        */
        @ApiMember(Description="mode : LIVE, TEST", IsRequired=true, Name="payment_run_mode")
        public eapi_payment_run_mode_enum payment_run_mode = null;

        /**
        * type de paiement : CB, AMEX, SEPA, SEPA_DIRECT, COMPTABILITE
        */
        @ApiMember(Description="type de paiement : CB, AMEX, SEPA, SEPA_DIRECT, COMPTABILITE", IsRequired=true, Name="payment_type")
        public eapi_payment_type_enum payment_type = null;

        /**
        * initiateur de la demande : web, dcp, télévente, compta, ibar, etc
        */
        @ApiMember(Description="initiateur de la demande : web, dcp, télévente, compta, ibar, etc", IsRequired=true, Name="id_origin")
        public String id_origin = null;

        /**
        * numéro société : 1-J. Milliet BBC, 2-BCASH Chapelle, 3-BCASH Bagneux, 6-BCASH Clichy, etc...
        */
        @ApiMember(Description="numéro société : 1-J. Milliet BBC, 2-BCASH Chapelle, 3-BCASH Bagneux, 6-BCASH Clichy, etc...", IsRequired=true, Name="id_societe")
        public String id_societe = null;

        /**
        * numéro client : 2263-David, 13846-Fabien, etc...
        */
        @ApiMember(Description="numéro client : 2263-David, 13846-Fabien, etc...", IsRequired=true, Name="id_client")
        public String id_client = null;

        /**
        * numéro commande : dans le cas du DCP, sinon 0 ... OU PAS !!! (évolution pour télévente, compta, etc...)
        */
        @ApiMember(Description="numéro commande : dans le cas du DCP, sinon 0 ... OU PAS !!! (évolution pour télévente, compta, etc...)", IsRequired=true, Name="id_commande")
        public String id_commande = null;

        /**
        * type : CB, AMEX, SEPA, SEPA_DIRECT
        */
        @ApiMember(Description="type : CB, AMEX, SEPA, SEPA_DIRECT", IsRequired=true, Name="type_paiement")
        public eapi_payment_type_enum type_paiement = null;

        /**
        * montant du paiement dans sa plus petite unité monétaire (le centime pour l'euro)
        */
        @ApiMember(Description="montant du paiement dans sa plus petite unité monétaire (le centime pour l'euro)", IsRequired=true, Name="amount")
        public String amount = null;

        /**
        * email client
        */
        @ApiMember(Description="email client", IsRequired=true, Name="email")
        public String email = null;

        /**
        * commentaire
        */
        @ApiMember(Description="commentaire", Name="commentaire")
        public String commentaire = null;
        
        public eapi_payment_target_enum getPaymentTarget() { return payment_target; }
        public payment_initiate setPaymentTarget(eapi_payment_target_enum value) { this.payment_target = value; return this; }
        public eapi_payment_run_mode_enum getPaymentRunMode() { return payment_run_mode; }
        public payment_initiate setPaymentRunMode(eapi_payment_run_mode_enum value) { this.payment_run_mode = value; return this; }
        public eapi_payment_type_enum getPaymentType() { return payment_type; }
        public payment_initiate setPaymentType(eapi_payment_type_enum value) { this.payment_type = value; return this; }
        public String getIdOrigin() { return id_origin; }
        public payment_initiate setIdOrigin(String value) { this.id_origin = value; return this; }
        public String getIdSociete() { return id_societe; }
        public payment_initiate setIdSociete(String value) { this.id_societe = value; return this; }
        public String getIdClient() { return id_client; }
        public payment_initiate setIdClient(String value) { this.id_client = value; return this; }
        public String getIdCommande() { return id_commande; }
        public payment_initiate setIdCommande(String value) { this.id_commande = value; return this; }
        public eapi_payment_type_enum getTypePaiement() { return type_paiement; }
        public payment_initiate setTypePaiement(eapi_payment_type_enum value) { this.type_paiement = value; return this; }
        public String getAmount() { return amount; }
        public payment_initiate setAmount(String value) { this.amount = value; return this; }
        public String getEmail() { return email; }
        public payment_initiate setEmail(String value) { this.email = value; return this; }
        public String getCommentaire() { return commentaire; }
        public payment_initiate setCommentaire(String value) { this.commentaire = value; return this; }
    }

    public static enum eapi_payment_target_enum
    {
        Labanquepostale,
        Paybox,
        Milliet;
    }

    public static enum eapi_payment_run_mode_enum
    {
        Test,
        Live,
        ForceLive;
    }

    public static enum eapi_payment_type_enum
    {
        DirectSepa,
        Sepa,
        Cb,
        Amex,
        Comptabilite;
    }

}

Java payment_initiate 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 /payment_initiate/{payment_target}/{payment_run_mode}/{payment_type}/{id_origin}/{id_societe}/{id_client}/{id_commande}/{type_paiement}/{amount}/{email} HTTP/1.1 
Host: milliet.io 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"payment_target":"LABANQUEPOSTALE","payment_run_mode":"TEST","payment_type":"DIRECT_SEPA","id_origin":"String","id_societe":"String","id_client":"String","id_commande":"String","type_paiement":"DIRECT_SEPA","amount":"String","email":"String","commentaire":"String"}