Works with your favourite frontend framework
Shopping Cart API
Simple mutations for adding items, automatic totals with currency formatting, and flexible metadata.
Use any existing product inventory system, no migration required.
Add, update, increment, or remove items with developer-friendly APIs.
Support 100+ currencies with automatic formatting and symbols.
Store any JSON data on carts or items to handle your needs.
Subtotals, tax, and shipping are calculated automatically.
Carts are automatically saved for two weeks after last activity.
Use any GraphQL client or library with the edge-based GraphQL API.
MCP lets AI agents add items and manage carts in natural language.
Receive real-time events when carts are created, or abandoned.
MCP Server
Enable natural language shopping, automated cart management, and seamless checkout flows.
https://api.cartql.com/mcpLet LLMs build and manage carts automatically.
Persistent carts for smarter conversations.
Connect any product source to your AI workflows.
Measure how well your agents perform and shop.
Trigger workflows when AI takes action.
Let multiple agents share the same cart state.
GraphQL API
Full-featured GraphQL API that works over HTTP.
Type-safe queries and mutations with any GraphQL client.
query {
cart(
id: "",
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
}https://api.cartql.comIntegrate with the tools you already use with GraphQL.
Use GraphQL Codegen and other tools to get full type safety.
Globally distributed at the edge for low-latency queries anywhere.
Pricing
Start free. Upgrade when you need webhooks,
analytics, and priority support.
Free, forever.
What's included
For growing businesses.
Everything in Free, plus
FAQ
Everything you need to know about CartQL.
Join developers who are shipping faster with CartQL's shopping cart API. GraphQL, MCP, and no backend required.