POST api/product/create/uniquefixed?token={token}
Создать уникальный товар с фиксированной ценой
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
token |
Токен авторизации |
string |
Required |
Body Parameters
UniqueFixedProductName | 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. |
verify_code |
Проверка кода (только для товаров с типом "DigisellerCode") |
ProductVerifyCode |
None. |
enabled |
Товар выставлен на продажу. По умолчанию: true |
boolean |
None. |
preorder |
Предзаказ |
Preorder |
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" }, "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" } ] }, "verify_code": { "parameters": [ "sample string 1", "sample string 2" ], "redirect_to": "sample string 2", "auto_verify": true, "verify_url": "sample string 1" }, "enabled": true, "preorder": { "enabled": true, "delivery_date": "sample string 1" }, "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
<unique_fixed> <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> <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> <preorder> <enabled>true</enabled> <delivery_date>sample string 1</delivery_date> </preorder> </unique_fixed>
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.