MeyktAPI Documentation

Read supported article units

All field references · Articles

GET /v1/units

The product stock core tracks pieces (Stück) with up to six decimal places. Quantities are sent as exact decimal strings. No implicit conversion of cartons or material dimensions.

Required scopes: "products:read".

How to read these tables

#Request body

No request body is defined for this operation.

#Response 200

200: Success

Content type: application/json

FieldTypePresencenullMeaning, limits and examples
$ (whole value)objectWhole valueNot allowedAdditional properties are not allowed.
dataobjectRequired when parent is presentNot allowedAuthorized response payload or documented event data. Additional properties are not allowed.
data.unitsarrayRequired when parent is presentNot allowedSupported public product stock units. minItems: 1. maxItems: 1.
data.units[]objectEvery array itemNot allowedAdditional properties are not allowed.
data.units[].codestringRequired when parent is presentNot allowedPublic base unit code for physical product stock. const: "piece".
data.units[].namestringRequired when parent is presentNot allowedHuman-readable name of the base unit. const: "Stück".
data.units[].decimal_placesnumberRequired when parent is presentNot allowedMaximum decimal places for stock quantities. const: 6.
data.units[].conversion_factorstringRequired when parent is presentNot allowedExact conversion to the base unit; no package conversion is implied. const: "1".
data.units[].revisionstringRequired when parent is presentNot allowedVersion of this unit definition. const: "1".

#Response 401, 403, 429, 500, 503

401: The key is missing, unknown, revoked or expired. 403: The key lacks a required scope, or the operation requires a live key. 429: A rate limit was reached and the request did not run. Wait for Retry-After, then repeat it unchanged. X-RateLimit-Scope names the limit: key (120 requests per minute), organization (300 per minute across all keys), write (1,000 at once, refilling at 60 per minute) or list (300 unfiltered list pages at once, refilling at 10 per minute). 500: Unexpected error on our side. 503: Temporarily unavailable. Repeat the same request with the same business identity.

Content type: application/json

FieldTypePresencenullMeaning, limits and examples
$ (whole value)objectWhole valueNot allowed—
errorobjectRequired when parent is presentNot allowedMachine-readable error code; use it to select the documented recovery path.
error.codestringRequired when parent is presentNot allowedMachine-readable, permanently stable error code. Program against it, not against message.
error.messagestringRequired when parent is presentNot allowedExplanation for humans. May change at any time.
error.fieldstringOptionalNot allowedAffected location in the request, if it can be determined.
error.doc_urlstringRequired when parent is presentNot allowedDocumentation link explaining this API error. format: "uri".

Machine-readable version of this page: https://www.meykt.com/developers/fields-list-article-units.md