Units
All unit count data in the OMS system for reference in other applications
API Endpoint
URL |
{base url}/api/References/GetUnits |
Method |
GET |
Authorization |
Bearer Token |
Content-Type |
application/json |
Request Headers
Parameter |
Type |
Required |
Description |
APIKEY |
string |
true |
System key code |
Request Parameters
Parameter |
Type |
Required |
Description |
filter |
string |
false |
Name of unit of measure |
Request Example
{base url}/api/References/GetUnits?filter={}
Response Parameters
Parameter |
Type |
Description |
Id |
integer |
Error status (0 = no error) |
Success |
boolean |
Status of the request |
Message |
string |
Response message |
RequestId |
string |
Reference ID for the request |
Size |
integer |
Number of records returned |
Data |
object |
unit list info |
Data
Parameter |
Type |
Description |
Id |
string |
Product Unit ID |
Seq |
integer |
unit sequence |
NameTH |
string |
Thai counting unit name |
NameEN |
string |
English counting unit name |
Response JSON Example
{
"Id": 0,
"Success": true,
"Message": "SUCCESS",
"RequestId": "891B9139-5E9D-438A-8682-05458596D6D9",
"Size": 2,
"Data": [
{
"Id": "B40B097DFBC843BF92CB6790C7A0871B",
"Seq": null,
"NameTH": "ชิ้นส่วน",
"NameEN": "Part"
},
{
"Id": "8A0B35BFF233434294DD7213BE0C6630",
"Seq": 1,
"NameTH": "ชิ้น",
"NameEN": "Piece"
}
]
}