Get Reorder

GetReorder API Signature

GET Designer/Services/GetReorder?designId={designId}&userId={userId}&websiteId={websiteId}&webApiClientKey={webApiClientKey}

The GetReorder method is used to reorder a design. This API is used to reorder past designs.  It will create a new design as a duplicate of the old design with a new design id.

Request Information Parameters

Parameters

Descriptions

designId

Design id is the customized product id. The product which is customized/designed using Artifi (Product customization tool) and saved or Added to the cart is called a customized product.

When this customized product id is specified, It will launch the Artifi editor with the specified customized product.

This means, when the Artifi editor gets open in a specified HTML div element, you will get to see/edit the customized product whose id is specified in this parameter.

userId

This will be the id of your e-commerce website's user. The user can be a 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 a 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 users of Artifi can create one or more websites and assign products to each of the websites. The Id of the website with which the user is 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 a client key.

This client key will be found in the registered company's profile tab in Artifi Account. This client key will be used for client(company) authentication and will be called as WebApiClientKey.


On Success

{
    "Response": "Success",
    "Message": "The design is re-ordered successfully.",
    "Data": {
        "CustomizedDesignList": [
            {
                "CustomizedProductId": null,
                "AngleId": 0,
                "DesignTemplate": null,
                "SVGUniqueName": null,
                "ThumbnailImageUniqueName": "AC7297A2-FA96-4F2A-A765-21B63758C56F.png",
                "ImageUniqueName": "AC7297A2-FA96-4F2A-A765-21B63758C56F.png",
                "ThumbnailImagePath": "thumbnail image path",
                "ImagePath": "image path",
                "CustomizedProductDesignId": null,
                "ViewId": null,
                "ViewName": null,
                "ViewCode": null,
                "DesignJsonVersion": null,
                "List": null,
                "TemplateUnit": null,
                "ImageDPI": 0,
                "Note": null,
                "DraftId": 0,
                "TemplateJson": null,
                "ConstraintJson": null,
                "ProductViewId": 0,
                "TemplateId": null,
                "TemplateName": null,
                "DecorationMethodId": null,
                "DecorationCode": null,
                "TemplateCode": null,
                "NoOfImprintColors": 0,
                "IsPrintAreaScalingAllowed": false,
                "ImprintColorList": null,
                "ViewColorCount": null,
                "DesignMode": null,
                "ColorizeImageId": null,
                "ColorOptions": null,
                "ThreadsList": null,
                "LoginUserId": null,
                "Id": 0
            }
        ],
        "DraftDetails": null,
        "DraftPreviewList": null,
        "CustomizedAdvancedDesignList": null,
        "CustomizedCustomAttributeList": null,
        "CustomizedColorAttributeList": null,
        "ErrorCode": null,
        "IsSuccess": false,
        "XMLUniqueName": null,
        "ErrorModel": null,
        "Sku": null,
        "Label": null,
        "Url": null,
        "Extension": null,
        "ImageUniqueName": null,
        "ThumbnailUniqueName": null,
        "ProductVariantId": 0,
        "OrderStatus": null,
        "AngleId": 0,
        "DraftFolderId": 0,
        "FolderName": null,
        "ViewCode": null,
        "LoginUserId": null,
        "Id": 15821989
    },
    "ErrorCode": null
}

On Failure

{
    "Response": "Error",
    "Message": "Invalid UserId.",
    "Data": null,
    "ErrorCode": "232"
}

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.