Skip to content

Get Own Store

Get the authenticated store's own information.

Endpoint

GET /v1/accounts/store/own/

Authentication

Required (Store role)

Request Body

No body required.

Response

Success (200 OK)

{
  "id": 1,
  "email": "store@example.com",
  "name": "My Store",
  "description": "Store 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)

{
  "error": "Store not found"
}

Unauthorized (401)

{
  "error": "Missing token on header!"
}

Example Request

curl -X GET "https://api.luxmart.site/v1/accounts/store/own/" \
  -H "Authorization: Token your_access_token"

Notes

  • Returns the store information for the authenticated store
  • Store ID is extracted from the authentication token
  • Only returns non-deleted stores