POST api/product/create/book?token={token}
Создать товар типа "Электронная книга"
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
token |
Токен авторизации |
string |
Required |
Body Parameters
BookProductName | 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 |
comission_partner |
Партнерская комиссия |
decimal number |
None. |
bonus |
Бонус |
ProductBonus |
None. |
guarantee |
Гарантия |
ProductGuarantee |
None. |
address_required |
Перед оплатой покупатель должен указать адрес доставки |
boolean |
None. |
instruction |
Инструкция по использованию товара |
ProductInstruction |
None. |
trial_url |
Демо-ссылка |
string |
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 2", "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" }, "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" } ] }, "trial_url": "sample string 1", "enabled": true, "present_product_id": 1, "sales_limit": 1, "online_checkout_name": "sample string 3", "online_checkout_category": 1, "online_checkout_tax": 0 }
application/x-www-form-urlencoded
Sample not available.
application/xml, text/xml
<book> <content_type>sample string 2</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 3</online_checkout_name> <online_checkout_category>Goods</online_checkout_category> <online_checkout_tax>vat20</online_checkout_tax> <trial_url>sample string 1</trial_url> </book>
Response Information
Resource Description
IResultViewModelOldOfSuccessCreateViewModelName | Description | Type | Additional information |
---|---|---|---|
retval | integer |
None. |
|
retdesc | string |
None. |
|
errors | Collection of ErrorModel |
None. |
|
content | SuccessCreateViewModel |
None. |
Response Formats
application/json, text/json
Sample not available.