POST tryks/order
Used for posting a sample order request. This requires an authorization token.
Request Information
URI Parameters
None.
Body Parameters
The sample order request.
OrderRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| ProjectName |
The required project name to associate with this order. |
string |
Required |
| TrykColorways |
The list of samples associated with this order. |
Collection of TrykColorwayRequest |
None. |
| TrykGrids |
The list of samples associated with this order. |
Collection of TrykGridRequest |
None. |
Request Formats
application/json, text/json
Sample:
{
"projectName": "sample string 1",
"trykColorways": [
{
"installId": 1,
"printScale": 2.0,
"colorway": {
"designId": 1,
"colorwayId": 2,
"brandId": 3,
"engineId": 4,
"designCode": "sample string 5",
"designName": "sample string 6",
"colorCode": "sample string 7",
"colorName": "sample string 8",
"isDefault": true,
"tileSizes": [
{
"colorwayId": 1,
"count": 2,
"widthInches": 3.0,
"heightInches": 4.0
},
{
"colorwayId": 1,
"count": 2,
"widthInches": 3.0,
"heightInches": 4.0
}
],
"recolorable": true,
"yarns": [
{
"yarnId": 1,
"yarnTypeId": 2,
"code": "sample string 3",
"name": "sample string 4",
"properties": {
"isMetallic": true
},
"children": [],
"isLocked": true
},
{
"yarnId": 1,
"yarnTypeId": 2,
"code": "sample string 3",
"name": "sample string 4",
"properties": {
"isMetallic": true
},
"children": [],
"isLocked": true
}
]
},
"productId": 3,
"roomId": 4,
"physicalDestinations": [
{
"physicalDestinationAddressId": 1,
"fullName": "sample string 2",
"company": "sample string 3",
"emailAddress": "sample string 4",
"telephone": "sample string 5",
"street1": "sample string 6",
"street2": "sample string 7",
"city": "sample string 8",
"state": "sample string 9",
"postalCode": "sample string 10",
"country": "sample string 11"
},
{
"physicalDestinationAddressId": 1,
"fullName": "sample string 2",
"company": "sample string 3",
"emailAddress": "sample string 4",
"telephone": "sample string 5",
"street1": "sample string 6",
"street2": "sample string 7",
"city": "sample string 8",
"state": "sample string 9",
"postalCode": "sample string 10",
"country": "sample string 11"
}
],
"emailDestinations": [
{
"emailDestinationId": 1,
"fullName": "sample string 2",
"emailAddress": "sample string 3"
},
{
"emailDestinationId": 1,
"fullName": "sample string 2",
"emailAddress": "sample string 3"
}
],
"url": "sample string 5"
},
{
"installId": 1,
"printScale": 2.0,
"colorway": {
"designId": 1,
"colorwayId": 2,
"brandId": 3,
"engineId": 4,
"designCode": "sample string 5",
"designName": "sample string 6",
"colorCode": "sample string 7",
"colorName": "sample string 8",
"isDefault": true,
"tileSizes": [
{
"colorwayId": 1,
"count": 2,
"widthInches": 3.0,
"heightInches": 4.0
},
{
"colorwayId": 1,
"count": 2,
"widthInches": 3.0,
"heightInches": 4.0
}
],
"recolorable": true,
"yarns": [
{
"yarnId": 1,
"yarnTypeId": 2,
"code": "sample string 3",
"name": "sample string 4",
"properties": {
"isMetallic": true
},
"children": [],
"isLocked": true
},
{
"yarnId": 1,
"yarnTypeId": 2,
"code": "sample string 3",
"name": "sample string 4",
"properties": {
"isMetallic": true
},
"children": [],
"isLocked": true
}
]
},
"productId": 3,
"roomId": 4,
"physicalDestinations": [
{
"physicalDestinationAddressId": 1,
"fullName": "sample string 2",
"company": "sample string 3",
"emailAddress": "sample string 4",
"telephone": "sample string 5",
"street1": "sample string 6",
"street2": "sample string 7",
"city": "sample string 8",
"state": "sample string 9",
"postalCode": "sample string 10",
"country": "sample string 11"
},
{
"physicalDestinationAddressId": 1,
"fullName": "sample string 2",
"company": "sample string 3",
"emailAddress": "sample string 4",
"telephone": "sample string 5",
"street1": "sample string 6",
"street2": "sample string 7",
"city": "sample string 8",
"state": "sample string 9",
"postalCode": "sample string 10",
"country": "sample string 11"
}
],
"emailDestinations": [
{
"emailDestinationId": 1,
"fullName": "sample string 2",
"emailAddress": "sample string 3"
},
{
"emailDestinationId": 1,
"fullName": "sample string 2",
"emailAddress": "sample string 3"
}
],
"url": "sample string 5"
}
],
"trykGrids": [
{
"grid": {
"totalColumns": 1,
"totalRows": 2,
"cellSizeInches": 3.0,
"tiles": [
{
"productIndex": 1,
"x": 2,
"y": 3,
"rotation": 4,
"columnSpan": 5,
"rowSpan": 6
},
{
"productIndex": 1,
"x": 2,
"y": 3,
"rotation": 4,
"columnSpan": 5,
"rowSpan": 6
}
]
},
"products": [
{
"colorway": {
"designId": 1,
"colorwayId": 2,
"brandId": 3,
"engineId": 4,
"designCode": "sample string 5",
"designName": "sample string 6",
"colorCode": "sample string 7",
"colorName": "sample string 8",
"isDefault": true,
"tileSizes": [
{
"colorwayId": 1,
"count": 2,
"widthInches": 3.0,
"heightInches": 4.0
},
{
"colorwayId": 1,
"count": 2,
"widthInches": 3.0,
"heightInches": 4.0
}
],
"recolorable": true,
"yarns": [
{
"yarnId": 1,
"yarnTypeId": 2,
"code": "sample string 3",
"name": "sample string 4",
"properties": {
"isMetallic": true
},
"children": [],
"isLocked": true
},
{
"yarnId": 1,
"yarnTypeId": 2,
"code": "sample string 3",
"name": "sample string 4",
"properties": {
"isMetallic": true
},
"children": [],
"isLocked": true
}
]
},
"size": {
"widthInches": 1.0,
"heightInches": 2.0
}
},
{
"colorway": {
"designId": 1,
"colorwayId": 2,
"brandId": 3,
"engineId": 4,
"designCode": "sample string 5",
"designName": "sample string 6",
"colorCode": "sample string 7",
"colorName": "sample string 8",
"isDefault": true,
"tileSizes": [
{
"colorwayId": 1,
"count": 2,
"widthInches": 3.0,
"heightInches": 4.0
},
{
"colorwayId": 1,
"count": 2,
"widthInches": 3.0,
"heightInches": 4.0
}
],
"recolorable": true,
"yarns": [
{
"yarnId": 1,
"yarnTypeId": 2,
"code": "sample string 3",
"name": "sample string 4",
"properties": {
"isMetallic": true
},
"children": [],
"isLocked": true
},
{
"yarnId": 1,
"yarnTypeId": 2,
"code": "sample string 3",
"name": "sample string 4",
"properties": {
"isMetallic": true
},
"children": [],
"isLocked": true
}
]
},
"size": {
"widthInches": 1.0,
"heightInches": 2.0
}
}
],
"productId": 1,
"roomId": 2,
"physicalDestinations": [
{
"physicalDestinationAddressId": 1,
"fullName": "sample string 2",
"company": "sample string 3",
"emailAddress": "sample string 4",
"telephone": "sample string 5",
"street1": "sample string 6",
"street2": "sample string 7",
"city": "sample string 8",
"state": "sample string 9",
"postalCode": "sample string 10",
"country": "sample string 11"
},
{
"physicalDestinationAddressId": 1,
"fullName": "sample string 2",
"company": "sample string 3",
"emailAddress": "sample string 4",
"telephone": "sample string 5",
"street1": "sample string 6",
"street2": "sample string 7",
"city": "sample string 8",
"state": "sample string 9",
"postalCode": "sample string 10",
"country": "sample string 11"
}
],
"emailDestinations": [
{
"emailDestinationId": 1,
"fullName": "sample string 2",
"emailAddress": "sample string 3"
},
{
"emailDestinationId": 1,
"fullName": "sample string 2",
"emailAddress": "sample string 3"
}
],
"url": "sample string 3"
},
{
"grid": {
"totalColumns": 1,
"totalRows": 2,
"cellSizeInches": 3.0,
"tiles": [
{
"productIndex": 1,
"x": 2,
"y": 3,
"rotation": 4,
"columnSpan": 5,
"rowSpan": 6
},
{
"productIndex": 1,
"x": 2,
"y": 3,
"rotation": 4,
"columnSpan": 5,
"rowSpan": 6
}
]
},
"products": [
{
"colorway": {
"designId": 1,
"colorwayId": 2,
"brandId": 3,
"engineId": 4,
"designCode": "sample string 5",
"designName": "sample string 6",
"colorCode": "sample string 7",
"colorName": "sample string 8",
"isDefault": true,
"tileSizes": [
{
"colorwayId": 1,
"count": 2,
"widthInches": 3.0,
"heightInches": 4.0
},
{
"colorwayId": 1,
"count": 2,
"widthInches": 3.0,
"heightInches": 4.0
}
],
"recolorable": true,
"yarns": [
{
"yarnId": 1,
"yarnTypeId": 2,
"code": "sample string 3",
"name": "sample string 4",
"properties": {
"isMetallic": true
},
"children": [],
"isLocked": true
},
{
"yarnId": 1,
"yarnTypeId": 2,
"code": "sample string 3",
"name": "sample string 4",
"properties": {
"isMetallic": true
},
"children": [],
"isLocked": true
}
]
},
"size": {
"widthInches": 1.0,
"heightInches": 2.0
}
},
{
"colorway": {
"designId": 1,
"colorwayId": 2,
"brandId": 3,
"engineId": 4,
"designCode": "sample string 5",
"designName": "sample string 6",
"colorCode": "sample string 7",
"colorName": "sample string 8",
"isDefault": true,
"tileSizes": [
{
"colorwayId": 1,
"count": 2,
"widthInches": 3.0,
"heightInches": 4.0
},
{
"colorwayId": 1,
"count": 2,
"widthInches": 3.0,
"heightInches": 4.0
}
],
"recolorable": true,
"yarns": [
{
"yarnId": 1,
"yarnTypeId": 2,
"code": "sample string 3",
"name": "sample string 4",
"properties": {
"isMetallic": true
},
"children": [],
"isLocked": true
},
{
"yarnId": 1,
"yarnTypeId": 2,
"code": "sample string 3",
"name": "sample string 4",
"properties": {
"isMetallic": true
},
"children": [],
"isLocked": true
}
]
},
"size": {
"widthInches": 1.0,
"heightInches": 2.0
}
}
],
"productId": 1,
"roomId": 2,
"physicalDestinations": [
{
"physicalDestinationAddressId": 1,
"fullName": "sample string 2",
"company": "sample string 3",
"emailAddress": "sample string 4",
"telephone": "sample string 5",
"street1": "sample string 6",
"street2": "sample string 7",
"city": "sample string 8",
"state": "sample string 9",
"postalCode": "sample string 10",
"country": "sample string 11"
},
{
"physicalDestinationAddressId": 1,
"fullName": "sample string 2",
"company": "sample string 3",
"emailAddress": "sample string 4",
"telephone": "sample string 5",
"street1": "sample string 6",
"street2": "sample string 7",
"city": "sample string 8",
"state": "sample string 9",
"postalCode": "sample string 10",
"country": "sample string 11"
}
],
"emailDestinations": [
{
"emailDestinationId": 1,
"fullName": "sample string 2",
"emailAddress": "sample string 3"
},
{
"emailDestinationId": 1,
"fullName": "sample string 2",
"emailAddress": "sample string 3"
}
],
"url": "sample string 3"
}
]
}
application/xml
Sample:
Sample not available.
text/xml
Sample:
Sample not available.
application/x-www-form-urlencoded
Sample:
Sample not available.
text/html
Sample:
Sample not available.
Response Information
Resource Description
An HTTP status code indicating success or failure.
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.