# API: Duplicate product form

# duplicateProductForm

Duplicate a product form component. The new field is an exact copy including all items and pricing. Returns the ID of the newly created field.

# Required parameters

Parameter Description
id Form field ID to duplicate
product_id Product ID to duplicate the form into (can be the same product or a different one)

# Optional parameters

Parameter Description
with_archived Include archived items in the duplicate: 1 = yes, 0 = no (default)

# Request

GET /admin/api.php?api_id=API_ID&api_key=API_KEY&call=duplicateProductForm&id=ID&product_id=PRODUCT_ID

# PHP Samples

# PHP Samples: Duplicate form field within the same product

# PHP Samples: Copy form field to a different product

# PHP Samples: Duplicate including archived items

# Response

{
    "success": true,
    "field_id": 48,
    "call": "duplicateProductForm",
    "server_time": 1706614584
}
Last Updated: 5/11/2026, 2:17:28 PM