v1
latestOpenAPI 3.0.02026-07-2417517.4 KBDirect Checkout
Initialize the Lease for Checkout
To begin the checkout, we must open the checkout by submitting the full contents of the shopping cart.
post/application/initialize/
Request body
Example request
{
"code": "123456",
"customer": {
"billing": {
"first_name": "jane",
"middle_name": "Q",
"last_name": "doe",
"address": "123 main street",
"address2": "apt 5b",
"city": "New York",
"state": "NY",
"country": "United States",
"zip": "10009",
"phone": "5554324537",
"email": "jqdoe@anonmail.com"
},
"shipping": {
"first_name": "jane",
"middle_name": "Q",
"last_name": "doe",
"address": "123 main street",
"address2": "apt 5b",
"city": "New York",
"state": "NY",
"country": "United States",
"zip": "10009",
"phone": "5554324537",
"email": "jqdoe@anonmail.com"
}
},
"items": [
{
"display_name": "Furniture Set",
"sku": "FS3525",
"unit_price": 700,
"quantity": 1,
"leasable": true,
"warranty": {
"price": 100,
"name": "warranty name",
"code": "warranty sku"
}
}
],
"checkout": {
"customer_id": "1000438727823",
"discounts": [
{
"discount_name": "Birthday Discount",
"discount_ammount": 50
}
]
},
"urls": {
"return": "https://yoursite.com/return",
"cancel": "https://yoursite.com/cancel"
},
"phone": "6073393582"
}Response
default response