"Qeersh Admin API (v1). Money is an integer in minor units with its currency; times are UTC (ISO 8601)." type Query { shop: Shop! products(first: Int = 20, after: String, status: String): ProductConnection! product(id: ID!): Product collections(first: Int = 20, after: String): CollectionConnection! orders(first: Int = 20, after: String, status: String, paymentStatus: String): OrderConnection! order(id: ID!): Order customers(first: Int = 20, after: String): CustomerConnection! } type Mutation { "Change stock at one location: ADJUST by a signed quantity, or SET the available quantity." inventoryAdjust(variantId: ID!, locationId: ID!, quantity: Int!, mode: AdjustMode = ADJUST): InventoryLevel! "Record a shipment made outside Qeersh." orderFulfill(id: ID!, carrier: String!, trackingNumber: String!, trackingUrl: String): Order! } enum AdjustMode { ADJUST SET } type PageInfo { hasNextPage: Boolean! endCursor: String } type Money { amount: Int! currency: String! } type LocalizedText { ar: String en: String } type Shop { id: ID! name: LocalizedText! subdomain: String! primaryDomain: String locale: String! currency: String! timezone: String } type Product { id: ID! type: String! status: String! title: LocalizedText! description: LocalizedText! handle: String! vendor: String category: String tags: [String!]! variants: [Variant!]! publishedAt: String createdAt: String updatedAt: String } type Variant { id: ID! productId: ID! sku: String barcode: String option1: String option2: String option3: String price: Money! compareAtPrice: Money weightGrams: Int trackInventory: Boolean! position: Int! } type ProductConnection { nodes: [Product!]! pageInfo: PageInfo! } type Collection { id: ID! title: LocalizedText! description: LocalizedText! handle: String! type: String! published: Boolean! updatedAt: String } type CollectionConnection { nodes: [Collection!]! pageInfo: PageInfo! } type InventoryLevel { variantId: ID! locationId: ID! available: Int! reserved: Int! updatedAt: String } type OrderItem { id: ID! productId: ID variantId: ID title: String! variantTitle: String sku: String quantity: Int! unitPrice: Money! total: Money! } type Fulfillment { id: ID! carrier: String! status: String! trackingNumber: String trackingUrl: String shippedAt: String deliveredAt: String } type Contact { name: String phone: String email: String } type Address { name: String phone: String governorateId: String cityId: String street: String landmark: String } type Order { id: ID! number: Int! status: String! paymentStatus: String! paymentMethod: String! currency: String! subtotal: Money! discount: Money! shipping: Money! tax: Money! total: Money! customerId: ID items: [OrderItem!]! fulfillments: [Fulfillment!]! "Needs customers:read." contact: Contact "Needs customers:read." shippingAddress: Address placedAt: String cancelledAt: String updatedAt: String } type OrderConnection { nodes: [Order!]! pageInfo: PageInfo! } type Customer { id: ID! name: String phone: String email: String locale: String acceptsMarketing: Boolean! tags: [String!]! pointsBalance: Int! anonymized: Boolean! createdAt: String updatedAt: String } type CustomerConnection { nodes: [Customer!]! pageInfo: PageInfo! }