The 5th annual nopCommerce conference will take place in India on the 10th-11th of October. Please find more about this event here

How to Post new product with Sku using Nop API 4.0?

Posted: August 06, 2018 at 8:17 PM Quote #210199
Hello,

I am using nopCommerce 4.0 with source and API 4.0.

I can add new products to the database using a API Json string that looks like this:
{"product":{"name":"Test product 3 from Chinavasion","short_description":"TWIN ALL TERRAIN FUN"}}


For some reason I am unable to add a new product to the database using this Json string:
{"product":{"name":"Test product 3 from Chinavasion","short_description":"TWIN ALL TERRAIN FUN","Sku":"zzzzzzzzzz"}}


It adds the product to the database, but the Sku is not populated.

Does anyone know why I can't Post a product containing an Sku?

Thanks,
Tony
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: August 07, 2018 at 8:55 AM Quote #210253
Another dumb mistake.

The "Sku" should be "sku"(lowercase "s")
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Premium support services
  • Dedicated premium support services provided by core developers are intended for persons who run mission critical websites, work on projects with tight deadlines, or want to get dedicated support.
Professional services
  • Want to open a new store? Want to take your store to the next level? Need a custom extension? We can customize nopCommerce to fit your store perfectly. Request a quote to get started.