Shirtigo Cockpit API API Reference

API for the Shirtigo Cockpit application. The API supports API-Key as well as OAuth2 authentication. The API-key / access token has to be presented in the Authentication header such as Authentication: Bearer [key]. Additionally, it is recommended to set the Accept: application/json header.

API Endpoint
https://cockpit.shirtigo.de/api
Request Content-Types: application/json
Response Content-Types: application/json
Schemes: https
Version: 1.0.0

Authentication

cockpit_oauth

description

This API supports OAuth2 with the authorization-code flow. A detailed tutorial on this topic can be found here. Note that the endpoint is /oauth/, not /api/oauth/ as indicated here in the documentation.

flow
accessCode
authorizationUrl
/oauth/authorize
tokenUrl
/oauth/token

cockpit_apikey

name
Authorization
in
header
description

This API supports access via an API key. A key can be obtained from the integrations dashboard. The key must be presented in the 'Authorization' header, e.g. 'Authorization: Bearer [key]'.

oauth

This section contains endpoints related to the OAuth2 implementation.

Request access token

POST /oauth/token

This endpoint constitutes the second step of the OAuth2 authorization flow, obtaining an access token from the access code. This is done on the client side and does not require any user interaction.

grant_type

Grant type

type
string authorization_code
in
formData
code

Code received in callback from /oauth/authorize

type
string
in
formData
client_id

Client ID (from registration)

type
string
in
formData
client_secret

Client Secret (from registration)

type
string
in
formData
200 OK

Success, token issued.

400 Bad Request

Error.

401 Unauthorized

Error, invalid client (client ID or secret are wrong).

Response Example (200 OK)
{
  "refresh_token": "tYI1iHjH7lGBLlBi+VD6uYYCn3pZo8Do/BSmcgzwTOuZ+f7v/z...",
  "token_type": "Bearer",
  "expires_in": 31536000,
  "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjVjZj..."
}
Response Example (400 Bad Request)
{
  "message": "string",
  "hint": "string",
  "error": "string"
}
Response Example (401 Unauthorized)
{
  "message": "string",
  "hint": "string",
  "error": "string"
}

Obtain authorization from user

GET /oauth/authorize

As part of the OAuth2 authorization-code flow, users have to be directed to this endpoint, with the query parameters filled in. If applicable, the user will then be prompted to log into their account and confirm that their data may be used by a third party client. For security reasons, the redirect URL has to be registered beforehand, the client ID and client secrets are also issued during registration.

response_type

Response type

type
string code
in
query
redirect_url

Redirect URL. Must match registered redirect URL.

type
string
in
query
client_id

Client ID (from registration)

type
string
in
query
client_secret

Client Secret (from registration)

type
string
in
query
200 OK

Success, body contains prompt for confirmation.

302 Found

Success, authorization has been previously granted, redirect to callback.

401 Unauthorized

Error, invalid client (client ID and/or secret is invalid).

user

Endpoints in this section control data of the currently logged in user profile.

Get balance for current user

POST user/balance

Return a Money object for the users current balance

200 OK

Success

Response Example (200 OK)
{
  "currency_factor": 100,
  "currency_symbol": "€",
  "amount": 999,
  "currency_code": "EUR"
}

Get user information

GET /user

Retrieve information about the currently authenticated user.

200 OK

Success

Response Example (200 OK)
{
  "postcode": "12345",
  "is_billing_valid": true,
  "sender_lastname": "string",
  "sender_type": "string",
  "company_name": "Shirtigo GmbH",
  "sender_state": "string",
  "email": "mustermann@example.com",
  "is_business": "true",
  "sender_city": "string",
  "sender_country": "string",
  "sender_company_name": "string",
  "street": "Musterstraße 12",
  "title": "Dr.",
  "updated_at": "2017-01-01 12:34:56",
  "sender_postcode": "string",
  "firstname": "Max",
  "country": "Deutschland",
  "sender_street": "string",
  "display_name": "Max Mustermann",
  "integrations": [
    {
      "name": "my-cool-shirtstore.myshopify.com",
      "id": 111,
      "expires_in": "2018-01-01 12:34:56",
      "app": "shopify"
    }
  ],
  "has_orders": true,
  "phone": "004930123456",
  "city": "Köln",
  "sender_firstname": "string",
  "lastname": "Mustermann",
  "sender_title": "string",
  "user_group": {
    "id": 1,
    "type": "premium",
    "created_at": "2017-01-01 12:34:56",
    "cockpit_discount": 20,
    "quantity": 1000,
    "updated_at": "2017-01-01 12:34:56"
  }
}

Update user information

POST /user

Update (some) fields of the currently authenticated user profile.

firstname: string

Update user information

Update (some) fields of the currently authenticated user profile.

lastname: string

Update user information

Update (some) fields of the currently authenticated user profile.

postcode: string

Update user information

Update (some) fields of the currently authenticated user profile.

street: string

Update user information

Update (some) fields of the currently authenticated user profile.

country: string

Update user information

Update (some) fields of the currently authenticated user profile.

company_name: string

Update user information

Update (some) fields of the currently authenticated user profile.

is_business: boolean

Update user information

Update (some) fields of the currently authenticated user profile.

phone: string

Update user information

Update (some) fields of the currently authenticated user profile.

city: string

Update user information

Update (some) fields of the currently authenticated user profile.

Request Example
{
  "firstname": "string",
  "lastname": "string",
  "postcode": "string",
  "street": "string",
  "country": "string",
  "company_name": "string",
  "is_business": "boolean",
  "phone": "string",
  "city": "string"
}
204 No Content

User information updated.

422 Unprocessable Entity

Validation of inputs failed.

Update sender address

POST /user/sender-address

Update sender address fields of currently authenticated user.

sender_firstname: string (up to 20 chars)

Update sender address

Update sender address fields of currently authenticated user.

sender_city: string (up to 30 chars)

Update sender address

Update sender address fields of currently authenticated user.

sender_lastname: string (up to 20 chars)

Update sender address

Update sender address fields of currently authenticated user.

sender_street: string (up to 35 chars)

Update sender address

Update sender address fields of currently authenticated user.

sender_postcode: string (3 to 9 chars)

Update sender address

Update sender address fields of currently authenticated user.

sender_country: string

Update sender address

Update sender address fields of currently authenticated user.

sender_company_name: string (up to 30 chars)

Update sender address

Update sender address fields of currently authenticated user.

Request Example
{
  "sender_firstname": "string",
  "sender_city": "string",
  "sender_lastname": "string",
  "sender_street": "string",
  "sender_postcode": "string",
  "sender_country": "string",
  "sender_company_name": "string"
}
204 No Content

User information updated.

422 Unprocessable Entity

Validation of inputs failed.

Upload a logo to be used on the delivery receipt for your customers

POST /user/delivery-receipt-logo

Upload a logo to your user account which is printed on the delivery receipt for your customers to increase the branding of your fullfillment

The file needs to be a png with 900px x 385px (width x height).

The endpoint returns an empty array with exit code 200.

file

Design file

type
file
in
formData
200 OK

Success, delivery receipt logo was uploaded

422 Unprocessable Entity

Error, image file does not meet requirements

Get all payments

GET /payments

Retrieve all payments issued by the currently authenticated user. The result will be paginated, meta information is included in the response.

page

Page number

type
integer 1
in
query
items

Items per page

type
integer 12
in
query
search

Search query

type
integer
in
query
sort_col

Property to order by

type
string
in
query
sort_dir

Order direction

type
string asc, desc asc
in
query
period

Days to show (default: all)

type
integer
in
query
action

Action to filter for (default: none)

type
integer
in
query
200 OK

Success

Response Example (200 OK)
{
  "meta": {
    "pagination": {
      "total_pages": 4,
      "links": {
        "next": "string",
        "previous": "string"
      },
      "total": 32,
      "count": 10,
      "per_page": 10,
      "current_page": 2
    }
  },
  "data": [
    {
      "payment_reference": "Kreditkarte",
      "id": "d1364568-4b15-4706-89f1-2452efe1261d",
      "created_at": "2017-01-01 12:34:56",
      "vat_rate": 19,
      "gross_amount": {
        "currency_factor": 100,
        "currency_symbol": "€",
        "amount": 999,
        "currency_code": "EUR"
      },
      "status": "invoice",
      "status_title": "Erstattung",
      "vat_amount": {
        "currency_factor": 100,
        "currency_symbol": "€",
        "amount": 999,
        "currency_code": "EUR"
      },
      "order": {
        "vat_rate": 19,
        "reference": "ABCDXY1",
        "vat_amount": {
          "currency_factor": 100,
          "currency_symbol": "€",
          "amount": 999,
          "currency_code": "EUR"
        },
        "net_price": {
          "currency_factor": 100,
          "currency_symbol": "€",
          "amount": 999,
          "currency_code": "EUR"
        },
        "delivery": {
          "firstname": "Max",
          "lastname": "Mustermann",
          "postcode": "12345",
          "city": "Köln",
          "country": "DE",
          "title": "Dr.",
          "company": "Shirtigo GmbH",
          "street": "Musterstraße 12"
        },
        "sender": {
          "firstname": "Max",
          "lastname": "Mustermann",
          "postcode": "12345",
          "city": "Köln",
          "country": "DE",
          "title": "Dr.",
          "company": "Shirtigo GmbH",
          "street": "Musterstraße 12"
        },
        "orderStatusEntries": {
          "data": [
            {
              "key": "string",
              "created_at": "2017-01-01 12:34:56",
              "updated_at": "2017-01-01 12:34:56",
              "description": "integer",
              "status": "string"
            }
          ]
        },
        "shipping": {
          "tracking_url": "string",
          "created_at": "2017-01-01 12:34:56",
          "type": "delivery",
          "country_code": "DE",
          "cost": {
            "currency_factor": 100,
            "currency_symbol": "€",
            "amount": 999,
            "currency_code": "EUR"
          },
          "is_shipped": false,
          "updated_at": "2017-01-01 12:34:56",
          "tracking_code": "string"
        },
        "created_at": "2017-01-01 12:34:56",
        "payments": {
          "data": [
            {
              "id": "d1364568-4b15-4706-89f1-2452efe1261d",
              "type": "creditcard"
            }
          ]
        }
      }
    }
  ]
}

design

Endpoints in this section manipulate (create, view, modify) designs by the currently logged in user.

Get design

GET /designs/{design-reference}

Retrieve information about a single design. Only searches designs that are available to the currently authenticated user.

design-reference

Unique design identifier

type
string
in
path
200 OK

Success

404 Not Found

Design not found

Response Example (200 OK)
{
  "name": "My cool design",
  "width": 5000,
  "reference": "9e7aba40-3bce-4639-9caa-9a9a0397cbff",
  "height": 3000,
  "original_file": "https://example.com/product.png",
  "complementary_color": "",
  "filename": "ABCDE",
  "updated_at": "2017-01-01 12:34:56",
  "palette": [
    "A20061",
    "FFBC42",
    "1C838A",
    "021618",
    "A3AAAB"
  ],
  "filetype": "png",
  "is_processed": true,
  "created_at": "2017-01-01 12:34:56",
  "is_dark": true,
  "colors": 5,
  "preview": "https://example.com/product_prev.png"
}

Delete design

DELETE /designs/{design-reference}

Only designs by the currently authenticated user may be deleted.

design-reference

Unique design identifier

type
string
in
path
204 No Content

Success, design deleted

404 Not Found

Design not found

Update design

PUT /designs/{design-reference}

Update a single design based on the parameters given in the form body.

name: string

Update design

Update a single design based on the parameters given in the form body.

design-reference

Unique design identifier

type
string
in
path
Request Example
{
  "name": "string"
}
200 OK

Success

404 Not Found

Design not found

Response Example (200 OK)
{
  "name": "My cool design",
  "width": 5000,
  "reference": "9e7aba40-3bce-4639-9caa-9a9a0397cbff",
  "height": 3000,
  "original_file": "https://example.com/product.png",
  "complementary_color": "",
  "filename": "ABCDE",
  "updated_at": "2017-01-01 12:34:56",
  "palette": [
    "A20061",
    "FFBC42",
    "1C838A",
    "021618",
    "A3AAAB"
  ],
  "filetype": "png",
  "is_processed": true,
  "created_at": "2017-01-01 12:34:56",
  "is_dark": true,
  "colors": 5,
  "preview": "https://example.com/product_prev.png"
}

