Datetime , Filtering , Paging
Conventions
Date and Time format
The date and time format used in the messages is the ISO 8601 standard.
Message format : Json
Filtering results
Filtering the results can be done using the filter query parameter.
The example below shows how to search for a transport document where the consignment note number equals B001E
https://api.ewastra.com/api/v2/transportdocuments/?filter=cmrNumber eq 'B001E'
See the table below for the operators that can be used:
Operator
Description
eq
Equal to the expression on the rhs
neq
Not equal to the expression on the rhs
gt
Greater than the expression on the rhs
lt
Less than the expression on the rhs
ge
Greater than or equal to the expression on the rhs
le
Less than or equal to the expression on the rhs
contains
Contains the expression on the rhs
Expressions can be combined using 'and' and 'or' logical operators.
When specifying date and time values use the following syntax
datetime'yyyy-MM-ddTHH:mm:ss'
The following example searches for documents between 2 issued dates.
https://api.ewastra.com/api/v2/transportdocuments/?filter=issuedDate gt datetime'2016-02-23T00:00:00' and issuedDate lt datetime'2016-02-24T00:00:00'
Paging results
Using the 'page' and 'size' query parameters you can get paged results. Use the 'page' parameter to set the number of the page
starting from 1. Use the 'size' query parameter to set the number of results per page.
https://api.ewastra.com/api/v2/transportdocuments/?page=2&size=30