PharmacyQuery

Fields

    bot
    Bot!
    Required
    Fetch one of the authenticated vendor's bots by id.
      botId
      Int!
      Required
      Unique identifier of the bot.
    botAnalytics
    BotAnalytics!
    Required
    Analytics for a bot: totals, webhook health, a 7-day time series and the top-10 commands over the requested window (default 7 days, max 90).
      botId
      Int!
      Required
      Bot to report on.
      days
      Int
      History window in days (default 7, max 90).
    bots
    BotConnection!
    Required
    List the authenticated vendor's bots, optionally filtered by status.
      after
      String

      Opaque cursor — pass back the previous page's endCursor.

      before
      String

      Opaque cursor — pass back the previous page's startCursor.

      first
      Int
      How many items to return, paging forward.
      last
      Int
      How many items to return, paging backwards.
      status
      BotStatus
      Filter by bot status. Omit for all.
    location
    Location!
    Required
    Fetch one location by id.
      locationId
      Int!
      Required
      Unique identifier of the location.
    locations
    LocationConnection!
    Required
    List the authenticated vendor's locations/branches.
      activeOnly
      Boolean
      Only active locations. Omit for all.
      after
      String

      Opaque cursor — pass back the previous page's endCursor.

      before
      String

      Opaque cursor — pass back the previous page's startCursor.

      first
      Int
      How many items to return, paging forward.
      last
      Int
      How many items to return, paging backwards.
    order
    Order!
    Required
    Fetch one order by id.
      orderId
      Int!
      Required
      Unique identifier of the order.
    orders
    OrderConnection!
    Required
    List the authenticated vendor's orders, optionally filtered by status.
      after
      String

      Opaque cursor — pass back the previous page's endCursor.

      before
      String

      Opaque cursor — pass back the previous page's startCursor.

      first
      Int
      How many items to return, paging forward.
      last
      Int
      How many items to return, paging backwards.
      status
      OrderStatus
      Filter by order status. Omit for all.
    product
    Product!
    Required
    Fetch one product by id.
      productId
      Int!
      Required
      Unique identifier of the product.
    products
    ProductConnection!
    Required
    List the authenticated vendor's products.
      activeOnly
      Boolean
      Only active products. Omit for all.
      after
      String

      Opaque cursor — pass back the previous page's endCursor.

      before
      String

      Opaque cursor — pass back the previous page's startCursor.

      first
      Int
      How many items to return, paging forward.
      last
      Int
      How many items to return, paging backwards.
    profile
    Profile!
    Required
    The authenticated vendor's profile.
    settings
    Settings!
    Required
    The authenticated vendor's settings blob.
    unit
    AutonomousUnit!
    Required
    One of the acting vendor's units.
      id
      Int!
      Required
      Unique identifier of the unit.
    units
    AutonomousUnitConnection!
    Required

    The acting vendor's autonomous units, newest first.

    Scoped by forcing ownerVendorId to the authorized vendor. It is deliberately NOT an argument — accepting one would invite passing somebody else's.

      after
      String

      Opaque cursor — pass back the previous page's endCursor.

      before
      String

      Opaque cursor — pass back the previous page's startCursor.

      first
      Int
      How many items to return, paging forward.
      hasCredential
      Boolean
      Restrict to units that have their own credentials, or to those that do not. Omit for both.
      isActive
      Boolean
      Restrict to active or inactive units. Omit for both.
      isDispatchable
      Boolean
      Restrict to units that can be sent on a job right now, or to those that cannot. Omit for both.
      last
      Int
      How many items to return, paging backwards.
      maxBatteryPct
      Int
      Restrict to units at or below this battery percentage. Omit for any charge.
      serialNo
      String
      Exact serial number to look up. Omit for every unit.
      status
      AutonomousUnitStatus
      Filter by unit status. Omit for all.
      verificationStatus
      AutonomousVerificationStatus
      Filter by verification state. Omit for all.
    vendorCoupons
    [Coupon!]!
    Required
    The coupons this vendor owns. Platform coupons the vendor merely qualifies for are not listed — those belong to the platform and are not theirs to manage.
      activeOnly
      Boolean
      Only active coupons. Omit for all.
    vendorInventory
    VendorInventoryStatus!
    Required
    Products at or below their low-stock threshold, plus those unavailable, with alerts summarising both. A product with stock on the shelf but marked unavailable counts as out of stock: a customer cannot buy it either way.
    vendorMenuProducts
    [Int!]!
    Required
    The products on one of the vendor's menus, in menu order.
      menuId
      Int!
      Required
      Unique identifier of the menu.
    vendorMenus
    [AdminMenu!]!
    Required
    The authenticated vendor's menus, across every location or at one. A menu belongs to a location, so a chain's branches can carry different offerings, and the price and availability of a product can differ from one location to the next.
      activeOnly
      Boolean
      Only active menus. Omit for all.
      vendorLocationId
      Int
      Limit to one location. Omit for all.
    vendorPerformanceMetrics
    VendorPerformanceMetricsResponse!
    Required
    Acceptance rate, delivery success rate, average fulfilment time and customer satisfaction over the last 30 days.
    vendorReviews
    VendorCustomerReviews!
    Required
    Recent customer reviews, optionally filtered to a single star rating.
      limit
      Int
      Maximum reviews to return. Clamped to a ceiling.
      ratingFilter
      Int
      Only reviews with this star rating (1-5). Omit for all.
    vendorSalesAnalytics
    VendorSalesAnalytics!
    Required

    Sales for a window, with top products, a daily series and growth against the preceding window of equal length.

    period is today, week, month or year, resolved in the vendor's own timezone. Any other value requires date (RFC-3339 or YYYY-MM-DD) and reports that single local day; without one it is rejected rather than silently widening to all time.

      date
      String

      Single day to report (YYYY-MM-DD). Omit to use period instead.

      period
      String
      One of today, week, month or year. Defaults to month.
    webhook
    Webhook
    Fetch one webhook by id (scoped to the authenticated business).
      webhookId
      Int!
      Required
      Unique identifier of the webhook.
    webhooks
    WebhookConnection!
    Required
    List the authenticated business's webhook subscriptions.
      after
      String

      Opaque cursor — pass back the previous page's endCursor.

      before
      String

      Opaque cursor — pass back the previous page's startCursor.

      first
      Int
      How many items to return, paging forward.
      last
      Int
      How many items to return, paging backwards.
Built with