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

Not able to create product. #173

Open
mahesh-rajawat opened this issue Nov 29, 2019 · 1 comment
Open

Not able to create product. #173

mahesh-rajawat opened this issue Nov 29, 2019 · 1 comment
Labels

Comments

@mahesh-rajawat
Copy link

I am trying to create a product in akeneo using the below params.

$this->client->getProductApi()->create( 'wk_24_mb01', [ 'enabled' => true, 'family' => 'bag', 'categories' => [], 'groups' => [], 'parent'=> null, 'values' => [ 'product_name' => [ [ 'data' => 'top', 'locale' => 'en_US', 'scope' => null, ] ], 'price' => [ [ 'data' => [ [ 'amount' => '15.5', 'currency' => 'EUR', ], [ 'amount' => '15', 'currency' => 'USD', ], ], 'locale' => null, 'scope' => null, ], ] ] ] );

It returning validation failed error.
Please suggest me.

Thanks

@JAN-NV
Copy link

JAN-NV commented Jan 20, 2020

@maheshWebkul721 check that your params key names are correct, I made the stupid assumption they were all standard..

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

No branches or pull requests

3 participants