POST /api/public/v1/loyaltySignup/join

Changed on

Joins a guest to the program a join code opens, creating the customer for a new number. Without phoneCode an existing customer is never changed and the answer is joined whether the number was new, a customer or already a member. With the code sendCode sent, on a page that verifiesPhone, no captcha is asked for, an existing customer's empty name, email and date of birth take the guest's, and joined carries the member's balanceHundredths and, while the program takes stamps, stamps: the member's live stamps and ready rewards on each active row by its place on the card. A name, email or date of birth the program's signupFields turns off is ignored and never stored. Refused with UNPROCESSABLE_CONTENT and refusal nameRequired, emailRequired or dateOfBirthRequired when the program requires that field and the join leaves it out, checked before the captcha and the code, with FORBIDDEN and refusal signupClosed while the page is closed, captcha for a failed check, phoneCodeUnavailable for a code on a page that does not verify the phone, phoneCodeWrong or phoneCodeExpired for a code that does not prove the number, UNPROCESSABLE_CONTENT for an unreadable number and TOO_MANY_REQUESTS past the per-number budget.

Request

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

Request body

object required
code, string required
phone, string required
name, string
email, string email
dateOfBirth, string date
captchaToken, string
phoneCode, string

Response

OK

object required
status, 'joined' required
balanceHundredths, integer
stamps, object[]

Changes

    • info

      added the optional property stamps to the response with the status

    • warning

      changed the pattern of the request property phoneCode from ^\d{6}$ to ^\d{4}$

    • warning

      removed the request property consent