query · Module: Catalog
Arguments
| Argument | Type | Description |
|---|---|---|
id | ID! | The object’s ID. |
Returns
PackagingList!
| Field | Type |
|---|---|
data | [Packaging!]! |
has_more | Boolean |
Errors
Errors are returned inerrors[], with the REST error object in extensions (type, code, param, request_id), using the codes in Conventions §9.
query PackagingVersions($id: ID!) {
packagingVersions(id: $id) {
data {
id
object
code
name
type
status
livemode
created
updated
inner_dimensions {
length
width
height
unit
}
outer_dimensions {
length
width
height
unit
}
tare_weight {
value
unit
}
max_weight {
value
unit
}
flat_rate
version
}
has_more
}
}
{
"id": "obj_1a2B3c"
}
{
"data": {
"packagingVersions": {
"data": [
{
"id": "pkg_1a2B3c",
"object": "packaging",
"code": "dhl_express_worldwide",
"name": "Example",
"type": "envelope",
"status": "draft",
"livemode": true,
"created": 1791302400,
"updated": 1791302400,
"inner_dimensions": {
"length": 1.5,
"width": 1.5,
"height": 1.5,
"unit": "mm"
},
"outer_dimensions": {
"length": 1.5,
"width": 1.5,
"height": 1.5,
"unit": "mm"
},
"tare_weight": {
"value": 1.5,
"unit": "g"
},
"max_weight": {
"value": 1.5,
"unit": "g"
},
"flat_rate": true,
"version": 3
}
],
"has_more": true
}
}
}