Skip to content
العربية

Customers

Reading customers needs an app without restrict_customer_list. Adding and changing them also needs it without restrict_customer_contact. An app with either restriction gets 403 restricted, which names it.

  • POST /customers finds people by phone number. When the number already belongs to one of the business’s customers, that customer comes back with 200, and only details that are blank get filled in. Use PATCH to change the rest.
  • A customer who has signed up to razza owns their name, phone, email and birthday, so changing them is refused with CUSTOMER_MANAGES_OWN_DETAILS. The same applies when another business also serves the person.
  • A customer with no email reads as "", and so does a gender that isn’t set. You can send what you read back unchanged. Addresses ending in .local or .invalid are razza’s own and are refused with VALIDATION_EMAIL_INVALID.