add_rp_sdd
POST  - Link a direct debit representation to a guarantee
| Argument | Description | Type - Length | Mandatory |
|---|---|---|---|
| sdd_reference_origin | Original direct debit reference | String - 32 | YES |
| sdd_reference | Direct debit representation reference | String - 32 | YES |
| due_date | Direct debit due date | String - 10 | YES |
| amount | Direct debit amount | String - 18 | YES |
Request
POST /xxxx/add_rp_sdd HTTP/1.1
Host: xxx.xxxxxxxx.fr
Authorization: Basic JQheySHkalSNuakkmSmm==
Content-Type: application/json
Accept: application/json
{
"sdd_reference_origin": "REF_00001",
"sdd_reference": "RPA-REF_00001",
"due_date": "01/01/2018",
"amount": "1000"}
If SDD addition is allowed
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"result" : true
}
If SDD addition is refused
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"result" : false,
"code" : "XXXXX"
}
| Argument | Description |
|---|---|
| result | boolean : true : Successful action false : Action failed |
| code | See error codes in annex. |
Request
HTTP/1.1 200 OK
POST /ssp/secure HTTP/1.1
Host: xxx.safedebit.fr
Authorization: Basic JQheySHkalSNuakkmSmm==
Content-Type: application/json
Accept: application/json