Create design from file

POST /designs/file

Create a new design from the submitted file.

The file must be at least 1000px in width or height and must be formatted either as PNG- or JPEG raster image.

The endpoint returns the created design.

file

Design file

type
file
in
formData
200 OK

Success, all file has been processed

422 Unprocessable Entity

Error, image file does not meet requirements

Response Example (200 OK)
{
  "name": "My cool design",
  "width": 5000,
  "reference": "9e7aba40-3bce-4639-9caa-9a9a0397cbff",
  "height": 3000,
  "original_file": "https://example.com/product.png",
  "complementary_color": "",
  "filename": "ABCDE",
  "updated_at": "2017-01-01 12:34:56",
  "palette": [
    "A20061",
    "FFBC42",
    "1C838A",
    "021618",
    "A3AAAB"
  ],
  "filetype": "png",
  "is_processed": true,
  "created_at": "2017-01-01 12:34:56",
  "is_dark": true,
  "colors": 5,
  "preview": "https://example.com/product_prev.png"
}

Create design from base64-encoded data

POST /designs/base64

Create a new design from the base64-encoded data

The endpoint returns the created design.

original_filename: string

Original file name (optional)

data: string

Base64-encoded data

Request Example
{
  "original_filename": "string",
  "data": "string"
}
200 OK

Success, URL has been processed

422 Unprocessable Entity

Error, URL / image file does not meet requirements

Response Example (200 OK)
{
  "name": "My cool design",
  "width": 5000,
  "reference": "9e7aba40-3bce-4639-9caa-9a9a0397cbff",
  "height": 3000,
  "original_file": "https://example.com/product.png",
  "complementary_color": "",
  "filename": "ABCDE",
  "updated_at": "2017-01-01 12:34:56",
  "palette": [
    "A20061",
    "FFBC42",
    "1C838A",
    "021618",
    "A3AAAB"
  ],
  "filetype": "png",
  "is_processed": true,
  "created_at": "2017-01-01 12:34:56",
  "is_dark": true,
  "colors": 5,
  "preview": "https://example.com/product_prev.png"
}

Get all designs

GET /designs

Retrieve a paginated list of available designs of the currently authenticated user.

200 OK

Success

Response Example (200 OK)
{
  "data": [
    {
      "name": "My cool design",
      "width": 5000,
      "reference": "9e7aba40-3bce-4639-9caa-9a9a0397cbff",
      "height": 3000,
      "original_file": "https://example.com/product.png",
      "complementary_color": "",
      "filename": "ABCDE",
      "updated_at": "2017-01-01 12:34:56",
      "palette": [
        "A20061",
        "FFBC42",
        "1C838A",
        "021618",
        "A3AAAB"
      ],
      "filetype": "png",
      "is_processed": true,
      "created_at": "2017-01-01 12:34:56",
      "is_dark": true,
      "colors": 5,
      "preview": "https://example.com/product_prev.png"
    }
  ]
}

Create design from URL

POST /designs/url

Create a new design from the submitted URL.

The endpoint returns the created design.

url: string

Design file URL

Request Example
{
  "url": "string"
}
200 OK

Success, URL has been processed

422 Unprocessable Entity

Error, URL / image file does not meet requirements

Response Example (200 OK)
{
  "name": "My cool design",
  "width": 5000,
  "reference": "9e7aba40-3bce-4639-9caa-9a9a0397cbff",
  "height": 3000,
  "original_file": "https://example.com/product.png",
  "complementary_color": "",
  "filename": "ABCDE",
  "updated_at": "2017-01-01 12:34:56",
  "palette": [
    "A20061",
    "FFBC42",
    "1C838A",
    "021618",
    "A3AAAB"
  ],
  "filetype": "png",
  "is_processed": true,
  "created_at": "2017-01-01 12:34:56",
  "is_dark": true,
  "colors": 5,
  "preview": "https://example.com/product_prev.png"
}

product

Endpoints in this section retrieve products available to the currently logged in user.

Get all products

GET /products
finished

Only return products where rendering is finished.

type
integer
in
query
200 OK

Success

Response Example (200 OK)
{
  "data": [
    {
      "name": "Base Product Name XY",
      "base_product": {
        "name": "Base product XY",
        "sizechart_image": "string",
        "manufacturer": {
          "name": "Musterfirma",
          "id": 123
        },
        "is_active": "boolean",
        "category": "Unisex-Shirts",
        "shipping_category": 1,
        "short_description": "string",
        "description": "string",
        "sales_price": {
          "data": [
            {
              "type": "generic",
              "price": {
                "currency_factor": 100,
                "currency_symbol": "€",
                "amount": 999,
                "currency_code": "EUR"
              }
            }
          ]
        },
        "images": {
          "data": [
            {
              "sort_position": 1,
              "url": "https://www.example.com/image.jpg"
            }
          ]
        },
        "id": 1,
        "category_id": 5,
        "original_name": "T-Shirt",
        "price": {
          "data": [
            {
              "type": "generic",
              "price": {
                "currency_factor": 100,
                "currency_symbol": "€",
                "amount": 999,
                "currency_code": "EUR"
              }
            }
          ]
        },
        "processing_areas": {
          "data": [
            {
              "width": 2000,
              "width_in_mm": 100,
              "template_width": 1000,
              "position_id": 1,
              "printable_area_margin_from_top": 0,
              "height": 2000,
              "position_name": "front",
              "template": "string",
              "height_in_mm": 100,
              "template_height": 1000
            }
          ]
        },
        "colors": {
          "data": [
            {
              "color": "Black",
              "id": 123,
              "color_hex": "#000000",
              "sizes": [
                {
                  "size": "XL",
                  "id": 67,
                  "is_onlocalstock": true,
                  "is_available": true,
                  "sort_position": 1
                }
              ],
              "is_colored": true
            }
          ]
        }
      },
      "project": "9e7aba40-3bce-4639-9caa-9a9a0397cbff",
      "has_express": false,
      "description": "string",
      "is_rendered": true,
      "price": {
        "currency_factor": 100,
        "currency_symbol": "€",
        "amount": 999,
        "currency_code": "EUR"
      },
      "images": [
        {
          "color": "Red",
          "urls": {
            "large": "http://www.example.com/my-orders/large.png",
            "small": "http://www.example.com/my-orders/small.png"
          },
          "area": "front"
        }
      ],
      "updated_at": "2017-01-01 12:34:56",
      "colors": [
        {}
      ]
    }
  ]
}

Create product

POST /products
custom_name: string

Set a custom name for this product, will be filled with a generated placeholder if not set

base_product_id: integer

Identifier of desired base product

project_id: string

Identifier of existing product

colors: integer[]

List of colors ids

price: integer

Price in Euro-cents

Request Example
{
  "custom_name": "string",
  "base_product_id": 25,
  "project_id": "9e7aba40-3bce-4639-9caa-9a9a0397cbff",
  "colors": [
    "integer"
  ],
  "price": "integer"
}
200 OK

Success

Response Example (200 OK)
{
  "data": [
    {
      "name": "Base Product Name XY",
      "base_product": {
        "name": "Base product XY",
        "sizechart_image": "string",
        "manufacturer": {
          "name": "Musterfirma",
          "id": 123
        },
        "is_active": "boolean",
        "category": "Unisex-Shirts",
        "shipping_category": 1,
        "short_description": "string",
        "description": "string",
        "sales_price": {
          "data": [
            {
              "type": "generic",
              "price": {
                "currency_factor": 100,
                "currency_symbol": "€",
                "amount": 999,
                "currency_code": "EUR"
              }
            }
          ]
        },
        "images": {
          "data": [
            {
              "sort_position": 1,
              "url": "https://www.example.com/image.jpg"
            }
          ]
        },
        "id": 1,
        "category_id": 5,
        "original_name": "T-Shirt",
        "price": {
          "data": [
            {
              "type": "generic",
              "price": {
                "currency_factor": 100,
                "currency_symbol": "€",
                "amount": 999,
                "currency_code": "EUR"
              }
            }
          ]
        },
        "processing_areas": {
          "data": [
            {
              "width": 2000,
              "width_in_mm": 100,
              "template_width": 1000,
              "position_id": 1,
              "printable_area_margin_from_top": 0,
              "height": 2000,
              "position_name": "front",
              "template": "string",
              "height_in_mm": 100,
              "template_height": 1000
            }
          ]
        },
        "colors": {
          "data": [
            {
              "color": "Black",
              "id": 123,
              "color_hex": "#000000",
              "sizes": [
                {
                  "size": "XL",
                  "id": 67,
                  "is_onlocalstock": true,
                  "is_available": true,
                  "sort_position": 1
                }
              ],
              "is_colored": true
            }
          ]
        }
      },
      "project": "9e7aba40-3bce-4639-9caa-9a9a0397cbff",
      "has_express": false,
      "description": "string",
      "is_rendered": true,
      "price": {
        "currency_factor": 100,
        "currency_symbol": "€",
        "amount": 999,
        "currency_code": "EUR"
      },
      "images": [
        {
          "color": "Red",
          "urls": {
            "large": "http://www.example.com/my-orders/large.png",
            "small": "http://www.example.com/my-orders/small.png"
          },
          "area": "front"
        }
      ],
      "updated_at": "2017-01-01 12:34:56",
      "colors": [
        {}
      ]
    }
  ]
}

Get product

GET /products/{product-id}

Retrieve information on a single product.

product-id

Numerical product identifier

type
integer
in
path

Success

404 Not Found

Product not found

Response Example (200 OK)
{
  "name": "Base Product Name XY",
  "base_product": {
    "name": "Base product XY",
    "sizechart_image": "string",
    "manufacturer": {
      "name": "Musterfirma",
      "id": 123
    },
    "is_active": "boolean",
    "category": "Unisex-Shirts",
    "shipping_category": 1,
    "short_description": "string",
    "description": "string",
    "sales_price": {
      "data": [
        {
          "type": "generic",
          "price": {
            "currency_factor": 100,
            "currency_symbol": "€",
            "amount": 999,
            "currency_code": "EUR"
          }
        }
      ]
    },
    "images": {
      "data": [
        {
          "sort_position": 1,
          "url": "https://www.example.com/image.jpg"
        }
      ]
    },
    "id": 1,
    "category_id": 5,
    "original_name": "T-Shirt",
    "price": {
      "data": [
        {
          "type": "generic",
          "price": {
            "currency_factor": 100,
            "currency_symbol": "€",
            "amount": 999,
            "currency_code": "EUR"
          }
        }
      ]
    },
    "processing_areas": {
      "data": [
        {
          "width": 2000,
          "width_in_mm": 100,
          "template_width": 1000,
          "position_id": 1,
          "printable_area_margin_from_top": 0,
          "height": 2000,
          "position_name": "front",
          "template": "string",
          "height_in_mm": 100,
          "template_height": 1000
        }
      ]
    },
    "colors": {
      "data": [
        {
          "color": "Black",
          "id": 123,
          "color_hex": "#000000",
          "sizes": [
            {
              "size": "XL",
              "id": 67,
              "is_onlocalstock": true,
              "is_available": true,
              "sort_position": 1
            }
          ],
          "is_colored": true
        }
      ]
    }
  },
  "project": "9e7aba40-3bce-4639-9caa-9a9a0397cbff",
  "has_express": false,
  "description": "string",
  "is_rendered": true,
  "price": {
    "currency_factor": 100,
    "currency_symbol": "€",
    "amount": 999,
    "currency_code": "EUR"
  },
  "images": [
    {
      "color": "Red",
      "urls": {
        "large": "http://www.example.com/my-orders/large.png",
        "small": "http://www.example.com/my-orders/small.png"
      },
      "area": "front"
    }
  ],
  "updated_at": "2017-01-01 12:34:56",
  "colors": [
    {
      "color": "Black",
      "id": 123
    }
  ]
}

Delete product

DELETE /products/{product-id}
product-id

Numerical product identifier

type
integer
in
path
204 No Content

Success, product deleted

404 Not Found

Product not found

Update product

PUT /products/{product-id}
base_product_id: integer

Numerical base product identifier

project_id: string

Unique product identifier

description: string

Short description

custom_name: string

Product name

price: integer

Product price in Euro-cents

colors: integer[]

List of color ids

product-id

Numerical product identifier

