Designs are end products sold to customers and are created by specifying a single product and a set of artwork or subscriptions.
For example, Bella Canvas 3001 is a product, and your design would be adding a print and a private label to that product, for the purpose of selling it to end customers.
This API allows you to send a design to Apliiq.
200 - OK - product created
400 - Bad request
401 - Unauthorized
{
"ProductCode": "mens_Comfort-Colors-Heavyweight-T-Shirt",
"ColorId": 521,
"MockupTemplateId": 3455677, /* this is the saved design you want to use placement from**/
"Locations": [
{
"Artworks": [
{
"Service": "dtgprint",
"Note": "created through api",
"Id": 3699695
}
],
"Id": 4587,
"ImagePath": "https://cloud-image.com/test/dfhebns.jpg",
"BoxId": 1
}
],
"Subscriptions": [
{
"Placement": {
"Id": 1012,
"Name": "outside neck"
},
"Label": {
"Id": 2921386
},
"Id": 0
}
],
"Name": "coolest comfort color shirt",
"Description": "the coolest shirt you will ever own"
}
{
"ProductId": 409,
"ProductCode": "mens_Comfort-Colors-Heavyweight-T-Shirt",
"ColorId": 521,
"MockupTemplateId": 3455677,
"Locations": [
{
"Artworks": [
{
"Service": "dtgprint",
"Note": "created through api",
"Id": 3699695
}
],
"Id": 4587,
"ImagePath": "//blob.apliiq.com/sitestorage/_debug/Overrides/ProductImage/3110428_45872023-07-31-23-32-51Z2170782_4537_577_880.jpg"
}
],
"Subscriptions": [
{
"Placement": {
"Id": 1012,
"Name": "outside neck"
},
"Label": {
"Id": 2921386
},
"Id": 0
}
],
"Variants": [
{
"SKU": "APQ-3110428S6A1",
"Id": 0,
"Name": "s"
},
{
"SKU": "APQ-3110428S7A1",
"Id": 0,
"Name": "m"
},
{
"SKU": "APQ-3110428S8A1",
"Id": 0,
"Name": "l"
},
{
"SKU": "APQ-3110428S1A1",
"Id": 0,
"Name": "xl"
},
{
"SKU": "APQ-3110428S2A1",
"Id": 0,
"Name": "xxl"
},
{
"SKU": "APQ-3110428S21A1",
"Id": 0,
"Name": "xxxl"
}
],
"Id": 3110428,
"Name": "designAPI_WithMockandArtworkandWLSubscription"
}
DesignCreated
DesignCreated_MockImageUploadFailed - possible reasons include bad url format such as missing protocol, including query parameters.
DesignCreate_Failed
ProductNotFound - invalid product id or non existence product id
NotSupported_Color - Color id is not available for given product
NotSupported_Service - Service id is not available for given product
NotSupported_ServiceColor - Selected hex color is not available for selected service (embroidery or Screen)
NotSupported_Location - specified location id is not available for given product
NotSupported_Subscription - subscription is not found or not available for given product
NotSupported_SubscriptionPlacement - subscription found but specified placement option is not available for given subscription
Missing_ProductCode - missing product code in the request
Missing_ProductId - missing product id in the request
Missing_ColorId - missing product color id in the request
Missing_ColorForSelectedService - only when service is embroidery or screen and no color is specified in the request
Missing_MockUrl - missing image url for location - only when artwork is specified
Missing_ArtworkId - missing artwork id in request - only when service is specified
Missing_SubscriptionSavedDesignId - missing subscription saved design id
Missing_Placement - missing subscription placement
Data_MaxServiceColorsSelected - too many colors selected for service embroidery or screen - max 6 colors
Data_DuplicateArtworkIdUsed - when same artwork id provided more than once in a request - reuse artwork is encourage but not within same request
Data_DuplicateSubscriptionIdUsed -
Data_MaxPrivateLabelSubscription - only 1 private label subscription can be used in each request
Data_ProductCodeNotMatchWithProductId - product code and product id do not match
Data_MaxFileSize - maximum file size of 6MB.
SetupIssue_PlacementConfig - no placement found on a given subscription - contact customer service.