B2B context states

How CTX represents B2B buyer, company, location, and catalog context.

B2B context states#

B2B context is explicit. It is not inferred from merchant store identity, GeoIP, or the normal storefront market resolver.

State

Meaning

not_b2b

Request selected a normal storefront. B2B fields are empty.

anonymous

Request selected a B2B storefront, but no customer identity is present.

company_location_required

Customer identity exists, but no company location has been selected or supplied.

ready

Customer/contact/location context validated. Company, location, role, permissions, catalog id/source, and B2B market/currency may be resolved.

forbidden

Supplied customer/location context does not validate for this store/B2B storefront.

Headless GraphQL reaches ready with a customer access token plus company location id. Hosted CTX reaches ready with a valid customer session plus a selected company location in the visitor session.