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.minimumalways returns1, andmaximumandincrementare emptyquantityPriceBreaksis empty- B2B pricing does not seem to be applied
Additionally:
shopify.authenticatedAccountcorrectly containspurchasingCompany(withcompanyandlocation)- it is not possible to pass
buyerin@inContext(nocustomerAccessToken, and no password with Customer Account V2) - it is not possible to use
companyIdorlocationIdin 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 ![]()