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
- The topic ‘Changes in API response?’ is closed to new replies.