To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
HTTP + JSON
The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
POST /Catalog_UpdateItems HTTP/1.1
Host: wbs.e-teleport.ru
Accept: application/json
Content-Type: application/json
Content-Length: length
{"Items":[{"uid":"String","item_set":[{"uid":"String","quantity":0}],"stock_fbo":[{"shop_id":"String","marketplace":"String","stock":0}],"price_marketplaces":[{"shop_id":"String","marketplace":"String","retail_price":0,"retail_action_price":0}],"item_matches":[{"shop_id":"String","marketplace":"String","market_id":"String"}]}]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"errCode":0,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}