Update Store
Update the authenticated store's information.
Endpoint
Authentication
Required (Store role)
Request Body
Content-Type: multipart/form-data
Form Fields
| Field | Type | Required | Description |
|---|---|---|---|
name |
string | No | Store name |
description |
string | No | Store description |
business_address |
string | No | Business address |
contact_phone |
string | No | Contact phone number |
preferred_language |
string | No | Preferred language code ("az", "en", "es", "de") |
logo_url |
file | No | Store logo image |
Response
Success (200 OK)
{
"id": 1,
"email": "store@example.com",
"name": "Updated Store Name",
"description": "Updated description",
"logo_url": "https://...",
"business_address": "123 Main St",
"preferred_language": "AZERBAIJANI",
"contact_phone": "+994501234567",
"percent": 10.5,
"created": "2025-01-15T10:30:00Z"
}
Error Responses
Store Not Found (404)
Example Request
curl -X PUT "https://api.luxmart.site/v1/accounts/store/own/" \
-H "Authorization: Token your_access_token" \
-F "name=Updated Store Name" \
-F "description=Updated description" \
-F "logo_url=@/path/to/logo.jpg"
Notes
- Only provided fields are updated
- Logo is uploaded to S3
- Email cannot be changed via this endpoint