Postman collection
Customers Write

pixiAddCustomerComment

Sets the comment field `CHisNote` of a customer identified by its external customer number and returns 1 on success or 0 if no customer was found.

Writes a comment into the CHisNote column of a customer record.

  1. The call checks whether a customer exists in Customers with CustomerNrExternal = CustomerNrExternal.
  2. If ShopID is passed, only customers with CustomerOf = ShopID are considered. If ShopID is omitted (NULL), the shop is not checked.
  3. If no matching customer exists, the call returns one row with ReturnMessage = 0. Nothing is changed.
  4. Otherwise CHisNote of all matching customers is set to Comment and the call returns one row with ReturnMessage = 1.

Notes

  • Despite the call name and the header comment ("create a manual booking event"), the code does not add a new entry. It overwrites the existing content of CHisNote. A previous comment is lost unless the caller includes it in Comment.
  • If ShopID is omitted and the same external customer number exists in several shops, the comment is written to all of these customers.
  • The existence check reads with NOLOCK. The check and the update do not run in an explicit transaction.
  • If the customer exists but Comment is omitted, CHisNote is set to NULL, because Comment has no default value.

Tables used

Customers · Write
SQL object:
dbo.pipiAddCustomerComment
Updated at 2026-10-30