type
integer
in
path
Request Example
{
  "base_product_id": 12,
  "project_id": "9e7aba40-3bce-4639-9caa-9a9a0397cbff",
  "description": "string",
  "custom_name": "My cool product",
  "price": 400,
  "colors": [
    "integer"
  ]
}

Success

404 Not Found

Product not found

Response Example (200 OK)
{
  "name": "Base Product Name XY",
  "base_product": {
    "name": "Base product XY",
    "sizechart_image": "string",
    "manufacturer": {
      "name": "Musterfirma",
      "id": 123
    },
    "is_active": "boolean",
    "category": "Unisex-Shirts",
    "shipping_category": 1,
    "short_description": "string",
    "description": "string",
    "sales_price": {
      "data": [
        {
          "type": "generic",
          "price": {
            "currency_factor": 100,
            "currency_symbol": "€",
            "amount": 999,
            "currency_code": "EUR"
          }
        }
      ]
    },
    "images": {
      "data": [
        {
          "sort_position": 1,
          "url": "https://www.example.com/image.jpg"
        }
      ]
    },
    "id": 1,
    "category_id": 5,
    "original_name": "T-Shirt",
    "price": {
      "data": [
        {
          "type": "generic",
          "price": {
            "currency_factor": 100,
            "currency_symbol": "€",
            "amount": 999,
            "currency_code": "EUR"
          }
        }
      ]
    },
    "processing_areas": {
      "data": [
        {
          "width": 2000,
          "width_in_mm": 100,
          "template_width": 1000,
          "position_id": 1,
          "printable_area_margin_from_top": 0,
          "height": 2000,
          "position_name": "front",
          "template": "string",
          "height_in_mm": 100,
          "template_height": 1000
        }
      ]
    },
    "colors": {
      "data": [
        {
          "color": "Black",
          "id": 123,
          "color_hex": "#000000",
          "sizes": [
            {
              "size": "XL",
              "id": 67,
              "is_onlocalstock": true,
              "is_available": true,
              "sort_position": 1
            }
          ],
          "is_colored": true
        }
      ]
    }
  },
  "project": "9e7aba40-3bce-4639-9caa-9a9a0397cbff",
  "has_express": false,
  "description": "string",
  "is_rendered": true,
  "price": {
    "currency_factor": 100,
    "currency_symbol": "€",
    "amount": 999,
    "currency_code": "EUR"
  },
  "images": [
    {
      "color": "Red",
      "urls": {
        "large": "http://www.example.com/my-orders/large.png",
        "small": "http://www.example.com/my-orders/small.png"
      },
      "area": "front"
    }
  ],
  "updated_at": "2017-01-01 12:34:56",
  "colors": [
    {
      "color": "Black",
      "id": 123
    }
  ]
}

Create provisional product

POST /products/provisional/{base_product_id}

Retrieve information for a draft product

base_product_id

Identifier of desired base product

type
integer
in
path

Success

Response Example (200 OK)
{
  "name": "Base product XY",
  "base_product": {
    "name": "Base product XY",
    "sizechart_image": "string",
    "manufacturer": {
      "name": "Musterfirma",
      "id": 123
    },
    "is_active": "boolean",
    "category": "Unisex-Shirts",
    "shipping_category": 1,
    "short_description": "string",
    "description": "string",
    "sales_price": {
      "data": [
        {
          "type": "generic",
          "price": {
            "currency_factor": 100,
            "currency_symbol": "€",
            "amount": 999,
            "currency_code": "EUR"
          }
        }
      ]
    },
    "images": {
      "data": [
        {
          "sort_position": 1,
          "url": "https://www.example.com/image.jpg"
        }
      ]
    },
    "id": 1,
    "category_id": 5,
    "original_name": "T-Shirt",
    "price": {
      "data": [
        {
          "type": "generic",
          "price": {
            "currency_factor": 100,
            "currency_symbol": "€",
            "amount": 999,
            "currency_code": "EUR"
          }
        }
      ]
    },
    "processing_areas": {
      "data": [
        {
          "width": 2000,
          "width_in_mm": 100,
          "template_width": 1000,
          "position_id": 1,
          "printable_area_margin_from_top": 0,
          "height": 2000,
          "position_name": "front",
          "template": "string",
          "height_in_mm": 100,
          "template_height": 1000
        }
      ]
    },
    "colors": {
      "data": [
        {
          "color": "Black",
          "id": 123,
          "color_hex": "#000000",
          "sizes": [
            {
              "size": "XL",
              "id": 67,
              "is_onlocalstock": true,
              "is_available": true,
              "sort_position": 1
            }
          ],
          "is_colored": true
        }
      ]
    }
  },
  "price": {
    "currency_factor": 100,
    "currency_symbol": "€",
    "amount": 999,
    "currency_code": "EUR"
  },
  "colors": [
    {
      "color": "Black",
      "id": 123,
      "color_hex": "#000000",
      "sizes": [
        {
          "size": "XL",
          "id": 67,
          "is_onlocalstock": true,
          "is_available": true,
          "sort_position": 1
        }
      ],
      "is_colored": true
    }
  ],
  "description": "string"
}

base-product

Endpoints in this section retrieve base products available during product creation.

List available categories

GET /base-categories
200 OK

Success

Response Example (200 OK)
{
  "data": [
    {
      "name": "Unisex-Shirts",
      "id": 10,
      "sort_position": 1
    }
  ]
}

Get base product

GET /base-products/{base-product-id}

Retrieve information on a single base product.

base-product-id

Numerical base product identifier

type
integer
in
path
200 OK

Success

404 Not Found

Product not found

Response Example (200 OK)
{
  "name": "Base product XY",
  "sizechart_image": "string",
  "manufacturer": {
    "name": "Musterfirma",
    "id": 123
  },
  "is_active": "boolean",
  "category": "Unisex-Shirts",
  "shipping_category": 1,
  "short_description": "string",
  "description": "string",
  "sales_price": {
    "data": [
      {
        "type": "generic",
        "price": {
          "currency_factor": 100,
          "currency_symbol": "€",
          "amount": 999,
          "currency_code": "EUR"
        }
      }
    ]
  },
  "images": {
    "data": [
      {
        "sort_position": 1,
        "url": "https://www.example.com/image.jpg"
      }
    ]
  },
  "id": 1,
  "category_id": 5,
  "original_name": "T-Shirt",
  "price": {
    "data": [
      {
        "type": "generic",
        "price": {
          "currency_factor": 100,
          "currency_symbol": "€",
          "amount": 999,
          "currency_code": "EUR"
        }
      }
    ]
  },
  "processing_areas": {
    "data": [
      {
        "width": 2000,
        "width_in_mm": 100,
        "template_width": 1000,
        "position_id": 1,
        "printable_area_margin_from_top": 0,
        "height": 2000,
        "position_name": "front",
        "template": "string",
        "height_in_mm": 100,
        "template_height": 1000
      }
    ]
  },
  "colors": {
    "data": [
      {
        "color": "Black",
        "id": 123,
        "color_hex": "#000000",
        "sizes": [
          {
            "size": "XL",
            "id": 67,
            "is_onlocalstock": true,
            "is_available": true,
            "sort_position": 1
          }
        ],
        "is_colored": true
      }
    ]
  }
}

Get all base products

GET /base-products

Retrieve a list of available base products. Optionally, a category can be passed for filtering.

category

Filter by category identifier (default: any)

type
integer
in
query
200 OK

Success

Response Example (200 OK)
{
  "data": [
    {
      "name": "Base product XY",
      "sizechart_image": "string",
      "manufacturer": {
        "name": "Musterfirma",
        "id": 123
      },
      "is_active": "boolean",
      "category": "Unisex-Shirts",
      "shipping_category": 1,
      "short_description": "string",
      "description": "string",
      "sales_price": {
        "data": [
          {
            "type": "generic",
            "price": {
              "currency_factor": 100,
              "currency_symbol": "€",
              "amount": 999,
              "currency_code": "EUR"
            }
          }
        ]
      },
      "images": {
        "data": [
          {
            "sort_position": 1,
            "url": "https://www.example.com/image.jpg"
          }
        ]
      },
      "id": 1,
      "category_id": 5,
      "original_name": "T-Shirt",
      "price": {
        "data": [
          {
            "type": "generic",
            "price": {
              "currency_factor": 100,
              "currency_symbol": "€",
              "amount": 999,
              "currency_code": "EUR"
            }
          }
        ]
      },
      "processing_areas": {
        "data": [
          {
            "width": 2000,
            "width_in_mm": 100,
            "template_width": 1000,
            "position_id": 1,
            "printable_area_margin_from_top": 0,
            "height": 2000,
            "position_name": "front",
            "template": "string",
            "height_in_mm": 100,
            "template_height": 1000
          }
        ]
      },
      "colors": {
        "data": [
          {
            "color": "Black",
            "id": 123,
            "color_hex": "#000000",
            "sizes": [
              {
                "size": "XL",
                "id": 67,
                "is_onlocalstock": true,
                "is_available": true,
                "sort_position": 1
              }
            ],
            "is_colored": true
          }
        ]
      }
    }
  ]
}

project

Endpoints in this section manipulate (create, view, modify) projects of the currently logged in user.

Get project

GET /projects/{project-reference}

Retrieve information about a single project. Only searches projects that are available to the currently authenticated user.

project-reference

Unique project identifier

type
string
in
path
200 OK

Success

404 Not Found

Project not found

Response Example (200 OK)
{
  "name": "My cool project",
  "created_at": "2017-01-01 12:34:56",
  "reference": "9e7aba40-3bce-4639-9caa-9a9a0397cbff",
  "status": "Finalisiert",
  "products_count": 3,
  "is_published": true,
  "processings": {
    "data": [
      {
        "width": 200,
        "offset_top": 50,
        "offset_center": 0,
        "height": 300,
        "method": "print",
        "updated_at": "2017-01-01 12:34:56",
        "position": "center",
        "area": "front",
        "design": {
          "name": "My cool design",
          "width": 5000,
          "reference": "9e7aba40-3bce-4639-9caa-9a9a0397cbff",
          "height": 3000,
          "original_file": "https://example.com/product.png",
          "complementary_color": "",
          "filename": "ABCDE",
          "updated_at": "2017-01-01 12:34:56",
          "palette": [
            "A20061",
            "FFBC42",
            "1C838A",
            "021618",
            "A3AAAB"
          ],
          "filetype": "png",
          "is_processed": true,
          "created_at": "2017-01-01 12:34:56",
          "is_dark": true,
          "colors": 5,
          "preview": "https://example.com/product_prev.png"
        }
      }
    ]
  },
  "type": "ondemand",
  "updated_at": "2017-01-01 12:34:56"
}

Delete project

DELETE /projects/{project-reference}

Delete the selected project. Only projects that have not yet been transferred can be deleted.

project-reference

Unique project identifier

type
string
in
path
204 No Content

Success, project deleted

404 Not Found

Project not found

502 Bad Gateway

Project could not be dleted due to problems to delete product integrations

Update project

PUT /projects/{project-reference}

Change information about a project

name: string

Project name

project-reference

Unique project identifier

type
string
in
path
Request Example
{
  "name": "My cool project"
}
200 OK

Success

404 Not Found

Project not found

Response Example (200 OK)
{
  "name": "My cool project",
  "created_at": "2017-01-01 12:34:56",
  "reference": "9e7aba40-3bce-4639-9caa-9a9a0397cbff",
  "status": "Finalisiert",
  "products_count": 3,
  "is_published": true,
  "processings": {
    "data": [
      {
        "width": 200,
        "offset_top": 50,
        "offset_center": 0,
        "height": 300,
        "method": "print",
        "updated_at": "2017-01-01 12:34:56",
        "position": "center",
        "area": "front",
        "design": {
          "name": "My cool design",
          "width": 5000,
          "reference": "9e7aba40-3bce-4639-9caa-9a9a0397cbff",
          "height": 3000,
          "original_file": "https://example.com/product.png",
          "complementary_color": "",
          "filename": "ABCDE",
          "updated_at": "2017-01-01 12:34:56",
          "palette": [
            "A20061",
            "FFBC42",
            "1C838A",
            "021618",
            "A3AAAB"
          ],
          "filetype": "png",
          "is_processed": true,
          "created_at": "2017-01-01 12:34:56",
          "is_dark": true,
          "colors": 5,
          "preview": "https://example.com/product_prev.png"
        }
      }
    ]
  },
  "type": "ondemand",
  "updated_at": "2017-01-01 12:34:56"
}

