inbound_shipment_delete

Deletes an inbound shipment that is pending arrival or arrived, changing its status to DELETED. Shipments that started receiving, were completed, held, rejected or already deleted cannot be deleted.

Arguments

ArgumentTypeRequiredDefaultDescription
dataDeleteInboundShipmentInput!Yes

Return Type

DeleteInboundShipmentOutput

Mutation

mutation inbound_shipment_delete(
  $data: DeleteInboundShipmentInput!
) {
  inbound_shipment_delete(
    data: $data
  ) {
    request_id
    complexity
    inbound_shipment {
      ...InboundShipmentFragment
    }
  }
}

Variables

{
  "data": {
    "inbound_shipment_id": "SW5ib3VuZFNoaXBtZW50OjEyMzQ="
  }
}

Response

{
  "data": {
    "inbound_shipment_delete": {
      "request_id": "UmVjb3JkOjEyMzQ=",
      "complexity": 100,
      "inbound_shipment": {id: "SW5ib3VuZFNoaXBtZW50OjEyMzQ="}
    }
  }
}