Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Api Put Not Working Rate Topic   - - - - -

 

Posted 18 July 2015 - 08:32 AM #1

I'm trying to update a product stock amount via the API but it's not working.

The JSON I'm using is {"amount":"77"}

and the response is:

{StatusCode: 200, ReasonPhrase: 'OK', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
{
Connection: keep-alive
Pragma: no-cache
Cache-Control: no-store, must-revalidate, no-cache, post-check=0, pre-check=0
Date: Sat, 18 Jul 2015 08:25:13 GMT
Server: nginx
Content-Length: 17
Content-Type: application/json
Expires: -1
Last-Modified: Sat, 18 Jul 2015 08:25:13 GMT
}}

But the stock is still remains at zero.

Have I missed something?

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19794 posts

Posted 20 July 2015 - 08:41 AM #2

Our specialists can examine this issue on your server. If you are interested, please PM me

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 

Posted 20 July 2015 - 09:43 AM #3

Are you saying it should be working?

I'm getting a response of {"product_id":36} after the PUT, which looks correct but nothing is updated.