Okay
  Public Ticket #4136513
Inquiry About API Access to Custom Wholesale Price Field
Open

Comments

  • Mateusz started the conversation

    Hello,

    I hope this message finds you well.

    I am currently considering implementing your WordPress plugin and have a question regarding its integration capabilities. Specifically, after configuring the plugin and adding custom fields such as a wholesale price, will this field be accessible via the API (e.g., REST API or other methods)?

    We plan to integrate this data with our external systems and want to ensure that wholesale pricing information can be programmatically retrieved.

    Thank you in advance for your clarification.
    Looking forward to your response.

    Best regards,
    Mateusz Bielecki

  •  2,468
    WebWizards replied

    Hi Mateusz,

    Thanks for getting in touch,

    Yes, the wholesale prices set through B2BKing are fully accessible via both the WordPress REST API and WooCommerce API. The wholesale prices are stored as product meta data.

    You can find all the specific meta keys used by B2BKing for wholesale pricing in our documentation here:
    https://woocommerce-b2b-plugin.com/docs/release-1-8-0-price-lists-csv-import-export-pricing-in-the-product-page/#0-toc-title

     

    This means you'll be able to programmatically get, set, edit or delete wholesale prices through the API.

    Let me know if you have any questions or anything I can do,

    Kind regards,
    Stefan