Get List of Tokens/Sessions (GetList)

Returns a list of Tokens/Sessions. It will return a maximum of 1000 records for each api call.

Method Url

https://client.livedesignerfusion.com/{username}/Token/GetList

			    

Parameters

NameTypeDefaultRequiredDescription
{username}{username} string true Replace {username} with your fusion username in the method url before sending the request.
Status string false Status Filter for the result set (Saved, Dropped, Live)
StartDate DateTime 30 days old false Start date of date range filter.
EndDate DateTime Today's Date false End date of date range filter.
UTCOffset double 0 false UTC Time offset. This is not required if the start date and end date is in UTC format.
StartIndex int 0 false Record StartIndex of the resultset.
RecordCount int 200 false Max resultset size. Max allowed value is 200.
P.[Custom Parameter Name].[CustomParameterName] string false Filter the result set by a custom parameter. These custom parameters only exist if they were set using the SetParams API. See Token/SetParams for more details.
Format string xml false Output format. Available format's: XML, json, jsonp



Output / Result

Returns List of Tokens/Sessions.


Expected Response
{
	"success" : true,
	"count" : 1,
	"list" : [
		{
			"personalization_token" : "bae43ace2dbc4383acbfedb29b8c3b52",
			"ready_name" : "Tote Bag",
			"ready_token" : "READY-3157",
			"created_on" : "2011-11-14T20:02:09.5",
			"last_updated" : "2011-11-14T20:02:10.083",
			"duration" : 43,
			"status" : "Saved",
			"sub_status" : ""
		}
	]
}


Error Response
{
    "success" : "false",
    "error_code" : "MISSING_PARAMETER",
    "error_message" : "Detailed error message"
}

Properties

NameTypeDescription
successstringPossible values "true", "false". Returns true if successfully executed and returns false if failed to execute.
countintNumber of total Tokens/Sessions for the current filter.
listarray/listArray / List of Tokens.

See object for more details

list

NameTypeDescription
personalization_tokenstringUnique Identifier for Token/Session.
ready_namestringReady Name
ready_tokenstringReady Unique identifier.
created_onDateTimeToken Creation Time (UTC DateTime)
last_updatedDateTimeLast activity Time(UTC DateTime)
durationintDuration of Session (Seconds)
statusstringToken Statuc (Saved, Dropped, Live)
sub_statusstringToken Sub Status (User Cancelled, Timed Out)


Expected Response
<Response>
	<Success>true</Success> 
	<Count>1</Count> 
	<List>
		<Token>
			<PersonalizationToken>bae43ace2dbc4383acbfedb29b8c3b52</PersonalizationToken> 
			<ReadyName>Tote Bag</ReadyName>
			<ReadyToken>READY-3157<ReadyToken>
			<CreatedOn>2011-11-14T20:02:09.5</CreatedOn> 
			<LastUpdated>2011-11-14T20:02:10.083</LastUpdated> 
			<Duration>43</Duration> 
			<Status>Saved</Status> 
			<SubStatus /> 
		</Token>
	</List>
</Response>


Error Response
<Response>
	<Success>false</Success>
	<ErrorCode>MISSING_PARAMETER</ErrorCode>
	<ErrorMessage>Detailed error message</ErrorMessage>
</Response>

Properties

NameTypeDescription
SuccessstringPossible values "true", "false". Returns true if successfully executed and returns false if failed to execute.
CountintNumber of total Tokens/Sessions for the current filter.
Listarray/listArray / List of Tokens.

See object for more details

List

NameTypeDescription
PersonalizationTokenstringUnique Identifier for Token/Session.
ReadyNamestringReady Name
ReadyTokenstringReady Unique identifier.
CreatedOnDateTimeToken Creation Time (UTC DateTime)
LastUpdatedDateTimeLast activity Time(UTC DateTime)
DurationintDuration of Session (Seconds)
StatusstringToken Statuc (Saved, Dropped, Live)
SubStatusstringToken Sub Status (User Cancelled, Timed Out)


Get Token Definition (GetDefinition)

Returns metata for a given Token/Session.

Method Url

https://client.livedesignerfusion.com/{username}/Token/GetDefinition

			    

Parameters

NameTypeDefaultRequiredDescription
{username}{username} string true Replace {username} with your fusion username in the method url before sending the request.
PersonalizationToken string true The Personalization Token. Generated and returned by the CompletePersonalization method in the JavaScript API.
UTCOffset double 0 false UTC Time offset. This is not required if the start date and end date is in UTC format.
Format string xml false Output format. Available format's: XML, json, jsonp



Output / Result

Returns definition of Tokens/Sessions.


