B2b Quantity Rule Customer Account Extension

Hello,

I am experiencing an issue with Shopify B2B in a Customer Account UI Extension (v2).
The setup is as follows:

  • a customer associated with a Company and a Company Location
  • a B2B catalog assigned
  • rules configured in the catalog:
    • quantityRule (minimum, maximum, increment)
    • quantityPriceBreaks

I am running a test query via shopify.query:

query {
  products(first: 5) {
    nodes {
      variants(first: 5) {
        nodes {
          quantityRule {
            minimum
            maximum
            increment
          }
         quantityPriceBreaks(first: 5) {
           nodes {
             minimumQuantity
             price {
               amount
               currencyCode
             }
           }
         }
       }
     }
   }
 } 
}

The problem is that:

  • quantityRule.minimum always returns 1, and maximum and increment are empty
  • quantityPriceBreaks is empty
  • B2B pricing does not seem to be applied

Additionally:

  • shopify.authenticatedAccount correctly contains purchasingCompany (with company and location)
  • it is not possible to pass buyer in @inContext (no customerAccessToken, and no password with Customer Account V2)
  • it is not possible to use companyId or locationId in the query

Is this expected behavior?
I understand that the query is executed with a pre-authenticated token — is that correct?

Is there a way to apply the B2B context (catalog pricing, quantity rules) in this type of extension?

Thank you for your help :folded_hands: