> For the complete documentation index, see [llms.txt](https://docs.commercelayer.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.commercelayer.io/metrics-api-reference/resources.md).

# Resources

- [Orders](https://docs.commercelayer.io/metrics-api-reference/resources/orders.md): A comprehensive list of the order resource's fields and attributes
- [Breakdown](https://docs.commercelayer.io/metrics-api-reference/resources/orders/breakdown.md): A comprehensive list of the breakdown query keys, allowed fields values, and operators for the order resource
- [Date breakdown](https://docs.commercelayer.io/metrics-api-reference/resources/orders/date-breakdown.md): A comprehensive list of the date breakdown query keys, allowed fields values, and operators for the order resource
- [Stats](https://docs.commercelayer.io/metrics-api-reference/resources/orders/stats.md): A comprehensive list of the stats query keys, allowed fields values, and operators for the order resource
- [Search](https://docs.commercelayer.io/metrics-api-reference/resources/orders/search.md): A comprehensive list of the search query keys and allowed fields values for the order resource
- [Export](https://docs.commercelayer.io/metrics-api-reference/resources/orders/export.md): A comprehensive list of the export query keys and allowed fields values for the order resource
- [Filters](https://docs.commercelayer.io/metrics-api-reference/resources/orders/filters.md): A comprehensive list of the allowed fields values you can use to filter the results of the queries on the order resource
- [Examples](https://docs.commercelayer.io/metrics-api-reference/resources/orders/examples.md): How to perform Metrics API queries on the order resource
- [Returns](https://docs.commercelayer.io/metrics-api-reference/resources/returns.md): A comprehensive list of the return resource's fields and attributes
- [Breakdown](https://docs.commercelayer.io/metrics-api-reference/resources/returns/breakdown.md): A comprehensive list of the breakdown query keys, allowed fields values, and operators for the return resource
- [Date breakdown](https://docs.commercelayer.io/metrics-api-reference/resources/returns/date-breakdown.md): A comprehensive list of the date breakdown query keys, allowed fields values, and operators for the return resource
- [Stats](https://docs.commercelayer.io/metrics-api-reference/resources/returns/stats.md): A comprehensive list of the stats query keys, allowed fields values, and operators for the return resource
- [Search](https://docs.commercelayer.io/metrics-api-reference/resources/returns/search.md): A comprehensive list of the search query keys and allowed fields values for the return resource
- [Export](https://docs.commercelayer.io/metrics-api-reference/resources/returns/export.md): A comprehensive list of the export query keys and allowed fields values for the return resource
- [Filters](https://docs.commercelayer.io/metrics-api-reference/resources/returns/filters.md): A comprehensive list of the allowed fields values you can use to filter the results of the queries on the return resource
- [Examples](https://docs.commercelayer.io/metrics-api-reference/resources/returns/examples.md): How to perform Metrics API queries on the return resource
- [Carts](https://docs.commercelayer.io/metrics-api-reference/resources/carts.md): A comprehensive list of the cart resource's fields and attributes
- [Breakdown](https://docs.commercelayer.io/metrics-api-reference/resources/carts/breakdown.md): A comprehensive list of the breakdown query keys, allowed fields values, and operators for the cart resource
- [Date breakdown](https://docs.commercelayer.io/metrics-api-reference/resources/carts/date-breakdown.md): A comprehensive list of the date breakdown query keys, allowed fields values, and operators for the cart resource
- [Stats](https://docs.commercelayer.io/metrics-api-reference/resources/carts/stats.md): A comprehensive list of the stats query keys, allowed fields values, and operators for the cart resource
- [Search](https://docs.commercelayer.io/metrics-api-reference/resources/carts/search.md): A comprehensive list of the search query keys and operators for the cart resource
- [Export](https://docs.commercelayer.io/metrics-api-reference/resources/carts/export.md): A comprehensive list of the export query keys and allowed fields values for the cart resource
- [Filters](https://docs.commercelayer.io/metrics-api-reference/resources/carts/filters.md): A comprehensive list of the allowed fields values you can use to filter the results of the queries on the cart resource
- [Examples](https://docs.commercelayer.io/metrics-api-reference/resources/carts/examples.md): How to perform Metrics API queries on the cart resource


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.commercelayer.io/metrics-api-reference/resources.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
