cancel_order
POST  -- Cancel transaction
Depending on levy status refund are to be expected.
| Search argument | Description | Max size | Mandatory |
|---|---|---|---|
| payment_reference | Payment reference | String - 64 | YES |
Request
POST /xxxx/cancel_order HTTP/1.1
Host: xxx.xxxxxxxx.fr
Authorization: Basic JQheySHkalSNuakkmSmm==
Content-Type: application/json
Accept: application/json
{
"payment_reference": "RFPAY_XXX"}
Transaction was successfully canceled
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"result": true,
"sdds": [
{
"sdd_reference": "REF_XXX1",
"sdd_status": "TOREMBOURSE",
"amount": "3.33",
"due_date": "01/01/2020"
},
{
"sdd_reference": "REF_XXX2",
"sdd_status": "CANCELED",
"amount": "3.33",
"due_date": "01/02/2020"
}
]
}
Transaction cancelation 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 |
||||||||
| sdds |
|
||||||||
| code | See (error codes in annex). |
Request
HTTP/1.1 200 OK
POST /ssp/cancel_order HTTP/1.1
Host: xxx.safedebit.fr
Authorization: Basic JQheySHkalSNuakkmSmm==
Content-Type: application/json
Accept: application/json