shipment_create_shipping_label

Arguments

ArgumentTypeRequiredDefaultDescription
dataCreateShippingLabelInput!Yes

Return Type

CreateShippingLabelOutput

Mutation

mutation shipment_create_shipping_label(
  $data: CreateShippingLabelInput!
) {
  shipment_create_shipping_label(
    data: $data
  ) {
    request_id
    complexity
    shipping_label {
      ...ShippingLabelFragment
    }
  }
}

Variables

{
  "data": {
    "customer_account_id": "abc123",
    "carrier": "abc123",
    "shipping_name": "abc123",
    "shipping_method": "abc123",
    "cost": "abc123",
    "address": AddressInput,
    "dimensions": DimensionsInput,
    "label": CreateLabelResourceInput,
    "line_item_ids": ["abc123"],
    "tracking_number": "abc123",
    "shipment_id": "abc123"
  }
}

Response

{
  "data": {
    "shipment_create_shipping_label": {
      "request_id": "abc123",
      "complexity": 987,
      "shipping_label": ShippingLabel
    }
  }
}