Okay
  Public Ticket #3487186
Integration API
Closed

Comments

  • Marius started the conversation

    Hello, I am writing to you because I would like to know if there is a B2BKing API to be able to import products with B2B and B2C prices directly from an ERP. 

  •  1,881
    WebWizards replied

    Hello Marius,

    Thank you for getting in touch,


    Our plugin uses standard WP data for everything (user and post metadata), and therefore all data can be manipulated by using the WP REST API or WooCommerce REST API. Because of that, we do not have our own API.

    To set B2B prices for a product, you can simply set these post meta / product meta keys for each product:

    b2bking_regular_product_price_group_GROUPID
    b2bking_sale_product_price_group_GROUPID  

    You can find more detailed information here: https://woocommerce-b2b-plugin.com/docs/release-1-8-0-price-lists-csv-import-export-pricing-in-the-product-page/


    Generally regarding ERP usage: B2BKing can work well on shops that also integrate with ERPs. Since B2BKing is built on top of WooCommerce, any existing integration between WooCommerce and your ERP will work. We would suggest to use such an integration to sync products between your site and ERP.



    Kind regards,

    Stefan



  • Adel replied

    Hello,

    How can we use the API and deduct balance using the Company Credit each time someone buys a product. We focus on WooCommerce bookings, the B2B resellers wish to connect to our API to make purchases. 

    For example, Reseller X (B2B), wishes to connect to an API, they want to make an order and our store dispatches the sale.

    Please advise how we can achieve this? 

  •  1,881
    WebWizards replied

    Hello Adel,

    This may be possible using some customizations and custom code, but please keep in mind it is not a default feature of our plugin.

    We would certainly be happy to try and point you in the right direction. We can also make changes to B2BKing or add hooks / expose certain parameters to APIs if needed.

    For all this and to discuss your particular situation, kindly please open a separate ticket with us. If you have purchased the plugin please also send us the details of your license key.

    Looking forward to your response,