Initiate a Sezzle session with shopper order details, redirect links, and capture settings
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": "john.doe@sezzle.com",
"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!
The authentication token generated from providing API Keys to Sezzle Gateway
Successful operation
The response is of type object
.
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": "john.doe@sezzle.com",
"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"
}