Skip to main content
Units of measurement are the settings records for units, each with a type such as LENGTH, a number of decimal_places and a rounding rule. These endpoints list, read, create, update and delete them. This area has 5 endpoints, each available in all seven SDKs.

At a glance

Before you call

Register your API credentials once when your app starts, as shown in Authentication. Every SDK sample on these pages then gets its client in one line. With cURL, send the access token in an Authorization header: Authorization: Bearer $ACCESS_TOKEN.

Things to know

  • The path is /settings/uom for one unit and for many. /settings/uom lists units and /settings/uom/{uom_id} reads one, which comes back under uom.
  • Writes are wrapped in uom. A create sends a name and a type, such as LENGTH.
  • status takes active or inactive. Send it on the update to turn a unit on or off.
  • Shipping packages refer to a unit by its bare uuid. A shipping package’s *_uom fields take the unit’s uuid, not its prefixed id.
  • The listing pages by cursor. Pass limit, then send the next_cursor from pagination as cursor until has_more is false.