Query operators

The following operators are permitted when querying in requests to the Reporting API:

Operator nameSyntaxExample
Equalvariable = valuestatus = 'COMPLETED'
Not equalvariable <> valuestatus <> 'COMPLETED'
Likevariable ~ 'value'id ~ '35b'
Less thanvariable < valueamount < 5.00
Less or equal thanvariable <= valueamount <= 5.00
Greater thanvariable > valuecreatedAt > '2022-05-12'
Greater or equal thanvariable >= valuecreatedAt >= '2022-05-12T10:00:00Z'
IN operatorvariable IN ('value1', 'value2')status IN ('COMPLETED', 'REFUNDED')
AND operatorvariable1 = 'value1' AND variable2 = 'value2'merchantId = 'b4c134ae8d251d76' AND status = 'FAILED'
OR operatorvariable1 = 'value1' OR variable2 = 'value2'merchantId = 'b4c134ae8d251d76' OR status = 'FAILED'
Parenthesis operator(variable1 = 'value1' OR variable2 = 'value2') AND variable3 = 'value3'(status = 'PART_REFUNDED' OR status = 'EXPIRED') AND currency = 'GBP'

📘

DateTime format

Use the DateTime format 2022-01-01T00:00:00 in your query operators. Date format is also supported (e.g. 2022-01-01).