Sign Up
Creates a new customer account using username and password authentication.
HTTP Request
POST/api/shop/customers/auth/pwd/signup
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) |
| password1 | String | Yes | Customer's password (max 150 chars) |
| password2 | String | Yes | Password confirmation (must match password1) |
Example Requests
- 🐍 Python
- 🌐 Curl
1import requests
2
3# Create a new customer account
4response = requests.post('http://www.example.com/api/shop/customers/auth/pwd/signup',
5 json={
6 'username': 'john_doe_customer',
7 'password1': 'secure_password123',
8 'password2': 'secure_password123'
9 }
10)
11print(response.status_code) # Should be 201 for successful creation1curl "http://www.example.com/api/shop/customers/auth/pwd/signup" -X POST -H "Content-Type: application/json" -d '{
2 "username": "john_doe_customer",
3 "password1": "secure_password123",
4 "password2": "secure_password123"
5 }'Status Codes
| Code | Description |
|---|---|
| 201 | Customer account created successfully |
| 400 | Bad request — validation errors |
| 500 | Internal server error |
Response Fields
| Field | Type | Description |
|---|---|---|
| none | None | No response body returned |
Notes
- Username: Must be unique across all users in the system
- Passwords: Both password fields must match exactly
- Account Status: New customers are created with default active status based on system configuration