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 .jsv suffix or ?format=jsv

HTTP + JSV

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: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	Categories: 
	[
		{
			uid: String,
			name: String,
			parent_uid: String,
			sortnum: String
		}
	],
	Items: 
	[
		{
			uid: String,
			name: String,
			description: String,
			code: String,
			article: String,
			unit: String,
			price: 0,
			action_price: 0,
			retail_price: 0,
			retail_action_price: 0,
			category_uid: String,
			currency_id: String,
			item_url: String,
			barcode: String,
			sortnum: String,
			action: False,
			novetly: False,
			popular: False,
			shop_id: String,
			Pictures: 
			[
				{
					picture: String
				}
			],
			Properties: 
			[
				{
					property_name: String,
					property_value: String,
					has_filter: False,
					filter_type: String,
					category_uid: String,
					sortnum: String
				}
			],
			Ğ°dditional_properties: 
			{
				String: String
			},
			recommendations: 
			[
				String
			],
			components: 
			[
				String
			],
			not_active: False,
			trademark: String,
			in_way_stock: 0,
			status: String,
			height: 0,
			width: 0,
			depth: 0
		}
	],
	LoadMode: begin
}