Add processing

POST /projects/{project-reference}/processings

Add processing information to a single project.

undefined
project-reference

Unique project identifier

type
string
in
path
Request Example
{
  "width": 200,
  "offset_top": 50,
  "offset_center": 0,
  "position": "center",
  "method": "print",
  "area": "front",
  "design": "9e7aba40-3bce-4639-9caa-9a9a0397cbff"
}
204 No Content

Success

404 Not Found

Project not found

Publish project

POST /projects/{project-reference}/publish

Publish project draft. To be eligible for publication, a project must have at least one product and one print attached to it.

project-reference

Unique project identifier

type
string
in
path
204 No Content

Success, project transferred

404 Not Found

Project not found

422 Unprocessable Entity

Requirements not fulfilled

Get products for a project

GET /projects/{project-reference}/products

Retrieve information about the products for a single project. Only searches projects that are available to the currently authenticated user.

project-reference

Unique project identifier

type
string
in
path

Success

404 Not Found

Project not found

Response Example (200 OK)
[
  {
    "name": "Base Product Name XY",
    "base_product": {
      "name": "Base product XY",
      "sizechart_image": "string",
      "manufacturer": {
        "name": "Musterfirma",
        "id": 123
      },
      "is_active": "boolean",
      "category": "Unisex-Shirts",
      "shipping_category": 1,
      "short_description": "string",
      "description": "string",
      "sales_price": {
        "data": [
          {
            "type": "generic",
            "price": {
              "currency_factor": 100,
              "currency_symbol": "€",
              "amount": 999,
              "currency_code": "EUR"
            }
          }
        ]
      },
      "images": {
        "data": [
          {
            "sort_position": 1,
            "url": "https://www.example.com/image.jpg"
          }
        ]
      },
      "id": 1,
      "category_id": 5,
      "original_name": "T-Shirt",
      "price": {
        "data": [
          {
            "type": "generic",
            "price": {
              "currency_factor": 100,
              "currency_symbol": "€",
              "amount": 999,
              "currency_code": "EUR"
            }
          }
        ]
      },
      "processing_areas": {
        "data": [
          {
            "width": 2000,
            "width_in_mm": 100,
            "template_width": 1000,
            "position_id": 1,
            "printable_area_margin_from_top": 0,
            "height": 2000,
            "position_name": "front",
            "template": "string",
            "height_in_mm": 100,
            "template_height": 1000
          }
        ]
      },
      "colors": {
        "data": [
          {
            "color": "Black",
            "id": 123,
            "color_hex": "#000000",
            "sizes": [
              {
                "size": "XL",
                "id": 67,
                "is_onlocalstock": true,
                "is_available": true,
                "sort_position": 1
              }
            ],
            "is_colored": true
          }
        ]
      }
    },
    "project": "9e7aba40-3bce-4639-9caa-9a9a0397cbff",
    "has_express": false,
    "description": "string",
    "is_rendered": true,
    "price": {
      "currency_factor": 100,
      "currency_symbol": "€",
      "amount": 999,
      "currency_code": "EUR"
    },
    "images": [
      {
        "color": "Red",
        "urls": {
          "large": "http://www.example.com/my-orders/large.png",
          "small": "http://www.example.com/my-orders/small.png"
        },
        "area": "front"
      }
    ],
    "updated_at": "2017-01-01 12:34:56",
    "colors": [
      {
        "color": "Black"
      }
    ]
  }
]

Synchronize integrations

POST /projects/{project-reference}/sync

Trigger synchronization with all integrations defined for this project. The synchronization is performed in the background. Its status can be observed by querying the is_syncing attribute of the project.

integrations: object[]

Integration ids

project-reference

Unique project identifier

type
string
in
path
Request Example
{
  "integrations": [
    null
  ]
}
204 No Content

Success, all integrations processed

Remove processing

DELETE /projects/{project-reference}/processings/{area}/{position}

Remove processing from specified processing area.

project-reference

Unique project identifier

type
string
in
path
area

Processing site to remove

type
string
in
path
position

Processing position to remove

type
string
in
path
204 No Content

Success

404 Not Found

Project or processing not found

Update processing

PUT /projects/{project-reference}/processings/{area}/{position}

Update processing information on a single project.

undefined
project-reference

Unique project identifier

type
string
in
path
area

Processing site to remove

type
string
in
path
position

Processing position to remove

type
string
in
path
Request Example
{
  "width": 200,
  "offset_top": 50,
  "offset_center": 0,
  "position": "center",
  "method": "print",
  "area": "front",
  "design": "9e7aba40-3bce-4639-9caa-9a9a0397cbff"
}
204 No Content

Success

404 Not Found

Project not found

Get all projects

GET /projects

Retrieve all projects available to the currently authenticated user. The projects are automatically paginated, meta information is included in the response.

page

(no description)

type
integer 1
in
query
200 OK

Success

Response Example (200 OK)
{
  "meta": {
    "pagination": {
      "total_pages": 4,
      "links": {
        "next": "string",
        "previous": "string"
      },
      "total": 32,
      "count": 10,
      "per_page": 10,
      "current_page": 2
    }
  },
  "data": [
    {
      "name": "My cool project",
      "created_at": "2017-01-01 12:34:56",
      "reference": "9e7aba40-3bce-4639-9caa-9a9a0397cbff",
      "status": "Finalisiert",
      "products_count": 3,
      "is_published": true,
      "processings": {
        "data": [
          {
            "width": 200,
            "offset_top": 50,
            "offset_center": 0,
            "height": 300,
            "method": "print",
            "updated_at": "2017-01-01 12:34:56",
            "position": "center",
            "area": "front",
            "design": {
              "name": "My cool design",
              "width": 5000,
              "reference": "9e7aba40-3bce-4639-9caa-9a9a0397cbff",
              "height": 3000,
              "original_file": "https://example.com/product.png",
              "complementary_color": "",
              "filename": "ABCDE",
              "updated_at": "2017-01-01 12:34:56",
              "palette": [
                "A20061",
                "FFBC42",
                "1C838A",
                "021618",
                "A3AAAB"
              ],
              "filetype": "png",
              "is_processed": true,
              "created_at": "2017-01-01 12:34:56",
              "is_dark": true,
              "colors": 5,
              "preview": "https://example.com/product_prev.png"
            }
          }
        ]
      },
      "type": "ondemand",
      "updated_at": "2017-01-01 12:34:56"
    }
  ]
}

Create project

POST /projects

Create a new project and return the inserted information. Associate the project with the currently authenticated user.

name: string

Project name

Request Example
{
  "name": "My cool project"
}
200 OK

Success

Response Example (200 OK)
{
  "name": "My cool project",
  "created_at": "2017-01-01 12:34:56",
  "reference": "9e7aba40-3bce-4639-9caa-9a9a0397cbff",
  "status": "Finalisiert",
  "products_count": 3,
  "is_published": true,
  "processings": {
    "data": [
      {
        "width": 200,
        "offset_top": 50,
        "offset_center": 0,
        "height": 300,
        "method": "print",
        "updated_at": "2017-01-01 12:34:56",
        "position": "center",
        "area": "front",
        "design": {
          "name": "My cool design",
          "width": 5000,
          "reference": "9e7aba40-3bce-4639-9caa-9a9a0397cbff",
          "height": 3000,
          "original_file": "https://example.com/product.png",
          "complementary_color": "",
          "filename": "ABCDE",
          "updated_at": "2017-01-01 12:34:56",
          "palette": [
            "A20061",
            "FFBC42",
            "1C838A",
            "021618",
            "A3AAAB"
          ],
          "filetype": "png",
          "is_processed": true,
          "created_at": "2017-01-01 12:34:56",
          "is_dark": true,
          "colors": 5,
          "preview": "https://example.com/product_prev.png"
        }
      }
    ]
  },
  "type": "ondemand",
  "updated_at": "2017-01-01 12:34:56"
}

order

Endpoints in this section retrieve information about issued orders.

Create Quick-Order

POST /quickorder

Create a design, a product and place an order - in a single step.

delivery: OrderAddress

Create Quick-Order

Create a design, a product and place an order - in a single step.

jobs: object[]

Processing jobs

sender: OrderAddress

Create Quick-Order

Create a design, a product and place an order - in a single step.

Request Example
{
  "delivery": {
    "firstname": "Max",
    "lastname": "Mustermann",
    "postcode": "12345",
    "city": "Köln",
    "country": "DE",
    "title": "Dr.",
    "company": "Shirtigo GmbH",
    "street": "Musterstraße 12"
  },
  "jobs": [
    {
      "base_products": [
        {
          "id": 235,
          "colors": [
            {
              "id": 326,
              "sizes": [
                {
                  "id": 1,
                  "amount": "integer"
                }
              ]
            }
          ]
        }
      ],
      "processings": [
        {
          "width": 200,
          "offset_top": 50,
          "offset_center": 0,
          "position": "center",
          "method": "print",
          "area": "front",
          "design": {
            "url": "https://myurl/myimage.png"
          }
        }
      ]
    }
  ],
  "sender": {
    "firstname": "Max",
    "lastname": "Mustermann",
    "postcode": "12345",
    "city": "Köln",
    "country": "DE",
    "title": "Dr.",
    "company": "Shirtigo GmbH",
    "street": "Musterstraße 12"
  }
}
201 Created

Success, order has been created

401 Unauthorized

Unauthorized (no credentials or not eligible for ordering)

422 Unprocessable Entity

Validation failed, details in response body

Response Example (201 Created)
{
  "vat_rate": 19,
  "reference": "ABCDXY1",
  "vat_amount": {
    "currency_factor": 100,
    "currency_symbol": "€",
    "amount": 999,
    "currency_code": "EUR"
  },
  "net_price": {
    "currency_factor": 100,
    "currency_symbol": "€",
    "amount": 999,
    "currency_code": "EUR"
  },
  "delivery": {
    "firstname": "Max",
    "lastname": "Mustermann",
    "postcode": "12345",
    "city": "Köln",
    "country": "DE",
    "title": "Dr.",
    "company": "Shirtigo GmbH",
    "street": "Musterstraße 12"
  },
  "sender": {
    "firstname": "Max",
    "lastname": "Mustermann",
    "postcode": "12345",
    "city": "Köln",
    "country": "DE",
    "title": "Dr.",
    "company": "Shirtigo GmbH",
    "street": "Musterstraße 12"
  },
  "orderStatusEntries": {
    "data": [
      {
        "key": "string",
        "created_at": "2017-01-01 12:34:56",
        "updated_at": "2017-01-01 12:34:56",
        "description": "integer",
        "status": "string"
      }
    ]
  },
  "shipping": {
    "tracking_url": "string",
    "created_at": "2017-01-01 12:34:56",
    "type": "delivery",
    "country_code": "DE",
    "cost": {
      "currency_factor": 100,
      "currency_symbol": "€",
      "amount": 999,
      "currency_code": "EUR"
    },
    "is_shipped": false,
    "updated_at": "2017-01-01 12:34:56",
    "tracking_code": "string"
  },
  "created_at": "2017-01-01 12:34:56",
  "payments": {
    "data": [
      {
        "id": "d1364568-4b15-4706-89f1-2452efe1261d",
        "type": "creditcard",
        "vat_rate": 19,
        "gross_amount": {
          "currency_factor": 100,
          "currency_symbol": "€",
          "amount": 999,
          "currency_code": "EUR"
        },
        "status": "paid",
        "status_details": "An error occured.",
        "vat_amount": {
          "currency_factor": 100,
          "currency_symbol": "€",
          "amount": 999,
          "currency_code": "EUR"
        },
        "updated_at": "2017-01-01 12:34:56",
        "net_amount": {
          "currency_factor": 100,
          "currency_symbol": "€",
          "amount": 999,
          "currency_code": "EUR"
        }
      }
    ]
  },
  "gross_price": {
    "currency_factor": 100,
    "currency_symbol": "€",
    "amount": 999,
    "currency_code": "EUR"
  },
  "bill": {
    "firstname": "Max",
    "lastname": "Mustermann",
    "postcode": "12345"
  }
}

Calculate price

POST /orders/predict-price

Calculate the full price (incl. shipping and taxes) for the selected order candidate. This can be done before ordering. The parameters are the same as to the "Create Order" endpoint.

delivery: OrderAddress

Create order

