POST /api/public/v1/customers/createAtTill

Changed on

Creates the customer a cashier is about to attach to an order, answering with an existing customer that already holds the number. With joinLoyalty, a live program enrols the customer; when the program is not live, or the business takes no new Loyalty work (its own switch is off, or its plan restricts or lacks Loyalty), the customer is created without enrolling, as before for a program that is not live. While the organization asks for the guest's WhatsApp code when the till adds them to loyalty, joinLoyalty enrols nobody and sends the code to a customer who is not yet a member instead: joinCode is that send (sent, cooldown or unavailable), and null when no code was sent. Refused with FORBIDDEN as paywallLocked when the caller is an Owner or Manager of a business the merchant Paywall locks: one with no verified subscription that has taken 5 orders while the Paywall's rollout reaches it, an order counting from its first saved line, whether or not it is paid or completed, until it is archived or cancelled before activation. Nothing is read or written; a verified subscription lifts the lock.

Request

  • Base URL
    https://app.fortuneos.ai
  • Auth
    none declared

Request body

object required
organizationId, string required
name, string
phone, string required
email, string email
dateOfBirth, string date
comment, string
joinLoyalty, boolean

Response

OK

object required
id, string required
name, string nullable required
phone, string nullable required
loyaltyStatus, 'member' | 'joinable' | 'needsPhone' required
loyaltyJoin, object nullable required
joinCode, union required

Changes