Generalities


-- Introduction to the Safedebit API

The Safedebit API is a JSON Rest API

In test environment, the authentication is done by transmitting a base64 login and password in the Basic-Auth header

Base64

PHP : base64_encode($username . ":" . $password)

Java : Base64.getEncoder().encodeToString(username + ":" + password);


Header

POST /ssp/create_consumer HTTP/1.1
Host: api.safedebit.fr
Authorization: Basic JQheySHkalSNuakkmSmm==
Content-Type: application/json
Accept: application/json