GraphQL Shopping Cart API

A simple GraphQL shopping cart and checkout API built to work with your existing inventory.

Try it now

Bring your own frontend, or backend

However you handle carts, on the frontend or as a separate microservice, CartQL was designed to fit right in.

Works with static sites

No longer worry about writing logic to handle carts and checkout. Works with Apollo Client, URQL and more.

Webhooks

Perform custom business logic when an order is created, paid or cancelled, instantly with webhooks.

Flexible cart items

Store any type of data on cart and cart items with the CartQL mutations API.

No replatforming

CartQL was built to handle custom cart items for skus, promotions, shipping and so much more.

3D Secure 2 Invite only

Connect your Stripe account to automatically enrol in Strong Customer Authentication.

Metadata

CartQL takes care of calculating the cart, line and unit item totals, whatever the currency.

Microservice

CartQL can be used directly with your static site or stitched together with your other APIs.

Hosted Checkout Invite only

Focus on carts and allow us to focus on checkout. Send customers to a secure checkout for instant payment.

Customer Auth Invite only

Mutations for registering, managing and authenticating users. Queries for retrieving previous orders.

What you see is what you get

Manage cart items, checkout and pay for orders with a simple declarative GraphQL API.

query {
cart(
id: "ck5r8d5b500003f5o2aif0v2b",
currency: {
code: GBP
}
) {
...CartWithItems
}
}
fragment CartWithItems on Cart {
...CartInfo
items {
...ItemInfo
}
}
fragment CartInfo on Cart {
id
email
isEmpty
abandoned
totalItems
totalUniqueItems
currency {
code
symbol
}
subTotal {
amount
formatted
}
shippingTotal {
amount
formatted
}
taxTotal {
amount
formatted
}
grandTotal {
amount
formatted
}
attributes {
key
value
}
notes
createdAt
updatedAt
}
fragment ItemInfo on CartItem {
id
name
description
images
quantity
attributes {
key
value
}
unitTotal {
amount
formatted
}
lineTotal {
amount
formatted
}
createdAt
updatedAt
}

Try it now

CartQL is free and requires no API token for carts and checkout.