Skip to content

Product_Copy#


Description#

This function allows you to copy an existing product to create a new product record.

Note

By Default all product data is copied unless a custom copy product rule is applied

Example Request#

{
    "Store_Code": "{{Store_Code}}",
    "Miva_Request_Timestamp": "{{$timestamp}}",
    "Function": "Product_Copy",
    "Source_Product_Code": "shirt",
    "Dest_Product_Code": "shirt_2",
    "Dest_Product_Name": "Shirt 2",
    "Dest_Product_SKU": ""
}

Example Response#

{
    "success": 1,
    "completed": true,
    "data": {
        "id": 3,
        "disp_order": 3,
        "code": "shirt_2",
        "sku": "",
        "name": "Shirt 2",
        "thumbnail": "",
        "image": "",
        "price": 10.0,
        "formatted_price": "$10.00",
        "cost": 0.0,
        "formatted_cost": "$0.00",
        "descrip": "",
        "weight": 0.0,
        "taxable": true,
        "active": true,
        "page_title": "",
        "dt_created": 1677174851,
        "dt_Updated": 1677174851
    }
}