Get Fulfillment Archive (GetArchive)
Download a zip file with all fulfillment files and information for a given Token. This call must be authenticated or the call will fail. Archive file will include all the user uploaded designs.Method Url
https://client.livedesignerfusion.com/{username}/TokenFulfillment/GetArchive?{parameterlist}Parameters
Name | Type | Default | Required | Description |
---|---|---|---|---|
{username}{username} | string | true | Replace {username} with your fusion username in the method url before sending the request. | |
Token | string | true | The instance token that was returned in the CompletePersonalization call. | |
EmbFormat | string | ofm | false | The extension of the file format you'd like for your embroidery file(s).
|
VectorFormat | string | svg | false | The extension of the file format you'd like for your vector/raster files.
|
DPI | int | 300 | false | If VectorFormat is set to png, the DPI parameter specifies the dots per inch of the output file. |
RotAng | int | 0 | false | Rotate all production file by specified degree. Any value between 1-360 is allowed. |
IncludeAllElements | boolean | false | false | Include all elements in the response obejcts. This will override all the changes applied by JavaScriptAPI or element set to hidden in he admin section |
FabricStyle | string | false | This is style unique identifier i.e. style referenceid and this parameter is only applicable to embroidery files. It will override the blank setting for style. Any invalid value will be discarded i.e. if we don't find the style in our records then it will apply settings from blank. | |
E.[Composition Name].FabricStyle.[CompositionName].FabricStyle | string | false | you can use the fabric style parameter to override the settings on each composition level by composition name. This parameter is only applicable to embroidery files. It will override the blank and ready style setting. Any invalid value will be discarded i.e. if we don't find the style in our records then it will apply settings from ready or blank i.e. if ready contains two compositions "Front" and "Back" then you can pass this parameter as E.Front.FabricStyle=S000012 and E.Back.FabricStyle=S000013 and output file will be generated by applying styles for each production file. | |
E.[Composition ReferenceID].FabricStyle.[CompositionReferenceID].FabricStyle | string | false | you can use the fabric style parameter to override the settings on each composition level by composition referenceid. This parameter is only applicable to embroidery files. It will override the blank and ready style setting. Any invalid value will be discarded i.e. if we don't find the style in our records then it will apply settings from ready or blank i.e. if ready contains two compositions "C000001" and "C000002" then you can pass this parameter as E.C000001.FabricStyle=S000012 and E.C000002.FabricStyle=S000013 and output file will be generated by applying styles for each production file. | |
RecalculateStitches | boolean | false | false | This is applicable to embroidery elements only. stitch count calculations are approximation and can vary depending on the embroidery factors i.e. user text inputs and fabric styles etc.. passing/sending this parameter will recalculate the stitches to closest number possible. |
Output / Result
Get Fulfillment Definition (GetDefinition)
Get a list of fulfillment files with their associated information.
Get Fulfillment Definition (GetDefinition)
Method Url
https://client.livedesignerfusion.com/{username}/TokenFulfillment/GetDefinition?parameterlistParameters
Name | Type | Default | Required | Description |
---|---|---|---|---|
{username}{username} | string | true | Replace {username} with your fusion username in the method url before sending the request. | |
Token | string | true | The instance token that was returned in the CompletePersonalization call. | |
Format | string | xml | false | Output format. Available format's: XML, json, jsonp |
IncludeAllElements | boolean | false | false | Include all elements in the response obejcts. This will override all the changes applied by JavaScriptAPI or element set to hidden in he admin section |
RecalculateStitches | boolean | false | false | This is applicable to embroidery elements only. stitch count calculations are approximation and can vary depending on the embroidery factors i.e. user text inputs and fabric styles etc.. passing/sending this parameter will recalculate the stitches to closest number possible. |
Output / Result
Expected Response |
---|
{ "success": true, "definition": { "count": 1, "token": "f3fe2bb459cb459ab632af9add9d4f92", "tokenid": 40180, "token_created": "Dec 02, 2011 21:00:07 GMT", "token_duration": "1:5", "num_print": 0, "num_embroidery": 1, "ready_name": "ABC", "blank_name": "Shirt PNG", "product_color": "", "ready_tags": [], "preview_thumbnails": [ { "view_name": "", "blank_imageid": 7845 } ], "list": [ { "fulfillmentid": 1417, "file_name": "Text 1", "has_vector": false, "has_raster": false, "has_embroidery": true, "stitches": 1590, "width": 111.2, "height": 24.3, "visible": true, "colors": [ { "name": "", "r": 0, "g": 0, "b": 0, "manufacturer": "", "thread_name": "", "thread_code": "" } ], "product_images": [ { "view_name": "", "blank_imageid": 7845 } ], "user_designs": [ { "referenceid": "UUD000300", "file_name": "20_995.png", "stitches": 0, "colors": 0, "height": 85, "width": 500, "service": "Printing", "enduser_name": "" } ] } ] } } |
Error Response |
---|
{ "success" : "false", "error_code" : "MISSING_PARAMETER", "error_message" : "Detailed error message" } |
Properties
Name | Type | Description |
---|---|---|
count | int | The total number of fulfillment files. |
token | string | The instance token passed back to the client function call. |
tokenid | int | Integer representing the Token/Session. |
token_created | string | The date and time that the token was created. |
token_duration | string | The time (in minutes and seconds) that a user took when modifying an existing token. This is the last modified date minus the token create date. |
num_print | int | The number of fulfillment files that have either vector or raster data (non-embroidery fulfillment files). |
num_embroidery | int | The number of fulfillment files that have embroidery data (non-print fulfillment files). |
ready_name | string | The name of the ready used in this personalization. |
blank_name | string | The name of the blank used with the ready in this personalization. |
product_color | string | The color of the product that the user selected in the personalization popup. |
ready_tags | array/list | An array / list of all tags associated with the ready used in this personalization. See object for more details |
preview_thumbnails | array/list | An array / list of all preview images associated with the ready used in this personalization. See object for more details |
list | array/list | An array / list of fulfillment files. See object for more details |
ready_tags
Name | Type | Description |
---|---|---|
ready_tag | string | A tag associated with the ready used in this personalization. |
preview_thumbnails
Name | Type | Description |
---|---|---|
view_name | string | The name of this view of the product. |
blank_imageid | int | The unique identifier of the blank image associated with this view. |
list
Name | Type | Description |
---|---|---|
fulfillmentid | string | The id of fullfillment file. |
file_name | string | The name of this fulfillment file without the extension (the extension the file gets depends on the file format requested). |
has_vector | boolean | True if the fulfillment file has vector elements. |
has_raster | boolean | True if the fulfillment file has raster elements. |
has_embroidery | boolean | True if the fulfillment file has embroidery elements. |
stitches | int | The number of stitches in the design (0 if this is a print design). |
width | float | The width of the design in mm. |
height | float | The height of the design in mm. |
visible | boolean | True if the fulfillment element is visible and false if element is set to invisible by JavaScriptAPI or in admin configuration |
colors | array/list | Array / List of colors associated with the design. See object for more details |
product_images | array/list | Array / List of product images this fulfillment file contains. See object for more details |
user_designs | array/list | An array / list of all user uploaded designs in this personalization. See object for more details |
colors
Name | Type | Description |
---|---|---|
name | string | The name of the color. |
r | int | The red component of the color (0-255). |
g | int | The green component of the color (0-255). |
b | int | The blue component of the color (0-255). |
manufacturer | string | The thread manufacturer (Embroidery). |
thread_code | int | The thead code (Embroidery). |
product_images
Name | Type | Description |
---|---|---|
view_name | string | The name of this view of the product. |
blank_imageid | int | The unique identifier of the blank image associated with this view. |
user_designs
Name | Type | Description |
---|---|---|
referenceid | string | Design ReferenceID. This is unique identifier to access design. |
file_name | string | Design File Name |
stitches | int | Number of Stitches in the File. This value will be zero for print files. |
colors | int | Number of colors in the design. This value will be 0(zero) for graphics file i.e. .png,.jpeg files. |
height | decimal | Design height |
width | decimal | Design Width |
Expected Response |
---|
<Response> <Success>true</Success> <Definition> <Count>1</Count> <Token>f3fe2bb459cb459ab632af9add9d4f92</Token> <TokenID>40180</TokenID> <TokenCreated>Dec 02, 2011 21:00:07 GMT</TokenCreated> <TokenDuration>1:5</TokenDuration> <NumPrint>0</NumPrint> <NumEmbroidery>1</NumEmbroidery> <ReadyName>ABC</ReadyName> <BlankName>Shirt PNG</BlankName> <ProductColor/> <ReadyTags/> <PreviewThumbnails> <ProductImage> <ViewName/> <BlankImageID>7845</BlankImageID> </ProductImage> </PreviewThumbnails> <List> <FulfillmentFile> <FulfillmentID>1417</FulfillmentID> <FileName>Text 1</FileName> <HasVector>false</HasVector> <HasRaster>false</HasRaster> <HasEmbroidery>true</HasEmbroidery> <Stitches>1590</Stitches> <Width>111.2</Width> <Height>24.3</Height> <Visible>true</Visible> <Colors> <Color> <Name/> <R>0</R> <G>0</G> <B>0</B> <Manufacturer/> <ThreadName/> <ThreadCode/> </Color> </Colors> <ProductImages> <ProductImage> <ViewName/> <BlankImageID>7845</BlankImageID> </ProductImage> </ProductImages> <UserDesigns> <UserDesign> <ReferenceID>UUD000300</ReferenceID> <FileName>20_995.png</FileName> <Stitches>0</Stitches> <Colors>0</Colors> <Height>85</Height> <Width>500</Width> <Service>Printing</Service> <EndUserName/> </UserDesign> </UserDesigns> </FulfillmentFile> </List> </Definition> </Response> |
Error Response |
---|
<Response> <Success>false</Success> <ErrorCode>MISSING_PARAMETER</ErrorCode> <ErrorMessage>Detailed error message</ErrorMessage> </Response> |
Properties
Name | Type | Description |
---|---|---|
Count | int | The total number of fulfillment files. |
Token | string | The instance token passed back to the client function call. |
TokenID | int | Integer representing the Token/Session. |
TokenCreated | string | The date and time that the token was created. |
TokenDuration | string | The time (in minutes and seconds) that a user took when modifying an existing token. This is the last modified date minus the token create date. |
NumPrint | int | The number of fulfillment files that have either vector or raster data (non-embroidery fulfillment files). |
NumEmbroidery | int | The number of fulfillment files that have embroidery data (non-print fulfillment files). |
ReadyName | string | The name of the ready used in this personalization. |
BlankName | string | The name of the blank used with the ready in this personalization. |
ProductColor | string | The color of the product that the user selected in the personalization popup. |
ReadyTags | array/list | An array / list of all tags associated with the ready used in this personalization. See object for more details |
PreviewThumbnails | array/list | An array / list of all preview images associated with the ready used in this personalization. See object for more details |
List | array/list | An array / list of fulfillment files. See object for more details |
ReadyTags
Name | Type | Description |
---|---|---|
ReadyTag | string | A tag associated with the ready used in this personalization. |
PreviewThumbnails
Name | Type | Description |
---|---|---|
ViewName | string | The name of this view of the product. |
BlankImageID | int | The unique identifier of the blank image associated with this view. |
List
Name | Type | Description |
---|---|---|
FulfillmentID | string | The id of fullfillment file. |
FileName | string | The name of this fulfillment file without the extension (the extension the file gets depends on the file format requested). |
HasVector | boolean | True if the fulfillment file has vector elements. |
HasRaster | boolean | True if the fulfillment file has raster elements. |
HasEmbroidery | boolean | True if the fulfillment file has embroidery elements. |
Stitches | int | The number of stitches in the design (0 if this is a print design). |
Width | float | The width of the design in mm. |
Height | float | The height of the design in mm. |
Visible | boolean | True if the fulfillment element is visible and false if element is set to invisible by JavaScriptAPI or in admin configuration |
Colors | array/list | Array / List of colors associated with the design. See object for more details |
ProductImages | array/list | Array / List of product images this fulfillment file contains. See object for more details |
UserDesigns | array/list | An array / list of all user uploaded designs in this personalization. See object for more details |
Colors
Name | Type | Description |
---|---|---|
Name | string | The name of the color. |
R | int | The red component of the color (0-255). |
G | int | The green component of the color (0-255). |
B | int | The blue component of the color (0-255). |
Manufacturer | string | The thread manufacturer (Embroidery). |
ThreadCode | int | The thead code (Embroidery). |
ProductImages
Name | Type | Description |
---|---|---|
ViewName | string | The name of this view of the product. |
BlankImageID | int | The unique identifier of the blank image associated with this view. |
UserDesigns
Name | Type | Description |
---|---|---|
ReferenceID | string | Design ReferenceID. This is unique identifier to access design. |
FileName | string | Design File Name |
Stitches | int | Number of Stitches in the File. This value will be zero for print files. |
Colors | int | Number of colors in the design. This value will be 0(zero) for graphics file i.e. .png,.jpeg files. |
Height | decimal | Design height |
Width | decimal | Design Width |
Get Fulfillment File (GetFile)
Returns the fulfillment file for a given personalization token and fulfillment id. This call must be authenticated or it will fail.
Get Fulfillment File (GetFile)
Method Url
https://client.livedesignerfusion.com/{username}/TokenFulfillment/GetFile?{parameterlist}Parameters
Name | Type | Default | Required | Description |
---|---|---|---|---|
{username}{username} | string | true | Replace {username} with your fusion username in the method url before sending the request. | |
Token | string | true | The instance token that was returned in the CompletePersonalization call. | |
FulfillmentID | string | true | The id of fulfillment file to download. This is found in the data returned from the TokenFulfillment/GetDefinition call. | |
FileName | string | true | The file name you want to use for the downloaded file. Important note: the extension of this file name will determine the actual format of the downloaded fulfillment file.
|
|
Format | string | xml | false | Output format. Available format's: XML, json, jsonp |
DPI | int | 300 | false | If the file name has an extension of png, this DPI parameter specifies the dots per inch of the output file. |
RotAng | int | 0 | false | Rotate all production file by specified degree. Any value between 1-360 is allowed. |
FabricStyle | string | false | This is style unique identifier i.e. style referenceid and this parameter is only applicable to embroidery files. It will override the blank setting for style. Any invalid value will be discarded i.e. if we don't find the style in our records then it will apply settings from blank. |
Output / Result
Get Fulfillment Preview (GetfulfillmentPreview)
Returns the fulfillment preview for a given personalization token and fulfillment id. This call must be authenticated or it will fail.
Get Fulfillment Preview (GetfulfillmentPreview)
Method Url
https://client.livedesignerfusion.com/{username}/TokenFulfillment/GetfulfillmentPreview?{parameterlist}Parameters
Name | Type | Default | Required | Description |
---|---|---|---|---|
{username}{username} | string | true | Replace {username} with your fusion username in the method url before sending the request. | |
Token | string | true | instance token. | |
FulfillmentID | string | true | The id of fulfillment preview. This is found in the data returned from the TokenFulfillment/GetDefinition call. | |
Width | int | 100 | false | Preview Image width. |
MaxHeight | int | 0 | false | Maximum height of output image. It will scale by maintaining aspect ratio. |