Submit a new order for the currently authenticated user. The user must have at least one registered billing method. The sender information is optional, if not provided, the current user information will be used.

products: object[]

Selected products

sender: OrderAddress

Create order

Submit a new order for the currently authenticated user. The user must have at least one registered billing method. The sender information is optional, if not provided, the current user information will be used.

Request Example
{
  "delivery": {
    "firstname": "Max",
    "lastname": "Mustermann",
    "postcode": "12345",
    "city": "Köln",
    "country": "DE",
    "title": "Dr.",
    "company": "Shirtigo GmbH",
    "street": "Musterstraße 12"
  },
  "products": [
    {
      "sizeId": "integer",
      "colorId": "integer",
      "amount": "integer",
      "productId": "integer"
    }
  ],
  "sender": {
    "firstname": "Max",
    "lastname": "Mustermann",
    "postcode": "12345",
    "city": "Köln",
    "country": "DE",
    "title": "Dr.",
    "company": "Shirtigo GmbH",
    "street": "Musterstraße 12"
  }
}
200 OK

Success, price has been calculated

422 Unprocessable Entity

Validation failed, details in response body

Response Example (200 OK)
{
  "included_tax": {
    "currency_factor": 100,
    "currency_symbol": "€",
    "amount": 999,
    "currency_code": "EUR"
  },
  "total_gross_price": {
    "currency_factor": 100,
    "currency_symbol": "€",
    "amount": 999,
    "currency_code": "EUR"
  },
  "products_net_price": {
    "currency_factor": 100,
    "currency_symbol": "€",
    "amount": 999,
    "currency_code": "EUR"
  },
  "total_net_price": {
    "currency_factor": 100,
    "currency_symbol": "€",
    "amount": 999,
    "currency_code": "EUR"
  },
  "shipping_net_price": {
    "currency_factor": 100,
    "currency_symbol": "€",
    "amount": 999,
    "currency_code": "EUR"
  },
  "included_tax_rate": 19
}

Cancel order

POST /orders/{order-reference}/cancel

Set the order status to canceled.

order-reference

Alphanumerical order identifier

type
string
in
path
204 No Content

Success, order has been canceled.

Get order

GET /orders/{order-reference}

Retrieve information about a single order. Only orders visible by the currently authenticated user may be retrieved.

order-reference

Alphanumerical order identifier

type
string
in
path
200 OK

Success

404 Not Found

Order not found

Response Example (200 OK)
{
  "vat_rate": 19,
  "reference": "ABCDXY1",
  "vat_amount": {
    "currency_factor": 100,
    "currency_symbol": "€",
    "amount": 999,
    "currency_code": "EUR"
  },
  "net_price": {
    "currency_factor": 100,
    "currency_symbol": "€",
    "amount": 999,
    "currency_code": "EUR"
  },
  "delivery": {
    "firstname": "Max",
    "lastname": "Mustermann",
    "postcode": "12345",
    "city": "Köln",
    "country": "DE",
    "title": "Dr.",
    "company": "Shirtigo GmbH",
    "street": "Musterstraße 12"
  },
  "sender": {
    "firstname": "Max",
    "lastname": "Mustermann",
    "postcode": "12345",
    "city": "Köln",
    "country": "DE",
    "title": "Dr.",
    "company": "Shirtigo GmbH",
    "street": "Musterstraße 12"
  },
  "orderStatusEntries": {
    "data": [
      {
        "key": "string",
        "created_at": "2017-01-01 12:34:56",
        "updated_at": "2017-01-01 12:34:56",
        "description": "integer",
        "status": "string"
      }
    ]
  },
  "shipping": {
    "tracking_url": "string",
    "created_at": "2017-01-01 12:34:56",
    "type": "delivery",
    "country_code": "DE",
    "cost": {
      "currency_factor": 100,
      "currency_symbol": "€",
      "amount": 999,
      "currency_code": "EUR"
    },
    "is_shipped": false,
    "updated_at": "2017-01-01 12:34:56",
    "tracking_code": "string"
  },
  "created_at": "2017-01-01 12:34:56",
  "payments": {
    "data": [
      {
        "id": "d1364568-4b15-4706-89f1-2452efe1261d",
        "type": "creditcard",
        "vat_rate": 19,
        "gross_amount": {
          "currency_factor": 100,
          "currency_symbol": "€",
          "amount": 999,
          "currency_code": "EUR"
        },
        "status": "paid",
        "status_details": "An error occured.",
        "vat_amount": {
          "currency_factor": 100,
          "currency_symbol": "€",
          "amount": 999,
          "currency_code": "EUR"
        },
        "updated_at": "2017-01-01 12:34:56",
        "net_amount": {
          "currency_factor": 100,
          "currency_symbol": "€",
          "amount": 999,
          "currency_code": "EUR"
        }
      }
    ]
  },
  "gross_price": {
    "currency_factor": 100,
    "currency_symbol": "€",
    "amount": 999,
    "currency_code": "EUR"
  },
  "bill": {
    "firstname": "Max",
    "lastname": "Mustermann",
    "postcode": "12345"
  }
}

Get all orders

GET /orders

Retrieve all orders issued by the currently authenticated user. The result will be paginated, meta information is included in the response.

page

Page number

type
integer 1
in
query
filter

Filter by order status id

type
integer 1
in
query
items

Items per page

type
integer 12
in
query
search

Search query

type
integer
in
query
sort_col

Property to order by

type
string
in
query
sort_dir

Order direction

type
string asc, desc asc
in
query
period

Days to show (default: all)

type
integer
in
query
200 OK

Success

Response Example (200 OK)
{
  "meta": {
    "pagination": {
      "total_pages": 4,
      "links": {
        "next": "string",
        "previous": "string"
      },
      "total": 32,
      "count": 10,
      "per_page": 10,
      "current_page": 2
    }
  },
  "data": [
    {
      "vat_rate": 19,
      "reference": "ABCDXY1",
      "vat_amount": {
        "currency_factor": 100,
        "currency_symbol": "€",
        "amount": 999,
        "currency_code": "EUR"
      },
      "net_price": {
        "currency_factor": 100,
        "currency_symbol": "€",
        "amount": 999,
        "currency_code": "EUR"
      },
      "delivery": {
        "firstname": "Max",
        "lastname": "Mustermann",
        "postcode": "12345",
        "city": "Köln",
        "country": "DE",
        "title": "Dr.",
        "company": "Shirtigo GmbH",
        "street": "Musterstraße 12"
      },
      "sender": {
        "firstname": "Max",
        "lastname": "Mustermann",
        "postcode": "12345",
        "city": "Köln",
        "country": "DE",
        "title": "Dr.",
        "company": "Shirtigo GmbH",
        "street": "Musterstraße 12"
      },
      "orderStatusEntries": {
        "data": [
          {
            "key": "string",
            "created_at": "2017-01-01 12:34:56",
            "updated_at": "2017-01-01 12:34:56",
            "description": "integer",
            "status": "string"
          }
        ]
      },
      "shipping": {
        "tracking_url": "string",
        "created_at": "2017-01-01 12:34:56",
        "type": "delivery",
        "country_code": "DE",
        "cost": {
          "currency_factor": 100,
          "currency_symbol": "€",
          "amount": 999,
          "currency_code": "EUR"
        },
        "is_shipped": false,
        "updated_at": "2017-01-01 12:34:56",
        "tracking_code": "string"
      },
      "created_at": "2017-01-01 12:34:56",
      "payments": {
        "data": [
          {
            "id": "d1364568-4b15-4706-89f1-2452efe1261d",
            "type": "creditcard",
            "vat_rate": 19,
            "gross_amount": {
              "currency_factor": 100,
              "currency_symbol": "€",
              "amount": 999,
              "currency_code": "EUR"
            },
            "status": "paid",
            "status_details": "An error occured.",
            "vat_amount": {
              "currency_factor": 100,
              "currency_symbol": "€",
              "amount": 999,
              "currency_code": "EUR"
            },
            "updated_at": "2017-01-01 12:34:56",
            "net_amount": {
              "currency_factor": 100,
              "currency_symbol": "€"
            }
          }
        ]
      }
    }
  ]
}

Create order

POST /orders

Submit a new order for the currently authenticated user. The user must have at least one registered billing method. The sender information is optional, if not provided, the current user information will be used.

delivery: OrderAddress

Create order

Submit a new order for the currently authenticated user. The user must have at least one registered billing method. The sender information is optional, if not provided, the current user information will be used.

products: object[]

Selected products

sender: OrderAddress

Create order

Submit a new order for the currently authenticated user. The user must have at least one registered billing method. The sender information is optional, if not provided, the current user information will be used.

Request Example
{
  "delivery": {
    "firstname": "Max",
    "lastname": "Mustermann",
    "postcode": "12345",
    "city": "Köln",
    "country": "DE",
    "title": "Dr.",
    "company": "Shirtigo GmbH",
    "street": "Musterstraße 12"
  },
  "products": [
    {
      "sizeId": "integer",
      "colorId": "integer",
      "amount": "integer",
      "productId": "integer"
    }
  ],
  "sender": {
    "firstname": "Max",
    "lastname": "Mustermann",
    "postcode": "12345",
    "city": "Köln",
    "country": "DE",
    "title": "Dr.",
    "company": "Shirtigo GmbH",
    "street": "Musterstraße 12"
  }
}
201 Created

Success, order has been created

401 Unauthorized

Unauthorized (no credentials or not eligible for ordering)

422 Unprocessable Entity

Validation failed, details in response body

Response Example (201 Created)
{
  "vat_rate": 19,
  "reference": "ABCDXY1",
  "vat_amount": {
    "currency_factor": 100,
    "currency_symbol": "€",
    "amount": 999,
    "currency_code": "EUR"
  },
  "net_price": {
    "currency_factor": 100,
    "currency_symbol": "€",
    "amount": 999,
    "currency_code": "EUR"
  },
  "delivery": {
    "firstname": "Max",
    "lastname": "Mustermann",
    "postcode": "12345",
    "city": "Köln",
    "country": "DE",
    "title": "Dr.",
    "company": "Shirtigo GmbH",
    "street": "Musterstraße 12"
  },
  "sender": {
    "firstname": "Max",
    "lastname": "Mustermann",
    "postcode": "12345",
    "city": "Köln",
    "country": "DE",
    "title": "Dr.",
    "company": "Shirtigo GmbH",
    "street": "Musterstraße 12"
  },
  "orderStatusEntries": {
    "data": [
      {
        "key": "string",
        "created_at": "2017-01-01 12:34:56",
        "updated_at": "2017-01-01 12:34:56",
        "description": "integer",
        "status": "string"
      }
    ]
  },
  "shipping": {
    "tracking_url": "string",
    "created_at": "2017-01-01 12:34:56",
    "type": "delivery",
    "country_code": "DE",
    "cost": {
      "currency_factor": 100,
      "currency_symbol": "€",
      "amount": 999,
      "currency_code": "EUR"
    },
    "is_shipped": false,
    "updated_at": "2017-01-01 12:34:56",
    "tracking_code": "string"
  },
  "created_at": "2017-01-01 12:34:56",
  "payments": {
    "data": [
      {
        "id": "d1364568-4b15-4706-89f1-2452efe1261d",
        "type": "creditcard",
        "vat_rate": 19,
        "gross_amount": {
          "currency_factor": 100,
          "currency_symbol": "€",
          "amount": 999,
          "currency_code": "EUR"
        },
        "status": "paid",
        "status_details": "An error occured.",
        "vat_amount": {
          "currency_factor": 100,
          "currency_symbol": "€",
          "amount": 999,
          "currency_code": "EUR"
        },
        "updated_at": "2017-01-01 12:34:56",
        "net_amount": {
          "currency_factor": 100,
          "currency_symbol": "€",
          "amount": 999,
          "currency_code": "EUR"
        }
      }
    ]
  },
  "gross_price": {
    "currency_factor": 100,
    "currency_symbol": "€",
    "amount": 999,
    "currency_code": "EUR"
  },
  "bill": {
    "firstname": "Max",
    "lastname": "Mustermann",
    "postcode": "12345"
  }
}

Get coupon info

GET /coupons/{coupon-code}

Retrieve information about a single order coupon.

coupon-code

Alphanumerical coupon identifier as provided to the customer

type
string
in
200 OK

Success

404 Not Found

Coupon not found

