Skip to main content
POST
/
tokens
/
session
Request a token session
curl --request POST \
  --url https://sandbox.hellgate.io/tokens/session \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "bypass_identification": false,
  "expiration_time": 1296000
}
'
{
  "session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

X-API-Key
string
header
required

Body

application/json
bypass_identification
boolean
default:false

Skips ID&V during tokenization if set to true

expiration_time
integer

The expiry time is used to specify after how many seconds a Commerce token should be automatically deleted.

This type of tokens is useful for short-lived operations (guest checkout) that require a token to be used only once or for a limited time. Information: If a token is created with an expiration time, no network-token will be provisioned.

Required range: 1 <= x <= 2592000

Response

Success response

session_id
string<uuid>
required

The ID of the session which needs to be used to initialize the SDK.