Expected Response
//example 1 (compositions only)
{
    "success": "true",
    "definition": {
        "personalization_token": "3f1393d16d4a4882a3fe51d02f0955cf",
        "ready_name": "",
        "ready_token": "READY-1565",
        "created_on": "/Date(1365801756017)/",
        "last_updated": "/Date(1365801758903)/",
        "duration": 2,
        "status": "Saved",
        "sub_status": "",
        "custom_parameter_list": [
            {
                "parameter_key": "FullName",
                "parameter_value": "John Doe"
            },
            {
                "parameter_key": "EmailAddress",
                "parameter_value": "john.doe@melco.com"
            }
        ],
        "elements": [
            {
                "type": "G",
                "height": 78.2,
                "width": 90.1,
                "referenceid": "C002398",
                "elements": [
                    {
                        "type": "L",
                        "serviceid": 1,
                        "elementid": 19420,
                        "element_name": "LeftChest_Name",
                        "alphabet_name": "Marker",
                        "file_name": "Marker.OFA",
                        "text": "Left",
                        "stitches": 1224,
                        "colors": [
                            {
                                "type": "",
                                "height_mm": 0,
                                "width_mm": 0,
                                "name": "",
                                "r": 0,
                                "g": 130,
                                "b": 255,
                                "manufacturer": "CSD",
                                "thread_name": "",
                                "thread_code": "8"
                            }
                        ],
                        "width": 79.7,
                        "height": 27.7,
                        "visible": 0
                    },
                    {
                        "type": "D",
                        "referenceid": "D000338",
                        "serviceid": 1,
                        "elementid": 19421,
                        "element_name": "Design1",
                        "design_name": "HEART",
                        "file_name": "HEART.ofm",
                        "stitches": 1623,
                        "colors": [
                            {
                                "type": "e",
                                "height_mm": 0,
                                "width_mm": 0,
                                "name": "",
                                "r": 241,
                                "g": 255,
                                "b": 82,
                                "manufacturer": "ARC Poly",
                                "thread_name": "",
                                "thread_code": "21"
                            },
                            {
                                "type": "e",
                                "height_mm": 0,
                                "width_mm": 0,
                                "name": "",
                                "r": 207,
                                "g": 76,
                                "b": 63,
                                "manufacturer": "ARC Poly",
                                "thread_name": "",
                                "thread_code": "3016"
                            }
                        ],
                        "width": 90.1,
                        "height": 78.2,
                        "visible": 0
                    }
                ],
                "name": "LeftChest"
            },
            {
                "type": "G",
                "height": 78.2,
                "width": 100.4,
                "referenceid": "C002399",
                "elements": [
                    {
                        "type": "L",
                        "serviceid": 1,
                        "elementid": 19418,
                        "element_name": "RightChest_Name",
                        "alphabet_name": "OLDE ENGLISH",
                        "file_name": "OLDE ENGLISH.OFA",
                        "text": "Ishwar",
                        "stitches": 1870,
                        "colors": [
                            {
                                "type": "",
                                "height_mm": 0,
                                "width_mm": 0,
                                "name": "",
                                "r": 222,
                                "g": 0,
                                "b": 0,
                                "manufacturer": "",
                                "thread_name": "",
                                "thread_code": ""
                            }
                        ],
                        "width": 100.4,
                        "height": 30.8,
                        "visible": 1
                    },
                    {
                        "type": "D",
                        "referenceid": "D000338",
                        "serviceid": 1,
                        "elementid": 19419,
                        "element_name": "Design1",
                        "design_name": "HEART",
                        "file_name": "HEART.ofm",
                        "stitches": 1623,
                        "colors": [
                            {
                                "type": "e",
                                "height_mm": 0,
                                "width_mm": 0,
                                "name": "",
                                "r": 241,
                                "g": 255,
                                "b": 82,
                                "manufacturer": "ARC Poly",
                                "thread_name": "",
                                "thread_code": "21"
                            },
                            {
                                "type": "e",
                                "height_mm": 0,
                                "width_mm": 0,
                                "name": "",
                                "r": 207,
                                "g": 76,
                                "b": 63,
                                "manufacturer": "ARC Poly",
                                "thread_name": "",
                                "thread_code": "3016"
                            }
                        ],
                        "width": 90.1,
                        "height": 78.2,
                        "visible": 1
                    }
                ],
                "name": "RightChest"
            }
        ]
    }
}

//example 2 if elements dropped on ready directly

