---
search:
  tags:
    - Currency
    - GET
seo:
  description: >-
    Admin only. Returns the rate a sale priced right now would freeze. An admin…
    Reference for the GET /api/v1/currency/effective endpoint in the PharmaFlow
    API.
sidebar:
  label: Resolve the effective rate
  badge: GET
title: Resolve the effective rate
type: openapi-operation
---
Admin only. Returns the rate a sale priced right now would freeze. An admin may pass branch_id to preview another branch, and anyone else is refused.

`GET /api/v1/currency/effective`

**Responses**

- `200` — The rate that would be frozen
- `400` — No exchange rate is filed from the base currency to this branch currency
- `401` — Not authenticated
- `403` — Caller is not an admin, or asked for another branch

Response example, 200:

```json
{
  "currencyCode": "string",
  "baseCurrency": "string",
  "rate": 0,
  "rateId": "string",
  "effectiveAt": "string",
  "isStale": true,
  "ageDays": -9007199254740991
}
```
