> For the complete documentation index, see [llms.txt](https://help.mimeeq.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.mimeeq.com/api/carts/get-cart.md).

# Get Cart

Read a shopping cart’s full contents and submission details using its cartId from List Carts. Use this to retrieve configured product selections for an integration.

The response includes line items, quantities, prices and price modifiers. A line item may include a saved configuration `shortCode`. Submission-specific fields are null while the cart is `OPEN`.

Requires the `carts:read` scope.

```json
{"openapi":"3.1.0","info":{"title":"Mimeeq External API","version":"1.1.0"},"tags":[{"name":"Carts","description":"Read shopping carts and their configured product selections. A cart can be open or submitted; its submission details become available after it is submitted.\n\nUse carts to retrieve a submitted enquiry or order input for another system, including contact information, selected configurations, quantities and prices. A cart is distinct from a quotation and does not by itself confirm a completed sale.\n\n## What you can do\n\n| Task | Reference |\n| --- | --- |\n| Find available carts | [List Carts](https://help.mimeeq.com/developers/carts/list-carts) |\n| Read one cart | [Get Cart](https://help.mimeeq.com/developers/carts/get-cart) |\n\n## Before you start\n\nYour API key needs `carts:read` to read these resources.\n\n## Important behaviour\n\nThese endpoints are read-only. List Carts requires at least one filter: status, `companyId` or `contactId`. Company and contact filters cannot be combined. Use Get Cart for the full line items, price modifiers and submission data; submission-specific values are null while the cart is open."}],"servers":[{"url":"https://admin.mimeeqapi.com","description":"Production API"}],"security":[{"apiKey":[]}],"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","description":"API key sent as a bearer token (mk_live_… / mk_test_…)."}},"schemas":{"CartsDetail":{"type":"object","properties":{"data":{"type":"object","properties":{"cartId":{"type":"string"},"status":{"type":"string","enum":["OPEN","SUBMITTED"]},"referenceCode":{"anyOf":[{"type":"string"},{"type":"null"}]},"contactId":{"anyOf":[{"type":"string"},{"type":"null"}]},"clientEmail":{"anyOf":[{"type":"string"},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"totalValue":{"type":"number"},"totalAdditions":{"type":"number"},"finalPrice":{"type":"number"},"totalQuantity":{"type":"number"},"submissionData":{"anyOf":[{"type":"object","properties":{"fullName":{"type":"string"},"email":{"type":"string"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}]},"companyName":{"anyOf":[{"type":"string"},{"type":"null"}]},"address":{"anyOf":[{"type":"string"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string"},{"type":"null"}]},"customFields":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["fullName","email","phone","companyName","address","notes","customFields"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"ISO 8601 creation timestamp."},"modifiedAt":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"ISO 8601 last-modified timestamp."},"submittedAt":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"ISO 8601 submission timestamp, or null while the cart is still open."},"companyId":{"anyOf":[{"type":"string"},{"type":"null"}]},"items":{"type":"array","items":{"type":"object","properties":{"cartItemId":{"type":"string"},"productId":{"type":"string"},"productName":{"type":"string"},"variantCode":{"anyOf":[{"type":"string"},{"type":"null"}]},"sku":{"anyOf":[{"type":"string"},{"type":"null"}]},"shortCode":{"anyOf":[{"type":"string"},{"type":"null"}]},"configurationCode":{"anyOf":[{"type":"string"},{"type":"null"}]},"quantity":{"type":"number"},"unitPrice":{"anyOf":[{"type":"number"},{"type":"string"}],"description":"Parsed numeric price, or a string sentinel when the source value is unparseable."},"price":{"anyOf":[{"type":"number"},{"type":"string"}],"description":"Parsed numeric price, or a string sentinel when the source value is unparseable."},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"note":{"anyOf":[{"type":"string"},{"type":"null"}]},"link":{"anyOf":[{"type":"string"},{"type":"null"}]},"specification":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["cartItemId","productId","productName","variantCode","sku","shortCode","configurationCode","quantity","unitPrice","price","image","note","link","specification"],"additionalProperties":false}},"priceModifiers":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"mode":{"type":"string","enum":["FIXED","PERCENTAGE"]},"modifierValue":{"type":"number"},"type":{"type":"string","enum":["ADDITION","DISCOUNT"]},"calculatedValue":{"type":"number"}},"required":["name","description","mode","modifierValue","type","calculatedValue"],"additionalProperties":false}}},"required":["cartId","status","referenceCode","contactId","clientEmail","currency","totalValue","totalAdditions","finalPrice","totalQuantity","submissionData","createdAt","modifiedAt","submittedAt","companyId","items","priceModifiers"],"additionalProperties":false}},"required":["data"],"additionalProperties":false,"description":"Data schema used by Get Cart (GET /v1/carts/{cartId}). Read that operation for usage, permissions and update rules. Required fields and allowed values are defined below; request and response shapes can differ."},"PublicError":{"description":"An API error response. Use code and the HTTP status to classify the failure, message and optional details for context, and requestId when reporting it. Edge firewall responses may omit requestId.","type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","description":"Present on every error the API itself returns; absent when the edge firewall rejected the request."},"details":{"description":"Optional error-specific details (e.g. per-field validation reasons)."}}}}},"paths":{"/v1/carts/{cartId}":{"get":{"summary":"Get Cart","tags":["Carts"],"description":"Read a shopping cart’s full contents and submission details using its cartId from List Carts. Use this to retrieve configured product selections for an integration.\n\nThe response includes line items, quantities, prices and price modifiers. A line item may include a saved configuration `shortCode`. Submission-specific fields are null while the cart is `OPEN`.\n\nRequires the `carts:read` scope.","responses":{"200":{"description":"Successful response.","headers":{"RateLimit-Limit":{"description":"Requests that can be admitted at once (the tier burst).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Tokens left after this request.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the bucket is full again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CartsDetail"}}}},"400":{"description":"Invalid request data.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicError"}}},"headers":{"RateLimit-Limit":{"description":"Requests that can be admitted at once (the tier burst).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Tokens left after this request.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the bucket is full again.","schema":{"type":"integer"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicError"}}}},"403":{"description":"The API key lacks the required scope (`scope_denied`), or the operation is not permitted for this account (`operation_not_permitted`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicError"}}},"headers":{"RateLimit-Limit":{"description":"Requests that can be admitted at once (the tier burst).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Tokens left after this request.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the bucket is full again.","schema":{"type":"integer"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicError"}}},"headers":{"RateLimit-Limit":{"description":"Requests that can be admitted at once (the tier burst).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Tokens left after this request.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the bucket is full again.","schema":{"type":"integer"}}}},"429":{"description":"The API key exceeded its request rate (`rate_limit_exceeded`) or its monthly quota (`quota_exceeded`). Both carry `Retry-After`; the `RateLimit-*` headers accompany `rate_limit_exceeded` only, since a spent quota says nothing about the bucket.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicError"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Requests that can be admitted at once (the tier burst).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Tokens left after this request.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the bucket is full again.","schema":{"type":"integer"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicError"}}},"headers":{"RateLimit-Limit":{"description":"Requests that can be admitted at once (the tier burst).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Tokens left after this request.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the bucket is full again.","schema":{"type":"integer"}}}}},"parameters":[{"name":"cartId","in":"path","required":true,"schema":{"type":"string","minLength":1}}]}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.mimeeq.com/api/carts/get-cart.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