{
    "success": "true",
    "definition": {
        "personalization_token": "c255e874040747c18bd1a62c6c3f5b42",
        "ready_name": "",
        "ready_token": "READY-1543",
        "created_on": "/Date(1364255032303)/",
        "last_updated": "/Date(1364255036283)/",
        "duration": 4,
        "status": "Saved",
        "sub_status": "",
        "custom_parameter_list": [],
        "elements": [
            {
                "type": "L",
                "serviceid": 1,
                "elementid": 18685,
                "element_name": "1",
                "alphabet_name": "Marker",
                "file_name": "Marker.OFA",
                "text": "1",
                "stitches": 144,
                "colors": [
                    {
                        "type": "",
                        "height_mm": 0,
                        "width_mm": 0,
                        "name": "",
                        "r": 0,
                        "g": 130,
                        "b": 255,
                        "manufacturer": "CSD",
                        "thread_name": "",
                        "thread_code": "8"
                    }
                ],
                "width": 9.6,
                "height": 24.8,
                "visible": -1
            },
            {
                "type": "L",
                "serviceid": 1,
                "elementid": 18686,
                "element_name": "2",
                "alphabet_name": "Marker",
                "file_name": "Marker.OFA",
                "text": "2",
                "stitches": 343,
                "colors": [
                    {
                        "type": "",
                        "height_mm": 0,
                        "width_mm": 0,
                        "name": "",
                        "r": 0,
                        "g": 130,
                        "b": 255,
                        "manufacturer": "CSD",
                        "thread_name": "",
                        "thread_code": "8"
                    }
                ],
                "width": 19.5,
                "height": 25.6,
                "visible": -1
            },
            {
                "type": "L",
                "serviceid": 1,
                "elementid": 18687,
                "element_name": "3",
                "alphabet_name": "Marker",
                "file_name": "Marker.OFA",
                "text": "3",
                "stitches": 433,
                "colors": [
                    {
                        "type": "",
                        "height_mm": 0,
                        "width_mm": 0,
                        "name": "",
                        "r": 0,
                        "g": 130,
                        "b": 255,
                        "manufacturer": "CSD",
                        "thread_name": "",
                        "thread_code": "8"
                    }
                ],
                "width": 20.7,
                "height": 25.3,
                "visible": -1
            },
            {
                "type": "L",
                "serviceid": 1,
                "elementid": 18688,
                "element_name": "4",
                "alphabet_name": "Marker",
                "file_name": "Marker.OFA",
                "text": "4",
                "stitches": 283,
                "colors": [
                    {
                        "type": "",
                        "height_mm": 0,
                        "width_mm": 0,
                        "name": "",
                        "r": 0,
                        "g": 130,
                        "b": 255,
                        "manufacturer": "CSD",
                        "thread_name": "",
                        "thread_code": "8"
                    }
                ],
                "width": 17.3,
                "height": 24.7,
                "visible": -1
            },
            {
                "type": "L",
                "serviceid": 1,
                "elementid": 18689,
                "element_name": "5",
                "alphabet_name": "Marker",
                "file_name": "Marker.OFA",
                "text": "5",
                "stitches": 401,
                "colors": [
                    {
                        "type": "",
                        "height_mm": 0,
                        "width_mm": 0,
                        "name": "",
                        "r": 0,
                        "g": 130,
                        "b": 255,
                        "manufacturer": "CSD",
                        "thread_name": "",
                        "thread_code": "8"
                    }
                ],
                "width": 21.5,
                "height": 25.4,
                "visible": -1
            },
            {
                "type": "L",
                "serviceid": 1,
                "elementid": 18690,
                "element_name": "6",
                "alphabet_name": "Marker",
                "file_name": "Marker.OFA",
                "text": "6",
                "stitches": 340,
                "colors": [
                    {
                        "type": "",
                        "height_mm": 0,
                        "width_mm": 0,
                        "name": "",
                        "r": 0,
                        "g": 130,
                        "b": 255,
                        "manufacturer": "CSD",
                        "thread_name": "",
                        "thread_code": "8"
                    }
                ],
                "width": 16.4,
                "height": 25.1,
                "visible": -1
            },
            {
                "type": "L",
                "serviceid": 1,
                "elementid": 18691,
                "element_name": "7",
                "alphabet_name": "Marker",
                "file_name": "Marker.OFA",
                "text": "7",
                "stitches": 299,
                "colors": [
                    {
                        "type": "",
                        "height_mm": 0,
                        "width_mm": 0,
                        "name": "",
                        "r": 0,
                        "g": 130,
                        "b": 255,
                        "manufacturer": "CSD",
                        "thread_name": "",
                        "thread_code": "8"
                    }
                ],
                "width": 20,
                "height": 25.3,
                "visible": -1
            },
            {
                "type": "L",
                "serviceid": 1,
                "elementid": 18692,
                "element_name": "8",
                "alphabet_name": "Marker",
                "file_name": "Marker.OFA",
                "text": "8",
                "stitches": 529,
                "colors": [
                    {
                        "type": "",
                        "height_mm": 0,
                        "width_mm": 0,
                        "name": "",
                        "r": 0,
                        "g": 130,
                        "b": 255,
                        "manufacturer": "CSD",
                        "thread_name": "",
                        "thread_code": "8"
                    }
                ],
                "width": 23.3,
                "height": 24.8,
                "visible": -1
            }
        ]
    }
}


Error Response
{
    "success" : "false",
    "error_code" : "MISSING_PARAMETER",
    "error_message" : "Detailed error message"
}

Properties

NameTypeDescription
successstringPossible values "true", "false". Returns true if successfully executed and returns false if failed to execute.
definitionobjectToken definition object

See object for more details

definition

NameTypeDescription
personalization_tokenstringUnique Identifier for Token/Session.
ready_namestringReady Name
ready_tokenstringReady Unique identifier.
created_onDateTimeToken Creation Time by requested offset.
last_updatedDateTimeLast activity Time by requested offset
durationintDuration of Session (Seconds)
statusstringToken Statuc (Saved, Dropped, Live)
sub_statusstringToken Sub Status (User Cancelled, Timed Out)
elementsarray/listList/Array of personalized elements on the Product/Blank. This will be recursive object for composition i.e. if type is other than G then object will contain all the element properties but if the element type is G (Composition) then object will contain composition properties and will contain array of all the elements

See object for more details
custom_parameter_listarray/listArray / List of any custom parameters associated with each token. These custom parameters only exist if they were set using the SetParams API. See Token/SetParams for more details.

See object for more details

elements

