Admin API / Types

Order

Object

A customer order.

Requires a client key with one of these scopes: admin:orders:read

The requirement applies to every field of Order unless that field declares its own scopes.

type Order implements Node

Fields

FieldTypeDescription
buyerUser
The buyer's account. Null when the order has no buyer account or the account is not visible to the caller. Reading the buyer's fields needs the admin:account:read scope.
buyerContactContact
The email and phone that the buyer gave at checkout, and the ship-to name and address. A field is null when the order does not store it; an order with no shipment has no ship-to name or address. For an order whose seller is not the caller and not the owner of a store that the caller staffs, requires the OWNER role; a lower role gets a FORBIDDEN error with requiredRole: OWNER. Null only with that error. Reading its fields needs the admin:contactDetails:read scope.
checkoutTypeCheckoutType!
How the buyer bought.
createdAtDateTime!
When the buyer placed the order.
discountMoney!
Sum of discounts: the amount that discounts took off total. Zero when the order has no discount.
discounts[OrderDiscount!]!
Discounts that reduced what the buyer paid, oldest first. Empty when none applied. A code that changed only the seller's fees, or only tracked an affiliate, is not listed.
disputeStatusOrderDisputeStatus
Status of the latest dispute on the order. Null when the order has no dispute.
earningsOrderEarnings!
What the seller earns on the order, and the fees and fee taxes deducted from it.
fulfillmentStatusOrderFulfillmentStatus!
Whether every item that needs shipping has shipped. See OrderFulfillmentStatus.
idID!
A globally unique ID. Treat this value as an opaque string.
isOffPlatformBoolean!
True when the buyer pays the seller outside District, for example by Venmo. Only these orders accept markOrderAsPaid and cancelUnpaidOrder.
itemsOrderItemConnection!
The items of the order, oldest first, as recorded at purchase. Offsets stop at 1,000 items (1,000,000 for Soho).Arguments:
after: String — Returns the items after this cursor.
first: Int — The number of items to return, 1 to 100 (1 to 10,000 for Soho). The default is 20.
livemodeBoolean!
False when no real money moved: the marketplace was in test mode when the order was placed.
livestreamLivestream
The livestream during which the buyer placed the order. Null when the order was not placed during a livestream, or the livestream is not visible to the caller. Reading the livestream's fields needs the admin:livestreams:read scope.
netTotalMoney!
total less discount and refundedAmount. Negative for an earlier order whose refunds exceed total less discount.
paymentMethodOrderPaymentMethod!
How the buyer paid. Card brand and card digits are not available.
paymentStatusOrderPaymentStatus!
The payment status of the order.
receiptIdString!
The code that order emails and the dashboard show after #, such as 7KQ2M9. Unique. orderByReceiptId takes it.
refundStatusOrderRefundStatus!
FULL when paymentStatus is REFUNDED. PARTIAL when the order has a refund and another payment status. NONE otherwise.
refundableAmountMoney
The maximum pre-tax amount that can be refunded. Proportional sales tax is added automatically. Null when the order cannot currently be refunded. Also null when the caller cannot refund the order: its seller is not the caller and not the owner of a store that the caller staffs.
refundedAmountMoney!
Sum of the amount of refunds, tax included. Zero when the order has no refund. An order refunded outside District can read 0 with refundStatus: FULL.
refunds[Refund!]!
Refunds of the order, oldest first. Empty when the order has no refund. The list has no count limit; refundOrder keeps the sum within the refundable amount.
sellerUser
The seller who sold the order. For a store order, the store owner. Null when the seller is not a user of this marketplace. Reading the seller's fields needs the admin:account:read scope.
sellerNoteString
The seller's private note on the order. Only the order's seller and the seller's store staff can read it. For an order whose seller is not the caller and not the owner of a store that the caller staffs, the field gives a FORBIDDEN error with requiredRole: null and the other fields still resolve. Null when the note is empty. updateOrderSellerNote changes it.
shipmentShipment
The shipment that carries the order. Null when the order has no shipment, for example a digital order, when the shipment holds orders of more than one seller, or when the caller cannot read every order on the shipment. Reading the shipment's fields needs the admin:shipments:read scope.
shippingFeeMoney!
Shipping fee that the buyer paid at checkout, before discounts.
subtotalMoney!
Price of the items at checkout, before shipping, tax and discounts.
taxMoney!
Sales tax charged at checkout.
totalMoney!
The stored order total: subtotal, shippingFee and tax, before discounts and refunds.
updatedAtDateTime!
Time of the latest change to the order record. OrderWhereInput.updatedAt states what counts as a change. Use the largest value you read as the start of the next updatedAt range, with the overlap that it describes.

Returned by