POST Passwordless Request

This endpoint will check if the customer exists and, if it does, create or update the passwordless request and send the login confirmation code; else, create a new passwordless request and send the sign-up confirmation code.

Headers
  • Accept
    Type: string
    required

    Accept header

  • Authorization
    Type: string

    Authorization header

  • Content-Type
    Type: string
    required

    Content-Type header

  • API-VERSION
    Type: string
    required

    API version

  • Application
    Type: string
    required

    Application key

  • X-Request-ID
    Type: string
    required

    Unique request identifier

  • X-QB-Enabled
    enum
    required

    Header which if sent with value 'true' will allow usage of the query building feature in response (through the request's query params). It is mandatory for this part of the documentation.

    values
    • true
    • false
Body
application/json
  • email
    Type: stringFormat: email
Responses
  • application/json
  • 400

    Bad Request

  • 401

    Unauthorized

  • 403

    Forbidden

  • 404

    Not Found

  • 500

    Internal Server Error

Request Example for post/customers/passwordless-request
curl https://api-public-demo.menu.app/api/customers/passwordless-request \
  --request POST \
  --header 'Accept: application/json' \
  --header 'Authorization: ' \
  --header 'Content-Type: application/json' \
  --header 'API-VERSION: ' \
  --header 'Application: ' \
  --header 'X-Request-ID: c10b4a70-6274-490d-80a0-03e7bb826937' \
  --header 'X-QB-Enabled: true' \
  --data '{
  "email": "ivan.djordjevic@partech.com"
}'
{
  "status": "OK",
  "code": 200
}