NameTypeDescription
typestringElement Type L, D, G (L=Lettering, D=Design, G=Group of Elements).
referenceidstringUnique Identifier for group. This element will be only available for group type elements
elementsobject arrayOnly available for 'G' type elements. Each object in the array supports all the properties and methods available for each element type (Design, Lettering).
serviceidintEmbellishment / Service ID (1 = Embroidery, 2 = Printing).
elementidintThe unique identifier for the element.
element_namestringElement Name defined during the element creation process.
design_namestringThe design name (available only for design elements).
alphabet_namestringThe selected alphabet/font name, for example, Block, Arial (available only for lettering type elements).
file_namestringThe file name of the selected alphabet/font/design. For example, Block.ofa, Arial.ttf, disney.ofm or football.eps.
textstringThe text entetred by the user. The default text will be returned if the text input is hidden or if the text is not changed by the user (available for only lettering type elements).
stitchesintThe number of embroidery stitches. 0 will be returned for print text and designs.
widthfloatThe element width in millimeters. This will be in pixels for graphic designs (i.e. .png, .jpeg). This is available for designs only.
heightfloatThe element height in millimeters. This will be in pixels for graphic designs (i.e. .png, .jpeg). This is available for designs only.
visibleint Returns element visibility overrides by JavaScript API, it returns following values
0 false
1 true
-1 No change inherited from ready
colorsobjectList of Colors in the Lettering/Design object

See object for more details

colors

NameTypeDescription
namestringThe display name of the color.
manufacturerstringThe name of the thread manufacturer. Blank string for print colors.
thread_codestringThe code or thread number of the embroidery thread. Blank string for print colors.
rintColor R value.
gintColor G value.
bintColor B value.
typestringThe type of element layer. This is only available for embroidery designs. Possible values: a = applique, e = embroidery, s = sequin.
height_mmfloatIf the type attribute is "a", this will contain the height of the applique layer in millimeters. Otherwise, this will return 0. Available only for embroidery designs.
width_mmfloatIf the type attribute is "a", this will contain the width of the applique layer in millimeters. Otherwise, this will return 0. Available only for embroidery designs.

custom_parameter_list

NameTypeDescription
parameter_keystringThe key (or name) of the parameter.
parameter_valuestringThe value of the parameter.


Expected Response
<!-- example 1 (compositions) -->

<Response>
  <Success>true</Success>
  <Definition>
    <PersonalizationToken>3f1393d16d4a4882a3fe51d02f0955cf</PersonalizationToken>
    <ReadyName></ReadyName>
    <ReadyToken>READY-1565</ReadyToken>
    <CreatedOn>2013-04-12T15:22:36.017</CreatedOn>
    <LastUpdated>2013-04-12T15:22:38.903</LastUpdated>
    <Duration>2</Duration>
    <Status>Saved</Status>
    <SubStatus></SubStatus>
    <CustomParameterList />
    <Elements>
      <Element>
        <Type>G</Type>
        <Height>78.2</Height>
        <Width>90.1</Width>
        <ReferenceID>C002398</ReferenceID>
        <Elements>
          <Element>
            <Type>L</Type>
            <ServiceID>1</ServiceID>
            <ElementID>19420</ElementID>
            <ElementName>LeftChest_Name</ElementName>
            <AlphabetName>Marker</AlphabetName>
            <FileName>Marker.OFA</FileName>
            <Text>Left</Text>
            <Stitches>1224</Stitches>
            <Colors>
              <Color>
                <Name></Name>
                <R>0</R>
                <G>130</G>
                <B>255</B>
                <Manufacturer>CSD</Manufacturer>
                <ThreadName></ThreadName>
                <ThreadCode>8</ThreadCode>
              </Color>
            </Colors>
            <Width>79.700000</Width>
            <Height>27.700000</Height>
            <Visible>0</Visible>
          </Element>
          <Element>
            <Type>D</Type>
            <ReferenceID>D000338</ReferenceID>
            <ServiceID>1</ServiceID>
            <ElementID>19421</ElementID>
            <ElementName>Design1</ElementName>
            <DesignName>HEART</DesignName>
            <FileName>HEART.ofm</FileName>
            <Stitches>1623</Stitches>
            <Colors>
              <Color>
                <Name></Name>
                <R>241</R>
                <G>255</G>
                <B>82</B>
                <Manufacturer>ARC Poly</Manufacturer>
                <ThreadName></ThreadName>
                <ThreadCode>21</ThreadCode>
              </Color>
              <Color>
                <Name></Name>
                <R>207</R>
                <G>76</G>
                <B>63</B>
                <Manufacturer>ARC Poly</Manufacturer>
                <ThreadName></ThreadName>
                <ThreadCode>3016</ThreadCode>
              </Color>
            </Colors>
            <Width>90.10</Width>
            <Height>78.20</Height>
            <Visible>0</Visible>
          </Element>
        </Elements>
        <Name>LeftChest</Name>
      </Element>
      <Element>
        <Type>G</Type>
        <Height>78.2</Height>
        <Width>100.4</Width>
        <ReferenceID>C002399</ReferenceID>
        <Elements>
          <Element>
            <Type>L</Type>
            <ServiceID>1</ServiceID>
            <ElementID>19418</ElementID>
            <ElementName>RightChest_Name</ElementName>
            <AlphabetName>OLDE ENGLISH</AlphabetName>
            <FileName>OLDE ENGLISH.OFA</FileName>
            <Text>Ishwar</Text>
            <Stitches>1870</Stitches>
            <Colors>
              <Color>
                <Name></Name>
                <R>222</R>
                <G>0</G>
                <B>0</B>
                <Manufacturer></Manufacturer>
                <ThreadName></ThreadName>
                <ThreadCode></ThreadCode>
              </Color>
            </Colors>
            <Width>100.400000</Width>
            <Height>30.800000</Height>
            <Visible>1</Visible>
          </Element>
          <Element>
            <Type>D</Type>
            <ReferenceID>D000338</ReferenceID>
            <ServiceID>1</ServiceID>
            <ElementID>19419</ElementID>
            <ElementName>Design1</ElementName>
            <DesignName>HEART</DesignName>
            <FileName>HEART.ofm</FileName>
            <Stitches>1623</Stitches>
            <Colors>
              <Color>
                <Name></Name>
                <R>241</R>
                <G>255</G>
                <B>82</B>
                <Manufacturer>ARC Poly</Manufacturer>
                <ThreadName></ThreadName>
                <ThreadCode>21</ThreadCode>
              </Color>
              <Color>
                <Name></Name>
                <R>207</R>
                <G>76</G>
                <B>63</B>
                <Manufacturer>ARC Poly</Manufacturer>
                <ThreadName></ThreadName>
                <ThreadCode>3016</ThreadCode>
              </Color>
            </Colors>
            <Width>90.10</Width>
            <Height>78.20</Height>
            <Visible>1</Visible>
          </Element>
        </Elements>
        <Name>RightChest</Name>
      </Element>
    </Elements>
  </Definition>
