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
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
CatalogItemPictures Parameters:
NameParameterData TypeRequiredDescription
pictureformstringNo
CatalogItemProperty Parameters:
NameParameterData TypeRequiredDescription
property_nameformstringNo
property_valueformstringNo
has_filterformboolNo
filter_typeformstringNo
category_uidformstringNo
sortnumformstringNo
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>
          <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_url>String</item_url>
      <name>String</name>
      <not_active>false</not_active>
      <novetly>false</novetly>
      <popular>false</popular>
      <price>0</price>
      <recommendations xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>String</d4p1:string>
      </recommendations>
      <retail_action_price>0</retail_action_price>
      <retail_price>0</retail_price>
      <shop_id>String</shop_id>
      <sortnum>String</sortnum>
      <status>String</status>
      <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>