input CreateShippingLabelInput
Fields
| Field | Type | Description |
|---|---|---|
customer_account_id | String | Use this when you are a 3PL acting on behalf of one of your customers. |
carrier | String! | Carrier name or carrier code used for shipping. |
shipping_name | String! | Shipping name for this shipping label. |
shipping_method | String! | Carrier service or shipping method code. |
cost | String! | Internal cost as a decimal monetary amount; distinct from customer-facing price. |
address | AddressInput! | Address details for this shipping label. |
dimensions | DimensionsInput! | Package or item dimensions. Length, width, and height are in inches unless account or carrier configuration specifies another unit. |
label | CreateLabelResourceInput! | Label associated with this shipping label. |
line_item_ids | [String]! | Specify the line items that should be associated with the label been created. The ids can be shipment line item ids or order line item ids (the ones used to create the shipment line items). |
tracking_number | String | Carrier tracking number for the shipment or label. |
shipment_id | String! | Public API shipment ID that identifies the related record. |
Referenced By
- shipment_create_shipping_label Mutation
Example
{
"customer_account_id": "QWNjb3VudDoxMjM0",
"carrier": "ups",
"shipping_name": "UPS Ground",
"shipping_method": "ups_ground",
"cost": "19.99",
"address": {address1: "123 Fulfillment Ave", city: "New York", country: "US"},
"dimensions": {length: 12.5, width: 8.0, height: 4.0},
"label": {tracking_number: "1Z999AA10123456784", carrier: "ups"},
"line_item_ids": ["U2hpcG1lbnRMaW5lSXRlbToxMjM0", "U2hpcG1lbnRMaW5lSXRlbTo1Njc4"],
"tracking_number": "1Z999AA10123456784",
"shipment_id": "U2hpcG1lbnQ6MTIzNA=="
}