Resolve the effective rate
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/effectiveAuthorization
AuthorizationBearer token (JWT) · headerrequiredJWT from POST /api/v1/auth/login sent as Authorization Bearer.
Query parameters
branch_idstringPreview another branch. Admins only; every other caller is pinned to their own branch.
Responses
200
The rate that would be frozen
currencyCodestringrequiredbaseCurrencystringrequiredratenumberrequiredrateIdstring | nullrequiredeffectiveAtstring | nullrequiredisStalebooleanrequiredageDaysinteger | nullrequiredShow propertiesHide properties
Any of:
integer
integernull
null400
No exchange rate is filed from the base currency to this branch currency
detailstringrequired401
Not authenticated
detailstringrequired403
Caller is not an admin, or asked for another branch
detailstringrequired