Skip to main content
POST
/
v1
/
checkouts
/
{order_reference_id}
/
complete
Complete a Checkout
curl --request POST \
  --url https://sandbox.gateway.sezzle.com/v1/checkouts/{order_reference_id}/complete \
  --header 'Authorization: <api-key>'
{
  "amount_in_cents": 12999,
  "currency_code": "USD",
  "order_description": "Order #1800",
  "order_reference_id": "ord_12345",
  "display_order_reference_id": "ord_12345",
  "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 West Lake street",
    "street2": "104",
    "city": "Minneapolis",
    "state": "MN",
    "postal_code": "55408",
    "country_code": "US"
  },
  "shipping_address": {
    "name": "John Doe",
    "street": "123 West Lake street",
    "street2": "104",
    "city": "Minneapolis",
    "state": "MN",
    "postal_code": "55408",
    "country_code": "US"
  },
  "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"
  },
  "merchant_completes": true
}
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

Path Parameters

order_reference_id
string
required

The Order Reference ID to update

Response

Successful Operation

amount_in_cents
number

The order total amount in cents

currency_code
string

The 3 character currency code as defined by ISO 4217

order_description
string

Your description for this order

order_reference_id
string

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

display_order_reference_id
string
checkout_cancel_url
string

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

checkout_complete_url
string

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

customer
object

The customer's basic contact information

billing_address
object

The customer's billing address

shipping_address
object

The customer's shipping address

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

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.