You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working with the API trying to get orders, but i'm getting an error trying to parse the order Object from Tiendanube with my Order structure. Searching deeply, i found that the categories object has a subcategories property, but this property is not described anywhere in the api docs, and in the examples just shows an empty array, so looking with postman into the order object, i see a subcategories structure inside coupons categories. I remember that the categories subcategories has only ids of the categories related, and also the docs says the same, but the data returned aren't ids, they're the whole categories object.
So in resume, coupons> categories > subcategories returns the category object in subcategories, but if i request for categories only, it returns the ids
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm working with the API trying to get orders, but i'm getting an error trying to parse the order Object from Tiendanube with my Order structure. Searching deeply, i found that the categories object has a subcategories property, but this property is not described anywhere in the api docs, and in the examples just shows an empty array, so looking with postman into the order object, i see a subcategories structure inside coupons categories. I remember that the categories subcategories has only ids of the categories related, and also the docs says the same, but the data returned aren't ids, they're the whole categories object.
So in resume, coupons> categories > subcategories returns the category object in subcategories, but if i request for categories only, it returns the ids
Beta Was this translation helpful? Give feedback.
All reactions