get_available_files


GET   - Get all consumer's files


Argument Description Type - Length Mandatory
safedebit_consumer_referenceSafedebit consumer referenceString - 35YES


Request

GET /xxxx/get_available_files?safedebit_consumer_reference=XXXXX HTTP/1.1
Host: xxx.xxxxxxxx.fr
Authorization: Basic JQheySHkalSNuakkmSmm==
Content-Type: application/json
Accept: application/json


If file data was successfully fetched

Response

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


{
    "result":true,
    "data":[
            {"file_type":2,"file_key":"cni_xxx"},
            {"file_type":3,"file_key":"iban_xxx"},
            {"file_type":4,"file_key":"kbis_xxx"},
            {"file_type":1,"file_key":"mandat_xxx"}
    ]
}
                                        


If file data fetching 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
data Table containing the file_type and file_key of each file
code See (error codes in annex).
Thanks to fill-in all the mandatory fields
Request

GET /ssp/get_available_files? HTTP/1.1
Host: xxx.safedebit.fr
Authorization: Basic JQheySHkalSNuakkmSmm==
Accept: application/json