Commerce Layer Metrics API (2024-06-11)
Number of APIs: 13
About this collection
Commerce Layer Metrics API Qodex collection is a great way for you to explore a pretty comprehensive list of use cases as a new user and see what the requests and responses of different queries look like.
The collection is public, meaning that you can just have a look at the API calls to better understand how they work or even access with your Qodex account, fork the collection, set the environment variables based on your Commerce Layer credentials, and test the Metrics API efficiently using your organization data. This way you can also watch the collection for changes and get notified when some new update is released. When you receive a notification that we have released a new version of the collection, you can pull in the changes to keep your fork up-to-date.
Documentation and further resources
Getting started with the Metrics API
Metrics API reference
How to use the public Qodex collection
-
Orders - Total number of orders by day POST https://{{subdomain}}.commercelayer.io/metrics/orders/date_breakdown
-
Orders - Shipments average time in picking POST https://{{subdomain}}.commercelayer.io/metrics/orders/stats
-
Orders - Total number of refunds by country and currency code POST https://{{subdomain}}.commercelayer.io/metrics/orders/breakdown
-
Orders - Latest archived orders POST https://{{subdomain}}.commercelayer.io/metrics/orders/search
-
Returns - Last returns shipped from a specific country POST https://{{subdomain}}.commercelayer.io/metrics/returns/search
-
Returns - Total number of active returns by market name and return status POST https://{{subdomain}}.commercelayer.io/metrics/returns/breakdown
-
Returns - Mixed stats about returns that contain more than one product POST https://{{subdomain}}.commercelayer.io/metrics/returns/stats
-
Returns - Total number of returns per year and average number of products included by destination city POST https://{{subdomain}}.commercelayer.io/metrics/returns/date_breakdown
-
Carts - Total number of pending carts with amount greater than 100€ POST https://{{subdomain}}.commercelayer.io/metrics/carts/stats
-
Carts - Total number of pending carts by customer email and payment method name POST https://{{subdomain}}.commercelayer.io/metrics/carts/breakdown