Custom Units
Testing Env
https://www.testecommerce.vodoerp.com
Testing Env
https://www.testecommerce.vodoerp.com
GET
/api/v1/standard_custom_units
Last modified:2025-04-30 08:19:11
Key | Value | Description | Type |
---|---|---|---|
apikey | 5f28583f26a1a | API key for authentication; contact support to obtain. Required | String |
apiconnection | appmobile | Connection type; contact support to obtain. Required | String |
secure-business-key | 140356399db2b2c32f0.25237063 | Business-specific key; contact support for valid values. Required | String |
lang | ar or en | Language preference: ar for Arabic, en for English. | String |
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://www.testecommerce.vodoerp.com/api/v1/standard_custom_units' \
--header 'apikey: 5f28583f26a1a' \
--header 'apiconnection: appmobile' \
--header 'secure-business-key: 140356399db2b2c32f0.25237063' \
--header 'lang: ar'
Response Response Example
{
"status": true,
"message": "Custom units Data",
"data": {
"current_page": 1,
"data": [
{
"id": 4,
"name_ar": "عصير",
"name_en": "Juice",
"type": "custom",
"business_id": "47",
"standard_product_unit": 0,
"created_at": "2022-10-20T15:06:23.000000Z",
"updated_at": "2022-10-20T15:06:23.000000Z",
"children": [
{
"id": 457,
"standard_unit_id": 4,
"name_ar": "Bottle",
"name_en": "زجاجة",
"width": null,
"length": null,
"height": null,
"weight": null,
"width_unit_id": null,
"length_unit_id": null,
"height_unit_id": null,
"weight_unit_id": null,
"created_at": "2022-10-26T16:32:59.000000Z",
"updated_at": "2022-10-26T16:32:59.000000Z",
"calculations_from": [],
"calculations_to": [
{
"id": 428,
"from_unit_child_id": 458,
"to_unit_child_id": 457,
"value": 20,
"created_at": "2022-10-26T16:32:59.000000Z",
"updated_at": "2022-10-26T16:32:59.000000Z"
},
{
"id": 429,
"from_unit_child_id": 459,
"to_unit_child_id": 457,
"value": 200,
"created_at": "2022-10-26T16:32:59.000000Z",
"updated_at": "2022-10-26T16:32:59.000000Z"
}
]
},
{
"id": 458,
"standard_unit_id": 4,
"name_ar": "BOX",
"name_en": "كرتون",
"width": null,
"length": null,
"height": null,
"weight": null,
"width_unit_id": null,
"length_unit_id": null,
"height_unit_id": null,
"weight_unit_id": null,
"created_at": "2022-10-26T16:32:59.000000Z",
"updated_at": "2022-10-26T16:32:59.000000Z",
"calculations_from": [
{
"id": 428,
"from_unit_child_id": 458,
"to_unit_child_id": 457,
"value": 20,
"created_at": "2022-10-26T16:32:59.000000Z",
"updated_at": "2022-10-26T16:32:59.000000Z"
}
],
"calculations_to": [
{
"id": 430,
"from_unit_child_id": 459,
"to_unit_child_id": 458,
"value": 10,
"created_at": "2022-10-26T16:32:59.000000Z",
"updated_at": "2022-10-26T16:32:59.000000Z"
}
]
},
{
"id": 459,
"standard_unit_id": 4,
"name_ar": "Pallet",
"name_en": "طبلية",
"width": null,
"length": null,
"height": null,
"weight": null,
"width_unit_id": null,
"length_unit_id": null,
"height_unit_id": null,
"weight_unit_id": null,
"created_at": "2022-10-26T16:32:59.000000Z",
"updated_at": "2022-10-26T16:32:59.000000Z",
"calculations_from": [
{
"id": 429,
"from_unit_child_id": 459,
"to_unit_child_id": 457,
"value": 200,
"created_at": "2022-10-26T16:32:59.000000Z",
"updated_at": "2022-10-26T16:32:59.000000Z"
},
{
"id": 430,
"from_unit_child_id": 459,
"to_unit_child_id": 458,
"value": 10,
"created_at": "2022-10-26T16:32:59.000000Z",
"updated_at": "2022-10-26T16:32:59.000000Z"
}
],
"calculations_to": []
}
]
},
{
"id": 40,
"name_ar": "سبلايبلا",
"name_en": "يل",
"type": "custom",
"business_id": "47",
"standard_product_unit": 0,
"created_at": "2023-07-25T16:53:43.000000Z",
"updated_at": "2023-07-25T16:53:43.000000Z",
"children": [
{
"id": 549,
"standard_unit_id": 40,
"name_ar": "يبايبا",
"name_en": "بيليالا",
"width": null,
"length": null,
"height": null,
"weight": null,
"width_unit_id": null,
"length_unit_id": null,
"height_unit_id": null,
"weight_unit_id": null,
"created_at": "2023-07-25T16:53:43.000000Z",
"updated_at": "2023-07-25T16:53:43.000000Z",
"calculations_from": [],
"calculations_to": []
}
]
},
{
"id": 41,
"name_ar": "كونتينر",
"name_en": "container",
"type": "custom",
"business_id": "47",
"standard_product_unit": 0,
"created_at": "2023-07-27T15:43:47.000000Z",
"updated_at": "2023-07-27T15:43:47.000000Z",
"children": [
{
"id": 550,
"standard_unit_id": 41,
"name_ar": "زجاجة",
"name_en": "bottle",
"width": null,
"length": null,
"height": null,
"weight": null,
"width_unit_id": null,
"length_unit_id": null,
"height_unit_id": null,
"weight_unit_id": null,
"created_at": "2023-07-27T15:43:47.000000Z",
"updated_at": "2023-07-27T15:43:47.000000Z",
"calculations_from": [],
"calculations_to": [
{
"id": 495,
"from_unit_child_id": 551,
"to_unit_child_id": 550,
"value": 20,
"created_at": "2023-07-27T15:43:47.000000Z",
"updated_at": "2023-07-27T15:43:47.000000Z"
},
{
"id": 496,
"from_unit_child_id": 552,
"to_unit_child_id": 550,
"value": 1000,
"created_at": "2023-07-27T15:43:47.000000Z",
"updated_at": "2023-07-27T15:43:47.000000Z"
},
{
"id": 498,
"from_unit_child_id": 553,
"to_unit_child_id": 550,
"value": 100000,
"created_at": "2023-07-27T15:43:47.000000Z",
"updated_at": "2023-07-27T15:43:47.000000Z"
}
]
},
{
"id": 551,
"standard_unit_id": 41,
"name_ar": "كرتونة",
"name_en": "box",
"width": null,
"length": null,
"height": null,
"weight": null,
"width_unit_id": null,
"length_unit_id": null,
"height_unit_id": null,
"weight_unit_id": null,
"created_at": "2023-07-27T15:43:47.000000Z",
"updated_at": "2023-07-27T15:43:47.000000Z",
"calculations_from": [
{
"id": 495,
"from_unit_child_id": 551,
"to_unit_child_id": 550,
"value": 20,
"created_at": "2023-07-27T15:43:47.000000Z",
"updated_at": "2023-07-27T15:43:47.000000Z"
}
],
"calculations_to": [
{
"id": 497,
"from_unit_child_id": 552,
"to_unit_child_id": 551,
"value": 50,
"created_at": "2023-07-27T15:43:47.000000Z",
"updated_at": "2023-07-27T15:43:47.000000Z"
},
{
"id": 499,
"from_unit_child_id": 553,
"to_unit_child_id": 551,
"value": 5000,
"created_at": "2023-07-27T15:43:47.000000Z",
"updated_at": "2023-07-27T15:43:47.000000Z"
}
]
},
{
"id": 552,
"standard_unit_id": 41,
"name_ar": "طبلية",
"name_en": "pallete",
"width": null,
"length": null,
"height": null,
"weight": null,
"width_unit_id": null,
"length_unit_id": null,
"height_unit_id": null,
"weight_unit_id": null,
"created_at": "2023-07-27T15:43:47.000000Z",
"updated_at": "2023-07-27T15:43:47.000000Z",
"calculations_from": [
{
"id": 496,
"from_unit_child_id": 552,
"to_unit_child_id": 550,
"value": 1000,
"created_at": "2023-07-27T15:43:47.000000Z",
"updated_at": "2023-07-27T15:43:47.000000Z"
},
{
"id": 497,
"from_unit_child_id": 552,
"to_unit_child_id": 551,
"value": 50,
"created_at": "2023-07-27T15:43:47.000000Z",
"updated_at": "2023-07-27T15:43:47.000000Z"
}
],
"calculations_to": [
{
"id": 500,
"from_unit_child_id": 553,
"to_unit_child_id": 552,
"value": 100,
"created_at": "2023-07-27T15:43:47.000000Z",
"updated_at": "2023-07-27T15:43:47.000000Z"
}
]
},
{
"id": 553,
"standard_unit_id": 41,
"name_ar": "حاوية",
"name_en": "container",
"width": null,
"length": null,
"height": null,
"weight": null,
"width_unit_id": null,
"length_unit_id": null,
"height_unit_id": null,
"weight_unit_id": null,
"created_at": "2023-07-27T15:43:47.000000Z",
"updated_at": "2023-07-27T15:43:47.000000Z",
"calculations_from": [
{
"id": 498,
"from_unit_child_id": 553,
"to_unit_child_id": 550,
"value": 100000,
"created_at": "2023-07-27T15:43:47.000000Z",
"updated_at": "2023-07-27T15:43:47.000000Z"
},
{
"id": 499,
"from_unit_child_id": 553,
"to_unit_child_id": 551,
"value": 5000,
"created_at": "2023-07-27T15:43:47.000000Z",
"updated_at": "2023-07-27T15:43:47.000000Z"
},
{
"id": 500,
"from_unit_child_id": 553,
"to_unit_child_id": 552,
"value": 100,
"created_at": "2023-07-27T15:43:47.000000Z",
"updated_at": "2023-07-27T15:43:47.000000Z"
}
],
"calculations_to": []
}
]
},
{
"id": 129,
"name_ar": "وحدة عبدو",
"name_en": "Abdo Unit",
"type": "custom",
"business_id": "47",
"standard_product_unit": 0,
"created_at": "2024-11-04T08:58:11.000000Z",
"updated_at": "2024-11-04T08:58:11.000000Z",
"children": [
{
"id": 778,
"standard_unit_id": 129,
"name_ar": "aa",
"name_en": "A",
"width": null,
"length": null,
"height": null,
"weight": null,
"width_unit_id": 5,
"length_unit_id": 5,
"height_unit_id": 5,
"weight_unit_id": 2,
"created_at": "2024-11-04T08:58:11.000000Z",
"updated_at": "2024-11-04T08:58:11.000000Z",
"calculations_from": [],
"calculations_to": [
{
"id": 676,
"from_unit_child_id": 779,
"to_unit_child_id": 778,
"value": 5,
"created_at": "2024-11-04T08:58:11.000000Z",
"updated_at": "2024-11-04T08:58:11.000000Z"
},
{
"id": 677,
"from_unit_child_id": 780,
"to_unit_child_id": 778,
"value": 50,
"created_at": "2024-11-04T08:58:11.000000Z",
"updated_at": "2024-11-04T08:58:11.000000Z"
}
]
},
{
"id": 779,
"standard_unit_id": 129,
"name_ar": "bb",
"name_en": "B",
"width": 0,
"length": 0,
"height": 0,
"weight": 0,
"width_unit_id": 5,
"length_unit_id": 5,
"height_unit_id": 5,
"weight_unit_id": 2,
"created_at": "2024-11-04T08:58:11.000000Z",
"updated_at": "2024-11-04T08:58:11.000000Z",
"calculations_from": [
{
"id": 676,
"from_unit_child_id": 779,
"to_unit_child_id": 778,
"value": 5,
"created_at": "2024-11-04T08:58:11.000000Z",
"updated_at": "2024-11-04T08:58:11.000000Z"
}
],
"calculations_to": [
{
"id": 678,
"from_unit_child_id": 780,
"to_unit_child_id": 779,
"value": 10,
"created_at": "2024-11-04T08:58:11.000000Z",
"updated_at": "2024-11-04T08:58:11.000000Z"
}
]
},
{
"id": 780,
"standard_unit_id": 129,
"name_ar": "cc",
"name_en": "C",
"width": 0,
"length": 0,
"height": 0,
"weight": 0,
"width_unit_id": 5,
"length_unit_id": 5,
"height_unit_id": 5,
"weight_unit_id": 2,
"created_at": "2024-11-04T08:58:11.000000Z",
"updated_at": "2024-11-04T08:58:11.000000Z",
"calculations_from": [
{
"id": 677,
"from_unit_child_id": 780,
"to_unit_child_id": 778,
"value": 50,
"created_at": "2024-11-04T08:58:11.000000Z",
"updated_at": "2024-11-04T08:58:11.000000Z"
},
{
"id": 678,
"from_unit_child_id": 780,
"to_unit_child_id": 779,
"value": 10,
"created_at": "2024-11-04T08:58:11.000000Z",
"updated_at": "2024-11-04T08:58:11.000000Z"
}
],
"calculations_to": []
}
]
}
],
"first_page_url": "http://localhost:8000/api/v1/standard_custom_units?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://localhost:8000/api/v1/standard_custom_units?page=1",
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "http://localhost:8000/api/v1/standard_custom_units?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"next_page_url": null,
"path": "http://localhost:8000/api/v1/standard_custom_units",
"per_page": 10,
"prev_page_url": null,
"to": 4,
"total": 4
}
}
Request
Header Params
apikey
string
required
Example:
5f28583f26a1a
apiconnection
string
required
Example:
appmobile
secure-business-key
string
required
728106399db2b289783.89154521
2680667168f2f8a68f6.12561200
140356399db2b2c32f0.25237063
96701678e330f31f768.22400604
14807664478836358b0.31329842
Example:
140356399db2b2c32f0.25237063
lang
string
required
Example:
ar