Skip to content

Get All Currencies

Get a list of all currencies. Requires authentication.

Endpoint

GET /v1/products/currency/

Authentication

Required

Request Body

No body required.

Response

Success (200 OK)

[
  {
    "id": 1,
    "name": "AZN",
    "value": 1.0,
    "created": "2025-01-15T10:30:00Z"
  },
  {
    "id": 2,
    "name": "USD",
    "value": 1.7,
    "created": "2025-01-15T10:30:00Z"
  }
]

Error Responses

Unauthorized (401)

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

Example Request

curl -X GET "https://api.luxmart.site/v1/products/currency/" \
  -H "Authorization: Token your_access_token"

Notes

  • Only returns non-deleted currencies
  • Results are ordered by ID descending (newest first)
  • value represents the exchange rate relative to the base currency