Skip to content

Get Currency By ID

Get a specific currency by its ID.

Endpoint

GET /v1/products/currency/get-by/?id={currency_id}

Authentication

Required

Query Parameters

Parameter Type Required Description
id integer Yes Currency ID

Response

Success (200 OK)

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

Error Responses

Currency Not Found (404)

{
  "error": "Currency not found"
}

Missing ID Parameter (400)

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

Example Request

curl -X GET "https://api.luxmart.site/v1/products/currency/get-by/?id=1" \
  -H "Authorization: Token your_access_token"

Notes

  • Only returns non-deleted currencies
  • value represents the exchange rate relative to the base currency