---
title: "ISaveProductResult Interface"
canonical: https://customerscanvas.com/docs/cc6/customerscanvas.iframeapi.editor.isaveproductresult.htm
archived: true
applies_to:
  - product: "Customer's Canvas On-Premises"
  - product: "Design Editor"
    versions: ["6.15.0", "6.x (may differ)"]
---

**You’re viewing outdated documentation.** [View the latest Customer’s Canvas On-Premises documentation](https://customerscanvas.com/docs/on-premises/).

# ISaveProductResult Interface

**Applies to:** Customer's Canvas On-Premises; Design Editor 6.15.0, 6.x (may differ) · **Archived documentation**
 
A structure used by [Editor.saveProduct](https://customerscanvas.com/docs/cc6/customerscanvas.iframeapi.editor.saveproduct.htm.md) to store a return value. For details, see the [Introducing the IFrame API](https://customerscanvas.com/docs/cc6/handling-product-customization.htm.md) topic.
  
 - example
     - ```
// Saving a product to the "t-shirt.st" file.
editor.saveProduct("t-shirt")
    // If the product is saved correctly.
    .then(function (result) {
        // Get the promise properties.
        userId = result.userId;
        stateId = result.stateId;
        returnToEditUrl = result.returnToEditUrl;
        console.log("User " + userId + " successfully saved state " + stateId);
    })
    // If there was an error thrown while saving the product.
    .catch(function (error) {
        console.error("Saving product failed with exception: ", error);
    });
```
 
## Properties
 
### returnToEditUrl
 
returnToEditUrl: string

A return-to-edit URL. This property is provided for backward compatibility only; it utilizes the old API based on query string. To learn on how to perform the same functionality using IFrame API see [Loading Product State Into Editor](https://customerscanvas.com/docs/cc6/handling-product-customization.htm.md).
 
### stateId
 
stateId: string

A product state identifier
 
### userId
 
userId: string

The identifier of the user who currently works with the editor.
