Postman collection
Customers Read

pixiReadCustomerAccountMatch

Returns customer account match records (pairs of matched customer account entries), filtered by date, customer or account entry, with keyset paging.

Reads rows from the CustomerAccountMatch table. Each row links two customer account entries (CAref1, CAref2) with the matched amount AbsoluteMatchAmount.

Paging: CustomerAccountMatchKey works as a cursor. Only records with a key greater than the given value are returned (NULL is treated as 0). At most RowCount rows are returned (NULL is treated as 1000), sorted by CustomerAccountMatchKey ascending. For the next page, pass the highest key of the previous page.

Date filters: only one date filter group is applied. The groups are checked in this order:

  1. CreateAndUpdateDateFrom / CreateAndUpdateDateTo: a record matches the lower bound if CreateDate or UpdateDate is >= the from value, and the upper bound if CreateDate or UpdateDate is < the to value.
  2. CreateDateFrom / CreateDateTo: filters on CreateDate (from inclusive, to exclusive).
  3. UpdateDateFrom / UpdateDateTo: filters on UpdateDate (from inclusive, to exclusive).

If a higher-ranking group has at least one value set, the date parameters of the lower groups are ignored. Without any date parameter, only the key and the other filters are applied.

Additional filters (always applied):

  • CustRef: the customer of the first or the second linked customer account entry must match.
  • CustomerAccountKey: CAref1 or CAref2 must equal the given value.

Notes

  • CustomerAccountMatchKey is not an exact lookup: because NULL values of CustomerAccountMatchKey and RowCount are replaced by defaults at the start, the code always uses the range branch (key > value). The branch for an exact key match and the empty-result branch in the code are never reached. To read a single record with key n, pass n - 1 and RowCount = 1.
  • The combined create/update date filter combines its conditions with OR, so the from and to bounds may be satisfied by different date columns; the result can therefore be broader than an exact time window.
  • All reads use NOLOCK, so uncommitted data may be returned.
  • RowCount = 0 returns no rows.

Tables used

CustomerAccountMatch · Read CustomerAccount · Read
SQL object:
dbo.pipiReadCustomerAccountMatch
Updated at 2026-10-30