wholesale_orders

Arguments

ArgumentTypeRequiredDefaultDescription
customer_account_idStringNo

If you are a 3PL you can specify one of your customer's account

partner_order_idStringNo
updated_fromISODateTimeNo
updated_toISODateTimeNo
order_date_fromISODateTimeNo
order_date_toISODateTimeNo
analyzeBooleanNo

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

Return Type

WholesaleOrdersQueryResult

Query

query wholesale_orders(
  $customer_account_id: String,
  $partner_order_id: String,
  $updated_from: ISODateTime,
  $updated_to: ISODateTime,
  $order_date_from: ISODateTime,
  $order_date_to: ISODateTime,
  $analyze: Boolean
) {
  wholesale_orders(
    customer_account_id: $customer_account_id,
    partner_order_id: $partner_order_id,
    updated_from: $updated_from,
    updated_to: $updated_to,
    order_date_from: $order_date_from,
    order_date_to: $order_date_to,
    analyze: $analyze
  ) {
    request_id
    complexity
    data {
      ...WholesaleOrderConnectionFragment
    }
  }
}

Variables

{
  "customer_account_id": "abc123",
  "partner_order_id": "abc123",
  "updated_from": ISODateTime,
  "updated_to": ISODateTime,
  "order_date_from": ISODateTime,
  "order_date_to": ISODateTime,
  "analyze": true
}

Response

{
  "data": {
    "wholesale_orders": {
      "request_id": "abc123",
      "complexity": 987,
      "data": WholesaleOrderConnection
    }
  }
}