ProductItemRequest
Properties
| Name |
Type |
Description |
Notes |
| name |
str |
|
[optional] |
| sku |
str |
The presence or not of field <b>SKU</b> and other fields in the request body will determine which of the following behaviours occur:- <br>1) A minimum of <b>SKU</b>, <b>unitValue</b>, <b>unitWeightInGrams</b> and <b>quantity</b> provided - In addition to the provided product fields being used for the order creation, an existing account Product with matching SKU will be overwritten with all provided product parameters. If no existing account Product with matching SKU can be found then a new product will be created with the provided SKU and product parameters.<br>2) <b>SKU</b>, <b>quantity</b> provided and <b>no other fields</b> provided - An account Product with the provided SKU will be used for the order if it exists.<br>3) <b>SKU not provided</b> and a minimum of <b>unitValue</b>, <b>unitWeightInGrams</b> and <b>quantity</b> provided - All provided product fields will be used for the order creation.<br>4) All other scenarios will result in a validation error. |
[optional] |
| quantity |
int |
The number of units in a given line |
|
| unit_value |
float |
The price of a single unit excluding tax |
[optional] |
| unit_weight_in_grams |
int |
|
[optional] |
| customs_description |
str |
|
[optional] |
| extended_customs_description |
str |
|
[optional] |
| customs_code |
str |
|
[optional] |
| origin_country_code |
str |
|
[optional] |
| customs_declaration_category |
str |
|
[optional] |
| requires_export_licence |
bool |
|
[optional] |
| stock_location |
str |
|
[optional] |
| use_origin_preference |
bool |
|
[optional] |
| supplementary_units |
str |
|
[optional] |
| license_number |
str |
|
[optional] |
| certificate_number |
str |
|
[optional] |
Example
from click_and_drop_api.models.product_item_request import ProductItemRequest
# TODO update the JSON string below
json = "{}"
# create an instance of ProductItemRequest from a JSON string
product_item_request_instance = ProductItemRequest.from_json(json)
# print the JSON string representation of the object
print(ProductItemRequest.to_json())
# convert the object into a dict
product_item_request_dict = product_item_request_instance.to_dict()
# create an instance of ProductItemRequest from a dict
product_item_request_from_dict = ProductItemRequest.from_dict(product_item_request_dict)
[Back to Model list] [Back to API list] [Back to README]