Admin API / Types
OrderWhereInput
InputOrder filters. Values in one list are alternatives; fields combine with AND. An omitted field or an empty list matches every order. An ID list holds at most 100 IDs; more gives a thrown VALIDATION_ERROR.
input OrderWhereInputInput fields
| Field | Type | Description |
|---|---|---|
buyerIds | [ID!] | Orders of these buyer accounts. |
createdAt | DateTimeRangeInput | Orders placed in this range: from inclusive, to exclusive. |
disputeStatus | [OrderDisputeStatus!] | Orders whose latest dispute (Order.disputeStatus) has one of these statuses. An order with no dispute matches no value. To find orders that need action before shipping, use OPEN. |
fulfillmentStatus | [OrderFulfillmentStatus!] | Orders with one of these fulfilment statuses (Order.fulfillmentStatus). Combine NOT_FULFILLED with paymentStatus: [PAID] to find paid orders that still need shipping. |
hasDiscount | Boolean | True: orders with at least one entry in Order.discounts. False: orders with none. |
livemode | Boolean | Orders whose Order.livemode has this value. |
livestreamIds | [ID!] | Orders placed during these livestreams. |
paymentStatus | [OrderPaymentStatus!] | Orders with one of these payment statuses. |
productIds | [ID!] | Orders with at least one item of these listings. |
refundOrDisputeUpdatedAt | DateTimeRangeInput | Orders with a refund or a dispute that was created or changed in this range: from inclusive, to exclusive. A partial refund or a dispute does not change updatedAt. The recorded time is the start of the write: overlap consecutive ranges, as for updatedAt. |
refundStatus | [OrderRefundStatus!] | Orders with one of these refund statuses (Order.refundStatus). A partial refund changes neither paymentStatus nor updatedAt: use PARTIAL to find partially refunded orders. |
sellerIds | [ID!] | Orders of these sellers, inside the orders that the field reads. An ID outside them matches nothing. |
updatedAt | DateTimeRangeInput | Orders whose order record changed in this range: from inclusive, to exclusive. A status change (paid, shipped, delivered, cancelled or fully refunded) counts as a change, and so do internal updates such as recording the payment fee. A partial refund, a new or changed dispute, and a shipment tracking event that does not change the order status do not count. The recorded time is the start of the write, which can be earlier than the time the change becomes visible: when you read changes in consecutive ranges, overlap each range with the previous one. To find partial refunds and disputes, filter by refundOrDisputeUpdatedAt without updatedAt, then read Order.refunds and Order.disputeStatus. |