</Response>


<!-- example 2 (if elements dropped on ready directly) -->


<Response>
  <Success>true</Success>
  <Definition>
    <PersonalizationToken>c255e874040747c18bd1a62c6c3f5b42</PersonalizationToken>
    <ReadyName></ReadyName>
    <ReadyToken>READY-1543</ReadyToken>
    <CreatedOn>2013-03-25T17:43:52.303</CreatedOn>
    <LastUpdated>2013-03-25T17:43:56.283</LastUpdated>
    <Duration>4</Duration>
    <Status>Saved</Status>
    <SubStatus></SubStatus>
    <CustomParameterList />
    <Elements>
      <Element>
        <Type>L</Type>
        <ServiceID>1</ServiceID>
        <ElementID>18685</ElementID>
        <ElementName>1</ElementName>
        <AlphabetName>Marker</AlphabetName>
        <FileName>Marker.OFA</FileName>
        <Text>1</Text>
        <Stitches>144</Stitches>
        <Colors>
          <Color>
            <Name></Name>
            <R>0</R>
            <G>130</G>
            <B>255</B>
            <Manufacturer>CSD</Manufacturer>
            <ThreadName></ThreadName>
            <ThreadCode>8</ThreadCode>
          </Color>
        </Colors>
        <Width>9.600000</Width>
        <Height>24.800000</Height>
        <Visible>-1</Visible>
      </Element>
      <Element>
        <Type>L</Type>
        <ServiceID>1</ServiceID>
        <ElementID>18686</ElementID>
        <ElementName>2</ElementName>
        <AlphabetName>Marker</AlphabetName>
        <FileName>Marker.OFA</FileName>
        <Text>2</Text>
        <Stitches>343</Stitches>
        <Colors>
          <Color>
            <Name></Name>
            <R>0</R>
            <G>130</G>
            <B>255</B>
            <Manufacturer>CSD</Manufacturer>
            <ThreadName></ThreadName>
            <ThreadCode>8</ThreadCode>
          </Color>
        </Colors>
        <Width>19.500000</Width>
        <Height>25.600000</Height>
        <Visible>-1</Visible>
      </Element>
      <Element>
        <Type>L</Type>
        <ServiceID>1</ServiceID>
        <ElementID>18687</ElementID>
        <ElementName>3</ElementName>
        <AlphabetName>Marker</AlphabetName>
        <FileName>Marker.OFA</FileName>
        <Text>3</Text>
        <Stitches>433</Stitches>
        <Colors>
          <Color>
            <Name></Name>
            <R>0</R>
            <G>130</G>
            <B>255</B>
            <Manufacturer>CSD</Manufacturer>
            <ThreadName></ThreadName>
            <ThreadCode>8</ThreadCode>
          </Color>
        </Colors>
        <Width>20.700000</Width>
        <Height>25.300000</Height>
        <Visible>-1</Visible>
      </Element>
      <Element>
        <Type>L</Type>
        <ServiceID>1</ServiceID>
        <ElementID>18688</ElementID>
        <ElementName>4</ElementName>
        <AlphabetName>Marker</AlphabetName>
        <FileName>Marker.OFA</FileName>
        <Text>4</Text>
        <Stitches>283</Stitches>
        <Colors>
          <Color>
            <Name></Name>
            <R>0</R>
            <G>130</G>
            <B>255</B>
            <Manufacturer>CSD</Manufacturer>
            <ThreadName></ThreadName>
            <ThreadCode>8</ThreadCode>
          </Color>
        </Colors>
        <Width>17.300000</Width>
        <Height>24.700000</Height>
        <Visible>-1</Visible>
      </Element>
      <Element>
        <Type>L</Type>
        <ServiceID>1</ServiceID>
        <ElementID>18689</ElementID>
        <ElementName>5</ElementName>
        <AlphabetName>Marker</AlphabetName>
        <FileName>Marker.OFA</FileName>
        <Text>5</Text>
        <Stitches>401</Stitches>
        <Colors>
          <Color>
            <Name></Name>
            <R>0</R>
            <G>130</G>
            <B>255</B>
            <Manufacturer>CSD</Manufacturer>
            <ThreadName></ThreadName>
            <ThreadCode>8</ThreadCode>
          </Color>
        </Colors>
        <Width>21.500000</Width>
        <Height>25.400000</Height>
        <Visible>-1</Visible>
      </Element>
      <Element>
        <Type>L</Type>
        <ServiceID>1</ServiceID>
        <ElementID>18690</ElementID>
        <ElementName>6</ElementName>
        <AlphabetName>Marker</AlphabetName>
        <FileName>Marker.OFA</FileName>
        <Text>6</Text>
        <Stitches>340</Stitches>
        <Colors>
          <Color>
            <Name></Name>
            <R>0</R>
            <G>130</G>
            <B>255</B>
            <Manufacturer>CSD</Manufacturer>
            <ThreadName></ThreadName>
            <ThreadCode>8</ThreadCode>
          </Color>
        </Colors>
        <Width>16.400000</Width>
        <Height>25.100000</Height>
        <Visible>-1</Visible>
      </Element>
      <Element>
        <Type>L</Type>
        <ServiceID>1</ServiceID>
        <ElementID>18691</ElementID>
        <ElementName>7</ElementName>
        <AlphabetName>Marker</AlphabetName>
        <FileName>Marker.OFA</FileName>
        <Text>7</Text>
        <Stitches>299</Stitches>
        <Colors>
          <Color>
            <Name></Name>
            <R>0</R>
            <G>130</G>
            <B>255</B>
            <Manufacturer>CSD</Manufacturer>
            <ThreadName></ThreadName>
            <ThreadCode>8</ThreadCode>
          </Color>
        </Colors>
        <Width>20.000000</Width>
        <Height>25.300000</Height>
        <Visible>-1</Visible>
      </Element>
      <Element>
        <Type>L</Type>
        <ServiceID>1</ServiceID>
        <ElementID>18692</ElementID>
        <ElementName>8</ElementName>
        <AlphabetName>Marker</AlphabetName>
        <FileName>Marker.OFA</FileName>
        <Text>8</Text>
        <Stitches>529</Stitches>
        <Colors>
          <Color>
            <Name></Name>
            <R>0</R>
            <G>130</G>
            <B>255</B>
            <Manufacturer>CSD</Manufacturer>
            <ThreadName></ThreadName>
            <ThreadCode>8</ThreadCode>
          </Color>
        </Colors>
        <Width>23.300000</Width>
        <Height>24.800000</Height>
        <Visible>-1</Visible>
      </Element>
    </Elements>
  </Definition>
