Skip to content

Store Percent

Update the commission percentage for a store.

Endpoint

PUT /v1/accounts/store/percent/?id={store_id}

Authentication

Required

Query Parameters

Parameter Type Required Description
id integer Yes Store ID

Request Body

{
  "percent": 15.5
}

Parameters

Field Type Required Description
percent float Yes Commission percentage

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": 15.5,
  "created": "2025-01-15T10:30:00Z"
}

Error Responses

Store Not Found (404)

{
  "error": "Store not found"
}

Missing ID Parameter (400)

{
  "message": "Param not send!"
}

Example Request

curl -X PUT "https://api.luxmart.site/v1/accounts/store/percent/?id=1" \
  -H "Authorization: Token your_access_token" \
  -H "Content-Type: application/json" \
  -d '{
    "percent": 15.5
  }'

Notes

  • Percent represents the commission percentage for the store
  • Used in payment calculations