Authentication
Login

Login Seller

Authenticate Seller by Email and Password

Endpoint

Base URL
http://localhost:8080
Method and Endpoint
POST /api/sellers/login

Request Body

Request Body
{
    "email": "example@gmail.com",
    "password": "YourPassword_123",
}

Responses

You will get responses like this:

200 (success)

Response Body
{
    "access_token": "unique-string-for-access-token"
}

400 (bad request)

Response Body
{
    "error": "email or password incorrect"
}

400 (bad request - email not exist)

Response Body
{
    "error": "email doesn't exist"
}

500 (server error)

Response Body
{
    "error": "Internal server error"
}