POST packaging
Create a new packaging size
Request Information
URI Parameters
None.
Body Parameters
CreatePackageSizeCommand
| Name | Description | Type | Additional information |
|---|---|---|---|
| Name | string | None. | |
| Size | decimal number | None. | |
| Cost | decimal number | None. | |
| IncludeWeight | boolean | None. | |
| WeightKilograms | decimal number | None. | |
| WeightCapacityKilograms | decimal number | None. | |
| WidthMillimeters | integer | None. | |
| HeightMillimeters | integer | None. | |
| LengthMillimeters | integer | None. | |
| RoyalMailDomesticPackagingID | integer | None. | |
| RoyalMailInternationalPackagingID | integer | None. | |
| ExcludeFromScaling | boolean | None. |
Request Formats
application/json, text/json
Sample:
{
"Name": "sample string 1",
"Size": 1.1,
"Cost": 1.0,
"IncludeWeight": true,
"WeightKilograms": 3.0,
"WeightCapacityKilograms": 1.0,
"WidthMillimeters": 1,
"HeightMillimeters": 1,
"LengthMillimeters": 1,
"RoyalMailDomesticPackagingID": 1,
"RoyalMailInternationalPackagingID": 1,
"ExcludeFromScaling": true
}
application/xml, text/xml
Sample:
<CreatePackageSizeCommand xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Name>sample string 1</Name> <Size>1.1</Size> <Cost>1</Cost> <IncludeWeight>true</IncludeWeight> <WeightKilograms>3</WeightKilograms> <WeightCapacityKilograms>1</WeightCapacityKilograms> <WidthMillimeters>1</WidthMillimeters> <HeightMillimeters>1</HeightMillimeters> <LengthMillimeters>1</LengthMillimeters> <RoyalMailDomesticPackagingId>1</RoyalMailDomesticPackagingId> <RoyalMailInternationalPackagingId>1</RoyalMailInternationalPackagingId> <ExcludeFromScaling>true</ExcludeFromScaling> </CreatePackageSizeCommand>
Response Information
Resource Description
Create a new packaging size
PackageSizeDto| Name | Description | Type | Additional information |
|---|---|---|---|
| PackagingID | integer | None. | |
| Name | string | None. | |
| Size | decimal number | None. | |
| Cost | decimal number | None. | |
| WeightKilograms | decimal number | None. | |
| WeightCapacityKilograms | decimal number | None. | |
| WidthMillimeters | integer | None. | |
| HeightMillimeters | integer | None. | |
| LengthMillimeters | integer | None. | |
| RoyalMailDomesticPackagingID | integer | None. | |
| RoyalMailDomesticiInternationalPackagingID | integer | None. |
Response Formats
application/json, text/json
Sample:
{
"PackagingID": 1,
"Name": "sample string 2",
"Size": 1.1,
"Cost": 1.0,
"WeightKilograms": 1.0,
"WeightCapacityKilograms": 1.0,
"WidthMillimeters": 1,
"HeightMillimeters": 1,
"LengthMillimeters": 1,
"RoyalMailDomesticPackagingID": 1,
"RoyalMailDomesticiInternationalPackagingID": 1
}
application/xml, text/xml
Sample:
<PackageSizeDto xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <PackagingId>1</PackagingId> <Name>sample string 2</Name> <Size>1.1</Size> <Cost>1</Cost> <WeightKilograms>1</WeightKilograms> <WeightCapacityKilograms>1</WeightCapacityKilograms> <WidthMillimeters>1</WidthMillimeters> <HeightMillimeters>1</HeightMillimeters> <LengthMillimeters>1</LengthMillimeters> <RoyalMailDomesticPackagingId>1</RoyalMailDomesticPackagingId> <RoyalMailInternationalPackagingId>1</RoyalMailInternationalPackagingId> </PackageSizeDto>