TeleportService

<back to all web services

Catalog_AddItems

Requires Authentication
The following routes are available for this service:
POST/Catalog_AddItems
Catalog_AddItems Parameters:
NameParameterData TypeRequiredDescription
CategoriesbodyList<CatalogItemCategory>No
ItemsbodyList<CatalogItem>No
LoadModebodyLoadModeNo
CatalogItemCategory Parameters:
NameParameterData TypeRequiredDescription
uidformstringNo
nameformstringNo
parent_uidformstringNo
sortnumformstringNo
CatalogItem Parameters:
NameParameterData TypeRequiredDescription
uidformstringNo
nameformstringNo
descriptionformstringNo
codeformstringNo
articleformstringNo
unitformstringNo
priceformdecimalNo
action_priceformdecimalNo
retail_priceformdecimalNo
retail_action_priceformdecimalNo
category_uidformstringNo
currency_idformstringNo
item_urlformstringNo
barcodeformstringNo
sortnumformstringNo
actionformboolNo
novetlyformboolNo
popularformboolNo
shop_idformstringNo
repricerformboolNo
PicturesformList<CatalogItemPictures>No
PropertiesformList<CatalogItemProperty>No
аdditional_propertiesformDictionary<string, string>No
recommendationsformList<string>No
componentsformList<string>No
not_activeformboolNo
trademarkformstringNo
in_way_stockformdecimalNo
statusformstringNo
heightformintNo
widthformintNo
depthformintNo
item_setformList<ItemSet>No
stock_fboformList<StockFbo>No
price_marketplacesformList<PriceMarketplaces>No
item_matchesformList<ItemMatches>No
CatalogItemPictures Parameters:
NameParameterData TypeRequiredDescription
pictureformstringNo
orderformintNo
CatalogItemProperty Parameters:
NameParameterData TypeRequiredDescription
property_nameformstringNo
property_valueformstringNo
has_filterformboolNo
filter_typeformstringNo
category_uidformstringNo
sortnumformstringNo
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
LoadMode Enum:
begin
load
endWithCleaning
endWithUpdate

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_AddItems HTTP/1.1 
Host: wbs.e-teleport.ru 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<Catalog_AddItems xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TeleportService.ServiceModel">
  <Categories>
    <CatalogItemCategory>
      <name>String</name>
      <parent_uid>String</parent_uid>
      <sortnum>String</sortnum>
      <uid>String</uid>
    </CatalogItemCategory>
  </Categories>
  <Items>
    <CatalogItem>
      <Pictures>
        <CatalogItemPictures>
          <order>0</order>
          <picture>String</picture>
        </CatalogItemPictures>
      </Pictures>
      <Properties>
        <CatalogItemProperty>
          <category_uid>String</category_uid>
          <filter_type>String</filter_type>
          <has_filter>false</has_filter>
          <property_name>String</property_name>
          <property_value>String</property_value>
          <sortnum>String</sortnum>
        </CatalogItemProperty>
      </Properties>
      <action>false</action>
      <action_price>0</action_price>
      <article>String</article>
      <barcode>String</barcode>
      <category_uid>String</category_uid>
      <code>String</code>
      <components xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>String</d4p1:string>
      </components>
      <currency_id>String</currency_id>
      <depth>0</depth>
      <description>String</description>
      <height>0</height>
      <in_way_stock>0</in_way_stock>
      <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>
      <item_url>String</item_url>
      <name>String</name>
      <not_active>false</not_active>
      <novetly>false</novetly>
      <popular>false</popular>
      <price>0</price>
      <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>
      <recommendations xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>String</d4p1:string>
      </recommendations>
      <repricer>false</repricer>
      <retail_action_price>0</retail_action_price>
      <retail_price>0</retail_price>
      <shop_id>String</shop_id>
      <sortnum>String</sortnum>
      <status>String</status>
      <stock_fbo>
        <StockFbo>
          <marketplace>String</marketplace>
          <shop>String</shop>
          <shop_id>String</shop_id>
          <stock>0</stock>
        </StockFbo>
      </stock_fbo>
      <trademark>String</trademark>
      <uid>String</uid>
      <unit>String</unit>
      <width>0</width>
      <аdditional_properties xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfstringstring>
          <d4p1:Key>String</d4p1:Key>
          <d4p1:Value>String</d4p1:Value>
        </d4p1:KeyValueOfstringstring>
      </аdditional_properties>
    </CatalogItem>
  </Items>
  <LoadMode>begin</LoadMode>
</Catalog_AddItems>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />