Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impossible to add meta_data to line_items #332

Open
boussarilatif opened this issue Nov 2, 2022 · 0 comments
Open

Impossible to add meta_data to line_items #332

boussarilatif opened this issue Nov 2, 2022 · 0 comments

Comments

@boussarilatif
Copy link

I am trying to add additional attributes to the line_items before a purchase.
But after the request is done I don't have the information sent in the meta_data attribute
I use woocommerce rest api

//EXAMPLE OF INPUT
{ ...ordersAttributes, line_items: [{ product_id: 12, meta_data: [ { key: 'Size', value: 121 } ] }] }

//EXAMPLE OF OUTPUT
{ ...ordersAttributes, line_items: [{ product_id: 12, meta_data: [] }] }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant