Authentication
Sezzle uses scoped API keys to allow access to the API. You can find/generate these keys on your merchant dashboard once you have been approved by Sezzle.
Once you have a valid token, it must be used as a Header for subsequent requests to our API, using the format below.
Endpoint
POST https://gateway.sezzle.com/v2/authentication
Example Payload
{
"public_key": "example-public-key",
"private_key": "example-private-key"
}
Response:
caution
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.
{
"token": "example-token",
"expiration_date": "2017-01-01T01:30:25.388940303Z",
"merchant_uuid": "merchant1234567890"
}
Authenticated Call HTTP Header
Authorization: Bearer {token_from_response}