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