</Response>


Error Response
<Response>
	<Success>false</Success>
	<ErrorCode>MISSING_PARAMETER</ErrorCode>
	<ErrorMessage>Detailed error message</ErrorMessage>
</Response>

Properties

NameTypeDescription
SuccessstringPossible values "true", "false". Returns true if successfully executed and returns false if failed to execute.
DefinitionobjectToken definition object

See object for more details

Definition

NameTypeDescription
PersonalizationTokenstringUnique Identifier for Token/Session.
ReadyNamestringReady Name
ReadyTokenstringReady Unique identifier.
CreatedOnDateTimeToken Creation Time by requested offset.
LastUpdatedDateTimeLast activity Time by requested offset
DurationintDuration of Session (Seconds)
StatusstringToken Statuc (Saved, Dropped, Live)
SubStatusstringToken Sub Status (User Cancelled, Timed Out)
Elementsarray/listList/Array of personalized elements on the Product/Blank. This will be recursive object for composition i.e. if type is other than G then object will contain all the element properties but if the element type is G (Composition) then object will contain composition properties and will contain array of all the elements

See object for more details
CustomParameterListarray/listArray / List of any custom parameters associated with each token. These custom parameters only exist if they were set using the SetParams API. See Token/SetParams for more details.

See object for more details

Elements

NameTypeDescription
TypestringElement Type L, D, G (L=Lettering, D=Design, G=Group of Elements).
ReferenceIDstringUnique Identifier for group. This element will be only available for group type elements
Elementsobject arrayOnly available for 'G' type elements. Each object in the array supports all the properties and methods available for each element type (Design, Lettering).
ServiceIDintEmbellishment / Service ID (1 = Embroidery, 2 = Printing).
ElementIDintThe unique identifier for the element.
ElementNamestringElement Name defined during the element creation process.
DesignNamestringThe design name (available only for design elements).
AlphabetNamestringThe selected alphabet/font name, for example, Block, Arial (available only for lettering type elements).
FileNamestringThe file name of the selected alphabet/font/design. For example, Block.ofa, Arial.ttf, disney.ofm or football.eps.
TextstringThe text entetred by the user. The default text will be returned if the text input is hidden or if the text is not changed by the user (available for only lettering type elements).
StitchesintThe number of embroidery stitches. 0 will be returned for print text and designs.
WidthfloatThe element width in millimeters. This will be in pixels for graphic designs (i.e. .png, .jpeg). This is available for designs only.
HeightfloatThe element height in millimeters. This will be in pixels for graphic designs (i.e. .png, .jpeg). This is available for designs only.
Visibleint Returns element visibility overrides by JavaScript API, it returns following values
0 false
1 true
-1 No change inherited from ready
ColorsobjectList of Colors in the Lettering/Design object

See object for more details

Colors

