Commit a294df1f authored by Kulya's avatar Kulya 😊

Update README.md

parent 453db652
......@@ -17,7 +17,7 @@
### catalog.product.add
`Method` : POST
`URL` : `https://triada.sedo.uz/rest/2/umd00zwy1noiupw4/catalog.product.add.json`
`URL` : `https://triada.sedo.uz/rest/1/w5wcseycj8jlzv5l/catalog.product.add.json`
`Params` :
```js
......@@ -25,7 +25,7 @@
"fields": {
"active":"Y",
"canBuyZero":"Y",
"code":"t-shirt", // короткий код товара (только на латынице и уникальный)
"code":"t-shirt_test1", // короткий код товара (только на латынице и уникальный)
"createdBy":"1",
"dateActiveFrom":"2019-06-04T19:36:00+03:00",
"dateActiveTo":"2019-06-05T19:57:00+03:00",
......@@ -46,19 +46,59 @@
}
```
### Response Success:
`3456` - ID созданного товара этим запросом
`21744` - ID созданного товара этим запросом, для дальнейщих rest методов
```js
{
"result": 3456,
"time": {
"start": 1714725919.108458,
"finish": 1714725919.306497,
"duration": 0.19803905487060547,
"processing": 0.1816730499267578,
"date_start": "2024-05-03T13:45:19+05:00",
"date_finish": "2024-05-03T13:45:19+05:00"
}
"result": {
"element": {
"active": "Y",
"available": "Y",
"bundle": "N",
"canBuyZero": "Y",
"code": "t-shirtss",
"createdBy": 1,
"dateActiveFrom": "2019-06-04T21:36:00+05:00",
"dateActiveTo": "2019-06-05T21:57:00+05:00",
"dateCreate": "2018-10-22T13:31:15+05:00",
"detailPicture": null,
"detailText": "Подробное описание товара 1",
"detailTextType": "html",
"height": null,
"iblockId": 13,
"iblockSectionId": null,
"id": 21744,
"length": null,
"measure": 5,
"modifiedBy": 1,
"name": "Наименование товара 1",
"previewPicture": null,
"previewText": "Короткое описание товара 1",
"previewTextType": "text",
"purchasingCurrency": "UZS",
"purchasingPrice": "1000.00",
"quantity": 100,
"quantityReserved": null,
"quantityTrace": "Y",
"sort": 340,
"subscribe": "Y",
"timestampX": "2024-06-18T14:11:40+05:00",
"type": 1,
"vatId": null,
"vatIncluded": "N",
"weight": null,
"width": null,
"xmlId": "bx123123"
}
},
"time": {
"start": 1718701900.168989,
"finish": 1718701900.290603,
"duration": 0.12161397933959961,
"processing": 0.09767913818359375,
"date_start": "2024-06-18T14:11:40+05:00",
"date_finish": "2024-06-18T14:11:40+05:00"
}
}
```
......@@ -78,22 +118,35 @@
"catalogGroupId": 1, // ID цены в Битрикс24, 1-по умолчанию
"currency": "UZS",
"price": 2000,
"productId": 21742 // ID товара созданного методом выше
"productId": 21744 // ID товара созданного методом выше
}
}
```
`Response Success`:
```js
{
"result": 3456,
"time": {
"start": 1714725919.108458,
"finish": 1714725919.306497,
"duration": 0.19803905487060547,
"processing": 0.1816730499267578,
"date_start": "2024-05-03T13:45:19+05:00",
"date_finish": "2024-05-03T13:45:19+05:00"
}
"result": {
"price": {
"catalogGroupId": 1,
"currency": "UZS",
"extraId": null,
"id": 21541,
"price": 2000,
"priceScale": 2000,
"productId": 21744,
"quantityFrom": null,
"quantityTo": null,
"timestampX": "2024-06-18T14:13:43+05:00"
}
},
"time": {
"start": 1718702023.217095,
"finish": 1718702023.402514,
"duration": 0.18541908264160156,
"processing": 0.16370487213134766,
"date_start": "2024-06-18T14:13:43+05:00",
"date_finish": "2024-06-18T14:13:43+05:00"
}
}
```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment