Title: Adding a custom contact attribute
Last modified: May 30, 2023

---

# Adding a custom contact attribute

 *  Resolved [geistesblitzer](https://wordpress.org/support/users/geistesblitzer/)
 * (@geistesblitzer)
 * [3 years ago](https://wordpress.org/support/topic/adding-a-custom-contact-attribute/)
 * My store offers a wholesale discount to customers which have been pre-approved
   for a wholesale customer group. I want to send a wholesale newsletter to these
   customers and therefore need this information (wholesale customer or not) in 
   Brevo/Sendinblue. How can I do this with this plugin?
 * Things that I’ve tried:
    - **Signing these customers up to a different list** – this isn’t directly supported,
      so I tried to override the listId parameter in the settings from wp_options
      based on the customer. While this used to work in previous plugin versions,
      this doesn’t work anymore because this setting isn’t actually used. Is there
      any other way to manually specify a different list for specific signups?
    - **Setting a custom contact attribute** when creating the customer – there 
      are no WordPress filters for this in the plugin – but the API endpoints used(/
      events/) don’t seem to support additional attributes anyway.
    - **Setting a custom contact attribute after creating the customer** (e.g. on
      order status change) – this fails if the customer has not accepted DOI yet,
      as no data will be updated in this case.
 * How can I add this information to my contacts in Brevo/Sendinblue?

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Support [alexisbienayme](https://wordpress.org/support/users/alexisbienayme/)
 * (@alexisbienayme)
 * [3 years ago](https://wordpress.org/support/topic/adding-a-custom-contact-attribute/#post-16778953)
 * Hi [@geistesblitzer](https://wordpress.org/support/users/geistesblitzer/),
 * Thanks for contacting us ! Unfortunately, we do not have a workaround for generating
   a coupon code, but you can eventually find a coupon code generator plugin (although
   I do not know any) that is listed on Zapier.com or Make.com.
 * Then, you can build an integration through Zapier or Make, so you can sync the
   generated coupon codes to your contacts in your Brevo account.
 * Best Regards,
 * Alexis
 *  Thread Starter [geistesblitzer](https://wordpress.org/support/users/geistesblitzer/)
 * (@geistesblitzer)
 * [3 years ago](https://wordpress.org/support/topic/adding-a-custom-contact-attribute/#post-16778959)
 * Hi [@alexisbienayme](https://wordpress.org/support/users/alexisbienayme/),
 * my question wasn’t about coupons at all – did you respond to the wrong question
   perchance?
 * Edit: I can see how the wording “discount” may have led to confusion – all the
   discounting is handled by WooCommerce, I only need to know whether a customer
   is part of a specific group in Brevo.
 * To simplify: My store has two customer groups (which are shown different content).
   How can I distinguish between these two groups when synching contacts to Brevo,
   to have this information available when sending out newsletters?
 * Daniel
    -  This reply was modified 3 years ago by [geistesblitzer](https://wordpress.org/support/users/geistesblitzer/).
 *  Plugin Support [alexisbienayme](https://wordpress.org/support/users/alexisbienayme/)
 * (@alexisbienayme)
 * [3 years ago](https://wordpress.org/support/topic/adding-a-custom-contact-attribute/#post-16779955)
 * Hi Daniel,
 * Thank you for these clearer explanations. Currently, we don’t have the ability
   to distinguish contacts from our Woocommerce plugins according to the groups,
   but I’ll pass on your need to our Product team with a view to improving our features.
 * Best Regards,
 * Alexis
 *  Thread Starter [geistesblitzer](https://wordpress.org/support/users/geistesblitzer/)
 * (@geistesblitzer)
 * [3 years ago](https://wordpress.org/support/topic/adding-a-custom-contact-attribute/#post-16779965)
 * Hi [@alexisbienayme](https://wordpress.org/support/users/alexisbienayme/),
 * thanks for the response. Any chance I could any kind of additional information
   to specific contacts then? Be it a custom attribute, a custom value, adding to
   specific list, simply by setting a flag … anything?
 * Daniel
 *  Plugin Support [alexisbienayme](https://wordpress.org/support/users/alexisbienayme/)
 * (@alexisbienayme)
 * [3 years ago](https://wordpress.org/support/topic/adding-a-custom-contact-attribute/#post-16781983)
 * Hello Daniel,
 * The solution I see at the moment would be to use the API, and therefore the endpoint
   which consists of adding a contact to a list, or updating it.
 * Don’t hesitate to consult this documentation here : [https://developers.brevo.com/reference/getting-started-1](https://developers.brevo.com/reference/getting-started-1)
 * I remain at your disposal for any information and wish you a very good day.
 * Best Regards,
 * Alexis

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Adding a custom contact attribute’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-sendinblue-newsletter-subscription/assets/icon-
   256x256.png?rev=2993192)
 * [Brevo for WooCommerce](https://wordpress.org/plugins/woocommerce-sendinblue-newsletter-subscription/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-sendinblue-newsletter-subscription/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-sendinblue-newsletter-subscription/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-sendinblue-newsletter-subscription/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-sendinblue-newsletter-subscription/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-sendinblue-newsletter-subscription/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [alexisbienayme](https://wordpress.org/support/users/alexisbienayme/)
 * Last activity: [3 years ago](https://wordpress.org/support/topic/adding-a-custom-contact-attribute/#post-16781983)
 * Status: resolved