create_payment_scenario


POST  -- Create a new scenario and list available payment scenarios

Argument Description Type - Length Example Mandatory
payment_method « SAFEDEBIT » or « CB » String - 9 NO
term_numbers Payment in N terms (value from 1 to 14) Integer - 2 NO
delayed_days Number of deferred days (values 30, 45, 60 or 90) Integer - 2 NO
deadline_days days between deadlines String - 32 NO
deadline_rate rate of deadlines String - 32 NO


Request

POST /ssp/create_payment_scenario HTTP/1.1
Host: api.xxxxxxxx.xxx
Authorization: Basic JQheySHkalSNuakkmSmm==
Content-Type: application/json
Accept: application/json


{
"payment_method": "CB",
"term_numbers": "10",
"delayed_days": "30",
"deadline_days": [
"0",
"30"
],
"deadline_rate": [
"[3,7]",
"[5,2.2,2.2]"
]}
                                                
If parameters sent are valid

Response

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


{
    "result": true,
    "merchant_scenario_reference": "SC-SSPTEST-xxxxxxxxxxxx"
}
                                            
If erroneous parameters are sent

Response

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


{
    "result": false,
    "code": "XXXX"
}
                                            
Thanks to fill-in all the mandatory fields
Request

HTTP/1.1 200 OK
POST /ssp/create_payment_scenario HTTP/1.1
Host: api.xxxxxxx.xxx
Authorization: Basic JQheySHkalSNuakkmSmm==
Content-Type: application/json
Accept: application/json