Skip to content

Get All Currencies (Site)

Get a simplified list of all currencies. Public endpoint (no authentication required).

Endpoint

GET /v1/products/currency/site/

Authentication

Not required (public endpoint)

Request Body

No body required.

Response

Success (200 OK)

[
  {
    "id": 1,
    "name": "AZN"
  },
  {
    "id": 2,
    "name": "USD"
  },
  {
    "id": 3,
    "name": "EUR"
  }
]

Example Request

cURL

curl -X GET "https://api.luxmart.site/v1/products/currency/site/"

JavaScript (Fetch)

const getCurrencies = async () => {
  const response = await fetch('https://api.luxmart.site/v1/products/currency/site/');
  return await response.json();
};

// Usage
const currencies = await getCurrencies();
console.log(currencies);

Axios

import axios from 'axios';

const getCurrencies = async () => {
  const response = await axios.get('https://api.luxmart.site/v1/products/currency/site/');
  return response.data;
};

// Usage
const currencies = await getCurrencies();

Notes

  • This is a public endpoint, no authentication required
  • Returns only id and name fields (simplified version)
  • Only returns non-deleted currencies
  • Results are ordered by ID descending (newest first)
  • Use this endpoint for frontend currency selectors and dropdowns
  • For full currency details (including exchange rates), use Get All Currencies (requires authentication)