Does B2BKing have a REST API? WP and WOO APIs

A common question is whether B2BKing has an API that can be used to manipulate data such as product prices, visibility, dynamic rules, etc. Here's what you should know:

All B2BKing data is saved as standard WordPress or WooCommerce data and therefore can be accessed through the regular WP and WooCommerce APIs.

Because of this, B2BKing does not have its own API, as everything can already be done with existing APIs.

For example:

  • custom fields such as the VAT number are saved as user metadata and can be accessed, edited and created using the WP API
  • users can be created OR set as B2B users using the WP API
  • dynamic rules are posts and their configuration is post metadata - therefore rules can be modified through the WP REST API as well - we have a guide here: Creating a rule via REST API
  • pricing such as group prices or tiered prices are product / post metadata and can be edited with either the WOO API or the WP API

API References:

Powered by BetterDocs