Skip to main content

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

FieldTypeRequiredDescription
usernameStringYesUnique username for the customer (max 150 chars)
password1StringYesCustomer's password (max 150 chars)
password2StringYesPassword confirmation (must match password1)

Example Requests

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 creation

Status Codes

CodeDescription
201Customer account created successfully
400Bad request — validation errors
500Internal server error

Response Fields

FieldTypeDescription
noneNoneNo 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