Skip to content

Base URL

All API requests should be made to the base URL with the API version prefix.

Base URLs

Production

https://api.luxmart.site

Staging

https://api-staging.luxmart.site

API Version Prefix

Most API endpoints are prefixed with /v1/:

https://api.luxmart.site/v1/{module}/{endpoint}/

System Endpoints

Some system-level endpoints are available without the version prefix:

Module Structure

The API is organized into modules:

  • /v1/accounts/ - User and store management
  • /v1/products/ - Products, orders, payments
  • /v1/contacts/ - Contact forms

Example Full URL

https://api.luxmart.site/v1/accounts/login/

Media Files

Static media files are served at:

https://api.luxmart.site/media/{path}

CORS

The API supports CORS for the following origins:

  • https://luxmart.site
  • https://store.luxmart.site
  • https://admin.luxmart.site
  • http://localhost:* (staging)