NameTypeDescription
NamestringThe display name of the color.
ManufacturerstringThe name of the thread manufacturer. Blank string for print colors.
ThreadCodestringThe code or thread number of the embroidery thread. Blank string for print colors.
RintColor R value.
GintColor G value.
BintColor B value.
TypestringThe type of element layer. This is only available for embroidery designs. Possible values: a = applique, e = embroidery, s = sequin.
HeightMmfloatIf the type attribute is "a", this will contain the height of the applique layer in millimeters. Otherwise, this will return 0. Available only for embroidery designs.
WidthMmfloatIf the type attribute is "a", this will contain the width of the applique layer in millimeters. Otherwise, this will return 0. Available only for embroidery designs.

CustomParameterList

NameTypeDescription
ParameterKeystringThe key (or name) of the parameter.
ParameterValuestringThe value of the parameter.


Set Extra token infomation (SetParams)

associate extra information with token. if you execute this method multiple times then it will remove parameters associated previously and will support only 10 parameters at the max.

Method Url

https://client.livedesignerfusion.com/{username}/Token/SetParams

			    

Parameters

NameTypeDefaultRequiredDescription
{username}{username} string true replace {username} with your fusion username in the method url before sending the request.
Token string true Personalization Token.
P.{ParameterName}.{ParameterName} string false parameter's list. For example if you want to associate your UserID with token pass P.UserID={value}



Output / Result

return the reponse as success if executed correctly false if failed.

Properties

NameTypeDescription
successstringPossible values "true", "false". Return true if successfully executed and return false if failed to execute.
error_codestringonly available if failed to execute. This is error identifier. refer to error code list for more details.
error_messagestringonly available if failed to execute. This is detailed message for the error.

Properties

NameTypeDescription
SuccessstringPossible values "true", "false". Return true if successfully executed and return false if failed to execute.
ErrorCodestringonly available if failed to execute. This is error identifier. refer to error code list for more details.
ErrorMessagestringonly available if failed to execute. This is detailed message for the error.


Set Token/Tokens Property (SetProperties)

Set Token/Tokens properties after personalization.

Method Url

https://client.livedesignerfusion.com/{username}/Token/SetProperties

			    

Parameters

NameTypeDefaultRequiredDescription
{username}{username} string true replace {username} with your fusion username in the method url before sending the request.
Property string true Property you want to set.Available properties
1. Personalizer
PrevIdentifier string true Pevious Unique Identifier. Required if you are seting Personalizer property
NewIdentifier string true New Unique Identifier. Required if you are seting Personalizer property



Output / Result

return the reponse as success if executed correctly false if failed.


Expected Response
{
	"success" : true
}


Error Response
{
    "success" : "false",
    "error_code" : "MISSING_PARAMETER",
    "error_message" : "Detailed error message"
}

Properties

NameTypeDescription
successstringPossible values "true", "false". Return true if successfully executed and return false if failed to execute.
error_codestringonly available if failed to execute. This is error identifier. refer to error code list for more details.
error_messagestringonly available if failed to execute. This is detailed message for the error.


Expected Response
<Response>
	<Success>true</Success> 
</Response>


Error Response
<Response>
	<Success>false</Success>
	<ErrorCode>MISSING_PARAMETER</ErrorCode>
	<ErrorMessage>Detailed error message</ErrorMessage>
</Response>

Properties

NameTypeDescription
SuccessstringPossible values "true", "false". Return true if successfully executed and return false if failed to execute.
ErrorCodestringonly available if failed to execute. This is error identifier. refer to error code list for more details.
ErrorMessagestringonly available if failed to execute. This is detailed message for the error.


Get Token Activity (GetActivity)

Return grouped token activity by time.

Method Url

https://client.livedesignerfusion.com/{username}/Token/GetActivity

			    

Parameters

NameTypeDefaultRequiredDescription
{username}{username} string true replace {username} with your fusion username in the method url before sending the request.
UTCOffset double 0 false UTC Time offset. For example, This value will be -6 for MST Time Zone.



Output / Result

Return grouped token activity by time.

Properties

NameTypeDescription
successstringPossible values "true", "false". Return true if successfully executed and return false if failed to execute.
TodayobjectObject with Information for today's tokens.

See object for more details
WeekobjectObject with Information for Week's tokens.

See object for more details
MonthobjectObject with Information of Monthly tokens.

See object for more details
LiveobjectObject with Information of Live tokens.

See object for more details
error_codestringonly available if failed to execute. This is error identifier. refer to error code list for more details.
error_messagestringonly available if failed to execute. This is detailed message for the error.

Today

NameTypeDescription
TotalintTotal Number of token's created today.
DroppedintTotal Number of token's dropped today.
SavedintSaved token's for today.

Week

NameTypeDescription
TotalintTotal Number of token's created this week.
DroppedintTotal Number of token's dropped this week.
SavedintSaved token's this week.

Month

NameTypeDescription
TotalintTotal Number of token's created this month.
DroppedintTotal Number of token's dropped this month.
SavedintSaved token's this month.

Live

NameTypeDescription
TotalintTotal Number of Live token's

Properties

NameTypeDescription
SuccessstringPossible values "true", "false". Return true if successfully executed and return false if failed to execute.
TodayobjectObject with Information for today's tokens.

See object for more details
WeekobjectObject with Information for Week's tokens.

See object for more details
MonthobjectObject with Information of Monthly tokens.

See object for more details
LiveobjectObject with Information of Live tokens.

See object for more details
ErrorCodestringonly available if failed to execute. This is error identifier. refer to error code list for more details.
ErrorMessagestringonly available if failed to execute. This is detailed message for the error.

Today

NameTypeDescription
TotalintTotal Number of token's created today.
DroppedintTotal Number of token's dropped today.
SavedintSaved token's for today.

