TeleportService

<back to all web services

Catalog_UpdateItems

Requires Authentication
The following routes are available for this service:
POST/Catalog_UpdateItems
Catalog_UpdateItems Parameters:
NameParameterData TypeRequiredDescription
ItemsbodyList<CatalogUpdateItemRequestModel>No
CatalogUpdateItemRequestModel Parameters:
NameParameterData TypeRequiredDescription
uidformstringNo
item_setformList<ItemSet>No
stock_fboformList<StockFbo>No
price_marketplacesformList<PriceMarketplaces>No
item_matchesformList<ItemMatches>No
repricerformbool?No
ItemSet Parameters:
NameParameterData TypeRequiredDescription
uidformstringNo
quantityformdecimalNo
StockFbo Parameters:
NameParameterData TypeRequiredDescription
shopformstringNo
shop_idformstringNo
marketplaceformstringNo
stockformdecimalNo
PriceMarketplaces Parameters:
NameParameterData TypeRequiredDescription
shopformstringNo
shop_idformstringNo
marketplaceformstringNo
retail_priceformdecimalNo
retail_action_priceformdecimalNo
ItemMatches Parameters:
NameParameterData TypeRequiredDescription
shopformstringNo
shop_idformstringNo
marketplaceformstringNo
market_idformstringNo
ErrCodeResponse Parameters:
NameParameterData TypeRequiredDescription
errCodeformintNo
ResponseStatusformResponseStatusNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

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/xml
Content-Type: application/xml
Content-Length: length

<Catalog_UpdateItems xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TeleportService.ServiceModel">
  <Items>
    <CatalogUpdateItemRequestModel>
      <item_matches>
        <ItemMatches>
          <market_id>String</market_id>
          <marketplace>String</marketplace>
          <shop>String</shop>
          <shop_id>String</shop_id>
        </ItemMatches>
      </item_matches>
      <item_set>
        <ItemSet>
          <quantity>0</quantity>
          <uid>String</uid>
        </ItemSet>
      </item_set>
      <price_marketplaces>
        <PriceMarketplaces>
          <marketplace>String</marketplace>
          <retail_action_price>0</retail_action_price>
          <retail_price>0</retail_price>
          <shop>String</shop>
          <shop_id>String</shop_id>
        </PriceMarketplaces>
      </price_marketplaces>
      <repricer>false</repricer>
      <stock_fbo>
        <StockFbo>
          <marketplace>String</marketplace>
          <shop>String</shop>
          <shop_id>String</shop_id>
          <stock>0</stock>
        </StockFbo>
      </stock_fbo>
      <uid>String</uid>
    </CatalogUpdateItemRequestModel>
  </Items>
</Catalog_UpdateItems>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ErrCodeResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TeleportService.ServiceModel">
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
  <errCode>0</errCode>
</ErrCodeResponse>