POST api/product/create/uniqueunfixed?token={token}
Создать уникальный товар с нефиксированной ценой
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
token |
Токен авторизации |
string |
Required |
Body Parameters
UniqueUnfixedProductName | 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. |
prices |
Цена |
PriceUnfixed |
Required |
enabled |
Товар выставлен на продажу. По умолчанию: true |
boolean |
None. |
limitations |
Ограничения |
Limitation |
None. |
present_product_id |
Товар-подарок покупателю |
integer |
None. |
sales_limit | integer |
None. |
|
verify_code |
Проверка кода |
ProductVerifyCode |
None. |
online_checkout_name |
Название товара для онлайн кассы |
string |
None. |
online_checkout_category |
Категория для онлайн кассы |
OnlineCheckoutCategory |
None. |
online_checkout_tax |
Категория для онлайн кассы |
OnlineCheckoutTax |
None. |
discounts |
Скидки |
Collection of PriceDiscount |
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" }, "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" } ] }, "prices": { "price": 1.0, "unit_quantity": 1, "currency": "sample string 2", "unit_name": "sample string 1" }, "enabled": true, "limitations": { "type": "sample string 1", "only_integer": true, "limitations": [ 1, 2 ] }, "present_product_id": 1, "sales_limit": 1, "verify_code": { "parameters": [ "sample string 1", "sample string 2" ], "redirect_to": "sample string 2", "auto_verify": true, "verify_url": "sample string 1" }, "online_checkout_name": "sample string 2", "online_checkout_category": 1, "online_checkout_tax": 0, "discounts": [ { "unit_for_discount": 1.0, "discount": 1 }, { "unit_for_discount": 1.0, "discount": 1 } ] }
application/x-www-form-urlencoded
Sample not available.
application/xml, text/xml
<unique_unfixed> <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> <prices> <price>1</price> <currency>sample string 2</currency> <unit_quantity>1</unit_quantity> <unit_name>sample string 1</unit_name> </prices> <limitations> <type>sample string 1</type> <only_integer>true</only_integer> <limitations>1</limitations> <limitations>2</limitations> </limitations> <verify_code> <auto_verify>true</auto_verify> <verify_url>sample string 1</verify_url> <parameters>sample string 1</parameters> <parameters>sample string 2</parameters> <redirect_To>sample string 2</redirect_To> </verify_code> <discounts> <unit_for_discount>1</unit_for_discount> <discount>1</discount> </discounts> <discounts> <unit_for_discount>1</unit_for_discount> <discount>1</discount> </discounts> </unique_unfixed>
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.