Description

API authentication for the customers

Headers

Authorization

The company auth token needed for company validation

Parameters

mobile_no required, type: string

The customer mobile number

customer_name optional, type: string

The customer name

customer_email optional, type: string

The customer E-mail

Example Request

{
    "customer_name": "kavitha",
    "customer_mobile": "98765*****",
    "customer_email": "kavitha@bigcity.in"
}

Example Response

{
  "customer_id": 1,
  "customer_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3MDE5Mzk2OTUsImlzcyI6Imh0dHBzOlwvXC9hcGkubnV0cmljaG9pY2UuYmlnY2l0eXZvdWNoZXIuY28uaW4iLCJhdWQiOiJodHRwczpcL1wvYXBpLm51dHJpY2hvaWNlLmJpZ2NpdHl2b3VjaGVyLmNvLmluIiwibmJmIjoxNzAxOTM5Njk1LCJleHAiOjE3MDIwMjYwOTUsInN1YiI6IlMxIiwiZGF0YSI6eyJjdXN0b21lcl9udW1iZXIiOiI2MzYyMjU2ODU0IiwibmFtZSI6IiIsImV4cGlyeV9kYXRlIjoxNzAyMDI2MDk1fSwianRpIjoxfQ.pOjkscT0hN0fpFjIH-0jXi4cF8SZZLE3g_9nIjnxQ48",
"token_expiry": "2023-12-08 14:31:35"
}

Example Of Failuer Response

                  

{

        "name": "Unprocessable entity",

        "message": "Enter Valid Input ",

        "code": 0,

        "status": 422,

        "type": "yii\\web\\HttpException"

    }