create_beneficiary


POST  - Create beneficiary

Argument Description Type - Length Mandatory
social_referenceBeneficiary's corporate nameString - 32NO
sirenBeneficiary's SIRENString - 9NO
icsBeneficiary's SEPA String - 13NO
ibanBeneficiary's IBANString - 34YES
street_numberStreet numberString - 16YES
street_nameRoad nameString - 70YES
zip_codeZip codeString - 16YES
cityTown/placeString - 34YES
phone_numberPhone umberString - 16NO


Request

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


{
"social_reference": "TEST",
"siren": "xxxxxx",
"ics": "xxxxxx",
"iban": "FRXXXXXXXXXXXXXXXXXXXXXX",
"street_number": "1",
"street_name": "Rue de test",
"zip_code": "00000",
"city": "Ville",
"phone_number": "0000000000"}
                                                


If beneficiary was successfully created

Response

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


{
    "result" : true,
    "beneficiary_reference" : "XXXXXXXXX"
}
                                        


If beneficiary creation 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
beneficiary_reference Unique beneficiary reference (Max size : 32)
code See (error codes in annex).
Thanks to fill-in all the mandatory fields
Request

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