Response Example (200 OK)
{
  "coupon_code": "Shirt-coupon-XYZ",
  "coupon_type": "discount",
  "is_expired": false,
  "discount_brutto": {
    "currency_factor": 100,
    "currency_symbol": "€",
    "amount": 999,
    "currency_code": "EUR"
  },
  "is_active": true,
  "discount_type": "euro",
  "discount_netto": {
    "currency_factor": 100,
    "currency_symbol": "€",
    "amount": 999,
    "currency_code": "EUR"
  },
  "n_activations": "1",
  "expiration_date": "2017-01-01 12:34:56",
  "remaining_activations": "1",
  "min_order_value": {
    "currency_factor": 100,
    "currency_symbol": "€",
    "amount": 999,
    "currency_code": "EUR"
  },
  "new_user_only": "1",
  "discount_percent": 10
}

Retry payment

POST /orders/{order-reference}/repay

Set the order payment method to the current user's payment method and retry credit card capture.

order-reference

Alphanumerical order identifier

type
string
in
path
204 No Content

Success, order has been paid.

400 Bad Request

Payment failed (either duplicate payment or an error occured).

other

This section contains miscellaneous endpoints.

Get selling statistics

GET /selling-statistics

Retrieve statistics about the current user's sales. This endpoint reports the number of sales and the total net amount for four different reporting periods: Last 24 hours, last 7 days, last 30 days and total.

200 OK

Success

Response Example (200 OK)
{
  "today_amount": 1,
  "week_amount": 3,
  "month_amount": 14,
  "month": {
    "currency_factor": 100,
    "currency_symbol": "€",
    "amount": 999,
    "currency_code": "EUR"
  },
  "week": {
    "currency_factor": 100,
    "currency_symbol": "€",
    "amount": 999,
    "currency_code": "EUR"
  },
  "total": {
    "currency_factor": 100,
    "currency_symbol": "€",
    "amount": 999,
    "currency_code": "EUR"
  },
  "total_amount": 36,
  "today": {
    "currency_factor": 100,
    "currency_symbol": "€",
    "amount": 999,
    "currency_code": "EUR"
  }
}

Calculate production cost

POST /calculation

Calculate the net production cost for a given product, set of print areas and color information. The VAT rate rate is preliminary, the final rate depends on the shipping target, involvement of business customers and other factors.

is_colored: boolean

Is this a color print?

product_id: integer

Desired base product

printareas: integer[]

Desired print areas

Request Example
{
  "is_colored": true,
  "product_id": 375,
  "printareas": [
    "integer"
  ]
}
200 OK

Success

404 Not Found

Product not found

Response Example (200 OK)
{
  "vat_rate": 19,
  "currency_factor": 100,
  "currency_symbol": "€",
  "amount": 999,
  "currency_code": "EUR"
}

Get delivery targets

GET /delivery-countries

Retrieve a list of valid delivery target countries. The result is presented as associative array: The array keys consist of upper-case two-letter country codes, the corresponding values are the human readable country names.

200 OK

Success

Response Example (200 OK)
{
  "data": [
    {
      "name": "Germany",
      "iso": "DE"
    }
  ]
}

Schema Definitions

OrderPayment: object

id: string

Unique transaction identifier

type: string

Payment type

vat_rate: integer

VAT rate in percent

gross_amount: Money

Gross price

status: string

Payment status

status_details: string

Payment error description (if there is any)

vat_amount: Money

VAT amount

updated_at: string

Timestamp of last update

net_amount: Money

Net price

Example
{
  "id": "d1364568-4b15-4706-89f1-2452efe1261d",
  "type": "creditcard",
  "vat_rate": 19,
  "gross_amount": {
    "currency_factor": 100,
    "currency_symbol": "€",
    "amount": 999,
    "currency_code": "EUR"
  },
  "status": "paid",
  "status_details": "An error occured.",
  "vat_amount": {
    "currency_factor": 100,
    "currency_symbol": "€",
    "amount": 999,
    "currency_code": "EUR"
  },
  "updated_at": "2017-01-01 12:34:56",
  "net_amount": {
    "currency_factor": 100,
    "currency_symbol": "€",
    "amount": 999,
    "currency_code": "EUR"
  }
}

Country: object

name: string

Country name

iso: string

Two-letter identifier according to ISO 3166-1

Example
{
  "name": "Germany",
  "iso": "DE"
}

OrderAddress: object

Address

firstname: string

First name

lastname: string

Last name

postcode: string

ZIP/area code

city: string

City

country: string

A country iso-code (ISO 3166-1 alpha2) as listed in the /delivery-countries endpoint

title: string

(Academic) title

company: string

Company name

street: string

Street and number

Example
{
  "firstname": "Max",
  "lastname": "Mustermann",
  "postcode": "12345",
  "city": "Köln",
  "country": "DE",
  "title": "Dr.",
  "company": "Shirtigo GmbH",
  "street": "Musterstraße 12"
}

User: object

postcode: string

ZIP code, used for billing

is_billing_valid: boolean

Have billing options been filled out?

sender_lastname: string
sender_type: string full, company, legacy
company_name: string

Company name

sender_state: string
email: string

Email address

is_business: boolean

Is a business customer

sender_city: string
sender_country: string
sender_company_name: string
street: string

Street and number, used for billing

title: string

(Academical) title

updated_at: string

Timestamp of last update

sender_postcode: string
firstname: string

First name(s)

country: string

Country, used for billing

sender_street: string
display_name: string

Display name, e.g. first + last name

integrations: UserIntegration

List of integrations (connected applications) for this user

has_orders: boolean

Does user have orders?

phone: string

Phone nubmer

city: string

City, used for billing

sender_firstname: string
lastname: string

Last name

sender_title: string
user_group: UserGroup
Example
{
  "postcode": "12345",
  "is_billing_valid": true,
  "sender_lastname": "string",
  "sender_type": "string",
  "company_name": "Shirtigo GmbH",
  "sender_state": "string",
  "email": "mustermann@example.com",
  "is_business": "true",
  "sender_city": "string",
  "sender_country": "string",
  "sender_company_name": "string",
  "street": "Musterstraße 12",
  "title": "Dr.",
  "updated_at": "2017-01-01 12:34:56",
  "sender_postcode": "string",
  "firstname": "Max",
  "country": "Deutschland",
  "sender_street": "string",
  "display_name": "Max Mustermann",
  "integrations": [
    {
      "name": "my-cool-shirtstore.myshopify.com",
      "id": 111,
      "expires_in": "2018-01-01 12:34:56",
      "app": "shopify"
    }
  ],
  "has_orders": true,
  "phone": "004930123456",
  "city": "Köln",
  "sender_firstname": "string",
  "lastname": "Mustermann",
  "sender_title": "string",
  "user_group": {
    "id": 1,
    "type": "premium",
    "created_at": "2017-01-01 12:34:56",
    "cockpit_discount": 20,
    "quantity": 1000,
    "updated_at": "2017-01-01 12:34:56"
  }
}

Payment: object

payment_reference: string

Payment reference

id: string

Unique transaction identifier

created_at: string

Timestamp of creation

vat_rate: integer

VAT rate in percent

gross_amount: Money

Gross price

status: string

Payment type

status_title: string

Payment description

vat_amount: Money

VAT amount

order: Order

Order

net_amount: Money

Net price

Example
{
  "payment_reference": "Kreditkarte",
  "id": "d1364568-4b15-4706-89f1-2452efe1261d",
  "created_at": "2017-01-01 12:34:56",
  "vat_rate": 19,
  "gross_amount": {
    "currency_factor": 100,
    "currency_symbol": "€",
    "amount": 999,
    "currency_code": "EUR"
  },
  "status": "invoice",
  "status_title": "Erstattung",
  "vat_amount": {
    "currency_factor": 100,
    "currency_symbol": "€",
    "amount": 999,
    "currency_code": "EUR"
  },
  "order": {
    "vat_rate": 19,
    "reference": "ABCDXY1",
    "vat_amount": {
      "currency_factor": 100,
      "currency_symbol": "€",
      "amount": 999,
      "currency_code": "EUR"
    },
    "net_price": {
      "currency_factor": 100,
      "currency_symbol": "€",
      "amount": 999,
      "currency_code": "EUR"
    },
    "delivery": {
      "firstname": "Max",
      "lastname": "Mustermann",
      "postcode": "12345",
      "city": "Köln",
      "country": "DE",
      "title": "Dr.",
      "company": "Shirtigo GmbH",
      "street": "Musterstraße 12"
    },
    "sender": {
      "firstname": "Max",
      "lastname": "Mustermann",
      "postcode": "12345",
      "city": "Köln",
      "country": "DE",
      "title": "Dr.",
      "company": "Shirtigo GmbH",
      "street": "Musterstraße 12"
    },
    "orderStatusEntries": {
      "data": [
        {
          "key": "string",
          "created_at": "2017-01-01 12:34:56",
          "updated_at": "2017-01-01 12:34:56",
          "description": "integer",
          "status": "string"
        }
      ]
    },
    "shipping": {
      "tracking_url": "string",
      "created_at": "2017-01-01 12:34:56",
      "type": "delivery",
      "country_code": "DE",
      "cost": {
        "currency_factor": 100,
        "currency_symbol": "€",
        "amount": 999,
        "currency_code": "EUR"
      },
      "is_shipped": false,
      "updated_at": "2017-01-01 12:34:56",
      "tracking_code": "string"
    },
    "created_at": "2017-01-01 12:34:56",
    "payments": {
      "data": [
        {
          "id": "d1364568-4b15-4706-89f1-2452efe1261d",
          "type": "creditcard",
          "vat_rate": 19,
          "gross_amount": {
            "currency_factor": 100,
            "currency_symbol": "€",
            "amount": 999,
            "currency_code": "EUR"
          },
          "status": "paid",
          "status_details": "An error occured.",
          "vat_amount": {
            "currency_factor": 100,
            "currency_symbol": "€",
            "amount": 999
          }
        }
      ]
    }
  }
}

ProjectPrint: object

width: integer

Design width in millimeters

offset_top: integer

Vertical offset from top in millimeters

offset_center: integer

Horizontal offset from center in millimeters

height: integer

Design height in millimeters

method: string

Processing method

updated_at: string

Timestamp of last update

position: string

Processing position

area: string

Processing site

design: Design
Example
{
  "width": 200,
  "offset_top": 50,
  "offset_center": 0,
  "height": 300,
  "method": "print",
  "updated_at": "2017-01-01 12:34:56",
  "position": "center",
  "area": "front",
  "design": {
    "name": "My cool design",
    "width": 5000,
    "reference": "9e7aba40-3bce-4639-9caa-9a9a0397cbff",
    "height": 3000,
    "original_file": "https://example.com/product.png",
    "complementary_color": "",
    "filename": "ABCDE",
    "updated_at": "2017-01-01 12:34:56",
    "palette": [
      "A20061",
      "FFBC42",
      "1C838A",
      "021618",
      "A3AAAB"
    ],
    "filetype": "png",
    "is_processed": true,
    "created_at": "2017-01-01 12:34:56",
    "is_dark": true,
    "colors": 5,
    "preview": "https://example.com/product_prev.png"
  }
}

ProductManufacturer: object

name: string

Manufacturer name

id: integer

Numerical identifier

Example
{
  "name": "Musterfirma",
  "id": 123
}

OrderStatusEntry: object

key: string

Order status key

created_at: string

Timestamp of creation

updated_at: string

Timestamp of last update

description: integer

Verbose status description

status: string

Human readable status

Example
{
  "key": "string",
  "created_at": "2017-01-01 12:34:56",
  "updated_at": "2017-01-01 12:34:56",
  "description": "integer",
  "status": "string"
}

ProductProcessingArea: object

width: integer

Width of the printarea in pixels

width_in_mm: integer

Width of the printarea in millimeters

template_width: integer

Default template width

position_id: integer

Numerical identifier

printable_area_margin_from_top: integer

Distance between top and processable area top

height: integer

Height of the printarea in pixels

position_name: string

Name of the printarea

template: string

Template

height_in_mm: integer

Height of the printarea in millimeters

template_height: integer

Default template height

Example
{
  "width": 2000,
  "width_in_mm": 100,
  "template_width": 1000,
  "position_id": 1,
  "printable_area_margin_from_top": 0,
  "height": 2000,
  "position_name": "front",
  "template": "string",
  "height_in_mm": 100,
  "template_height": 1000
}

UserIntegration: object

