mirror of
https://github.com/LukeHagar/speakeasy-playground.git
synced 2025-12-07 12:47:46 +00:00
16 KiB
16 KiB
ParcelCreateRequest
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
distance_unit |
components.DistanceUnitTemplate | ✔️ | The measure unit used for length, width and height. Required if template is not specified. | in |
height |
str | ✔️ | Required if template is not specified Height of the parcel. Up to six digits in front and four digits after the decimal separator are accepted. |
1 |
length |
str | ✔️ | Required if template is not specified Length of the Parcel. Up to six digits in front and four digits after the decimal separator are accepted. |
1 |
mass_unit |
components.WeightUnit | ✔️ | The unit used for weight. | lb |
weight |
str | ✔️ | Weight of the parcel. Up to six digits in front and four digits after the decimal separator are accepted. | 1 |
width |
str | ✔️ | Required if template is not specified Width of the Parcel. Up to six digits in front and four digits after the decimal separator are accepted. |
1 |
template |
Optional[Union[components.ParcelTemplateFedEx, components.ParcelTemplateUPS, components.ParcelTemplateUSPS, components.ParcelTemplateDHLeCommerce, components.ParcelTemplateDPDUK, components.ParcelTemplateCouriersPlease, components.ParcelTemplateAramexAustralia]] | ➖ | If template is passed, length, width, height, and distance_unit are not required |
|
metadata |
Optional[str] | ➖ | N/A | Customer ID 123456 |