Sign In
Authenticates an existing customer using username and password credentials.
HTTP Request
POST/api/shop/customers/auth/pwd/signin
Authorization
Authorization
- Required: No
- Permission: None (public access)
- Authentication: None
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| username | String | Yes | Unique username for the customer (max 150 chars) |
| password | String | Yes | Customer's password (max 150 chars) |
Example Requests
- 🐍 Python
- 🌐 Curl
1import requests
2
3# Sign in customer
4response = requests.post('http://www.example.com/api/shop/customers/auth/pwd/signin',
5 json={
6 'username': 'john_doe_customer',
7 'password': 'secure_password123'
8 }
9)
10print(response.json())1# Sign in customer
2curl -X POST "http://www.example.com/api/shop/customers/auth/pwd/signin" -H "Content-Type: application/json" -d '{
3 "username": "john_doe_customer",
4 "password": "secure_password123"
5}'Status Codes
| Code | Description |
|---|---|
| 200 | Customer authenticated successfully |
| 400 | Bad request — validation errors |
| 500 | Internal server error |
Response Fields
| Field | Type | Description |
|---|---|---|
| token | String | Authentication token for API access |
Example Respones
{
"token": "sometokenisreturnedhere"
}
Notes
- Returns a unique authentication token upon successful login
- Token can be used for subsequent authenticated API requests
- If multiple sessions are disabled, existing tokens will be regenerated
- Account must be active to authenticate successfully