name: string

The name of the integration, i.e. the shop URL

id: integer

The internal cockpit id of the used user integration

expires_in: string

The name of the integration, i.e. the shop URL

app: string

Name of the integration application

Example
{
  "name": "my-cool-shirtstore.myshopify.com",
  "id": 111,
  "expires_in": "2018-01-01 12:34:56",
  "app": "shopify"
}

ProductPrice: object

type: string

Variant

price: Money

Price

Example
{
  "type": "generic",
  "price": {
    "currency_factor": 100,
    "currency_symbol": "€",
    "amount": 999,
    "currency_code": "EUR"
  }
}

OrderProduct: object

name: string

Product name

id: integer

Product id

amount: integer

Number of items

size: string

Size name

net_total_price: Money

Total price (net_unit_price*amount)

color: string

Color name

net_unit_price: Money

Net unit price

images: UtilProductImage

Available image URLs

Example
{
  "name": "Base product XY",
  "id": "integer",
  "amount": 1,
  "size": "XL",
  "net_total_price": 1375,
  "color": "Black",
  "net_unit_price": {
    "currency_factor": 100,
    "currency_symbol": "€",
    "amount": 999,
    "currency_code": "EUR"
  },
  "images": [
    {
      "color": "Red",
      "urls": {
        "large": "http://www.example.com/my-orders/large.png",
        "small": "http://www.example.com/my-orders/small.png"
      },
      "area": "front"
    }
  ]
}

Product: object

name: string

Product name

sizechart_image: string

URL of the product size table image

manufacturer: ProductManufacturer

Manufacturer information

is_active: boolean

Activation status. Base products may not be available for orders in rare cases.

category: string

Category name

shipping_category: integer

Shipping category

short_description: string

Short description

description: string

Detailed description

sales_price: object

Pricing information on sales

images: object

Product images

id: integer

Numeric identifier of this product

category_id: integer

Numerical category identifier

original_name: string

Base product name

price: object

Pricing information

processing_areas: object

Available processing areas

colors: object

Color information

Example
{
  "name": "Base product XY",
  "sizechart_image": "string",
  "manufacturer": {
    "name": "Musterfirma",
    "id": 123
  },
  "is_active": "boolean",
  "category": "Unisex-Shirts",
  "shipping_category": 1,
  "short_description": "string",
  "description": "string",
  "sales_price": {
    "data": [
      {
        "type": "generic",
        "price": {
          "currency_factor": 100,
          "currency_symbol": "€",
          "amount": 999,
          "currency_code": "EUR"
        }
      }
    ]
  },
  "images": {
    "data": [
      {
        "sort_position": 1,
        "url": "https://www.example.com/image.jpg"
      }
    ]
  },
  "id": 1,
  "category_id": 5,
  "original_name": "T-Shirt",
  "price": {
    "data": [
      {
        "type": "generic",
        "price": {
          "currency_factor": 100,
          "currency_symbol": "€",
          "amount": 999,
          "currency_code": "EUR"
        }
      }
    ]
  },
  "processing_areas": {
    "data": [
      {
        "width": 2000,
        "width_in_mm": 100,
        "template_width": 1000,
        "position_id": 1,
        "printable_area_margin_from_top": 0,
        "height": 2000,
        "position_name": "front",
        "template": "string",
        "height_in_mm": 100,
        "template_height": 1000
      }
    ]
  },
  "colors": {
    "data": [
      {
        "color": "Black",
        "id": 123,
        "color_hex": "#000000",
        "sizes": [
          {
            "size": "XL",
            "id": 67,
            "is_onlocalstock": true,
            "is_available": true,
            "sort_position": 1
          }
        ],
        "is_colored": true
      }
    ]
  }
}

ProductDimensions: object

size: string

Product size name

width: integer

Width in mm

height: integer

Height in mm

Example
{
  "size": "XL",
  "width": 200,
  "height": 500
}

Design: object

name: string

Design Name

width: integer

Width of the design file in pixels

reference: string

Unique identifier of this design

height: integer

Height of the design file in pixels

original_file: string

URL to full resolution image

complementary_color: string

Complementary color

filename: string

Design file name

updated_at: string

Timestamp of last update

palette: string[]

List of hex-codes of representative colors

filetype: string

Extension of the design file name

is_processed: boolean

Has the design been rendered?

created_at: string

Timestamp of creation

is_dark: boolean

Is this a design with dark colors?

colors: integer

Total number of colors in the color palette

preview: string

URL to preview image

Example
{
  "name": "My cool design",
  "width": 5000,
  "reference": "9e7aba40-3bce-4639-9caa-9a9a0397cbff",
  "height": 3000,
  "original_file": "https://example.com/product.png",
  "complementary_color": "",
  "filename": "ABCDE",
  "updated_at": "2017-01-01 12:34:56",
  "palette": [
    "A20061",
    "FFBC42",
    "1C838A",
    "021618",
    "A3AAAB"
  ],
  "filetype": "png",
  "is_processed": true,
  "created_at": "2017-01-01 12:34:56",
  "is_dark": true,
  "colors": 5,
  "preview": "https://example.com/product_prev.png"
}

ProductColor: object

color: string

Color name

id: integer

Numerical identifier

color_hex: string

Hexadecimal RGB color value

sizes: object[]

Available sizes

is_colored: boolean

Is this a non trivial (b/w) color?

Example
{
  "color": "Black",
  "id": 123,
  "color_hex": "#000000",
  "sizes": [
    {
      "size": "XL",
      "id": 67,
      "is_onlocalstock": true,
      "is_available": true,
      "sort_position": 1
    }
  ],
  "is_colored": true
}

ProjectProductIntegrationSync: object

is_successful: boolean

Has the product been rendered?

integration_name: string

Name of the integration application

is_syncing: boolean

Is the product available?

updated_at: string

Timestamp of last update

integration_id: integer

The cockpit internal id of the used user integration

integration_product_id: string

The identifier used by the integration application

Example
{
  "is_successful": true,
  "integration_name": "shopify",
  "is_syncing": true,
  "updated_at": "2017-01-01 12:34:56",
  "integration_id": 111,
  "integration_product_id": "9286211826"
}

MoneyVatInclude:

vat_rate: integer

Value added tax (VAT) rate in percent as an integer

Example
{
  "vat_rate": 19
}

UserGroup: object

id: integer

Numerical group identifier

type: string

Group name

created_at: string

Timestamp of creation

cockpit_discount: integer

Discount in percent

quantity: integer

Required number of sold products

updated_at: string

Timestamp of last update

Example
{
  "id": 1,
  "type": "premium",
  "created_at": "2017-01-01 12:34:56",
  "cockpit_discount": 20,
  "quantity": 1000,
  "updated_at": "2017-01-01 12:34:56"
}

Pagination: object

Pagination information

total_pages: integer

Total number of pages

links: object

URLs of adjacent pages

total: integer

Total number of items

count: integer

Number of items on current page

per_page: integer

Default number of items per page

current_page: integer

Index of current page

Example
{
  "total_pages": 4,
  "links": {
    "next": "string",
    "previous": "string"
  },
  "total": 32,
  "count": 10,
  "per_page": 10,
  "current_page": 2
}

ProjectWithProducts:

products: Product

Products associated with this Project

Example
{
  "products": [
    {
      "name": "Base product XY",
      "sizechart_image": "string",
      "manufacturer": {
        "name": "Musterfirma",
        "id": 123
      },
      "is_active": "boolean",
      "category": "Unisex-Shirts",
      "shipping_category": 1,
      "short_description": "string",
      "description": "string",
      "sales_price": {
        "data": [
          {
            "type": "generic",
            "price": {
              "currency_factor": 100,
              "currency_symbol": "€",
              "amount": 999,
              "currency_code": "EUR"
            }
          }
        ]
      },
      "images": {
        "data": [
          {
            "sort_position": 1,
            "url": "https://www.example.com/image.jpg"
          }
        ]
      },
      "id": 1,
      "category_id": 5,
      "original_name": "T-Shirt",
      "price": {
        "data": [
          {
            "type": "generic",
            "price": {
              "currency_factor": 100,
              "currency_symbol": "€",
              "amount": 999,
              "currency_code": "EUR"
            }
          }
        ]
      },
      "processing_areas": {
        "data": [
          {
            "width": 2000,
            "width_in_mm": 100,
            "template_width": 1000,
            "position_id": 1,
            "printable_area_margin_from_top": 0,
            "height": 2000,
            "position_name": "front",
            "template": "string",
            "height_in_mm": 100,
            "template_height": 1000
          }
        ]
      }
    }
  ],
  "name": "My cool project",
  "created_at": "2017-01-01 12:34:56",
  "reference": "9e7aba40-3bce-4639-9caa-9a9a0397cbff",
  "status": "Finalisiert",
  "products_count": 3,
  "is_published": true,
  "processings": {
    "data": [
      {
        "width": 200,
        "offset_top": 50,
        "offset_center": 0,
        "height": 300,
        "method": "print",
        "updated_at": "2017-01-01 12:34:56",
        "position": "center",
        "area": "front",
        "design": {
          "name": "My cool design",
          "width": 5000,
          "reference": "9e7aba40-3bce-4639-9caa-9a9a0397cbff",
          "height": 3000,
          "original_file": "https://example.com/product.png",
          "complementary_color": "",
          "filename": "ABCDE",
          "updated_at": "2017-01-01 12:34:56",
          "palette": [
            "A20061",
            "FFBC42",
            "1C838A",
            "021618",
            "A3AAAB"
          ],
          "filetype": "png",
          "is_processed": true,
          "created_at": "2017-01-01 12:34:56",
          "is_dark": true,
          "colors": 5,
          "preview": "https://example.com/product_prev.png"
        }
      }
    ]
  },
  "type": "ondemand",
  "updated_at": "2017-01-01 12:34:56"
}

MoneyWithVat: object

Example
{
  "vat_rate": 19,
  "currency_factor": 100,
  "currency_symbol": "€",
  "amount": 999,
  "currency_code": "EUR"
}

Coupon: object

coupon_code: string

The identifier on the promo coupon

coupon_type: string

The type of the coupon (discount, free shipping, etc.)

is_expired: boolean

Flag to indicate if the coupon is expired

discount_brutto: Money

The gross granted discount in euro cent (filled for discount type euro)

is_active: boolean

Activation status of coupon

discount_type: string

The type of discount, either percentage or euro

discount_netto: Money

The granted discount without sales taxes in euro cent (filled for discount type euro)

n_activations: integer

Number of usages for this coupon

expiration_date: string

Timestamp for the validity of the coupon code

remaining_activations: integer

Number of remaining usages for this coupon

min_order_value: Money

Minimal total value in euro cents for an order to make this coupon applicable

new_user_only: integer

Flag to indicate if the coupon is for new users only

discount_percent: integer

The granted discount in percent on the cart value without handling and shipping (filled for discount type percentage)

Example
{
  "coupon_code": "Shirt-coupon-XYZ",
  "coupon_type": "discount",
  "is_expired": false,
  "discount_brutto": {
    "currency_factor": 100,
    "currency_symbol": "€",
    "amount": 999,
    "currency_code": "EUR"
  },
  "is_active": true,
  "discount_type": "euro",
  "discount_netto": {
    "currency_factor": 100,
    "currency_symbol": "€",
    "amount": 999,
    "currency_code": "EUR"
  },
  "n_activations": "1",
  "expiration_date": "2017-01-01 12:34:56",
  "remaining_activations": "1",
  "min_order_value": {
    "currency_factor": 100,
    "currency_symbol": "€",
    "amount": 999,
    "currency_code": "EUR"
  },
  "new_user_only": "1",
  "discount_percent": 10
}

ProvisionalProduct: object

name: string

Product name

base_product: Product

Base product

price: Money

Net price

colors: ProductColor

List of available colors

description: string

Short description