Week

NameTypeDescription
TotalintTotal Number of token's created this week.
DroppedintTotal Number of token's dropped this week.
SavedintSaved token's this week.

Month

NameTypeDescription
TotalintTotal Number of token's created this month.
DroppedintTotal Number of token's dropped this month.
SavedintSaved token's this month.

Live

NameTypeDescription
TotalintTotal Number of Live token's


Get Token/Session Ranking (GetRanking)

Return grouped token ranking by ranking type and ready. This ranking is grouped by Ready Name.

Method Url

https://client.livedesignerfusion.com/{username}/Token/GetRanking

			    

Parameters

NameTypeDefaultRequiredDescription
{username}{username} string true replace {username} with your fusion username in the method url before sending the request.
TimePeriod string today false Time Filter for result set. Allowed values Day,Week,Month,All)
RecordCount int 5 false How many redies to add in each grouping.



Output / Result

Return grouped token activity by ranking type and readies.

Properties

NameTypeDescription
successstringPossible values "true", "false". Return true if successfully executed and return false if failed to execute.
RankingsArray/ListList of Ranking. It will return three ranking (Requested, Saved,Dropped)

See object for more details
error_codestringonly available if failed to execute. This is error identifier. refer to error code list for more details.
error_messagestringonly available if failed to execute. This is detailed message for the error.

Rankings

NameTypeDescription
TypestringType of Ranking. Possible values Requested, Saved or Dropped.
TotalintTotal Token/Sessions.
ListArray/ListList of readies under this ranking.

See object for more details

List

NameTypeDescription
Tokenstringready Token Name.
TotalintTotal Number of token's for this ready.
PercentagedoublePercentage of the Ready for this grouping.
NamestringReady Name.

Properties

NameTypeDescription
SuccessstringPossible values "true", "false". Return true if successfully executed and return false if failed to execute.
RankingsArray/ListList of Ranking. It will return three ranking (Requested, Saved,Dropped)

See object for more details
ErrorCodestringonly available if failed to execute. This is error identifier. refer to error code list for more details.
ErrorMessagestringonly available if failed to execute. This is detailed message for the error.

Rankings

NameTypeDescription
TypestringType of Ranking. Possible values Requested, Saved or Dropped.
TotalintTotal Token/Sessions.
ListArray/ListList of readies under this ranking.

See object for more details

List

NameTypeDescription
Tokenstringready Token Name.
TotalintTotal Number of token's for this ready.
PercentagedoublePercentage of the Ready for this grouping.
NamestringReady Name.


Search Token existence. (Exists)

Returns object with search results

Method Url

https://client.livedesignerfusion.com/{username}/Token/Exists?parameters

			    

Parameters

NameTypeDefaultRequiredDescription
{username}{username} string true replace {username} with your fusion username in the method url before sending the request.
Token string true Personalization token to be searched.



Output / Result

Returns List of Tokens/Sessions.

Properties

NameTypeDescription
successstringPossible values "true", "false". Return true if successfully executed and return false if failed to execute.
existbooleantrue or false based on search results.
tokenstringpersonalization token value if it's searched.
error_codestringOnly available if failed to execute. This is error identifier. refer to error code list for more details.
error_messagestringOnly available if failed to execute. This is detailed message for the error.

Properties

NameTypeDescription
SuccessstringPossible values "true", "false". Return true if successfully executed and return false if failed to execute.
Existbooleantrue or false based on search results.
Tokenstringpersonalization token value if it's searched.
ErrorCodestringOnly available if failed to execute. This is error identifier. refer to error code list for more details.
ErrorMessagestringOnly available if failed to execute. This is detailed message for the error.


Get Token Stitch Player (GetStitchPlayer)

Render flash based stitch player. It's always suggested to render in iframe or new tab/window.

Method Url

https://client.livedesignerfusion.com/{username}/Token/GetStitchPlayer?parameterlist

			    

Parameters

NameTypeDefaultRequiredDescription
Token string true Personalization Token. Generated and returned by personalization interface.
Height int 400 false Stitch Player Height.
Width int 400 false Stitch Player Width.
Auto boolean false false Automatically start player on load.
Speed int 75 false player rendering speed.



Output / Result

render stitch player.

Composite Image (GetImage)

Retreive the composite image for personalization with product image. Size("Width"x"MaxHeight") 50x50, 100x100,200,400 will pre cached and request will be executed or served fast.

Method Url

https://client.livedesignerfusion.com/{username}/GetImage?{parameterlist}

			    

Parameters

NameTypeDefaultRequiredDescription
{username}{username} string true replace {username} with your fusion username in the method url before sending the request.
Token string true The instance token (returned in CompletePersonalization)
Thumbnail int 0 false 0 if normal image 1 if thumbnail
Width int 0 true Width of the composite image or thumbnail.
MaxHeight int {Width} false Maximum Height of the requested Image. Default value is the equal to the width parameter value.




Example 1: Image with width of 400
var url='https://client.livedesignerfusion.com/'+username+'/Token/GetImage?Token='+data.Token+'&Width=400';

Example 2: Thumbnail with width of 50
var url='https://client.livedesignerfusion.com/'+username+'/Token/GetImage?Token='+data.Token+'&ThumbnailWidth=50&Thumbnail=1';

Output / Result

return the composite image of product & personalization
Version: 3.6.277.0