Title: EAN code not appearing API Response
Last modified: February 10, 2022

---

# EAN code not appearing API Response

 *  Resolved [raeevy](https://wordpress.org/support/users/raeevy/)
 * (@raeevy)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/ean-code-not-appearing-api-response/)
 * I have the API option enabled in the admin side but still the EAN does not appear
   in the API response neither on the order details or order list i.e.
    wp-json/
   wc/v1/orders wp-json/wc/v3/orders/XXXX
 * In the admin side, I can see the code printed onto the invoice but API response
   is not working.
 * Can you please help in this matter.

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

 *  Plugin Author [Algoritmika](https://wordpress.org/support/users/algoritmika/)
 * (@algoritmika)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/ean-code-not-appearing-api-response/#post-15350717)
 * Hi [@raeevy](https://wordpress.org/support/users/raeevy/),
 * Could you please check if “Orders > Enable (Add EAN to new order items meta)”
   checkbox is enabled as well in “WooCommerce > Settings > EAN > General” (i.e.
   in addition to “Orders > REST API” checkbox)? Also – the order, you are trying
   to get EAN from, must be created after you’ve enabled the “Orders > Enable” checkbox.
 * Please let me know if that helps.
 *  Thread Starter [raeevy](https://wordpress.org/support/users/raeevy/)
 * (@raeevy)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/ean-code-not-appearing-api-response/#post-15357518)
 * Thanks for the quick response.
 * All the options are enabled. I think the only thing I have been missing is to
   check on new orders. Is there any way we can also produce this on existing orders?
 * Also is there a possibility of having base64 code in the API response ? We need
   to print labels. If not is the existing format, can you help us customize it?
 *  Plugin Author [Algoritmika](https://wordpress.org/support/users/algoritmika/)
 * (@algoritmika)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/ean-code-not-appearing-api-response/#post-15360537)
 * Hi [@raeevy](https://wordpress.org/support/users/raeevy/),
 * > Is there any way we can also produce this on existing orders?
 * Yes, you need to run our “Order Tools > Add > Add EANs to all order items” tool(
   it’s in “WooCommerce > Settings > EAN > Tools”).
 * > Also is there a possibility of having base64 code in the API response ?
 * Do you mean barcodes? If that’s the case, then, unfortunately, no – currently
   it’s only EAN. However, this seems like a useful feature, and shouldn’t be too
   complicated to implement. Let me try to add it to the plugin. I will get back
   to you about this asap. P.S. As barcodes are our Premium feature, this will also
   go to the Premium version of the plugin, hope that’s ok.
 *  Plugin Author [Algoritmika](https://wordpress.org/support/users/algoritmika/)
 * (@algoritmika)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/ean-code-not-appearing-api-response/#post-15368300)
 * Hi [@raeevy](https://wordpress.org/support/users/raeevy/),
 * We’ve just released a new plugin version (v3.2.0), where I’ve made a few improvements.
 * > Is there any way we can also produce this on existing orders?
 * Now there is no need to add EAN to order items meta for REST API. If our plugin
   won’t find EAN in order item meta, it will try to get EAN from the product directly.
 * > Also is there a possibility of having base64 code in the API response ?
 * I’ve added “REST API > Products” and “REST API > Orders” options to “WooCommerce
   > Settings > EAN > (2D) Barcodes”. So now you can get barcodes in base64 format.
   P.S. As mentioned, these are Pro features, unfortunately. And as wp.org forum
   rules forbid us from providing support for Pro plugins here, please contact us
   via our website, if you have questions/comments regarding this one.
 * Please give it a try and let me know what you think.
 *  Thread Starter [raeevy](https://wordpress.org/support/users/raeevy/)
 * (@raeevy)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/ean-code-not-appearing-api-response/#post-15376026)
 * Thats great news. I have just submitted a message on your website. Lets connect!
 *  Plugin Author [Algoritmika](https://wordpress.org/support/users/algoritmika/)
 * (@algoritmika)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/ean-code-not-appearing-api-response/#post-15380339)
 * Hi [@raeevy](https://wordpress.org/support/users/raeevy/),
 * Just wanted to confirm – we’ve got your message regarding the Pro version via
   our website.
 *  Plugin Author [Algoritmika](https://wordpress.org/support/users/algoritmika/)
 * (@algoritmika)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/ean-code-not-appearing-api-response/#post-15424548)
 * I’m going to mark this thread as “resolved” for now, hope that’s ok. Please let
   me know if there are still any questions/issues.

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

The topic ‘EAN code not appearing API Response’ 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/)

 * 7 replies
 * 2 participants
 * Last reply from: [Algoritmika](https://wordpress.org/support/users/algoritmika/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/ean-code-not-appearing-api-response/#post-15424548)
 * Status: resolved