Shopify Storefront Cart Structure is a JSON Structure definition published by Shopify Storefront API.
{
"title": "Shopify Storefront Cart Structure",
"description": "Hierarchical structure of the Shopify Storefront API Cart object",
"resource": "Cart",
"graphqlType": "Cart",
"mutation": "cartCreate",
"structure": {
"id": { "type": "string", "description": "Cart GID (gid://shopify/Cart/{token})" },
"checkoutUrl": { "type": "uri", "description": "URL to Shopify-hosted checkout" },
"totalQuantity": { "type": "integer", "description": "Total item count across all lines" },
"createdAt": { "type": "datetime", "description": "Cart creation timestamp" },
"updatedAt": { "type": "datetime", "description": "Last modification timestamp" },
"note": { "type": "string", "nullable": true, "description": "Buyer note for the order" },
"cost": {
"type": "object",
"description": "Pricing summary for the cart",
"properties": {
"totalAmount": { "type": "MoneyV2", "description": "Grand total including taxes" },
"subtotalAmount": { "type": "MoneyV2", "description": "Total before taxes and shipping" },
"totalTaxAmount": { "type": "MoneyV2", "nullable": true, "description": "Total tax" },
"totalDutyAmount": { "type": "MoneyV2", "nullable": true, "description": "Total duty/import fees" }
}
},
"lines": {
"type": "Connection<CartLine>",
"description": "Paginated list of cart line items",
"items": {
"id": { "type": "string", "description": "Cart line GID" },
"quantity": { "type": "integer", "description": "Quantity of the variant" },
"merchandise": {
"type": "ProductVariant",
"description": "The product variant being purchased"
},
"cost": {
"type": "object",
"properties": {
"totalAmount": { "type": "MoneyV2" },
"amountPerQuantity": { "type": "MoneyV2" }
}
},
"attributes": {
"type": "array",
"description": "Custom attributes for the line item",
"items": {
"key": { "type": "string" },
"value": { "type": "string" }
}
}
}
},
"discountCodes": {
"type": "array",
"description": "Applied discount codes",
"items": {
"code": { "type": "string" },
"applicable": { "type": "boolean" }
}
},
"attributes": {
"type": "array",
"description": "Custom cart attributes",
"items": {
"key": { "type": "string" },
"value": { "type": "string" }
}
}
}
}
Every JSON Structure here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for json structure
4 MCP tools reach this
find_json_structuresBrowse and filter every JSON Structure in the catalog.
apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
resolveTurn a domain, URL or GitHub org into the provider it belongs to.
find_cohortsEvery scored population of providers in the catalog.
All 92 tools
Call it yourself
curl for this page
This JSON Structure
curl "https://apis.io/api/v1/json-structures/shopify-storefront-cart-structure"
All json structure
curl "https://apis.io/api/v1/json-structures?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no email required.
A second provider on the same verified email joins the account you already have.