Direct Integration
Objects
Checkout object

Checkout object

Attributes

AttributeRequiredTypeDescription
orderIDyesstringunique identifier of an order
currencyyesstringcurrency (i.e. USD)
totalCostyesstringThe amount of the total checkout in cents
taxCostyesstringThe amount of the total tax in cents
shippingCostyesstringThe amount of shipping cost in cents
itemsyes[]itemAll the items within the order checkout
addressesno[]addressAll addresses associated with the order checkout
discountsno[]discountAll discounts associated with the order checkout

Example

JSON
{
  "orderId": "ORD-12345",
  "currency": "USD",
  "totalCost": 2999,
  "taxCost": 200,
  "shippingCost": 100,
  "items": [
    {
      "sku": "ABC123",
      "imageUrl": "https://example.com/product_image.jpg",
      "name": "Awesome Product",
      "quantity": 2,
      "amount": 1999
    }
  ],
  "addresses": [
    {
      "firstName": "John",
      "lastName": "Doe",
      "street1": "123 Main Street",
      "street2": "Apt. B",
      "city": "Anytown",
      "state": "CA",
      "zip": "12345",
      "email": "johndoe@example.com",
      "phoneNumber": "15551234567",
      "addressType": "shipping"
    }
  ],
  "discounts": [
    {
      "name": "Summer Sale Discount",
      "code": "SUMMER2024",
      "discountAmount": 1000
    }
  ]
}