- GET [/instances/$INSTANCE]/units#
Returns the active measurement units for the merchant instance, including built-in units with instance overrides and custom units. This endpoint is available without authentication since protocol v44. Individual unit lookups and changes use the private endpoints.
Response:
- 200 OK:
Returns an ActiveUnitListResponse. Each entry has the same fields as the MerchantUnit returned by the private catalogue.
- 500 Internal Server Error:
The backend could not retrieve the unit list (
TALER_EC_GENERIC_DB_FETCH_FAILED).
Details:
interface ActiveUnitListResponse { // All units active for this instance after applying its overrides. // Every entry has unit_active set to true. The array may be empty. units: MerchantUnit[]; }