Skip to main content
POST
/
v2
/
session
/
card
Create card session
curl --request POST \
  --url https://sandbox.gateway.sezzle.com/v2/session/card \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "origin": "https://example.com",
  "mode": "iframe",
  "merchant_reference_id": "merchant-cart-id-max-255",
  "amount_in_cents": 1000,
  "currency": "USD",
  "card_response_format": "token",
  "customer": {
    "email": "[email protected]",
    "first_name": "John",
    "last_name": "Doe",
    "phone": "6125551234",
    "billing_address": {
      "street": "123 W Lake St",
      "street2": "Unit 104",
      "city": "Minneapolis",
      "state": "MN",
      "postal_code": "55408",
      "country_code": "US"
    }
  },
  "items": [
    {
      "name": "Blue tee",
      "sku": "sku123456",
      "quantity": 1,
      "price": {
        "amount_in_cents": 1000,
        "currency": "USD"
      }
    }
  ]
}
'
{
  "uuid": "fadbc642-05a4-4e38-9e74-80e325623af9",
  "dashboard_url": "https://dashboard.sezzle.com/example?id=0001"
}
This endpoint should be used with our virtual card offering. It is not intended for the direct integration flow.

Authorizations

Authorization
string
header
required

The authentication token generated from providing API Keys to Sezzle Gateway

Body

application/json
amount_in_cents
integer
required

The amount in cents

currency
string
required

The 3 character currency code as defined by ISO 4217

origin
string
required

The window origin of the host

mode
enum<string>
required

The mode for the order checkout. Defaults to redirect if not provided. If iframe or popup is provided, then the cancel and complete URLs must include the origin of the parent window.

Available options:
iframe,
popup,
redirect
merchant_reference_id
string
required

The checkout or cart ID from the merchant, currently used for tracking only (must contain only alphanumeric characters, dashes (-), and underscores (_))

card_response_format
string

Value of token required to use tokenization

items
object[]
customer
object

The customer for this session

Response

Successful Operation

uuid
string

The unique identifier for this session

dashboard_url
string

The dashboard_url is a URL which the customer should be redirected to. Upon accepting the agreements there will be a postMessage returned for the payload of the card data.