POST v1/Products/{id}/Packages
Adds or updates ProductPackage
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
The id of the Product |
integer |
Required. |
Body Parameters
The ProductPackage
ProductPackage| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
Must be 0 (for insert operations) |
|
| SizeUomId | integer |
None. |
|
| SizeUom | string |
None. |
|
| Length | decimal number |
None. |
|
| Width | decimal number |
None. |
|
| Height | decimal number |
None. |
|
| WeightUomId | integer |
None. |
|
| WeightUom | string |
None. |
|
| Weight | decimal number |
None. |
|
| Description | string |
Max length: 200 |
|
| RequireOwnParcelPackage | boolean |
Required |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"SizeUomId": 1,
"SizeUom": "sample string 2",
"Length": 1.0,
"Width": 1.0,
"Height": 1.0,
"WeightUomId": 1,
"WeightUom": "sample string 3",
"Weight": 1.0,
"Description": "sample string 4",
"RequireOwnParcelPackage": true
}
application/xml, text/xml
Sample:
<ProductPackage xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Id>1</Id> <SizeUomId>1</SizeUomId> <SizeUom>sample string 2</SizeUom> <Length>1</Length> <Width>1</Width> <Height>1</Height> <WeightUomId>1</WeightUomId> <WeightUom>sample string 3</WeightUom> <Weight>1</Weight> <Description>sample string 4</Description> <RequireOwnParcelPackage>true</RequireOwnParcelPackage> </ProductPackage>
Response Information
Resource Description
ProductPackage| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
Must be 0 (for insert operations) |
|
| SizeUomId | integer |
None. |
|
| SizeUom | string |
None. |
|
| Length | decimal number |
None. |
|
| Width | decimal number |
None. |
|
| Height | decimal number |
None. |
|
| WeightUomId | integer |
None. |
|
| WeightUom | string |
None. |
|
| Weight | decimal number |
None. |
|
| Description | string |
Max length: 200 |
|
| RequireOwnParcelPackage | boolean |
Required |
Response Formats
application/json, text/json
Sample:
{
"Id": 1,
"SizeUomId": 1,
"SizeUom": "sample string 2",
"Length": 1.0,
"Width": 1.0,
"Height": 1.0,
"WeightUomId": 1,
"WeightUom": "sample string 3",
"Weight": 1.0,
"Description": "sample string 4",
"RequireOwnParcelPackage": true
}
application/xml, text/xml
Sample:
<ProductPackage xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Id>1</Id> <SizeUomId>1</SizeUomId> <SizeUom>sample string 2</SizeUom> <Length>1</Length> <Width>1</Width> <Height>1</Height> <WeightUomId>1</WeightUomId> <WeightUom>sample string 3</WeightUom> <Weight>1</Weight> <Description>sample string 4</Description> <RequireOwnParcelPackage>true</RequireOwnParcelPackage> </ProductPackage>