| 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 |
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_payment_target_enum =
| LABANQUEPOSTALE = 0
| PAYBOX = 1
| MILLIET = 2
type eapi_payment_run_mode_enum =
| TEST = 0
| LIVE = 1
| FORCE_LIVE = 2
type eapi_payment_type_enum =
| DIRECT_SEPA = 0
| SEPA = 1
| CB = 2
| AMEX = 3
| COMPTABILITE = 4
///<summary>
///Paiements : initier un règlement
///</summary>
[<Api(Description="Paiements : initier un règlement")>]
[<AllowNullLiteral>]
type payment_initiate() =
///<summary>
///environnement cible : PAYBOX, LA BANQUE POSTALE, MILLIET
///</summary>
[<ApiMember(Description="environnement cible : PAYBOX, LA BANQUE POSTALE, MILLIET", IsRequired=true, Name="payment_target")>]
member val payment_target:eapi_payment_target_enum = new eapi_payment_target_enum() with get,set
///<summary>
///mode : LIVE, TEST
///</summary>
[<ApiMember(Description="mode : LIVE, TEST", IsRequired=true, Name="payment_run_mode")>]
member val payment_run_mode:eapi_payment_run_mode_enum = new eapi_payment_run_mode_enum() with get,set
///<summary>
///type de paiement : CB, AMEX, SEPA, SEPA_DIRECT, COMPTABILITE
///</summary>
[<ApiMember(Description="type de paiement : CB, AMEX, SEPA, SEPA_DIRECT, COMPTABILITE", IsRequired=true, Name="payment_type")>]
member val payment_type:eapi_payment_type_enum = new eapi_payment_type_enum() with get,set
///<summary>
///initiateur de la demande : web, dcp, télévente, compta, ibar, etc
///</summary>
[<ApiMember(Description="initiateur de la demande : web, dcp, télévente, compta, ibar, etc", IsRequired=true, Name="id_origin")>]
member val id_origin:String = null with get,set
///<summary>
///numéro société : 1-J. Milliet BBC, 2-BCASH Chapelle, 3-BCASH Bagneux, 6-BCASH Clichy, etc...
///</summary>
[<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")>]
member val id_societe:String = null with get,set
///<summary>
///numéro client : 2263-David, 13846-Fabien, etc...
///</summary>
[<ApiMember(Description="numéro client : 2263-David, 13846-Fabien, etc...", IsRequired=true, Name="id_client")>]
member val id_client:String = null with get,set
///<summary>
///numéro commande : dans le cas du DCP, sinon 0 ... OU PAS !!! (évolution pour télévente, compta, etc...)
///</summary>
[<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")>]
member val id_commande:String = null with get,set
///<summary>
///type : CB, AMEX, SEPA, SEPA_DIRECT
///</summary>
[<ApiMember(Description="type : CB, AMEX, SEPA, SEPA_DIRECT", IsRequired=true, Name="type_paiement")>]
member val type_paiement:eapi_payment_type_enum = new eapi_payment_type_enum() with get,set
///<summary>
///montant du paiement dans sa plus petite unité monétaire (le centime pour l'euro)
///</summary>
[<ApiMember(Description="montant du paiement dans sa plus petite unité monétaire (le centime pour l'euro)", IsRequired=true, Name="amount")>]
member val amount:String = null with get,set
///<summary>
///email client
///</summary>
[<ApiMember(Description="email client", IsRequired=true, Name="email")>]
member val email:String = null with get,set
///<summary>
///commentaire
///</summary>
[<ApiMember(Description="commentaire", Name="commentaire")>]
member val commentaire:String = 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.
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"}