Postman collection
Customers Read

pixiGetCustomerInfo

Returns basic information about a customer: name, comment, DATEV account, lock flag, number of invoices per reminder level and external customer number.

Looks up the customer with the internal key CustKey and joins its main address (Customers.AddrRef → Addresses.AddrKey).

Returns one row with:

  • the name from the address record,
  • the customer history note (CHisNote) as Comment,
  • the DATEV account number as text,
  • the lock flag (N if not set),
  • the number of the customer's invoices at reminder level 1, 2 and 3,
  • the external customer number.

If no customer with this key exists, or the customer has no matching address record, the result set is empty.

Notes

  • All reads use NOLOCK, so the values may include uncommitted data.
  • Invoices at reminder levels higher than 3 are not counted.
  • The DATEV account number is cast to varchar(10).
  • A comment in the code says that the column list is meant to be extended later.

Tables used

Customers · Read Addresses · Read Invoices · Read
SQL object:
dbo.pipiGetCustomerInfo
Updated at 2026-10-30