Hey @romie , when you have the location id, you can use the storefront api from within the customer account ui extension to query for the price and rules that apply for the customer and location.
The storefront api will ensure to return the correct result.
- Docs on how to query the storefront api within customer account ui extensions
- Docs on how to send storefront queries queries with buyer context
Please note that there’s a known issue with the buyerIdentity.purchasingCompany not being passed to extensions on the Order Status Page.
We will reply to this post when this fix has shipped!
As for when specific conflicting rules apply, this is a great question, but outside my area.
I’ll reach out to team closest to this and they might reply.
You can find info on price prioritization specifically in the docs.