POST api/product/edit/arbitrary/{product_id}?token={token}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
token |
Токен авторизации |
string |
Required |
product_id | integer |
Required |
Body Parameters
ArbitraryProductName | Description | Type | Additional information |
---|---|---|---|
content_type |
Тип содержимого товара. Доступные значения: Text | File | Url | DigisellerCode | Form |
string |
Required |
categories |
Категории |
Collection of ProductCategory |
Required |
name |
Наименование продукта с локализацией |
Collection of LocalizationViewModel |
Required |
description |
Описание товара с локализацией |
Collection of LocalizationViewModel |
Required |
add_info |
Дополнительная информация с локализацией |
Collection of LocalizationViewModel |
None. |
price |
Цена |
ProductPrice |
Required |
affiliate_program |
Партнёрская программа |
AffiliateProgramType |
None. |
comission_partner |
Партнерская комиссия |
decimal number |
None. |
bonus |
Бонус |
ProductBonus |
None. |
guarantee |
Гарантия |
ProductGuarantee |
None. |
address_required |
Перед оплатой покупатель должен указать адрес доставки |
boolean |
None. |
instruction |
Инструкция по использованию товара |
ProductInstruction |
None. |
pay_as_you_want |
Модель "Плати сколько хочешь" |
boolean |
None. |
enabled |
Товар выставлен на продажу. По умолчанию: true |
boolean |
None. |
present_product_id |
Товар-подарок покупателю |
integer |
None. |
sales_limit | integer |
None. |
|
online_checkout_name |
Название товара для онлайн кассы |
string |
None. |
online_checkout_category |
Категория для онлайн кассы |
OnlineCheckoutCategory |
None. |
online_checkout_tax |
Категория для онлайн кассы |
OnlineCheckoutTax |
None. |
Request Formats
application/json, text/json
{ "content_type": "sample string 1", "categories": [ { "owner": 1, "category_id": 1 }, { "owner": 1, "category_id": 1 } ], "name": [ { "locale": "sample string 1", "value": "sample string 2" }, { "locale": "sample string 1", "value": "sample string 2" } ], "description": [ { "locale": "sample string 1", "value": "sample string 2" }, { "locale": "sample string 1", "value": "sample string 2" } ], "add_info": [ { "locale": "sample string 1", "value": "sample string 2" }, { "locale": "sample string 1", "value": "sample string 2" } ], "price": { "price": 1.0, "currency": "sample string 1" }, "affiliate_program": 0, "comission_partner": 1.0, "bonus": { "enabled": true, "percent": 1 }, "guarantee": { "enabled": true, "value": 1 }, "address_required": true, "instruction": { "type": "sample string 1", "locales": [ { "locale": "sample string 1", "value": "sample string 2" }, { "locale": "sample string 1", "value": "sample string 2" } ] }, "pay_as_you_want": true, "enabled": true, "present_product_id": 1, "sales_limit": 1, "online_checkout_name": "sample string 2", "online_checkout_category": 1, "online_checkout_tax": 0 }
application/x-www-form-urlencoded
Sample not available.
application/xml, text/xml
<arbitrary> <content_type>sample string 1</content_type> <categories> <owner>1</owner> <category_id>1</category_id> </categories> <categories> <owner>1</owner> <category_id>1</category_id> </categories> <name> <locale>sample string 1</locale> <value>sample string 2</value> </name> <name> <locale>sample string 1</locale> <value>sample string 2</value> </name> <description> <locale>sample string 1</locale> <value>sample string 2</value> </description> <description> <locale>sample string 1</locale> <value>sample string 2</value> </description> <add_info> <locale>sample string 1</locale> <value>sample string 2</value> </add_info> <add_info> <locale>sample string 1</locale> <value>sample string 2</value> </add_info> <price> <price>1</price> <currency>sample string 1</currency> </price> <comission_partner>1</comission_partner> <bonus> <enabled>true</enabled> <percent>1</percent> </bonus> <guarantee> <enabled>true</enabled> <value>1</value> </guarantee> <address_required>true</address_required> <instruction> <type>sample string 1</type> <locales> <locale>sample string 1</locale> <value>sample string 2</value> </locales> <locales> <locale>sample string 1</locale> <value>sample string 2</value> </locales> </instruction> <enabled>true</enabled> <present_product_id>1</present_product_id> <sales_limit>1</sales_limit> <online_checkout_name>sample string 2</online_checkout_name> <online_checkout_category>Goods</online_checkout_category> <online_checkout_tax>vat20</online_checkout_tax> <pay_as_you_want>true</pay_as_you_want> <affiliate_program>ToSelectedPartners</affiliate_program> </arbitrary>
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |