POST api/Product/SaveProductUnit
Ürün Birimleri ekleme.
Request Information
URI Parameters
None.
Body Parameters
inv_product_unit| Name | Description | Type | Additional information |
|---|---|---|---|
| product_unit_id | integer |
None. |
|
| order_no | integer |
None. |
|
| rate | decimal number |
None. |
|
| rate2 | decimal number |
None. |
|
| min_order_qty | decimal number |
None. |
|
| max_order_qty | decimal number |
None. |
|
| product_id | integer |
None. |
|
| product | inv_product |
None. |
|
| unit_id | integer |
None. |
|
| unit | gnl_unit |
None. |
|
| unit2_id | integer |
None. |
|
| unit2 | gnl_unit |
None. |
|
| create_date | date |
None. |
|
| create_user_id | integer |
None. |
|
| update_date | date |
None. |
|
| update_user_id | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"product_unit_id": 1,
"order_no": 2,
"rate": 3.1,
"rate2": 4.1,
"min_order_qty": 5.1,
"max_order_qty": 6.1,
"product_id": 7,
"product": {
"product_id": 1,
"product_name": "sample string 2",
"product_description": "sample string 3",
"product_code": "sample string 4",
"old_product_code": "sample string 5",
"product_group_id": 1,
"unit_code": "sample string 6",
"unit_id": 1,
"vat_rate": 7,
"vat_rate2": 1,
"origin": "sample string 8",
"origin_id": 1,
"orginal_code": "sample string 9",
"brand": "sample string 10",
"brand_id": 1,
"compatible_brands": "sample string 11",
"sales_unit": "sample string 12",
"sales_unit_id": 1,
"is_passive": true,
"note": "sample string 14",
"attribute_code": "sample string 15",
"attribute_name": "sample string 16",
"barcode": "sample string 17",
"attribute2_code": "sample string 18",
"color_code": "sample string 19",
"order_no": 20,
"create_date": "2026-02-04T19:56:11.3202882+03:00",
"create_user_id": 1,
"update_date": "2026-02-04T19:56:11.3202882+03:00",
"update_user_id": 1,
"product_image": [
{
"product_image_id": 1,
"image_id": 2,
"image": {
"image_id": 1,
"base_64": "sample string 2",
"image_description": "sample string 3",
"create_date": "2026-02-04T19:56:11.3202882+03:00",
"create_user_id": 5,
"update_date": "2026-02-04T19:56:11.3202882+03:00",
"update_user_id": 7
},
"product_id": 3,
"order": 1
},
{
"product_image_id": 1,
"image_id": 2,
"image": {
"image_id": 1,
"base_64": "sample string 2",
"image_description": "sample string 3",
"create_date": "2026-02-04T19:56:11.3202882+03:00",
"create_user_id": 5,
"update_date": "2026-02-04T19:56:11.3202882+03:00",
"update_user_id": 7
},
"product_id": 3,
"order": 1
}
]
},
"unit_id": 8,
"unit": {
"unit_id": 1,
"unit_code": "sample string 2",
"unit_name": "sample string 3",
"iso_unit_code": "sample string 4"
},
"unit2_id": 1,
"unit2": {
"unit_id": 1,
"unit_code": "sample string 2",
"unit_name": "sample string 3",
"iso_unit_code": "sample string 4"
},
"create_date": "2026-02-04T19:56:11.3202882+03:00",
"create_user_id": 10,
"update_date": "2026-02-04T19:56:11.3202882+03:00",
"update_user_id": 12
}
application/xml
Sample:
Sample not available.
text/xml
Sample:
Sample not available.
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
entity_result| Name | Description | Type | Additional information |
|---|---|---|---|
| status_code | string |
None. |
|
| status | boolean |
None. |
|
| title | string |
None. |
|
| message | string |
None. |
|
| data | Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"status_code": "sample string 1",
"status": true,
"title": "sample string 3",
"message": "sample string 4",
"data": {}
}
application/xml, text/xml
Sample:
<entity_result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ENTITY.RESULT_MODELS"> <data /> <message>sample string 4</message> <status>true</status> <status_code>sample string 1</status_code> <title>sample string 3</title> </entity_result>