domainKey | String | - | Your store domainKey. You can fetch this from your Print.App Admin |
designId | String | - | The id of the design you want your customer to edit. You can fetch this from the Designs page. Click the more icon and copy the design. That should also copy the designId into your clipboard. From your server, you can also list them with GET /v2/designs. |
designList | Array of strings | - | A list of designId. This is only valid if you want your customers to pick from a list of designs you specify here. The first design is always loaded as default. If this is provided, you can omit the designId parameter |
designTemplate | Object | - | An object describing a sample design source to display when the editor loads. This is optional and only required if you do not want to use a pre-generated designId. More details can be found at the end of this page |
projectId | String | - | This is required if you want to load the editor to edit an existing project. Remember to also set the mode to edit-project |
mode | String | - | The editor mode. Valid values are:
new-project: The editor should create a new project using the designId as a template.
edit-project: You want to edit an existing project. This requires a projectId to be provided |
custom | Boolean | - | Set this to true to let the editor know it’s a custom installation |
autoShow | Boolean | - | This is used to automatically launch the editor after it initializes, without the customer clicking a customize button. |
product | Object | - | Your own details of the product the customer is designing, for example { id: 'sku-123', ref: 'cart-line-7f3a' }. Saved with the project exactly as passed, and returned by the API, so your server can check that a project was made for the product being ordered. See Verify a project before fulfilling. |
userId | String | - | Your id for the customer. Saved with the project and returned by the API as userId. |
userData | Object | - | Customer details to save with the project: id, name, email, phone, info. Returned by the API as userData. |
customValues | Object | - | Not saved with the project or returned anywhere. To attach your own data to a project, use product. |
langCode | String | - | Default: en The language to load the editor in. This should be a two letter language code following the ISO 639-1 two-digit language codes. You will find a list of valid language codes supported by Print.App here |