Title: Changes in API response?
Last modified: July 25, 2022

---

# Changes in API response?

 *  Resolved [Juuso Turunen](https://wordpress.org/support/users/juusoturunen/)
 * (@juusoturunen)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/changes-in-api-response/)
 * Hello!
 * I made an update from 1.4.9 to 1.5.0 and I noticed some changes in WooCommerce
   API response regarding your plugin. I have an app that uses WC API to manage 
   orders.
 * Below are examples from WC API response. For context: I have a variable product(
   and now I have selected “Iso”) and two checkboxes created by your plugin (now
   checked “Sokerilla”).
 * The old response:
 *     ```
       "meta_data":[
                      {
                         "id":34482,
                         "key":"pa_koko",
                         "value":"iso",
                         "display_key":"Valitse koko",
                         "display_value":"Iso"
                      },
                      {
                         "id":34483,
                         "key":" ",
                         "value":"Sokerilla",
                         "display_key":"",
                         "display_value":"Sokerilla"
                      }
                   ]
       ```
   
 * The new response:
 *     ```
       "meta_data":[
                      {
                         "id":34504,
                         "key":"pa_koko",
                         "value":"iso",
                         "display_key":"Valitse koko",
                         "display_value":"Iso"
                      },
                      {
                         "id":34505,
                         "key":" ",
                         "value":"Sokerilla",
                         "display_key":"",
                         "display_value":"Sokerilla"
                      },
                      {
                         "id":34506,
                         "key":"_wapf_meta",
                         "value":{
                            "60e6940b92fc1":{
                               "label":" ",
                               "value":"Sokerilla",
                               "raw":[
                                  "8h9g5"
                               ]
                            }
                         },
                         "display_key":"_wapf_meta",
                         "display_value":{
                            "60e6940b92fc1":{
                               "label":" ",
                               "value":"Sokerilla",
                               "raw":[
                                  "8h9g5"
                               ]
                            }
                         }
                      }
                   ]
       ```
   
 * Basically, this change is not a problem. I like more the old one because then
   I can get all metadata dynamically by just getting all display_values. Anyway,
   I need to know was this change made purposely. If it is, then I need to make 
   changes to my app.
    I ask this because changelog doesn’t have any mention of 
   this.
 * Thanks for your great plugin! I appreciate your work!
 * Kindly,
    Juuso
    -  This topic was modified 3 years, 10 months ago by [Juuso Turunen](https://wordpress.org/support/users/juusoturunen/).

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

 *  Plugin Author [Wombat Plugins](https://wordpress.org/support/users/maartenbelmans/)
 * (@maartenbelmans)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/changes-in-api-response/#post-15858752)
 * Hi [@juusoturunen](https://wordpress.org/support/users/juusoturunen/)
 * The order data now contains some metadata our plugin uses (with key “_wapf_meta”)
   which is what you’re seeing added. The other data (the fields the customer filled
   out) is still there as it has always been.
 *  Thread Starter [Juuso Turunen](https://wordpress.org/support/users/juusoturunen/)
 * (@juusoturunen)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/changes-in-api-response/#post-15861511)
 * Hello!
 * Thanks for your reply and answer! 🙂 I’ll update my app.
 * Thank you for keeping updating and supporting this plugin.
 * – Juuso
 *  Plugin Author [Wombat Plugins](https://wordpress.org/support/users/maartenbelmans/)
 * (@maartenbelmans)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/changes-in-api-response/#post-15862227)
 * Glad you’re happy! Please consider leaving us [a quick rating here](https://wordpress.org/support/plugin/advanced-product-fields-for-woocommerce/reviews/#new-post)
   if you enjoy our free work & support. That’s the only way we can grow :).
 * Thanks!
    Maarten

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

The topic ‘Changes in API response?’ is closed to new replies.

 * ![](https://ps.w.org/advanced-product-fields-for-woocommerce/assets/icon-256x256.
   gif?rev=3347990)
 * [Advanced Product Fields (Product Addons) for WooCommerce](https://wordpress.org/plugins/advanced-product-fields-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-product-fields-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-product-fields-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-product-fields-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-product-fields-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-product-fields-for-woocommerce/reviews/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [Wombat Plugins](https://wordpress.org/support/users/maartenbelmans/)
 * Last activity: [3 years, 10 months ago](https://wordpress.org/support/topic/changes-in-api-response/#post-15862227)
 * Status: resolved