Home / Basics / Highnote API

Highnote Query Language

Overview

The Highnote Query Language (HQL) lets you quickly search across Highnote API entities.

Limitations

Minimum API version: The minimum supported Search API version is VERSION_1.

Rate limits: See API Rate Limiting for details.

Search latency: Highnote’s Search API has a latency period of up to two minutes.

HQL Conventions

The Highnote Query Language uses the following conventions:

  • A term is a keyword used to search on attributes related to an entity.
  • An expression is <term> <operator> <value>. For example, transactionAmount > USD 100.
  • A value with special characters must be escaped with single quotes. For example, Highnote identifiers include an underscore and should be represented as 'ac_c022b9c66de3299c4f06a03293106c65234b'.

HQL Operators

OperatorDescriptionExample
=Equal toaccountId = 'ac_0001'
!=Not Equal toaccountId != 'ac_0001'
>Greater ThantransactionAmount > USD 100
>=Greater Than or Equal TotransactionAmount >= USD 100
<Less ThantransactionAmount < USD 100
<=Less Than or Equal TotransactionAmount <= USD 100
INReturns entities that match any value in listaccountId IN ('ac_0001', 'ac_0002)
NOT INReturns entities that do not match any value in listaccountId NOT IN ('ac_0001', 'ac_0002)
ANDBoth sides of expression are validtransactionAmount > USD 100 AND accountId = ‘ac_0001’
OREither side of expression is validaccountId = ‘ac_0001’ OR accountId = ‘ac_0002’
( )Groups search terms togetherlast4 = 1234 AND (accountId = ‘ac_0001’ OR accountId = ‘ac_0002’)

HQL Examples

Use the following mutation to list card product accounts, and then search by createdAt date.

Provide Feedback

Was this content helpful?