Wayfair · JSON Structure

Wayfair Graph Ql Request Structure

GraphQLRequest schema from Wayfair Supplier API

Type: object Properties: 3 Required: 1
E-CommerceFurnitureHome GoodsRetailSuppliersGraphQL

GraphQLRequest is a JSON Structure definition published by Wayfair, describing 3 properties, of which 1 is required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

query variables operationName

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/wayfair/refs/heads/main/json-structure/wayfair-graph-ql-request-structure.json",
  "name": "GraphQLRequest",
  "description": "GraphQLRequest schema from Wayfair Supplier API",
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "description": "The GraphQL query or mutation string.",
      "example": "query { purchaseOrders(limit: 10) { edges { node { poNumber status } } } }"
    },
    "variables": {
      "type": "object",
      "description": "Variables for the GraphQL operation."
    },
    "operationName": {
      "type": "string",
      "description": "The name of the operation to execute when the query contains multiple operations.",
      "example": "GetPurchaseOrders"
    }
  },
  "required": [
    "query"
  ]
}