Skip to content

katana_public_api_client.models.create_material_variant_request

katana_public_api_client.models.create_material_variant_request

Classes

CreateMaterialVariantRequest

Variant embedded in POST /materials. The material parent is implicit. Unlike product creation and POST /variants, this shape rejects sales_price. Set a material selling price afterward with PATCH /variants/{id}.

Example:
    {'sku': 'KNF-PRO-12PC-WD', 'purchase_price': 200.0, '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'}]}