POST /api/public/v1/customers/tillPoints

Changed on

Whether the customer attached to an order can spend loyalty points on it and, for a member, the balance and the limits a spend is held to. Answers status off while the program is not live, and also while the business may start no new Loyalty commitment: its own switch is off, its plan restricts or lacks Loyalty, or its billing standing admits no new commitment. A non-member's needsCode says whether joining asks for the guest's WhatsApp code; a member's says whether spending does, with isVerified whether verifyPointsCode verified the order for them, and phone the number the code goes to. Every status but off carries earn: the cashback rate the order earns its guest at, a member's tier rate or the program's own, and the happy-hours multiplier when the order was opened inside them, both in basis points. 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
orderId, string required

Response

OK

union required
object required
OR
object required
OR
object required
OR
object required

Changes

    • info

      added the required property anyOf[subschema #3]/phone to the response with the status

    • info

      added subschema #2 subschema #3 subschema #4 to the response body anyOf list for the response status

    • info

      removed subschema #2 subschema #3 subschema #4 from the response body anyOf list for the response status