← API Index

Supporting B2B customers

The shops can express different prices for specific customer groups. Such prices may be valid only in specific time periods.

Customer price groups (B2C systems)

Used in B2C systems.

A given customer may only be in one price group. Default is group 0 (the regular prices)

API

After authentication, all item related calls will provide the customer specific (gross) price. If items have been cached before, they need to be re-fetched with data for this specific customer. Also, this information shall not be cached and shown for other visitors or customers.

Ideas

TODO GH Rabattstaffel? Impl as in b2c?

Wholesale customers (B2B systems)

used for PCGclassic Wholesale B2B Backends.

Customers can be in several price groups that have special prices or packaging.

Wholesale Shops differ to regular shops:

API

Before Authentication, all Data of items in a configured guest group are returned, with their base settings. In that stage, dont show prices. (Item-calls as well as the Navigation-call.) This also applies to the category, subgroup and rubric counts and the navigation positions delivered by the Navigation-call: they reflect the guest group before authentication (or everything, if no guest group is configured), and the authenticated customer's group(s) afterwards. Navigation positions are always returned, possibly with a count of 0 - hide those in the UI. So after authentication, re-fetch the navigation too, not only the items.

After authentication, all item related calls will provide the customer specific (net) price. If items have been cached before, they need to be re-fetched with data for this specific customer. Also, this information shall not be cached and shown for other visitors or customers.

Before fetching items again, make sure a date selection happened.

See how to implement a date selection, as the lookup of the customer specific data requires a selected delivery date.

about discount options or discount tiers may also change the price option for a specific customer.