Invalid price results for products in storefront API

Highlighted
New Member
2 0 0

We are running against the latest Storefront API in a private app to query our products. Yesterday everything worked fine, today pricing changes are no longer reflected within the API.

We have the following product listed

Alexander82_0-1603826309232.png

As you can see the min and max price are different.
When using the following query

 

import { gql } from 'apollo-angular';

export const PRODUCT_QUERY = gql`
    query($handle: String!) {
        productByHandle(handle: $handle) {
            id
            tags
            handle
            description
            title
            images(first: 1) {
                edges {
                    node {
                        transformedSrc(maxWidth: 350)
                    }
                }
            }
            metaFieldsGlobal: metafields(first: 10, namespace: "global") {
                edges {
                    node {
                        key
                        value
                    }
                }
            }
            metaFieldsDetails: metafields(first: 5, namespace: "details") {
                edges {
                    node {
                        key
                        value
                    }
                }
            }
            variants(first: 5) {
                edges {
                    node {
                        id
                    }
                }
            }
            description
            priceRange {
                minVariantPrice {
                    amount
                    currencyCode
                }
                maxVariantPrice {
                    amount
                    currencyCode
                }
            }
        }
    }
`;

 

the result looks as follows: 

 

     ],
        "__typename": "ProductVariantConnection"
      },
      "priceRange": {
        "minVariantPrice": {
          "amount": "495.0",
          "currencyCode": "EUR",
          "__typename": "MoneyV2"
        },
        "maxVariantPrice": {
          "amount": "495.0",
          "currencyCode": "EUR",
          "__typename": "MoneyV2"
        },
        "__typename": "ProductPriceRange"
      },
      "__typename": "Product"
    }
  }
}

 

 

 Any changes to the price are being completely ignored, changes to everything else are immediately reflected within the API.

0 Likes