Skip to main content
POST
/
v2
/
authentication
Get a bearer authentication token
curl --request POST \
  --url https://sandbox.gateway.sezzle.com/v2/authentication \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "private_key": "sz_pr_...",
  "public_key": "sz_pub_..."
}
'
{
  "expiration_date": "2017-01-01T01:30:25.388Z",
  "merchant_uuid": "merchant1234567890",
  "token": "example-token"
}

Authorizations

Authorization
string
header
required

The authentication token generated from providing API Keys to Sezzle Gateway

Body

application/json

The API keys used in this request should come from the same dashboard environment as the request URL. e.g., when testing in sandbox.gateway.sezzle.com, get API keys from sandbox.dashboard.sezzle.com

public_key
string
required
private_key
string
required

Response

Successful Operation

token
string
  • For use in the header of other requests:
  • Authorization: Bearer {response.token}
expiration_date
string<date-time>

You must replace the token you obtain from the Authentication endpoint every 120 minutes. However, we do not restrict you to a single token, and you can obtain a new one at any time.

merchant_uuid
string

The merchant UUID for the account