REST DocumentationCurrenciesGET List currencies with their exchange rate on a date

List currencies with their exchange rate on a date

Returns a paginated list with one entry per currency, sorted by id (ISO code). The id is the value customers, projects and receipts carry as their currency. A currency has several rate rows, each valid until its end date; the rate valid on date (default today) is the row with the earliest end date on or after it, a row without an end date is valid indefinitely. A currency without a valid rate is left out, except the base currency.

Availability: Full version only — a Clock instance answers 404 for this endpoint.

Request

GET /api/v1/currencies
curl --request GET \
     --url 'https://www.zep-online.de/zepinstanz/next/api/v1/currencies' \
     --header 'Accept: application/json' \
     --header 'Authorization: Bearer {token}'

Query parameters

  • Name
    limit
    Type
    integer, nullable
    Description

    The number of records per page, 1 to 200. Defaults to 15.

  • Name
    page
    Type
    integer, nullable
    Description

    The page of results to return, counting from 1.

  • Name
    date
    Type
    string (date), nullable
    Description

    The day the exchange rates must be valid on, YYYY-MM-DD. Defaults to today.

Response

{
  "data": [
    {
      "id": "USD",
      "description": "US-Dollar",
      "rate": 1.1,
      "valid_until": "2026-06-30",
      "is_base": false
    }
  ],
  "links": {
    "first": "string",
    "last": "string",
    "prev": "string",
    "next": "string"
  },
  "meta": {
    "current_page": 1,
    "from": 1,
    "last_page": 1,
    "links": [
      {
        "url": "string",
        "label": "string",
        "active": true
      }
    ],
    "path": "string",
    "per_page": 1,
    "to": 1,
    "total": 1
  }
}

Response fields

  • Name
    id
    Type
    string
    Description

    The ISO code of the currency, the value customers, projects and receipts carry as their currency.

  • Name
    description
    Type
    string
    Description

    Description of the currency.

  • Name
    rate
    Type
    number
    Description

    Exchange rate valid on the requested date.

  • Name
    valid_until
    Type
    string, nullable
    Description

    Last day the rate is valid, YYYY-MM-DD; null when valid indefinitely.

  • Name
    is_base
    Type
    boolean
    Description

    Whether this is the base currency of the tenant.

Generated from the OpenAPI specification — edit the source code, not this page.