Brand
Customer
Sign In With Code

Sign In With Customer Code

It authenticates the customer and establishes a session, providing access to their account details and personal information.

Overview

  • Method: POST
  • Path: /brand/customer/sign-in-with-code
  • Tags: brand

Use Cases

  • Enable customers to quickly sign in using a provided code.
  • Authenticate users without requiring a password.

Parameters

code (query)

  • Type: string
  • Required: Yes
  • Description: code query parameter

Request Body

No request body required.

Responses

200

Successful response

Content Type: application/json

{
  "id": "string",
  "email": "string",
  "first_name": "string",
  "last_name": "string",
  "phone": "string",
  "has_account": true,
  "created_at": "2024-01-01T00:00:00.000Z",
  "updated_at": "2024-01-01T00:00:00.000Z",
  "deleted_at": "2024-01-01T00:00:00.000Z",
  "metadata": {
    "key": {}
  }
}

400

Bad Request

Content Type: application/json

{}

401

Unauthorized

404

Not Found

500

Internal Server Error

Example Usage

curl -X POST \
  https://api.pillexa.com/brand/customer/sign-in-with-code \
  -H "Content-Type: application/json" \