Authentication

Every request requires a bearer access token in the Authorization header. You obtain one by exchanging your API-key for a token.

Get an access token

curl --location --request POST 'https://sandbox-api.softpoint.io/interface/v1/locations/{{location_id}}/access_token' \
--header 'Api-Key: {{Api-Key}}'

Response

{
    "access_token": "access_token_value"
}

Then send the token on every payment call:

Authorization: Bearer {access_token}
Content-Type: application/json

A request with an expired token returns 401 Unauthorized with error code 10759 ("Token has expired").