---
title: "Get price unit by code"
method: GET
path: "/prices/units/code/{code}"
tags: ["Price Units"]
---

# Get price unit by code

`GET /prices/units/code/{code}`

Use when resolving a price unit by code (e.g. from an external catalog or config). Ideal for integrations.

## Path parameters

- `code` string, required

## Response `200`

OK

- PriceUnitResponse
  - `base_currency` string
  - `code` string
  - `conversion_rate` string
  - `created_at` string, date-time
  - `created_by` string
  - `environment_id` string
  - `id` string
  - `metadata` TypesMetadata
  - `name` string
  - `status` 'published' | 'deleted' | 'archived'
  - `symbol` string
  - `tenant_id` string
  - `updated_at` string, date-time
  - `updated_by` string

## Other responses

- `400` — Invalid request
- `404` — Resource not found
- `500` — Server error

## Changes

- **2026-04-06** `95af41a12111` — 6 warning, 12 info
  - removed the optional property `error` from the response with the `400` status
  - removed the optional property `error` from the response with the `404` status
  - removed the optional property `error` from the response with the `500` status
  - removed the optional property `success` from the response with the `400` status
  - …14 more

[Change history](https://skmtc.dev/flexprice/apis/flexprice-api/changes/prices/units/code/:code/get.md)

---

[API](https://skmtc.dev/flexprice/apis/flexprice-api.md) · [All operations](https://skmtc.dev/flexprice/apis/flexprice-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/flexprice/flexprice-api/revisions/5856ed2fbdd6/schema)
