Passer au contenu principal
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": "john.doe@example.com",
    "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"
}

Documentation Index

Fetch the complete documentation index at: https://docs.sezzle.com/llms.txt

Use this file to discover all available pages before exploring further.

Ce point de terminaison doit être utilisé avec notre offre de carte virtuelle. Il n’est pas destiné au flux d’intégration directe.

Autorisations

Authorization
string
header
requis

The authentication token generated from providing API Keys to Sezzle Gateway

Corps

application/json
amount_in_cents
integer
requis

The amount in cents

currency
string
requis

The 3 character currency code as defined by ISO 4217

origin
string
requis

The window origin of the host

mode
enum<string>
requis

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.

Options disponibles:
iframe,
popup,
redirect
merchant_reference_id
string
requis

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

Réponse

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.