---
title: "Get all measuring units for a specific partner."
method: GET
path: "/measuring-units"
tags: ["Measuring Unit"]
---

# Get all measuring units for a specific partner.

`GET /measuring-units`

## Request

- Base URL: `http://localhost`
- URL: `http://localhost/measuring-units`
- Auth: OAuth 2
  - Authorization code: `https://localhost/oauth2/authorize`
  - Token URL: `https://localhost/oauth2/authorize`

Get all measuring units for a specific partner.

## Query parameters

- `page` integer
- `pageSize` integer

## Response `200`

Successful response

- UnitsPage
  - `meta` Page
    - `totalItems` integer
    - `totalPages` integer
    - `page` integer
    - `size` integer
  - `measuringUnits` MeasuringUnit[]
    - `id` string: Unit id in the GrubTech platform
    - `name` string: Unit name
    - `code` string: Unit code in the GrubTech platform

## Other responses

- `400`: Bad request
- `500`: Internal server error

---

[API](https://skmtc.dev/grubtech/apis/inventory-service.md) - [All operations](https://skmtc.dev/grubtech/apis/inventory-service/llms.txt) - [OpenAPI document](https://skmtc.dev/grubtech/apis/inventory-service/revisions/8e275e5431a4?raw)
