B2B REST API
Product page
Description
Read B2B website settings and work with company records through the versioned Magento REST routes under /V1/kowal-b2b.
For whom
For integration developers connecting wholesale sales tools to Magento.
Features
- Read website features and configuration.
- List companies in a website context.
- Query company-specific product visibility and pricing.
Installation
This component is included in B2B Suite. Follow the suite installation instructions.
Configuration
- For a website configuration check, grant the Magento integration the B2B API Website Config resource and use its configured authentication method.
- Send GET to
/rest/default/V1/kowal-b2b/websites, replacingdefaultwith the intended store code. - Use the returned website ID in
/rest/default/V1/kowal-b2b/websites/{websiteId}/featuresto inspect that website’s features.
Requirements / notes
The store code in the REST path and the numeric website ID identify different Magento scopes. Use the ID expected by each route.
FAQ
Why can the integration read website settings but not list companies?
Company reads require the separate B2B API Companies resource. The company list also accepts the website context through the websiteId query parameter.
Verify the installation
bin/magento module:status Kowal_B2BApi
Read the websites list with an authenticated GET, select a known wholesale website and compare its configuration response with the settings saved in Admin.