Converting Values to Unit System
You use this API to convert the list of values to target unit system or target units.
Request
-
HTTP Method: POST
-
URL: APPLICATION_URL/services/api/v1/uom/convert
-
Query param:unitSystem={unitSystem}&isoCodeFlag={true/false}
-
If the isoCodeFlag is true, this API consider source units as ISO codes
-
If the isoCodeFlag is false, this API consider source units as unit codes
The isoCodeflag needs to be set to true, if we are passing ISO codes instead of UoM.
-
-
Request Schema:To know about fields that you can use in a request payload, refer to the request schema in the https://help.sap.com/doc/6da2c2bae7a349feba484033ea61f1c1/1902/en-US/UOM.html#convert_post file.
Response
-
The system returns the converted values.
For more information, see https://help.sap.com/doc/6da2c2bae7a349feba484033ea61f1c1/1902/en-US/UOM.html#convert_post.