yup! here is both the full mutation and the raw response:
mutation {
shipment_create(
data: {
order_id: "T3JkZXI6NDg0MDEyNTcx"
warehouse_id: "V2FyZWhvdXNlOjk2ODc5"
address: {
name: "John Deer"
address1: "123 Main St"
address2: "Apt 5"
city: "San Francisco"
state: "CA"
zip: "94105"
country: "US"
}
line_items: [
{
line_item_id: "TGluZUl0ZW06MTE5NzQ4MDA3Ng=="
quantity: 5
}
]
labels: [
{
address: {
name: "John Deer"
address1: "123 Main St"
address2: "Apt 5"
city: "San Francisco"
state: "CA"
zip: "94105"
country: "US"
}
carrier: "carrier"
shipping_name: "shipping_name"
shipping_method: "shipping_method"
cost: "1.1"
dimensions: {
length: "1.0"
width: "2.0"
height: "3.0"
weight: "4.0"
}
line_item_ids: ["TGluZUl0ZW06MTE5NzQ4MDA3Ng=="]
label: {
pdf_location: "pdf_location"
}
tracking_number: "tracking_number"
tracking_url: "tracking_url"
}
]
shipped_off_shiphero: true
customer_account_id: "QWNjb3VudDo3NDE0OQ=="
}
) {
request_id
shipment {
id
warehouse_id
created_date
address {
name
address1
address2
city
state
zip
country
}
line_items(first: 25) {
pageInfo {
hasNextPage
endCursor
}
edges {
node {
shipping_label_id
quantity
line_item {
locked_to_warehouse_id
sku
shipped_line_item_lots {
lot_id
lot_expiration_date
}
product {
kit
kit_components {
sku
quantity
}
}
}
}
}
}
shipping_labels {
id
status
box_id
box_name
tracking_number
tracking_url
shipping_method
carrier
cost
dimensions {
length
width
height
weight
}
}
}
}
}
response = {
"data": {
"shipment_create": {
"request_id": "6679df66067451fdef0c69a2",
"shipment": {
"id": "U2hpcG1lbnQ6NDY4Mjk5OTc4",
"warehouse_id": "V2FyZWhvdXNlOjk2ODc5",
"created_date": "2024-06-24T21:04:38",
"address": {
"name": "John Deer None",
"address1": "123 Main St",
"address2": "Apt 5",
"city": "San Francisco",
"state": "CA",
"zip": null,
"country": "US",
},
"line_items": {
"pageInfo": {
"hasNextPage": false,
"endCursor": "YXJyYXljb25uZWN0aW9uOjA=",
},
"edges": [
{
"node": {
"shipping_label_id": "U2hpcHBpbmdMYWJlbDozNTI4MzcwMzU=",
"quantity": 5,
"line_item": {
"locked_to_warehouse_id": null,
"sku": "sku12345",
"shipped_line_item_lots": [],
"product": {"kit": false, "kit_components": []},
},
}
}
],
},
"shipping_labels": [
{
"id": "U2hpcHBpbmdMYWJlbDozNTI4MzcwMzU=",
"status": "valid",
"box_id": null,
"box_name": null,
"tracking_number": "tracking_number",
"tracking_url": "",
"shipping_method": "shipping_method",
"carrier": "carrier",
"cost": "1.10",
"dimensions": {
"length": "1.00 inch",
"width": "2.00 inch",
"height": "3.0000 inch",
"weight": "4.0000 oz",
},
}
],
},
}
},
"extensions": {
"throttling": {
"estimated_complexity": 10,
"cost": 11,
"cost_detail": {
"shipment_create": {
"items_count": 1,
"cost": 10,
"total_cost": 11,
"fields": {},
}
},
"user_quota": {
"credits_remaining": 1397,
"max_available": 2002,
"increment_rate": 30,
},
}
},
}