Store Product UOM Conversion
Store Product Unit of Measurement Conversion
Path Parameters
id uuid required
Product UUID
application/json
Request Body required
The body to store product uom conversion
name string required
Possible values: <= 255 characters
amount integer required
Possible values: <= 1000000
weight number
Possible values: <= 1000000
volume number
Possible values: <= 1000000
price number
Possible values: <= 1000000000000
Responses
- 200
- 400
- 401
- 404
OK
application/json
Schema
Example (from schema)
Schema
data object
{
"data": {
"id": "string"
}
}
Bad Request
application/json
Schema
Example (from schema)
Schema
errors
errors_v2 object
message string
{
"errors": {},
"errors_v2": {
"formatted": {},
"issues": [
{
"code": "string",
"expected": {},
"message": "string",
"path": [
"string"
],
"received": {}
}
]
},
"message": "string"
}
Unauthorized
Not Found
POST /product/:id/uom-conversion
Authorization
name: Authorizationtype: apiKeyin: header
Request
Request
curl / cURL
curl -L -X POST 'https://api.mceasy.com/order/api/web/v1/product/:id/uom-conversion' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"name": "string",
"amount": 0,
"weight": 0,
"volume": 0,
"price": 0
}'
python / requests
curl -L -X POST 'https://api.mceasy.com/order/api/web/v1/product/:id/uom-conversion' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"name": "string",
"amount": 0,
"weight": 0,
"volume": 0,
"price": 0
}'
go / native
curl -L -X POST 'https://api.mceasy.com/order/api/web/v1/product/:id/uom-conversion' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"name": "string",
"amount": 0,
"weight": 0,
"volume": 0,
"price": 0
}'
nodejs / axios
curl -L -X POST 'https://api.mceasy.com/order/api/web/v1/product/:id/uom-conversion' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"name": "string",
"amount": 0,
"weight": 0,
"volume": 0,
"price": 0
}'
ruby / Net::HTTP
curl -L -X POST 'https://api.mceasy.com/order/api/web/v1/product/:id/uom-conversion' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"name": "string",
"amount": 0,
"weight": 0,
"volume": 0,
"price": 0
}'
csharp / RestSharp
curl -L -X POST 'https://api.mceasy.com/order/api/web/v1/product/:id/uom-conversion' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"name": "string",
"amount": 0,
"weight": 0,
"volume": 0,
"price": 0
}'
php / cURL
curl -L -X POST 'https://api.mceasy.com/order/api/web/v1/product/:id/uom-conversion' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"name": "string",
"amount": 0,
"weight": 0,
"volume": 0,
"price": 0
}'
java / OkHttp
curl -L -X POST 'https://api.mceasy.com/order/api/web/v1/product/:id/uom-conversion' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"name": "string",
"amount": 0,
"weight": 0,
"volume": 0,
"price": 0
}'
powershell / RestMethod
curl -L -X POST 'https://api.mceasy.com/order/api/web/v1/product/:id/uom-conversion' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"name": "string",
"amount": 0,
"weight": 0,
"volume": 0,
"price": 0
}'