Get All Currencies (Site)
Get a simplified list of all currencies. Public endpoint (no authentication required).
Endpoint
Authentication
Not required (public endpoint)
Request Body
No body required.
Response
Success (200 OK)
Example Request
cURL
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
idandnamefields (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)
Related Endpoints
- Get All Currencies - Get full currency details (requires authentication)