2-Acess Token
This EP is used to generate the Access Token used in our JS library for Step 3.
Generate Token
POST /api/v1/3ds/token
Host: sulpayments.ch
Content-Type: application/json
ACCOUNT_TOKEN: "<token>"
The response will contain the following parameters:
{
"token": "eyJhbGciOiJIUz.e3ZTNiNWEwMCIsImV4cGlyZXNfYXQiOiIyMDI0LTA5LTIzVDExOj.xQV1LHpes0c8sU"
}
Business errors are returned with a 401 status code. The response will contain the following parameters:
{
"message": "Invalid token"
}