Filtering data

When you fetch a collection of resources, you can add filters to further refine the results. For example, the following request fetches a collection of SKUs that have been created within a specific time range:

GET /api/skus?filter[created_at_from]=2018-01-01&filter[created_at_to]=2018-01-31 HTTP/1.1
Accept: application/vnd.api+json
Note: You can get the full list of allowed filters from the documentation of each resource.

Get our machine-readable JSON schema that follows the OpenAPI Specification (formerly Swagger).

Get our Postman collection in one click and start making real calls to Commerce Layer API in minutes.

Get in touch with our support team if you have any questions or want to learn more about Commerce Layer.