edit_sdd


POST  -- Modify a SDD

Modification of the amount of a guaranteed levy is not allowed and for the date (due_date), it depends on management rules defined by contract.

Only SDD in processing state are allowed to be changed.


Search argument Description Max size Mandatory
sdd_referenceSDD referenceString - 35YES


Search arguments specified for the merchant SPS only Description Type - Length Mandatory
umrUnique mandate referenceString - 35YES
icsBeneficary's SEPA String - 35YES

Parameter to modify Description Type - Length Example Mandatory
due_dateLevy deadlineString - 10DD/MM/YYYYNO
motifReason of levyString - 128NO
amountLevy amount in centsString - 18NO
payment_referencePayment referenceString - 64NO

Request

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


{
"sdd_reference": "REF_XXX",
"umr": "REF_XXX",
"ics": "XXXXX",
"due_date": "01/01/2018",
"amount": "100",
"motif": "new_motif",
"payment_reference": "REF_XXXX"}
                                                

a) Levy successfully modified,
(amount and date doesn't change the terms of the levy)


Response

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


{
    "result" : true
}
                                         

b) Levy successfully modified,
(amount or date changes the terms of the levy)


Response

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


{
    "result" : true,
    "safedebit_secure_reference" : "SF_XXXXXX"
}
                                         

If levy modification 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
safedebit_secure_reference Safedebit guarantee reference
code See (error codes in annex).
Thanks to fill-in all the mandatory fields
Request

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