Okay
  Public Ticket #2546849
API
Closed

Comments

  • Juho started the conversation

    Hi, we are creating a woocommerce page that gets products through Pim via API and prices from Microsoft BC and sends all data back to Microsoft BC. Can we get API connection to your plugin?

  •  2,214
    WebWizards replied

    Hi Juho,

    Sorry for the late reply, it's a very busy week and we're struggling with time.


    B2BKing uses metadata for almost everything, so yes, you can get/set that through APIs. For example prices are meta fields for each product/variation. If you wanted to set B2B/group pricing, you would set these 2 meta fields for a product, for each group id:

    b2bking_regular_product_price_group_GROUPID
    b2bking_sale_product_price_group_GROUPID  

    Reference: updating product metadata through rest api: https://stackoverflow.com/questions/45306350/update-product-meta-data-in-woocommerce-rest-api


    Kind Regards,

    Stefan