List products

Query

query {
  tenant {
    products {
      id
      name
      caption
      description
      active
      options

      prices {
        id
        amount
        currency
      }

      variants {
        id
        attributes {
          name
          value
        }
      }
    }
  }
}

Response

{
  "data": {
    "tenant": {
      "products": [
        {
          "active": true,
          "caption": "Smart phone product by Apple",
          "description": "Expensive but reliable phone that's mostly used for puppy filters.",
          "id": "1",
          "name": "iPhone",
          "options": [
            "capacity",
            "color",
            "display"
          ],
          "prices": [
            {
              "amount": "1000",
              "currency": "USD",
              "id": "2"
            }
          ],
          "variants": [
            {
              "attributes": [
                {
                  "name": "capacity",
                  "value": "512GB"
                },
                {
                  "name": "color",
                  "value": "Gold"
                },
                {
                  "name": "display",
                  "value": "6.7-inch"
                }
              ],
              "id": "1"
            }
          ]
        }
      ]
    }
  }
}

Last updated

Was this helpful?