Skip to content

How to get product tier price using graphql magento2

I am performing a full text search to get the list of products.

I need to get the tierprices of the products. But I am getting the following error.

Customer with id “18” does not exist.

I am using the following payload. If we remove the price_tiers it is not giving any errors.

  products(search: "mugs" pageSize: 10) {
    items {
      id
      name
      sku
      price_tiers{
        discount{
            amount_off
            percent_off
        }
        final_price{
            value
        }
        quantity
      }
      price_range{
        maximum_price{
            discount{
                percent_off
            }
            final_price{
                value
            }
            regular_price{
                value
            }
        }
        minimum_price{
            discount{
                percent_off
            }
            final_price{
                value
            }
            regular_price{
                value
            }
        }
      }
      description {
        html
      } 
    }
  }
}

Anybody knows solution kindly assist me.