# Authorize Online Booking User

When a user of an online account changes their password, their API key will change and a new authorization will be required
| Attribute | Type | Description |
|  --- | --- | --- |
| login | string | The visitor's phone number in the format +13155550175, or their email address. |
| password | string | Visitor password |

Endpoint: POST /booking/auth
Version: 1.0.0

## Header parameters:

  - `Accept` (string, required)
    e.g. application/vnd.api.v2+json

  - `Content-Type` (string, required)
    application/json

  - `Authorization` (string, required)
    Bearer partner_token

## Request fields (application/json):

  - `login` (string, required)
    Phone number or Email

  - `password` (string, required)
    Password

## Response 201:

  - `201` (unknown)
    Created

## Response 201 fields (application/json):

  - `id` (integer)
    User ID

  - `user_token` (string)
    User_token of the user

  - `name` (string)
    Username

  - `phone` (string)
    User phone

  - `login` (string)
    User login

  - `email` (string)
    User mailing address

  - `avatar` (string)
    Path to the user's avatar file

## Response 401:

  - `401` (unknown)
    Unauthorized

## Response 401 fields (application/json):

  - `success` (boolean)
    Response status.
    Example: false

  - `data` (object | null)
    Response data.
    Example: null

  - `meta` (object)
    Additional response data.

  - `meta.message` (string)
    Error message.
    Example: Authentication needed.

## Response 403:

  - `403` (unknown)
    Forbidden

## Response 403 fields (application/json):

  - `success` (boolean)
    Response status.
    Example: false

  - `data` (object | null)
    Response data.
    Example: null

  - `meta` (object)
    Additional response data.

  - `meta.message` (string)
    Error message.
    Example: Access denied.

## Response 404:

  - `404` (unknown)
    Not Found

## Response 404 fields (application/json):

  - `success` (boolean)
    Response status.
    Example: false

  - `data` (object | null)
    Response data.
    Example: null

  - `meta` (object | array)
    Additional response data (empty object or empty array)
    Example: {}

