Title: EAN through API
Last modified: April 18, 2023

---

# EAN through API

 *  [brainwavezzz](https://wordpress.org/support/users/brainwavezzz/)
 * (@brainwavezzz)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/ean-through-api/)
 * Hi :).
   I’m creating my new products through the REST API, is it possible to the
   EAN code – what are the API guidelines for the plug-in?
 * Can I just include “EAN”?
 * Simplified code for creating my articles through REST;
 *     ```wp-block-code
       new_product = {
         "sku": "test_1",
         "name": titel,
         "regular_price": salesprice,
         "description": omschrijving,
       }
       ```
   
 * Thank you & Kind Regards,
   Jonas Rossaert

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

 *  Thread Starter [brainwavezzz](https://wordpress.org/support/users/brainwavezzz/)
 * (@brainwavezzz)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/ean-through-api/#post-16668568)
 * Installed the plug in, requested a product through REST; (get).
   Looked at code&
   EAN is added as a meta_data field by the plugin.
 * I’ve accesed the meta_data field with this code;
 *     ```wp-block-code
       "meta_data": [{
           "key": "_alg_ean",
           "value": "insertEANhere"
         }]
       ```
   
    -  This reply was modified 3 years, 1 month ago by [brainwavezzz](https://wordpress.org/support/users/brainwavezzz/).
 *  [Moshtafizur](https://wordpress.org/support/users/moshtafizur01/)
 * (@moshtafizur01)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/ean-through-api/#post-16670262)
 * HI [@brainwavezzz](https://wordpress.org/support/users/brainwavezzz/),
 * Thank you for reaching out to us regarding the EAN for WooCommerce plugin. I 
   have escalated your question to our development team for clarification on any
   API guidelines or best practices for using the plugin with REST API. They will
   get back to you as soon as possible with any additional information or insights.
 * Thank you for your patience and cooperation in this matter.
 * Kind regards,
   Moshtafizur

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

The topic ‘EAN through API’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/ean-for-woocommerce_dedeed.svg)
 * [EAN Barcode Generator for WooCommerce: UPC, ISBN & GTIN Inventory](https://wordpress.org/plugins/ean-for-woocommerce/)
 * [Support Threads](https://wordpress.org/support/plugin/ean-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/ean-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ean-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ean-for-woocommerce/reviews/)

## Tags

 * [API REST](https://wordpress.org/support/topic-tag/api-rest/)

 * 2 replies
 * 2 participants
 * Last reply from: [Moshtafizur](https://wordpress.org/support/users/moshtafizur01/)
 * Last activity: [3 years, 1 month ago](https://wordpress.org/support/topic/ean-through-api/#post-16670262)
 * Status: not resolved