Product Icon

Role Based Pricing for WooCommerce

Add user roles and customer specific pricing. Add a fixed price, markup or discount existing price in percentage or fixed amount.

Integrate fixed prices roles by API

Can you tell me if it is intended to be possible to integrate pricing rules via API? and if so, when? Thanks in advance

Author

renato181569c9098e

Current Status

Open

Last updated: April 6, 2024

4 comments

Log in to comment on this feature request.

  1. albertorrent says:

    Hello, any updates on this?

  2. Addify says:
    Product Developer April 8, 2024 11:24 am

    Hi,

    The read-only API was included in version 1.6.1. The write function that you are looking for is yet to be added.

    Thank you,

  3. renato181569c9098e says:

    Thanks for the quick answer.

    we have version 1.5.9 and what we need is just add fixed price to user role (client group, if you prefer), and, maybe in the future, have fixed price or redution for specific user. if i get the product by API, i get this meta_data:
    {
    “id”: 67191,
    “key”: “_role_base_price_centro”,
    “value”: “a:5:{s:13:\”discount_type\”;s:11:\”fixed_price\”;s:14:\”discount_value\”;s:9:\”28.150000\”;s:7:\”min_qty\”;s:0:\”\”;s:7:\”max_qty\”;s:0:\”\”;s:21:\”replace_orignal_price\”;s:3:\”yes\”;}”
    }
    two questions:
    1- Can be done by API this two things? if yes, give me some information or documentation.
    2- This version have this avalible or have to update to nearly version?

    Thanks in advance, again.

  4. Addify says:
    Product Developer April 6, 2024 8:37 pm

    Hi,

    Currently, you can get the role based pricing via API call but setting a new role based price via API isn’t available at the moment. We do plan to add it in future but unfortunately we can’t share any timeline at the moment.

    Thanks,

Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.