Overview

RSQL operators can be used to retrieve Checkout data based on specific criteria. The following table lists the available criteria and operators that can be used to filter Checkout data:

CriteriaDescriptionOperator Used
amountnumber==, !=, =in=, =out=, =gt=, =ge=, =lt=, =le=
created_atdate==, !=, =in=, =out=, =gt=, =ge=, =lt=, =le=
currency_codestring==, !=, =in=, =out=, =regex=
customerstring==, !=, =in=, =out=, =regex=
idstring==, !=, =in=, =out=, =regex=
merchant_referencestring==, !=, =in=, =out=, =regex=
entity_idstring==, !=, =in=, =out=, =regex=
updated_atdate==, !=, =in=, =out=, =gt=, =ge=, =lt=, =le=
expiry_timedate==, !=, =in=, =out=, =gt=, =ge=, =lt=, =le=
statusstring==, !=, =in=, =out=, =regex=
notification_methods.email.email_addressstring==, !=, =in=, =out=, =regex=
configurations.card.token_details.reuse_tokenstring==, !=, =in=, =out=, =regex=
payment_method_usedstring==, !=, =in=, =out=, =regex=
interaction_typestring==, !=, =in=, =out=, =regex=
theme_idstring==, !=, =in=, =out=, =regex=
transaction_idstring==, !=, =in=, =out=, =regex=
created_bystring==, !=, =in=, =out=, =regex=

RSQL operators

The following table lists the RSQL operators that can be used to filter Checkout data:

OperatorDescription
==equal
!=not equal
=lt=less than
=le=less than and equal to
=gt=greater than
=ge=greater than and equal to
=regex=pattern matching
=in=multiple arguments search
=out=exclude
;Logical AND
,Logical OR

ℹ️

Logical AND (;) has higher precedence than Logical OR (,). This means that in an expression without parentheses, the AND operations will be evaluated before the OR operations. To change the order of evaluation, you can use parentheses () to group expressions and override the default precedence.

For example:

  • criteria1;criteria2,criteria3 is evaluated as (criteria1 AND criteria2) OR criteria3
  • (criteria1,criteria2);criteria3 is evaluated as (criteria1 OR criteria2) AND criteria3

Example Queries

The following table provides example RSQL queries and their descriptions:

QueryDescription
/v2/checkout?search=id==123;(amount==999,currency_code==USD);status==Authorized&order_by=ASC&order_criteria=amount&page_size=1&page_number=2Retrieve Checkout data where the id is 123, amount is 999 or currency code is USD, and status is Authorized. Results are ordered by amount in ascending order, with a page size of 1 and page number 2.
/v2/checkout?search=id==12345,merchant_reference==1234554321;amount==3224&order_by=DESC&order_criteria=created_at&page_size=10&page_number=1Retrieve Checkout data where the id is 12345 or merchant reference is 1234554321, and amount is 3224. Results are ordered by created_at in descending order, with a page size of 10 and page number 1.
/v2/checkout?search=amount=in=(100,200);interaction_type!=PAYMENT_LINK&order_by=ASC&order_criteria=currency_code&page_size=1&page_number=2Retrieve Checkout data where the amount is either 100 or 200, and interaction type is not PAYMENT_LINK. Results are ordered by currency code in ascending order, with a page size of 1 and page number 2.

St. George BankSA Bank of Melbourne

This information is a general statement for information purposes only and should only be used as a guide. While all care has been taken in preparation of this document, no member of the Westpac Group, nor any of their employees or directors gives any warranty of accuracy or reliability nor accepts any liability in any other way, including by reason of negligence for any errors or omissions contained herein, to the extent permitted by law. Unless otherwise specified, the products and services described are available only in Australia.

© St.George, Bank of Melbourne and BankSA – Divisions of Westpac Banking Corporation ABN 33 007 457 141 AFSL and Australian credit licence 233714.