create_mandate


POST  - Creation and signature of a mandate

Argument Description Type - Length Example Mandatory
safedebit_consumer_referenceSafedebit consumer referenceString - 35YES
url_okDestination URL where the customer will be routed after signatureString - 256https://YES
url_koDestination URL where the customer will be routed if error occursString - 256https://YES
url_cancelDestination URL where the customer will be routed when cancelling signatureString - 256https://YES
umrUnique mandate referenceString - 35NO
sign_optionMandate signature optionsString - 8Possible values : "SMS" "EMAIL"NO
sequence_typeMandate sending sequenceString - 4Possible values : "OOFF" "RCUR"NO
statusMandate statutString - 2Example : 6 (Waiting for activation)NO



Request

POST /xxxx/create_mandate HTTP/1.1
Host: xxx.xxxxxxxx.fr
Authorization: Basic JQheySHkalSNuakkmSmm==
Content-Type: application/json
Accept: application/json


{
"safedebit_consumer_reference": "XXXXXXXXXXXXX",
"url_ok": "https://xxxxx.xxx/ok",
"url_ko": "https://xxxxx.xxx/ko",
"url_cancel": "https://xxxxx.xxx/cancel"}
                                                
a) If signature initialization is successful.

Response

HTTP/1.1 200 OK
Content-Type: application/json


{
    "result" : true,
    "signature_url" : "https://xxxxxxxxx",
    "umr" : "XXXXXXXXXXXXX",
    "status" : "1"
}
                                         


b) If signature initialization has failed.

Response

HTTP/1.1 200 OK
Content-Type: application/json


{
    "result" : false,
    "code" : "XXXX"
}
                                         


Argument Description
result true or false :
true : action succeeded
false : action failed
signature_url Link to signature
umr Unique mandate reference
status Mandate statut
code See (error codes in annex).
Thanks to fill-in all the mandatory fields
Request

HTTP/1.1 200 OK
POST /ssp/create_mandate HTTP/1.1
Host: xxx.safedebit.fr
Authorization: Basic JQheySHkalSNuakkmSmm==
Content-Type: application/json
Accept: application/json