Postman collection
Customers Read

pixiGetCRMCustomerData

Returns customers with their main address data in pages ordered by CustKey, intended for synchronisation with CRM systems.

Returns customer records together with the address referenced by the customer (AddrRef).

  • Only customers with CustKey greater than CustKeyStart are returned.
  • If CustomerOf is empty or NULL, customers of all shops are returned; otherwise only customers whose CustomerOf matches.
  • At most Rows rows are returned, sorted by CustKey ascending.

Paging: start with CustKeyStart = 0, then pass the highest CustKey of the previous page as CustKeyStart for the next call. Stop when fewer than Rows rows come back.

An empty VATID is returned as NULL. Locked is Y if the customer is locked for sales (SLocked) or for delivery (DLocked), otherwise N.

Notes

  • Tables are read with NOLOCK, so uncommitted changes may be visible and rows can occasionally be missed or duplicated during concurrent writes.
  • The address is joined with a LEFT JOIN; customers without a matching address are still returned with NULL address columns.
  • Despite the header comment about "safe XML values", the code does not transform the values apart from VATID and Locked.

Tables used

customers · Read Addresses · Read
SQL object:
dbo.pipiGetCRMCustomerData
Updated at 2026-10-30