Example
{
  "name": "Base product XY",
  "base_product": {
    "name": "Base product XY",
    "sizechart_image": "string",
    "manufacturer": {
      "name": "Musterfirma",
      "id": 123
    },
    "is_active": "boolean",
    "category": "Unisex-Shirts",
    "shipping_category": 1,
    "short_description": "string",
    "description": "string",
    "sales_price": {
      "data": [
        {
          "type": "generic",
          "price": {
            "currency_factor": 100,
            "currency_symbol": "€",
            "amount": 999,
            "currency_code": "EUR"
          }
        }
      ]
    },
    "images": {
      "data": [
        {
          "sort_position": 1,
          "url": "https://www.example.com/image.jpg"
        }
      ]
    },
    "id": 1,
    "category_id": 5,
    "original_name": "T-Shirt",
    "price": {
      "data": [
        {
          "type": "generic",
          "price": {
            "currency_factor": 100,
            "currency_symbol": "€",
            "amount": 999,
            "currency_code": "EUR"
          }
        }
      ]
    },
    "processing_areas": {
      "data": [
        {
          "width": 2000,
          "width_in_mm": 100,
          "template_width": 1000,
          "position_id": 1,
          "printable_area_margin_from_top": 0,
          "height": 2000,
          "position_name": "front",
          "template": "string",
          "height_in_mm": 100,
          "template_height": 1000
        }
      ]
    },
    "colors": {
      "data": [
        {
          "color": "Black",
          "id": 123,
          "color_hex": "#000000",
          "sizes": [
            {
              "size": "XL",
              "id": 67,
              "is_onlocalstock": true,
              "is_available": true,
              "sort_position": 1
            }
          ],
          "is_colored": true
        }
      ]
    }
  },
  "price": {
    "currency_factor": 100,
    "currency_symbol": "€",
    "amount": 999,
    "currency_code": "EUR"
  },
  "colors": [
    {
      "color": "Black",
      "id": 123,
      "color_hex": "#000000",
      "sizes": [
        {
          "size": "XL",
          "id": 67,
          "is_onlocalstock": true,
          "is_available": true,
          "sort_position": 1
        }
      ],
      "is_colored": true
    }
  ],
  "description": "string"
}

UtilProductImage: object

color: string

Color name

urls: object

Product name

area: string

Processing area name

Example
{
  "color": "Red",
  "urls": {
    "large": "http://www.example.com/my-orders/large.png",
    "small": "http://www.example.com/my-orders/small.png"
  },
  "area": "front"
}

Project: object

name: string

Project name

created_at: string

Timestamp of initial creation

reference: string

Unique identifier of this project

status: string

Project status

products_count: integer

Number of products

is_published: boolean

Has the project been published?

processings: object

Processings associated with this project

type: string

Type

updated_at: string

Timestamp of last update

Example
{
  "name": "My cool project",
  "created_at": "2017-01-01 12:34:56",
  "reference": "9e7aba40-3bce-4639-9caa-9a9a0397cbff",
  "status": "Finalisiert",
  "products_count": 3,
  "is_published": true,
  "processings": {
    "data": [
      {
        "width": 200,
        "offset_top": 50,
        "offset_center": 0,
        "height": 300,
        "method": "print",
        "updated_at": "2017-01-01 12:34:56",
        "position": "center",
        "area": "front",
        "design": {
          "name": "My cool design",
          "width": 5000,
          "reference": "9e7aba40-3bce-4639-9caa-9a9a0397cbff",
          "height": 3000,
          "original_file": "https://example.com/product.png",
          "complementary_color": "",
          "filename": "ABCDE",
          "updated_at": "2017-01-01 12:34:56",
          "palette": [
            "A20061",
            "FFBC42",
            "1C838A",
            "021618",
            "A3AAAB"
          ],
          "filetype": "png",
          "is_processed": true,
          "created_at": "2017-01-01 12:34:56",
          "is_dark": true,
          "colors": 5,
          "preview": "https://example.com/product_prev.png"
        }
      }
    ]
  },
  "type": "ondemand",
  "updated_at": "2017-01-01 12:34:56"
}

Money: object

currency_factor: integer

Number of cents in one unit of currency

currency_symbol: string

Currency symbol

amount: integer

Price in cents

currency_code: string

Three letter ISO 4217 code

Example
{
  "currency_factor": 100,
  "currency_symbol": "€",
  "amount": 999,
  "currency_code": "EUR"
}

ProjectProduct: object

name: string

Product name

base_product: Product

Base product

project: string

Project reference

has_express: boolean

Is the product available for express processing?

description: string

Short description in HTML format

is_rendered: boolean

Has the product been rendered?

price: Money

Net price

images: UtilProductImage

Product images

updated_at: string

Timestamp of last update

colors: ProductColor

List of available colors

id: integer

Numerical identifier

active_integration_syncs: ProjectProductIntegrationSync

List of currently active synchronizations with integrations

integration_products: ProjectIntegrationProduct

List of integration products (e.g. products in shopify) for this products

custom_name: string

User defined product name

is_available: boolean

Is the product available?

integration_sync_log: ProjectProductIntegrationSync

History of synchronizations with integrations for this product

project_name: string

Project name

Example
{
  "name": "Base Product Name XY",
  "base_product": {
    "name": "Base product XY",
    "sizechart_image": "string",
    "manufacturer": {
      "name": "Musterfirma",
      "id": 123
    },
    "is_active": "boolean",
    "category": "Unisex-Shirts",
    "shipping_category": 1,
    "short_description": "string",
    "description": "string",
    "sales_price": {
      "data": [
        {
          "type": "generic",
          "price": {
            "currency_factor": 100,
            "currency_symbol": "€",
            "amount": 999,
            "currency_code": "EUR"
          }
        }
      ]
    },
    "images": {
      "data": [
        {
          "sort_position": 1,
          "url": "https://www.example.com/image.jpg"
        }
      ]
    },
    "id": 1,
    "category_id": 5,
    "original_name": "T-Shirt",
    "price": {
      "data": [
        {
          "type": "generic",
          "price": {
            "currency_factor": 100,
            "currency_symbol": "€",
            "amount": 999,
            "currency_code": "EUR"
          }
        }
      ]
    },
    "processing_areas": {
      "data": [
        {
          "width": 2000,
          "width_in_mm": 100,
          "template_width": 1000,
          "position_id": 1,
          "printable_area_margin_from_top": 0,
          "height": 2000,
          "position_name": "front",
          "template": "string",
          "height_in_mm": 100,
          "template_height": 1000
        }
      ]
    },
    "colors": {
      "data": [
        {
          "color": "Black",
          "id": 123,
          "color_hex": "#000000",
          "sizes": [
            {
              "size": "XL",
              "id": 67,
              "is_onlocalstock": true,
              "is_available": true,
              "sort_position": 1
            }
          ],
          "is_colored": true
        }
      ]
    }
  },
  "project": "9e7aba40-3bce-4639-9caa-9a9a0397cbff",
  "has_express": false,
  "description": "string",
  "is_rendered": true,
  "price": {
    "currency_factor": 100,
    "currency_symbol": "€",
    "amount": 999,
    "currency_code": "EUR"
  },
  "images": [
    {
      "color": "Red",
      "urls": {
        "large": "http://www.example.com/my-orders/large.png",
        "small": "http://www.example.com/my-orders/small.png"
      },
      "area": "front"
    }
  ],
  "updated_at": "2017-01-01 12:34:56",
  "colors": [
    {
      "color": "Black",
      "id": 123,
      "color_hex": "#000000"
    }
  ]
}

Order: object

vat_rate: integer

VAT rate in percent

reference: string

Unique identifier of this order

vat_amount: Money

VAT amount

net_price: Money

Total net price of this order

delivery: OrderAddress

Delivery address

sender: OrderAddress

Sender address

orderStatusEntries: object

Array of status messages associated with this order

shipping: OrderShipping

Details on the shipping method, status and tracking (only present if order is being or has been shipped)

created_at: string

Timestamp of creation

payments: object

Array of payments associated with this order

gross_price: Money

Total gross price of this order

bill: OrderAddress

Billing address

status: string

Human readable order status

status_key: string

Number of products

fulfillment: object

Fulfillment details or false if no details are available

products: object

Array of products in this order

updated_at: string

Timestamp of last update

invoice_reference: string

Invoice reference

total_items: integer

Total number of items in the order

Example
{
  "vat_rate": 19,
  "reference": "ABCDXY1",
  "vat_amount": {
    "currency_factor": 100,
    "currency_symbol": "€",
    "amount": 999,
    "currency_code": "EUR"
  },
  "net_price": {
    "currency_factor": 100,
    "currency_symbol": "€",
    "amount": 999,
    "currency_code": "EUR"
  },
  "delivery": {
    "firstname": "Max",
    "lastname": "Mustermann",
    "postcode": "12345",
    "city": "Köln",
    "country": "DE",
    "title": "Dr.",
    "company": "Shirtigo GmbH",
    "street": "Musterstraße 12"
  },
  "sender": {
    "firstname": "Max",
    "lastname": "Mustermann",
    "postcode": "12345",
    "city": "Köln",
    "country": "DE",
    "title": "Dr.",
    "company": "Shirtigo GmbH",
    "street": "Musterstraße 12"
  },
  "orderStatusEntries": {
    "data": [
      {
        "key": "string",
        "created_at": "2017-01-01 12:34:56",
        "updated_at": "2017-01-01 12:34:56",
        "description": "integer",
        "status": "string"
      }
    ]
  },
  "shipping": {
    "tracking_url": "string",
    "created_at": "2017-01-01 12:34:56",
    "type": "delivery",
    "country_code": "DE",
    "cost": {
      "currency_factor": 100,
      "currency_symbol": "€",
      "amount": 999,
      "currency_code": "EUR"
    },
    "is_shipped": false,
    "updated_at": "2017-01-01 12:34:56",
    "tracking_code": "string"
  },
  "created_at": "2017-01-01 12:34:56",
  "payments": {
    "data": [
      {
        "id": "d1364568-4b15-4706-89f1-2452efe1261d",
        "type": "creditcard",
        "vat_rate": 19,
        "gross_amount": {
          "currency_factor": 100,
          "currency_symbol": "€",
          "amount": 999,
          "currency_code": "EUR"
        },
        "status": "paid",
        "status_details": "An error occured.",
        "vat_amount": {
          "currency_factor": 100,
          "currency_symbol": "€",
          "amount": 999,
          "currency_code": "EUR"
        },
        "updated_at": "2017-01-01 12:34:56",
        "net_amount": {
          "currency_factor": 100,
          "currency_symbol": "€",
          "amount": 999,
          "currency_code": "EUR"
        }
      }
    ]
  },
  "gross_price": {
    "currency_factor": 100,
    "currency_symbol": "€",
    "amount": 999,
    "currency_code": "EUR"
  },
  "bill": {
    "firstname": "Max",
    "lastname": "Mustermann",
    "postcode": "12345",
    "city": "Köln"
  }
}

OrderShipping: object

tracking_url: string

Carrier tracking URL

created_at: string

Timestamp of creation

type: string

Shipping type

country_code: string

Two letter country code

cost: Money

Shipping price

is_shipped: boolean

Has the order been shipped yet?

updated_at: string

Timestamp of last update

tracking_code: string

Carrier tracking code

Example
{
  "tracking_url": "string",
  "created_at": "2017-01-01 12:34:56",
  "type": "delivery",
  "country_code": "DE",
  "cost": {
    "currency_factor": 100,
    "currency_symbol": "€",
    "amount": 999,
    "currency_code": "EUR"
  },
  "is_shipped": false,
  "updated_at": "2017-01-01 12:34:56",
  "tracking_code": "string"
}

ProductImage: object

sort_position: integer

Numerical index used for sorting

url: string

URL of the image file

Example
{
  "sort_position": 1,
  "url": "https://www.example.com/image.jpg"
}

Processing: object

Processing to apply

width: integer 120

Design width in millimeters

offset_top: integer

Vertical offset from top in millimeters

offset_center: integer

Horizontal offset from center in millimeters

position: string center

Processing position

method: string print

Processing method

area: string

Processing area

design: string

Design reference

Example
{
  "width": 200,
  "offset_top": 50,
  "offset_center": 0,
  "position": "center",
  "method": "print",
  "area": "front",
  "design": "9e7aba40-3bce-4639-9caa-9a9a0397cbff"
}

OAuthServerException: object

message: string

Human readable error message.

hint: string

A helper hint.

error: string

Machine readable error type.

Example
{
  "message": "string",
  "hint": "string",
  "error": "string"
}

ProjectIntegrationProduct: object

updated_at: string

Timestamp of last update

integration_id: integer

The cockpit internal id of the used user integration

integration_product_id: string

The identifier used by the integration application

Example
{
  "updated_at": "2017-01-01 12:34:56",
  "integration_id": 111,
  "integration_product_id": "9286211826"
}