Filtering

Mews POS API supports filtering using the JSON:API filter query parameter. The filter query parameter can be used to filter resources by attributes. Please note that support for filters is endpoint-specific. Visit the documentation of an endpoint to get more details about the supported filters.

Unsafe characters: We recommend you always URI-encode the values of filter query parameters, because filters can contain unsafe URL characters.

Supported filters

Property
Type
Contract
Description

createdAtGt

string

optional

Date-time or date the resource was created, in RFC 3339 format. Gt means greater than. Raw example: filter[createdAtGt]=2024-07-25T16:29:35+00:00 Encoded example: filter%5BcreatedAtGt%5D%3D2024-07-25T16%3A29%3A35%2B00%3A00

createdAtGteq

string

optional

Date-time or date the resource was created, in RFC 3339 format. Gteq means greater than or equal to. Raw example: filter[createdAtGteq]=2024-07-25T16:29:35+00:00 Encoded example: filter%5BcreatedAtGteq%5D%3D2024-07-25T16%3A29%3A35%2B00%3A00

createdAtLt

string

optional

Date-time or date the resource was created, in RFC 3339 format. Lt means less than. Raw example: filter[createdAtLt]=2024-07-25T16:29:35+00:00 Encoded example: filter%5BcreatedAtLt%5D%3D2024-07-25T16%3A29%3A35%2B00%3A00

createdAtLteq

string

optional

Date-time or date the resource was created, in RFC 3339 format. Lteq means less than or equal to. Raw example: filter[createdAtLteq]=2024-07-25T16:29:35+00:00 Encoded example: filter%5BcreatedAtLteq%5D%3D2024-07-25T16%3A29%3A35%2B00%3A00

updatedAtGt

string

optional

Date-time or date the resource was updated, in RFC 3339 format. Gt means greater than. Raw example: filter[updatedAtGt]=2024-07-25T16:29:35+00:00 Encoded example: filter%5BupdatedAtGt%5D%3D2024-07-25T16%3A29%3A35%2B00%3A00

updatedAtGteq

string

optional

Date-time or date the resource was updated, in RFC 3339 format. Gteq means greater than or equal to. Raw example: filter[updatedAtGteq]=2024-07-25T16:29:35+00:00 Encoded example: filter%5BupdatedAtGteq%5D%3D2024-07-25T16%3A29%3A35%2B00%3A00

updatedAtLt

string

optional

Date-time or date the resource was updated, in RFC 3339 format. Lt means less than. Raw example: filter[updatedAtLt]=2024-07-25T16:29:35+00:00 Encoded example: filter%5BupdatedAtLt%5D%3D2024-07-25T16%3A29%3A35%2B00%3A00

updatedAtLteq

string

optional

Date-time or date the resource was updated, in RFC 3339 format. Lteq means less than or equal to. Raw example: filter[updatedAtLteq]=2024-07-25T16:29:35+00:00 Encoded example: filter%5BupdatedAtLteq%5D%3D2024-07-25T16%3A29%3A35%2B00%3A00

registerIdEq

string

optional

Register id, in Universally unique ID UUID4 format. Raw example: filter[registerIdEq]=f35693cb-cc0c-4c6f-bf16-eb0547444642 Encoded example: filter%5BregisterIdEq%5D%3Df35693cb-cc0c-4c6f-bf16-eb0547444642

  • We plan to add support for more filters in future.

Example request and response

In the example request, we will query the /invoices endpoint with filter:

GET [PlatformAddress]/v1/invoices?filter[createdAtGt]=2024-07-25T16%3A29%3A35%2B00%3A00

It is also possible to combine two filters:

GET [PlatformAddress]/v1/invoices?filter[createdAtGt]=2024-07-25T16%3A29%3A35%2B00%3A00&filter[registerIdEq]=f35693cb-cc0c-4c6f-bf16-eb0547444642

Response

Last updated