Calling Artifi “Save Draft” routine, from outside the Artifi Frame
To invoke design saving operation on click of button from Ecommerce PDP, call the below method :
Artifi.SaveDraft();
Once the above function is called, popup will open inside an Artifi Iframe asking for the required details for saving the design.
On success/failure, the respective acknowledgment message will be displayed in popup.
On success :
“Draft has been saved successfully.” the message would be shown.
On failure :
"Error occurred while creating a new Design! Please try again later." the message would be shown.
Getting the list of User’s “Draft” designs
Artifi Provides the REST API to fetch the draft designs of a particular user.