Get Unit of Measures
GET
/api/v1/shared/units-of-measure
Lists the units of measure that can be used for products, with pagination.
Parameters
Header Parameters
Authorization*
Token returned by the Get Token request, with the Bearer prefix
Typestring
RequiredExample
"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0.signature"Accept-Language
Language of country and unit of measure names and validation error messages. English when it starts with en (e.g. en, en-US), Turkish otherwise. Success messages are always in Turkish.
Typestring
Examples
"tr""en"Default
"tr"Query Parameters
page
Page number
Typeinteger
Minimum
1Default
1perPage
Records per page. To get the whole list, use 200 and iterate over meta.pageCount pages.
Typeinteger
Minimum
1Maximum
200Default
50sortBy
Sort field. name sorts by the English name and nameTr by the Turkish name; orderNumber and uneceCode are not returned in the response
Typestring
Valid values
"orderNumber""name""nameTr""code""uneceCode""id"Default
"orderNumber"sortOrder
Sort direction (case-insensitive)
Typestring
Valid values
"asc""desc"Default
"asc"Responses
Units of measure listed
application/json
JSON
{
"success": true,
"message": "Ölçü birimleri listelendi",
"items": [
{
"id": 29,
"code": "PCS",
"name": "Piece / Unit"
}
],
"meta": {
"page": 1,
"perPage": 50,
"total": 233,
"pageCount": 5
}
}
