Customer Login
Authenticate a customer account with email and password.
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
email | String | ✅ Yes | Customer's email address |
password | String | ✅ Yes | Customer's password |
Response
| Field | Type | Description |
|---|---|---|
createCustomerLogin | Customer | The authenticated customer login object |
token | String | JWT token for API authentication |
message | String | Success or error message |
success | Boolean | Login success status |
Token Usage
Once logged in, use the token in the Authorization header for authenticated requests:
Authorization: Bearer <token>e.g.
"Authorization": "Bearer 220|KZhQuUwUzb6Z7j....."Error Responses
json
{
"errors": {
"email": ["Invalid email or password."]
}
}
