GET Designer/Services/GetCustomizedProductByUserId?userId={userId}&websiteId={websiteId}&webApiClientKey={webApiClientKey}&orderStatus={orderStatus}
If your ecommerce website needs all the product details customized by particular user, pass user id to this method, this method will return all customized product details.
Get details of all products which are saved or added to cart by particular user. This operation requires user id and website id.
For example, if any user saved/added to cart 10 products, this operation will give details of that 10 products.
Request Information
Parameters
Name | Descriptions |
userId | This will be the id of your e-commerce website's user. The user can be registered or guest user. If the user is registered, pass the user id in this parameter and if the user is not registered with your e-commerce website, create a temporary id for the user and pass that temporary id in this parameter. The non registered user will be called as guest user. This will be the unique user id. The method will return the product customized by the user whose id will be specified in this parameter. |
websiteId | This is the website with which customized products are associated. Admin user of Artifi can create one or more websites and assign products to each of the website. The Id of the website with which customized products are associated should be specified in this parameter. |
webApiClientKey | When any company gets registered with Artifi, Artifi will generate a special and unique key for that company which will be called as client key. This client key will be found in registered company's profile tab in Artifi Account. This client key will be used for client(company) authentication and will be called as WebApiClientKey. |
orderStatus [Optional] | This is the string of the order status to be updated in Artifi. OrderStatus can be Placed, InProgress, Draft, Deleted or Email. By default, orderStatus will be InProgress. |
application/json, text/json
Sample: { "Response":"Success", "Message":null, "Data":[ { "UserId":"57", "WebSiteId":537, "ProductCode":"sample code", "SKU":null, "Title":"", "Description":"", "OrderStatus":"InProgress", "OrderNotes":"", "CustomDesignModelList":[ { "CustomizedProductId":null, "DesignTemplate":"{\"objects\":[],\"background\":\"\"}", "SVGUniqueName":"66dbf55b-7432-44e7-8bb6-3797760052cc.svg", "ThumbnailImageUniqueName":"8849e477-bcc3-4f85-b22d-1b59541839a0.png", "ImageUniqueName":"8849e477-bcc3-4f85-b22d-1b59541839a0.png", "ThumbnailImagePath":"", "ImagePath":"", "CustomizedProductDesignId":8703, "ViewId":9741, "ViewName":"sample view", "DesignJsonVersion":"1.0.7", "List":null, "TemplateUnit":null, "ImageDPI":0, "Note":"", "DraftId":0, "TemplateJson":null, "ConstraintJson":null, "ProductViewId":9741, "TemplateId":10228, "NoOfImprintColors":0, "ImprintColorList":null, "Id":18433, "LoginUserId":null } ], "CustomAttributeModelList":null, "CustomizedAdvancedDesignList":null, "CustomizedProductModelList":null, "ColorAttributeModelList":null, "IsGuest":null, "CustomizedProductDesignModel":null, "ClipartIdList":[ ], "UserPhotoIdList":[ ], "ColorIdList":[ ], "FontIdList":[ ], "StrokeColorIdList":[ ], "TintColorIdList":null, "IsPrintReady":false, "QuoteData":null, "NoOfImprintColors":0, "PDFStatus":0, "Id":6713, "LoginUserId":null } ] }
On Error
On failure, this method will return the following response based on parameters.
If the userId is passed as 0, then it will give the response.
{ "Response": "User Id should not be empty or null.", "Message": null, "Data": null } If the webApiClientKey is passed as null or not provided, then it will give the response. { "Response": "WebApiclientKey should not be empty or null.", "Message": null, "Data": null } If the websiteId is passed as 0, then it will give the response. { "Response": "Website Id should not be empty or null.", "Message": null, "Data": null } If the userId does not exist, then it will give the response. { "Response": "Invalid UserId.", "Message": null, "Data": null } If the websiteId does not exist, then it will give the response. { "Response": "Invalid website Id.", "Message": null, "Data": null } If the webApiClientKey does not exist, then it will give the message. { "Response": "Invalid webApiclientKey.", "Message": null, "Data": null }