inbound_shipments

Arguments

ArgumentTypeRequiredDefaultDescription
customer_ids[String]No
statuses[String]No
warehouse_ids[String]No
search_termStringNo
dates_fromISODateTimeNo
dates_toISODateTimeNo
estimated_truck_arrival_fromISODateTimeNo
estimated_truck_arrival_toISODateTimeNo
status_updated_at_fromISODateTimeNo
status_updated_at_toISODateTimeNo
require_faiBooleanNo
analyzeBooleanNo

If true, the query will only be analyzed (cost estimated) without executing it.

Return Type

InboundShipmentsQueryResult

Query

query inbound_shipments(
  $customer_ids: [String],
  $statuses: [String],
  $warehouse_ids: [String],
  $search_term: String,
  $dates_from: ISODateTime,
  $dates_to: ISODateTime,
  $estimated_truck_arrival_from: ISODateTime,
  $estimated_truck_arrival_to: ISODateTime,
  $status_updated_at_from: ISODateTime,
  $status_updated_at_to: ISODateTime,
  $require_fai: Boolean,
  $analyze: Boolean
) {
  inbound_shipments(
    customer_ids: $customer_ids,
    statuses: $statuses,
    warehouse_ids: $warehouse_ids,
    search_term: $search_term,
    dates_from: $dates_from,
    dates_to: $dates_to,
    estimated_truck_arrival_from: $estimated_truck_arrival_from,
    estimated_truck_arrival_to: $estimated_truck_arrival_to,
    status_updated_at_from: $status_updated_at_from,
    status_updated_at_to: $status_updated_at_to,
    require_fai: $require_fai,
    analyze: $analyze
  ) {
    request_id
    complexity
    data {
      ...InboundShipmentConnectionFragment
    }
  }
}

Variables

{
  "customer_ids": ["abc123"],
  "statuses": ["abc123"],
  "warehouse_ids": ["abc123"],
  "search_term": "abc123",
  "dates_from": ISODateTime,
  "dates_to": ISODateTime,
  "estimated_truck_arrival_from": ISODateTime,
  "estimated_truck_arrival_to": ISODateTime,
  "status_updated_at_from": ISODateTime,
  "status_updated_at_to": ISODateTime,
  "require_fai": true,
  "analyze": true
}

Response

{
  "data": {
    "inbound_shipments": {
      "request_id": "abc123",
      "complexity": 987,
      "data": InboundShipmentConnection
    }
  }
}