katana_public_api_client.models.create_variant_request¶
katana_public_api_client.models.create_variant_request
¶
Classes¶
CreateVariantRequest
¶
Request payload for creating a new product or material variant with specific SKU and configuration attributes.
Parent reference: specify exactly one of product_id or
material_id, never both — variants are scoped to a single parent
item.
Example:
{'sku': 'KNF-PRO-12PC-WD', 'sales_price': 399.99, 'purchase_price': 200.0, 'product_id': 101, 'material_id':
None, 'supplier_item_codes': ['SUP-KNF-12PC-002'], 'internal_barcode': 'INT-KNF-002', 'registered_barcode':
'789123456790', 'lead_time': 10, 'minimum_order_quantity': 1, 'config_attributes': [{'config_name': 'Piece
Count', 'config_value': '12-piece'}, {'config_name': 'Handle Material', 'config_value': 'Wood'}],
'custom_fields': [{'field_name': 'Warranty Period', 'field_value': '5 years'}, {'field_name': 'Care
Instructions', 'field_value': 'Hand wash only'}]}