Body
Required
-
distanceUnit
string | null Required Distance unit
Values are
in
orcm
. Default value isin
. -
packingDepth
number | null Required Packing depth
Default value is
2.4
. -
packingHeight
number | null Required Packing height
Default value is
13.3
. -
packingWidth
number | null Required Packing width
Default value is
11.5
. -
source
string | null Required Source
Values are
import
orinternal
. Default value isinternal
. -
variantId
integer(int32) Required Variant
-
weight
number(float) | null Required Weight
Default value is
0
. -
weightUnit
string | null Required Weight unit
Values are
g
,kg
,oz
, orlb
. Default value isg
.
POST
/variant-parcels.json
curl \
--request POST 'http://api.example.com/v1/variant-parcels.json' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"distanceUnit":"in","packingDepth":2.4,"packingHeight":13.3,"packingWidth":11.5,"source":"internal","tags":[],"variantId":42,"weight":0,"weightUnit":"g"}'
Request examples
{
"distanceUnit": "in",
"packingDepth": 2.4,
"packingHeight": 13.3,
"packingWidth": 11.5,
"source": "internal",
"tags": [],
"variantId": 42,
"weight": 0,
"weightUnit": "g"
}
Response examples (200)
{
"createdAt": "2025-05-04T09:42:00Z",
"distanceUnit": "in",
"id": 42,
"packingDepth": 2.4,
"packingHeight": 13.3,
"packingWidth": 11.5,
"source": "internal",
"tags": [],
"updatedAt": "2025-05-04T09:42:00Z",
"variantId": 42,
"weight": 0,
"weightUnit": "g"
}