Request
GET https://backend.net0.com/v1/units
curl --location --request GET 'https://backend.net0.com/v1/units' \
--header 'x-api-key: <API_KEY>' \
--header 'Content-Type: application/json' \
--data-raw ''
Response
The response returns an array of all available units on your Net0 account.
[
{
"id": 1,
"name": "Gram",
"short_name": "g",
"multiplier": 0.001,
"parent_id": 2,
"typeUnit": "WEIGHT",
"createdAt": "2021-11-19T13:19:25.410Z",
"updatedAt": "2021-11-19T13:19:25.410Z"
},
{
"id": 2,
"name": "Kilogram",
"short_name": "kg",
"multiplier": 1,
"parent_id": null,
"typeUnit": "WEIGHT",
"createdAt": "2021-11-19T13:19:25.410Z",
"updatedAt": "2021-11-19T13:19:25.410Z"
},
{
"id": 3,
"name": "Tone",
"short_name": "t",
"multiplier": 1000,
"parent_id": 2,
"typeUnit": "WEIGHT",
"createdAt": "2021-11-19T13:19:25.410Z",
"updatedAt": "2021-11-19T13:19:25.410Z"
},
{
"id": 4,
"name": "Kilowatt hour",
"short_name": "kWh",
"multiplier": 1,
"parent_id": null,
"typeUnit": "ELECTRICITY",
"createdAt": "2021-11-19T13:19:25.410Z",
"updatedAt": "2021-11-19T13:19:25.410Z"
},
{
"id": 5,
"name": "Megawatt hour",
"short_name": "MWh",
"multiplier": 1000,
"parent_id": 4,
"typeUnit": "ELECTRICITY",
"createdAt": "2021-11-19T13:19:25.410Z",
"updatedAt": "2021-11-19T13:19:25.410Z"
},
{
"id": 6,
"name": "British thermal unit",
"short_name": "btu",
"multiplier": 0.000293071,
"parent_id": 4,
"typeUnit": "ELECTRICITY",
"createdAt": "2021-11-19T13:19:25.410Z",
"updatedAt": "2021-11-19T13:19:25.410Z"
},
{
"id": 7,
"name": "Million British thermal unit",
"short_name": "mmbtu",
"multiplier": 293.07107,
"parent_id": 4,
"typeUnit": "ELECTRICITY",
"createdAt": "2021-11-19T13:19:25.410Z",
"updatedAt": "2021-11-19T13:19:25.410Z"
},
{
"id": 8,
"name": "Megajoules",
"short_name": "MJ",
"multiplier": 0.277778,
"parent_id": 4,
"typeUnit": "ELECTRICITY",
"createdAt": "2021-11-19T13:19:25.410Z",
"updatedAt": "2021-11-19T13:19:25.410Z"
},
{
"id": 9,
"name": "Gigajoules",
"short_name": "GJ",
"multiplier": 277.778,
"parent_id": 4,
"typeUnit": "ELECTRICITY",
"createdAt": "2021-11-19T13:19:25.410Z",
"updatedAt": "2021-11-19T13:19:25.410Z"
},
{
"id": 10,
"name": "Kilometers",
"short_name": "km",
"multiplier": 1,
"parent_id": null,
"typeUnit": "DISTANCE",
"createdAt": "2021-11-19T13:19:25.410Z",
"updatedAt": "2021-11-19T13:19:25.410Z"
}
]