Skip to main content
POST
/
v1
/
checkouts
Create a Checkout
curl --request POST \
  --url https://sandbox.gateway.sezzle.com/v1/checkouts \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "amount_in_cents": 12999,
  "currency_code": "USD",
  "order_reference_id": "ord_12345",
  "order_description": "Some description",
  "checkout_cancel_url": "https://sezzle.com/cart",
  "checkout_complete_url": "https://sezzle.com/complete",
  "customer_details": {
    "first_name": "John",
    "last_name": "Doe",
    "email": "[email protected]",
    "phone": "8885401867"
  },
  "billing_address": {
    "name": "John Doe",
    "street": "123 W Lake St",
    "street2": "Unit 104",
    "city": "Minneapolis",
    "state": "MN",
    "postal_code": "55408",
    "country_code": "US",
    "phone_number": "8885401867"
  },
  "shipping_address": {
    "name": "John Doe",
    "street": "123 W Lake St",
    "street2": "Unit 104",
    "city": "Minneapolis",
    "state": "MN",
    "postal_code": "55408",
    "country_code": "US",
    "phone_number": "8885401867"
  },
  "requires_shipping_info": false,
  "items": [
    {
      "name": "widget",
      "sku": "sku123456",
      "quantity": 1,
      "price": {
        "amount_in_cents": 1000,
        "currency": "USD"
      }
    }
  ],
  "discounts": [
    {
      "name": "20% off",
      "amount": {
        "amount_in_cents": 1000,
        "currency": "USD"
      }
    }
  ],
  "tax_amount": {
    "amount_in_cents": 1000,
    "currency": "USD"
  },
  "shipping_amount": {
    "amount_in_cents": 1000,
    "currency": "USD"
  },
  "metadata": {
    "location_id": "123",
    "store_name": "Downtown Minneapolis",
    "store_manager": "Jane Doe"
  },
  "merchant_completes": true
}
'
{
  "checkout_uuid": "9dcb4d9f-ac09-4578-abf8-611128903611",
  "checkout_url": "https://sandbox.checkout.sezzle.com?id=9dcb4d9f-ac09-4578-abf8-611128903611"
}
You are viewing Version 1 of the Sezzle API. Check out the current version!

Authorizations

Authorization
string
header
required

The authentication token generated from providing API Keys to Sezzle Gateway

Body

application/json
amount_in_cents
string
required

The total order amount in cents, which must be at least 100 which is $1.00. Please note your merchant configuration might have a higher minimum.

currency_code
string
required

The 3 character currency code as defined by ISO 4217

order_reference_id
string
required

Your reference ID for this order (must contain only alphanumeric characters, dashes (-), and underscores (_))

order_description
string
required

A user-facing description for this checkout

checkout_cancel_url
string
required

The HTTP request information used to redirect the customer in the case of a cancellation

checkout_complete_url
string
required

The HTTP request information used to redirect the customer upon completion of the session

customer_details
object

Customer details for this session. To optimize checkout and boost conversion, it is recommended to include as much customer information as possible.

billing_address
object

The customer's billing address

shipping_address
object

The customer's shipping address

requires_shipping_info
boolean

Flag to indicate if you would like us to collect shipping information for this checkout from the customer. If omitted, defaults to false.

items
object[]

The items being purchased

discounts
object[]

The discounts applied to this order. Must be included in total

tax_amount
object

The taxes applied to this order. Must be included in the total

shipping_amount
object

The shipping fees applied to this order. Must be included in the total

metadata
object

Object for any custom data you want to submit with the checkout. You are not limited to the key-value pairs shown in the example, and you may use any key-value pairs you like

merchant_completes
boolean

If your checkout flow requires the user to confirm their checkout on your site after being approved by Sezzle, use true to only authorize the payment. If you prefer the checkout be captured immediately, use false. Defaults to false.

send_checkout_url
object

A Notification object for sending checkout URL to the customer

locale
enum<string>

Localizes the checkout. Defaults to en-US.

Available options:
en-US,
en-CA,
fr-CA

Response

Successful operation

checkout_uuid
string

The unique identifier for this response

checkout_url
string

The URL to which the shopper should be directed to complete their order with Sezzle