Документация для разработчиков
Темная тема

catalog.product.add

Scope: catalog Права на выполнение: для всех

catalog.product.add(fields)

Метод добавляет товар торгового каталога.

Если операция успешна, возвращается ресурс товара торгового каталога в теле ответа.

Параметры

ПараметрТип Описание
fieldsobject Поля, соответствующие доступному списку полей fields.

Примеры

BX24.callMethod(
	'catalog.product.add', 
	{
		"fields":{
			"active":"Y",
			"bundle":"N",
			"canBuyZero":"Y",
			"code":"t-shirt",
			"createdBy":"1",
			"dateActiveFrom":"2019-06-04T19:36:00+03:00",
			"dateActiveTo":"2019-06-05T19:57:00+03:00",
			"dateCreate":"2018-10-22T11:31:15+03:00",
			"detailText":"\u041e\u0442\u043b\u0438\u0447\u043d\u0430\u044f \u0444\u0443\u0442\u0431\u043e\u043b\u043a\u0430",
			"detailTextType":"html",
			"iblockId":"13",
			"iblockSectionId":"11",
			"length":"123",
			"measure":"5",
			"modifiedBy":"1",
			"name":"\u0424\u0443\u0442\u0431\u043e\u043b\u043a\u0430 \u0416\u0435\u043d\u0441\u043a\u0438\u0439 \u0421\u043e\u0431\u043b\u0430\u0437\u043d",
			"previewText":"previewText",
			"previewTextType":"text",
			"purchasingCurrency":"RUB",
			"purchasingPrice":"1000",
			"quantity":"100",
			"quantityReserved":"1",
			"quantityTrace":"N",
			"sort":"340",
			"subscribe":"Y",
			"vatId":"1",
			"vatIncluded":"Y",
			"weight":"10",
			"width":"20",
			"xmlId":"bx123123",
			"property91":{
				"value":"\u0441\u0442\u0440\u043e\u043a\u0430"
			},
			"property92":[
				{"value":"\u0441\u0442\u0440\u043e\u043a\u0430_\u043c1"},
				{"value":"\u0441\u0442\u0440\u043e\u043a\u0430_\u043c2"}
			],
			"property93":{"value":"\u0447\u0438\u0441\u043b\u043e"},
			"property94":[
				{"value":"\u0447\u0438\u0441\u043b\u043e1"},
				{"value":"\u0447\u0438\u0441\u043b\u043e2"}
			],
			"property95":{"value":"63"},
			"property96":[
				{"value":"68"},{"value":"69"}
			],
			"property99":{"value":"25"},
			"property100":[
				{"value":"13"},
				{"value":"12"}
			],
			"property101":{"value":"4"},
			"property102":[
				{"value":"2"}
			],
			"property107":{"value":"2019-05-31T03:00:00+03:00"},
			"property108":[
				{"value":"2019-06-01T03:00:00+03:00"},
				{"value":"2019-06-02T03:00:00+03:00"}
			],
			"property109":{"value":"2019-05-31T16:10:00+03:00"},
			"property110":[
				{"value":"2019-06-01T16:10:00+03:00"},
				{"value":"2019-06-02T17:10:00+03:00"}
			],
			"property111":{"value":"1|RUB"},
			"property112":[
				{"value":"1|RUB"},
				{"value":"2|USD"}
			],
			"property113":{"value":"55.778579844603,37.66815246582"},
			"property114":[
				{"value":"55.746059279807,37.576141967773"},
				{"value":"55.705757975708,37.69012512207"}
			],
			"property115":{"value":"55.806334255977,37.591355457306"},
			"property116":[
				{"value":"55.817909211916,37.653153553009"},
				{"value":"55.789351426368,37.499344959259"}
			],
			"property121":{"value":"1"},
			"property122":[
				{"value":"1"}
			],
			"property126":{"value":"12"},
			"property129":{"value":"C_11"},
			"property130":[
				{"value":"C_10"},
				{"value":"CO_2"}
			],
			"property131":{"value":"13"},
			"property132":[
				{"value":"13"},
				{"value":"12"}
			],
			"property137":{"value":"1"},
			"property138":[
				{"value":"1"},
				{"value":"2"}
			],
			"property103":{"value":{"text":"\u0442\u0435\u043a\u0441\u0442","type":"HTML"}},
			"property104":{
				"1":{"value":{"text":"\u0442\u0435\u043a\u0441\u04421","type":"HTML"}},
				"2":{"value":{"text":"\u0442\u0435\u043a\u0441\u04422","type":"HTML"}}
			},
			"height":"1",
			"property98":[
				{"value":{
					"fileData":[
						"previewSmall.png",
						"iVBORw0KGgoAAAANSUhEUgAAAEUAAABFCAYAAAAcjSspAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAqZSURBVHhe7VxbbBxXGf7W6\/U6vjeOYztJkzSOG3KRk4CKUFEV1AdeEChcVO4XNVJBFUgVlMtDIkDlAQRI3MVDVakVKioUBA9I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EUMumOEhWWflY0k9yJaFMYAO1NIwQoay530xPpE1ysb3RKoMeroaib3WUQ1lSBO0e1DpD3Vf86wwRomnzpj5XUAYVSRH29jt2Za1qjDWsgyQkyheiIpEi7BMxPK41jbGE6Ps CuejINT7hGH9m2EhWP8OYQhW 7dNtQFqN6dMHMQmRVj\/XnIZrH DPQTq1PpvHYRAta3\/KkYZmN9PITlaU7YZt HFHnUaQJTpkNsrHdRDEaH7le5rf8 a v2UMKz\/0k4VsFNBHkyaIC9mX WsDID\/AZreGI9CxIpzAAAAAElFTkSuQmCC\n"
					]}
				}
			]
		}
	},
	function(result)
	{
		if(result.error())
			console.error(result.error().ex);
		else
			console.log(result.data());
	}
);
© «Битрикс», 2001-2024, «1С-Битрикс», 2024