POST api/goods/GoodPriceRemain
Добавление или обновление остатков и цен по товару
Request Information
URI Parameters
None.
Body Parameters
GoodPriceRemainRequestName | Description | Type | Additional information |
---|---|---|---|
Guid |
Гуид товара, по которому необходимо внести изменения или добавить информацию |
string |
None. |
GoodId |
Идентификатор товара, по которому нужно внести изменения или добавить информацию |
integer |
None. |
CatalogId |
Идентификатор каталога, по товару которого необходимо внести изменения или добавить информацию |
integer |
None. |
StorageName |
Наименование склада, на котором находится товар, по в котором произошли изменения |
string |
None. |
Price |
Цена товара |
decimal number |
None. |
Remain |
Остаток товара |
decimal number |
None. |
Operator |
Идентификатор оператора программы лояльности |
integer |
None. |
Token |
Токен пользователя, который инициирует данный запрос |
integer |
None. |
SiteCode |
Уникальный код виджета по продаже подарочных сертификатов, который инициирует запрос |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "Guid": "sample string 1", "GoodId": 1, "CatalogId": 1, "StorageName": "sample string 2", "Price": 1.0, "Remain": 1.0, "Operator": 1, "Token": 1, "SiteCode": "sample string 3" }
application/xml, text/xml
Sample:
<GoodPriceRemainRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Request.GoodsRequest"> <Operator xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</Operator> <SiteCode xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">sample string 3</SiteCode> <Token xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</Token> <CatalogId>1</CatalogId> <GoodId>1</GoodId> <Guid>sample string 1</Guid> <Price>1</Price> <Remain>1</Remain> <StorageName>sample string 2</StorageName> </GoodPriceRemainRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
GoodPriceRemainResponseName | Description | Type | Additional information |
---|---|---|---|
ErrorCode |
Код ошибки |
integer |
None. |
Message |
Сообщение об ошибке |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "ErrorCode": 1, "Message": "sample string 2" }
application/xml, text/xml
Sample:
<GoodPriceRemainResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Response.GoodsResponse"> <ErrorCode xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</ErrorCode> <Message xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">sample string 2</Message> </GoodPriceRemainResponse>