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 Clients for several languages are available on github: https://github.com/shirtigo

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

flow
accessCode
authorizationUrl
/oauth/authorize
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.

tokenUrl
/oauth/token

cockpit_apikey

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]'.

name
Authorization

oauth

This section contains endpoints related to the OAuth2 implementation.

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).

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)
{
  "token_type": "Bearer",
  "expires_in": 31536000,
  "refresh_token": "tYI1iHjH7lGBLlBi+VD6uYYCn3pZo8Do/BSmcgzwTOuZ+f7v/z...",
  "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjVjZj..."
}
Response Example (400 Bad Request)
{
  "hint": "string",
  "error": "string",
  "message": "string"
}
Response Example (401 Unauthorized)
{
  "hint": "string",
  "error": "string",
  "message": "string"
}

user

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

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)
{
  "data": [
    {
      "gross_amount": {
        "currency_symbol": "€",
        "currency_factor": 100,
        "amount": 999,
        "currency_code": "EUR"
      },
      "status_title": "Erstattung",
      "payment_reference": "Kreditkarte",
      "vat_amount": {
        "currency_symbol": "€",
        "currency_factor": 100,
        "amount": 999,
        "currency_code": "EUR"
      },
      "vat_rate": 19,
      "created_at": "2017-01-01 12:34:56",
      "id": "d1364568-4b15-4706-89f1-2452efe1261d",
      "net_amount": {
        "currency_symbol": "€",
        "currency_factor": 100,
        "amount": 999,
        "currency_code": "EUR"
      },
      "status": "invoice",
      "order": {
        "orderStatusEntries": {
          "data": [
            {
              "created_at": "2017-01-01 12:34:56",
              "description": "integer",
              "key": "string",
              "status": "string",
              "updated_at": "2017-01-01 12:34:56"
            }
          ]
        },
        "shipping": {
          "cost": {
            "currency_symbol": "€",
            "currency_factor": 100,
            "amount": 999,
            "currency_code": "EUR"
          },
          "created_at": "2017-01-01 12:34:56",
          "country_code": "DE",
          "tracking_code": "string",
          "tracking_url": "string",
          "type": "delivery",
          "is_shipped": false,
          "updated_at": "2017-01-01 12:34:56"
        },
        "total_items": 5,
        "created_at": "2017-01-01 12:34:56",
        "products": {
          "data": [
            {
              "amount": 1,
              "size": "XL",
              "images": [
                {
                  "urls": {
                    "large": "http://www.example.com/my-orders/large.png",
                    "small": "http://www.example.com/my-orders/small.png"
                  },
                  "color": "Red",
                  "area": "front"
                }
              ],
              "net_total_price": 1375,
              "name": "Base product XY",
              "id": "integer",
              "net_unit_price": {
                "currency_symbol": "€",
                "currency_factor": 100,
                "amount": 999,
                "currency_code": "EUR"
              },
              "color": "Black"
            }
          ]
        },
        "sender": {
          "postcode": "12345",
          "lastname": "Mustermann",
          "country": "DE",
          "parent": {
            "status_key": "",
            "net_price": {
              "currency_symbol": "€",
              "currency_factor": 100,
              "amount": 999,
              "currency_code": "EUR"
            },
            "created_at": "2017-01-01 12:34:56",
            "vat_amount": {
              "currency_symbol": "€",
              "currency_factor": 100,
              "amount": 999
            }
          }
        }
      }
    }
  ]
}

Get user information

GET /user

Retrieve information about the currently authenticated user.

200 OK

Success

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

Update user information

POST /user

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

is_business: boolean

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.

phone: 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.

firstname: 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.

city: 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.

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

User information updated.

422 Unprocessable Entity

Validation of inputs failed.

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_symbol": "€",
  "currency_factor": 100,
  "amount": 999,
  "currency_code": "EUR"
}

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

Update sender address

POST /user/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_lastname: string (up to 20 chars)

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.

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_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.

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

User information updated.

422 Unprocessable Entity

Validation of inputs failed.

design

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

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

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

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

Create design from base64-encoded data

POST /designs/base64

Create a new design from the base64-encoded data

The endpoint returns the created design.

data: string

Base64-encoded data

original_filename: string

Original file name (optional)

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

Success, URL has been processed

422 Unprocessable Entity

Error, URL / image file does not meet requirements

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

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

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

product

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

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)
{
  "active_integration_syncs": [
    {
      "integration_id": 111,
      "is_successful": true,
      "integration_product_id": "9286211826",
      "is_syncing": true,
      "integration_name": "shopify",
      "updated_at": "2017-01-01 12:34:56"
    }
  ],
  "name": "Base Product Name XY",
  "custom_name": "My cool product",
  "base_product": {
    "category": "Unisex-Shirts",
    "category_id": 5,
    "is_active": "boolean",
    "processing_areas": {
      "data": [
        {
          "position_name": "front",
          "printable_area_margin_from_top": 0,
          "position_id": 1,
          "template": "string",
          "template_width": 1000,
          "height_in_mm": 100,
          "height": 2000,
          "width_in_mm": 100,
          "width": 2000,
          "template_height": 1000
        }
      ]
    },
    "manufacturer": {
      "id": 123,
      "name": "Musterfirma"
    },
    "sizechart_image": "string",
    "shipping_category": 1,
    "name": "Base product XY",
    "price": {
      "data": [
        {
          "type": "generic",
          "price": {
            "currency_symbol": "€",
            "currency_factor": 100,
            "amount": 999,
            "currency_code": "EUR"
          }
        }
      ]
    },
    "images": {
      "data": [
        {
          "sort_position": 1,
          "url": "https://www.example.com/image.jpg"
        }
      ]
    },
    "short_description": "string",
    "description": "string",
    "id": 1,
    "original_name": "T-Shirt",
    "sales_price": {
      "data": [
        {
          "type": "generic",
          "price": {
            "currency_symbol": "€",
            "currency_factor": 100,
            "amount": 999,
            "currency_code": "EUR"
          }
        }
      ]
    },
    "colors": {
      "data": [
        {
          "id": 123,
          "color": "Black",
          "is_colored": true,
          "sizes": [
            {
              "is_onlocalstock": true,
              "id": 67,
              "size": "XL",
              "is_available": true,
              "sort_position": 1
            }
          ],
          "color_hex": "#000000"
        }
      ]
    }
  },
  "integration_products": [
    {
      "integration_product_id": "9286211826",
      "integration_id": 111,
      "updated_at": "2017-01-01 12:34:56"
    }
  ],
  "project_name": "Projekt 123",
  "project": "9e7aba40-3bce-4639-9caa-9a9a0397cbff",
  "has_express": false,
  "price": {
    "currency_symbol": "€",
    "currency_factor": 100,
    "amount": 999
  }
}

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

price: integer

Product price in Euro-cents

custom_name: string

Product name

description: string

Short description

project_id: string

Unique product identifier

colors: integer[]

List of color ids

product-id

Numerical product identifier

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

Success

404 Not Found

Product not found

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

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": [
    {
      "active_integration_syncs": [
        {
          "integration_id": 111,
          "is_successful": true,
          "integration_product_id": "9286211826",
          "is_syncing": true,
          "integration_name": "shopify",
          "updated_at": "2017-01-01 12:34:56"
        }
      ],
      "name": "Base Product Name XY",
      "custom_name": "My cool product",
      "base_product": {
        "category": "Unisex-Shirts",
        "category_id": 5,
        "is_active": "boolean",
        "processing_areas": {
          "data": [
            {
              "position_name": "front",
              "printable_area_margin_from_top": 0,
              "position_id": 1,
              "template": "string",
              "template_width": 1000,
              "height_in_mm": 100,
              "height": 2000,
              "width_in_mm": 100,
              "width": 2000,
              "template_height": 1000
            }
          ]
        },
        "manufacturer": {
          "id": 123,
          "name": "Musterfirma"
        },
        "sizechart_image": "string",
        "shipping_category": 1,
        "name": "Base product XY",
        "price": {
          "data": [
            {
              "type": "generic",
              "price": {
                "currency_symbol": "€",
                "currency_factor": 100,
                "amount": 999,
                "currency_code": "EUR"
              }
            }
          ]
        },
        "images": {
          "data": [
            {
              "sort_position": 1,
              "url": "https://www.example.com/image.jpg"
            }
          ]
        },
        "short_description": "string",
        "description": "string",
        "id": 1,
        "original_name": "T-Shirt",
        "sales_price": {
          "data": [
            {
              "type": "generic",
              "price": {
                "currency_symbol": "€",
                "currency_factor": 100,
                "amount": 999,
                "currency_code": "EUR"
              }
            }
          ]
        },
        "colors": {
          "data": [
            {
              "id": 123,
              "color": "Black",
              "is_colored": true,
              "sizes": [
                {
                  "is_onlocalstock": true,
                  "id": 67,
                  "size": "XL",
                  "is_available": true,
                  "sort_position": 1
                }
              ],
              "color_hex": "#000000"
            }
          ]
        }
      },
      "integration_products": [
        {
          "integration_product_id": "9286211826",
          "integration_id": 111,
          "updated_at": "2017-01-01 12:34:56"
        }
      ],
      "project_name": "Projekt 123",
      "project": "9e7aba40-3bce-4639-9caa-9a9a0397cbff",
      "has_express": false,
      "price": {
        "currency_symbol": "€"
      }
    }
  ]
}

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

price: integer

Price in Euro-cents

project_id: string

Identifier of existing product

colors: integer[]

List of colors ids

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

Success

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

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

base-product

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

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

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

List available categories

GET /base-categories
200 OK

Success

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

project

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

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

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

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

Success

404 Not Found

Project not found

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
{
  "position": "center",
  "area": "front",
  "offset_center": 0,
  "design": "9e7aba40-3bce-4639-9caa-9a9a0397cbff",
  "method": "print",
  "offset_top": 50,
  "width": 200
}
204 No Content

Success

404 Not Found

Project not found

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)
[
  {
    "active_integration_syncs": [
      {
        "integration_id": 111,
        "is_successful": true,
        "integration_product_id": "9286211826",
        "is_syncing": true,
        "integration_name": "shopify",
        "updated_at": "2017-01-01 12:34:56"
      }
    ],
    "name": "Base Product Name XY",
    "custom_name": "My cool product",
    "base_product": {
      "category": "Unisex-Shirts",
      "category_id": 5,
      "is_active": "boolean",
      "processing_areas": {
        "data": [
          {
            "position_name": "front",
            "printable_area_margin_from_top": 0,
            "position_id": 1,
            "template": "string",
            "template_width": 1000,
            "height_in_mm": 100,
            "height": 2000,
            "width_in_mm": 100,
            "width": 2000,
            "template_height": 1000
          }
        ]
      },
      "manufacturer": {
        "id": 123,
        "name": "Musterfirma"
      },
      "sizechart_image": "string",
      "shipping_category": 1,
      "name": "Base product XY",
      "price": {
        "data": [
          {
            "type": "generic",
            "price": {
              "currency_symbol": "€",
              "currency_factor": 100,
              "amount": 999,
              "currency_code": "EUR"
            }
          }
        ]
      },
      "images": {
        "data": [
          {
            "sort_position": 1,
            "url": "https://www.example.com/image.jpg"
          }
        ]
      },
      "short_description": "string",
      "description": "string",
      "id": 1,
      "original_name": "T-Shirt",
      "sales_price": {
        "data": [
          {
            "type": "generic",
            "price": {
              "currency_symbol": "€",
              "currency_factor": 100,
              "amount": 999,
              "currency_code": "EUR"
            }
          }
        ]
      },
      "colors": {
        "data": [
          {
            "id": 123,
            "color": "Black",
            "is_colored": true,
            "sizes": [
              {
                "is_onlocalstock": true,
                "id": 67,
                "size": "XL",
                "is_available": true,
                "sort_position": 1
              }
            ],
            "color_hex": "#000000"
          }
        ]
      }
    },
    "integration_products": [
      {
        "integration_product_id": "9286211826",
        "integration_id": 111,
        "updated_at": "2017-01-01 12:34:56"
      }
    ],
    "project_name": "Projekt 123",
    "project": "9e7aba40-3bce-4639-9caa-9a9a0397cbff",
    "has_express": false,
    "price": {
      "currency_symbol": "€",
      "currency_factor": 100
    }
  }
]

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

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": {
    "postcode": "12345",
    "lastname": "Mustermann",
    "country": "DE",
    "parent": {
      "status_key": "",
      "net_price": {
        "currency_symbol": "€",
        "currency_factor": 100,
        "amount": 999,
        "currency_code": "EUR"
      },
      "created_at": "2017-01-01 12:34:56",
      "vat_amount": {
        "currency_symbol": "€",
        "currency_factor": 100,
        "amount": 999,
        "currency_code": "EUR"
      },
      "vat_rate": 19,
      "gross_price": {
        "currency_symbol": "€",
        "currency_factor": 100,
        "amount": 999,
        "currency_code": "EUR"
      },
      "reference": "ABCDXY1",
      "total_items": 5,
      "status": "Bestellung offen",
      "updated_at": "2017-01-01 12:34:56"
    },
    "firstname": "Max",
    "street": "Musterstraße 12",
    "city": "Köln",
    "company": "Shirtigo GmbH",
    "title": "Dr.",
    "children": {
      "data": [
        {
          "status_key": "",
          "net_price": {
            "currency_symbol": "€",
            "currency_factor": 100,
            "amount": 999,
            "currency_code": "EUR"
          },
          "created_at": "2017-01-01 12:34:56",
          "vat_amount": {
            "currency_symbol": "€",
            "currency_factor": 100,
            "amount": 999,
            "currency_code": "EUR"
          },
          "vat_rate": 19,
          "gross_price": {
            "currency_symbol": "€",
            "currency_factor": 100,
            "amount": 999,
            "currency_code": "EUR"
          },
          "reference": "ABCDXY1",
          "total_items": 5,
          "status": "Bestellung offen",
          "updated_at": "2017-01-01 12:34:56"
        }
      ]
    }
  },
  "jobs": [
    {
      "processings": [
        {
          "position": "center",
          "area": "front",
          "offset_center": 0,
          "design": {
            "url": "https://myurl/myimage.png"
          },
          "method": "print",
          "offset_top": 50,
          "width": 200
        }
      ],
      "base_products": [
        {
          "id": 235,
          "colors": [
            {
              "id": 326,
              "sizes": [
                {
                  "id": 1,
                  "amount": "integer"
                }
              ]
            }
          ]
        }
      ]
    }
  ],
  "sender": {
    "postcode": "12345",
    "lastname": "Mustermann",
    "country": "DE",
    "parent": {
      "status_key": "",
      "net_price": {
        "currency_symbol": "€"
      }
    }
  }
}
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)
{
  "orderStatusEntries": {
    "data": [
      {
        "created_at": "2017-01-01 12:34:56",
        "description": "integer",
        "key": "string",
        "status": "string",
        "updated_at": "2017-01-01 12:34:56"
      }
    ]
  },
  "shipping": {
    "cost": {
      "currency_symbol": "€",
      "currency_factor": 100,
      "amount": 999,
      "currency_code": "EUR"
    },
    "created_at": "2017-01-01 12:34:56",
    "country_code": "DE",
    "tracking_code": "string",
    "tracking_url": "string",
    "type": "delivery",
    "is_shipped": false,
    "updated_at": "2017-01-01 12:34:56"
  },
  "total_items": 5,
  "created_at": "2017-01-01 12:34:56",
  "products": {
    "data": [
      {
        "amount": 1,
        "size": "XL",
        "images": [
          {
            "urls": {
              "large": "http://www.example.com/my-orders/large.png",
              "small": "http://www.example.com/my-orders/small.png"
            },
            "color": "Red",
            "area": "front"
          }
        ],
        "net_total_price": 1375,
        "name": "Base product XY",
        "id": "integer",
        "net_unit_price": {
          "currency_symbol": "€",
          "currency_factor": 100,
          "amount": 999,
          "currency_code": "EUR"
        },
        "color": "Black"
      }
    ]
  },
  "sender": {
    "postcode": "12345",
    "lastname": "Mustermann",
    "country": "DE",
    "parent": {
      "status_key": "",
      "net_price": {
        "currency_symbol": "€",
        "currency_factor": 100,
        "amount": 999,
        "currency_code": "EUR"
      },
      "created_at": "2017-01-01 12:34:56",
      "vat_amount": {
        "currency_symbol": "€",
        "currency_factor": 100,
        "amount": 999,
        "currency_code": "EUR"
      },
      "vat_rate": 19,
      "gross_price": {
        "currency_symbol": "€",
        "currency_factor": 100,
        "amount": 999,
        "currency_code": "EUR"
      },
      "reference": "ABCDXY1",
      "total_items": 5,
      "status": "Bestellung offen",
      "updated_at": "2017-01-01 12:34:56"
    },
    "firstname": "Max",
    "street": "Musterstraße 12",
    "city": "Köln",
    "company": "Shirtigo GmbH",
    "title": "Dr.",
    "children": {
      "data": [
        {
          "status_key": "",
          "net_price": {
            "currency_symbol": "€",
            "currency_factor": 100,
            "amount": 999,
            "currency_code": "EUR"
          }
        }
      ]
    }
  }
}

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).

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": {
    "postcode": "12345",
    "lastname": "Mustermann",
    "country": "DE",
    "parent": {
      "status_key": "",
      "net_price": {
        "currency_symbol": "€",
        "currency_factor": 100,
        "amount": 999,
        "currency_code": "EUR"
      },
      "created_at": "2017-01-01 12:34:56",
      "vat_amount": {
        "currency_symbol": "€",
        "currency_factor": 100,
        "amount": 999,
        "currency_code": "EUR"
      },
      "vat_rate": 19,
      "gross_price": {
        "currency_symbol": "€",
        "currency_factor": 100,
        "amount": 999,
        "currency_code": "EUR"
      },
      "reference": "ABCDXY1",
      "total_items": 5,
      "status": "Bestellung offen",
      "updated_at": "2017-01-01 12:34:56"
    },
    "firstname": "Max",
    "street": "Musterstraße 12",
    "city": "Köln",
    "company": "Shirtigo GmbH",
    "title": "Dr.",
    "children": {
      "data": [
        {
          "status_key": "",
          "net_price": {
            "currency_symbol": "€",
            "currency_factor": 100,
            "amount": 999,
            "currency_code": "EUR"
          },
          "created_at": "2017-01-01 12:34:56",
          "vat_amount": {
            "currency_symbol": "€",
            "currency_factor": 100,
            "amount": 999,
            "currency_code": "EUR"
          },
          "vat_rate": 19,
          "gross_price": {
            "currency_symbol": "€",
            "currency_factor": 100,
            "amount": 999,
            "currency_code": "EUR"
          },
          "reference": "ABCDXY1",
          "total_items": 5,
          "status": "Bestellung offen",
          "updated_at": "2017-01-01 12:34:56"
        }
      ]
    }
  },
  "products": [
    {
      "colorId": "integer",
      "amount": "integer",
      "productId": "integer",
      "sizeId": "integer"
    }
  ],
  "sender": {
    "postcode": "12345",
    "lastname": "Mustermann",
    "country": "DE",
    "parent": {
      "status_key": "",
      "net_price": {
        "currency_symbol": "€",
        "currency_factor": 100,
        "amount": 999,
        "currency_code": "EUR"
      },
      "created_at": "2017-01-01 12:34:56",
      "vat_amount": {
        "currency_symbol": "€",
        "currency_factor": 100,
        "amount": 999,
        "currency_code": "EUR"
      },
      "vat_rate": 19,
      "gross_price": {
        "currency_symbol": "€",
        "currency_factor": 100,
        "amount": 999
      }
    }
  }
}
200 OK

Success, price has been calculated

422 Unprocessable Entity

Validation failed, details in response body

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

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)
{
  "orderStatusEntries": {
    "data": [
      {
        "created_at": "2017-01-01 12:34:56",
        "description": "integer",
        "key": "string",
        "status": "string",
        "updated_at": "2017-01-01 12:34:56"
      }
    ]
  },
  "shipping": {
    "cost": {
      "currency_symbol": "€",
      "currency_factor": 100,
      "amount": 999,
      "currency_code": "EUR"
    },
    "created_at": "2017-01-01 12:34:56",
    "country_code": "DE",
    "tracking_code": "string",
    "tracking_url": "string",
    "type": "delivery",
    "is_shipped": false,
    "updated_at": "2017-01-01 12:34:56"
  },
  "total_items": 5,
  "created_at": "2017-01-01 12:34:56",
  "products": {
    "data": [
      {
        "amount": 1,
        "size": "XL",
        "images": [
          {
            "urls": {
              "large": "http://www.example.com/my-orders/large.png",
              "small": "http://www.example.com/my-orders/small.png"
            },
            "color": "Red",
            "area": "front"
          }
        ],
        "net_total_price": 1375,
        "name": "Base product XY",
        "id": "integer",
        "net_unit_price": {
          "currency_symbol": "€",
          "currency_factor": 100,
          "amount": 999,
          "currency_code": "EUR"
        },
        "color": "Black"
      }
    ]
  },
  "sender": {
    "postcode": "12345",
    "lastname": "Mustermann",
    "country": "DE",
    "parent": {
      "status_key": "",
      "net_price": {
        "currency_symbol": "€",
        "currency_factor": 100,
        "amount": 999,
        "currency_code": "EUR"
      },
      "created_at": "2017-01-01 12:34:56",
      "vat_amount": {
        "currency_symbol": "€",
        "currency_factor": 100,
        "amount": 999,
        "currency_code": "EUR"
      },
      "vat_rate": 19,
      "gross_price": {
        "currency_symbol": "€",
        "currency_factor": 100,
        "amount": 999,
        "currency_code": "EUR"
      },
      "reference": "ABCDXY1",
      "total_items": 5,
      "status": "Bestellung offen",
      "updated_at": "2017-01-01 12:34:56"
    },
    "firstname": "Max",
    "street": "Musterstraße 12",
    "city": "Köln",
    "company": "Shirtigo GmbH",
    "title": "Dr.",
    "children": {
      "data": [
        {
          "status_key": "",
          "net_price": {
            "currency_symbol": "€",
            "currency_factor": 100,
            "amount": 999,
            "currency_code": "EUR"
          }
        }
      ]
    }
  }
}

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

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
secondary_filter

Secondary filter level (e.g. filter reprint orders)

type
string
in
query
200 OK

Success

Response Example (200 OK)
{
  "data": [
    {
      "orderStatusEntries": {
        "data": [
          {
            "created_at": "2017-01-01 12:34:56",
            "description": "integer",
            "key": "string",
            "status": "string",
            "updated_at": "2017-01-01 12:34:56"
          }
        ]
      },
      "shipping": {
        "cost": {
          "currency_symbol": "€",
          "currency_factor": 100,
          "amount": 999,
          "currency_code": "EUR"
        },
        "created_at": "2017-01-01 12:34:56",
        "country_code": "DE",
        "tracking_code": "string",
        "tracking_url": "string",
        "type": "delivery",
        "is_shipped": false,
        "updated_at": "2017-01-01 12:34:56"
      },
      "total_items": 5,
      "created_at": "2017-01-01 12:34:56",
      "products": {
        "data": [
          {
            "amount": 1,
            "size": "XL",
            "images": [
              {
                "urls": {
                  "large": "http://www.example.com/my-orders/large.png",
                  "small": "http://www.example.com/my-orders/small.png"
                },
                "color": "Red",
                "area": "front"
              }
            ],
            "net_total_price": 1375,
            "name": "Base product XY",
            "id": "integer",
            "net_unit_price": {
              "currency_symbol": "€",
              "currency_factor": 100,
              "amount": 999,
              "currency_code": "EUR"
            },
            "color": "Black"
          }
        ]
      },
      "sender": {
        "postcode": "12345",
        "lastname": "Mustermann",
        "country": "DE",
        "parent": {
          "status_key": "",
          "net_price": {
            "currency_symbol": "€",
            "currency_factor": 100,
            "amount": 999,
            "currency_code": "EUR"
          },
          "created_at": "2017-01-01 12:34:56",
          "vat_amount": {
            "currency_symbol": "€",
            "currency_factor": 100,
            "amount": 999,
            "currency_code": "EUR"
          },
          "vat_rate": 19,
          "gross_price": {
            "currency_symbol": "€",
            "currency_factor": 100,
            "amount": 999,
            "currency_code": "EUR"
          },
          "reference": "ABCDXY1",
          "total_items": 5,
          "status": "Bestellung offen",
          "updated_at": "2017-01-01 12:34:56"
        },
        "firstname": "Max",
        "street": "Musterstraße 12",
        "city": "Köln",
        "company": "Shirtigo GmbH",
        "title": "Dr.",
        "children": {
          "data": [
            {
              "status_key": "",
              "net_price": {
                "currency_symbol": "€",
                "currency_factor": 100
              }
            }
          ]
        }
      }
    }
  ]
}

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": {
    "postcode": "12345",
    "lastname": "Mustermann",
    "country": "DE",
    "parent": {
      "status_key": "",
      "net_price": {
        "currency_symbol": "€",
        "currency_factor": 100,
        "amount": 999,
        "currency_code": "EUR"
      },
      "created_at": "2017-01-01 12:34:56",
      "vat_amount": {
        "currency_symbol": "€",
        "currency_factor": 100,
        "amount": 999,
        "currency_code": "EUR"
      },
      "vat_rate": 19,
      "gross_price": {
        "currency_symbol": "€",
        "currency_factor": 100,
        "amount": 999,
        "currency_code": "EUR"
      },
      "reference": "ABCDXY1",
      "total_items": 5,
      "status": "Bestellung offen",
      "updated_at": "2017-01-01 12:34:56"
    },
    "firstname": "Max",
    "street": "Musterstraße 12",
    "city": "Köln",
    "company": "Shirtigo GmbH",
    "title": "Dr.",
    "children": {
      "data": [
        {
          "status_key": "",
          "net_price": {
            "currency_symbol": "€",
            "currency_factor": 100,
            "amount": 999,
            "currency_code": "EUR"
          },
          "created_at": "2017-01-01 12:34:56",
          "vat_amount": {
            "currency_symbol": "€",
            "currency_factor": 100,
            "amount": 999,
            "currency_code": "EUR"
          },
          "vat_rate": 19,
          "gross_price": {
            "currency_symbol": "€",
            "currency_factor": 100,
            "amount": 999,
            "currency_code": "EUR"
          },
          "reference": "ABCDXY1",
          "total_items": 5,
          "status": "Bestellung offen",
          "updated_at": "2017-01-01 12:34:56"
        }
      ]
    }
  },
  "products": [
    {
      "colorId": "integer",
      "amount": "integer",
      "productId": "integer",
      "sizeId": "integer"
    }
  ],
  "sender": {
    "postcode": "12345",
    "lastname": "Mustermann",
    "country": "DE",
    "parent": {
      "status_key": "",
      "net_price": {
        "currency_symbol": "€",
        "currency_factor": 100,
        "amount": 999,
        "currency_code": "EUR"
      },
      "created_at": "2017-01-01 12:34:56",
      "vat_amount": {
        "currency_symbol": "€",
        "currency_factor": 100,
        "amount": 999,
        "currency_code": "EUR"
      },
      "vat_rate": 19,
      "gross_price": {
        "currency_symbol": "€",
        "currency_factor": 100,
        "amount": 999
      }
    }
  }
}
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)
{
  "orderStatusEntries": {
    "data": [
      {
        "created_at": "2017-01-01 12:34:56",
        "description": "integer",
        "key": "string",
        "status": "string",
        "updated_at": "2017-01-01 12:34:56"
      }
    ]
  },
  "shipping": {
    "cost": {
      "currency_symbol": "€",
      "currency_factor": 100,
      "amount": 999,
      "currency_code": "EUR"
    },
    "created_at": "2017-01-01 12:34:56",
    "country_code": "DE",
    "tracking_code": "string",
    "tracking_url": "string",
    "type": "delivery",
    "is_shipped": false,
    "updated_at": "2017-01-01 12:34:56"
  },
  "total_items": 5,
  "created_at": "2017-01-01 12:34:56",
  "products": {
    "data": [
      {
        "amount": 1,
        "size": "XL",
        "images": [
          {
            "urls": {
              "large": "http://www.example.com/my-orders/large.png",
              "small": "http://www.example.com/my-orders/small.png"
            },
            "color": "Red",
            "area": "front"
          }
        ],
        "net_total_price": 1375,
        "name": "Base product XY",
        "id": "integer",
        "net_unit_price": {
          "currency_symbol": "€",
          "currency_factor": 100,
          "amount": 999,
          "currency_code": "EUR"
        },
        "color": "Black"
      }
    ]
  },
  "sender": {
    "postcode": "12345",
    "lastname": "Mustermann",
    "country": "DE",
    "parent": {
      "status_key": "",
      "net_price": {
        "currency_symbol": "€",
        "currency_factor": 100,
        "amount": 999,
        "currency_code": "EUR"
      },
      "created_at": "2017-01-01 12:34:56",
      "vat_amount": {
        "currency_symbol": "€",
        "currency_factor": 100,
        "amount": 999,
        "currency_code": "EUR"
      },
      "vat_rate": 19,
      "gross_price": {
        "currency_symbol": "€",
        "currency_factor": 100,
        "amount": 999,
        "currency_code": "EUR"
      },
      "reference": "ABCDXY1",
      "total_items": 5,
      "status": "Bestellung offen",
      "updated_at": "2017-01-01 12:34:56"
    },
    "firstname": "Max",
    "street": "Musterstraße 12",
    "city": "Köln",
    "company": "Shirtigo GmbH",
    "title": "Dr.",
    "children": {
      "data": [
        {
          "status_key": "",
          "net_price": {
            "currency_symbol": "€",
            "currency_factor": 100,
            "amount": 999,
            "currency_code": "EUR"
          }
        }
      ]
    }
  }
}

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.

other

This section contains miscellaneous endpoints.

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": [
    {
      "iso": "DE",
      "name": "Germany"
    }
  ]
}

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)
{
  "week_amount": 3,
  "week": {
    "currency_symbol": "€",
    "currency_factor": 100,
    "amount": 999,
    "currency_code": "EUR"
  },
  "total": {
    "currency_symbol": "€",
    "currency_factor": 100,
    "amount": 999,
    "currency_code": "EUR"
  },
  "today": {
    "currency_symbol": "€",
    "currency_factor": 100,
    "amount": 999,
    "currency_code": "EUR"
  },
  "today_amount": 1,
  "total_amount": 36,
  "month": {
    "currency_symbol": "€",
    "currency_factor": 100,
    "amount": 999,
    "currency_code": "EUR"
  },
  "month_amount": 14
}

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.

printareas: integer[]

Desired print areas

product_id: integer

Desired base product

is_colored: boolean

Is this a color print?

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

Success

404 Not Found

Product not found

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

Schema Definitions

ProductPrice: object

type: string

Variant

price: Money

Price

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

Processing: object

Processing to apply

position: string center

Processing position

area: string

Processing area

offset_center: integer

Horizontal offset from center in millimeters

design: string

Design reference

method: string print

Processing method

offset_top: integer

Vertical offset from top in millimeters

width: integer 120

Design width in millimeters

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

OrderRelation: object

status_key: string

Number of products

net_price: Money

Total net price of this order

created_at: string

Timestamp of creation

vat_amount: Money

VAT amount

vat_rate: integer

VAT rate in percent

gross_price: Money

Total gross price of this order

reference: string

Unique identifier of this order

total_items: integer

Total number of items in the order

status: string

Human readable order status

updated_at: string

Timestamp of last update

Example
{
  "status_key": "",
  "net_price": {
    "currency_symbol": "€",
    "currency_factor": 100,
    "amount": 999,
    "currency_code": "EUR"
  },
  "created_at": "2017-01-01 12:34:56",
  "vat_amount": {
    "currency_symbol": "€",
    "currency_factor": 100,
    "amount": 999,
    "currency_code": "EUR"
  },
  "vat_rate": 19,
  "gross_price": {
    "currency_symbol": "€",
    "currency_factor": 100,
    "amount": 999,
    "currency_code": "EUR"
  },
  "reference": "ABCDXY1",
  "total_items": 5,
  "status": "Bestellung offen",
  "updated_at": "2017-01-01 12:34:56"
}

OrderStatusEntry: object

created_at: string

Timestamp of creation

description: integer

Verbose status description

key: string

Order status key

status: string

Human readable status

updated_at: string

Timestamp of last update

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

Pagination: object

Pagination information

count: integer

Number of items on current page

links: object

URLs of adjacent pages

total: integer

Total number of items

total_pages: integer

Total number of pages

current_page: integer

Index of current page

per_page: integer

Default number of items per page

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

OrderShipping: object

cost: Money

Shipping price

created_at: string

Timestamp of creation

country_code: string

Two letter country code

tracking_code: string

Carrier tracking code

tracking_url: string

Carrier tracking URL

type: string

Shipping type

is_shipped: boolean

Has the order been shipped yet?

updated_at: string

Timestamp of last update

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

ProjectWithProducts:

products: Product

Products associated with this Project

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

ProjectPrint: object

height: integer

Design height in millimeters

area: string

Processing site

offset_center: integer

Horizontal offset from center in millimeters

design: Design
method: string

Processing method

position: string

Processing position

offset_top: integer

Vertical offset from top in millimeters

width: integer

Design width in millimeters

updated_at: string

Timestamp of last update

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

ProductDimensions: object

height: integer

Height in mm

size: string

Product size name

width: integer

Width in mm

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

UtilProductImage: object

urls: object

Product name

color: string

Color name

area: string

Processing area name

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

MoneyVatInclude:

vat_rate: integer

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

Example
{
  "vat_rate": 19
}

Country: object

iso: string

Two-letter identifier according to ISO 3166-1

name: string

Country name

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

Design: object

filename: string

Design file name

palette: string[]

List of hex-codes of representative colors

name: string

Design Name

is_dark: boolean

Is this a design with dark colors?

updated_at: string

Timestamp of last update

created_at: string

Timestamp of creation

filetype: string

Extension of the design file name

original_file: string

URL to full resolution image

width: integer

Width of the design file in pixels

is_processed: boolean

Has the design been rendered?

height: integer

Height of the design file in pixels

reference: string

Unique identifier of this design

complementary_color: string

Complementary color

preview: string

URL to preview image

colors: integer

Total number of colors in the color palette

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

UserIntegration: object

id: integer

The internal cockpit id of the used user integration

app: string

Name of the integration application

name: string

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

expires_in: string

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

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

OrderPayment: object

gross_amount: Money

Gross price

vat_amount: Money

VAT amount

vat_rate: integer

VAT rate in percent

status_details: string

Payment error description (if there is any)

id: string

Unique transaction identifier

net_amount: Money

Net price

type: string

Payment type

status: string

Payment status

updated_at: string

Timestamp of last update

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

OAuthServerException: object

hint: string

A helper hint.

error: string

Machine readable error type.

message: string

Human readable error message.

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

ProjectProduct: object

active_integration_syncs: ProjectProductIntegrationSync

List of currently active synchronizations with integrations

name: string

Product name

custom_name: string

User defined product name

base_product: Product

Base product

integration_products: ProjectIntegrationProduct

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

project_name: string

Project name

project: string

Project reference

has_express: boolean

Is the product available for express processing?

price: Money

Net price

images: UtilProductImage

Product images

is_rendered: boolean

Has the product been rendered?

description: string

Short description in HTML format

id: integer

Numerical identifier

updated_at: string

Timestamp of last update

integration_sync_log: ProjectProductIntegrationSync

History of synchronizations with integrations for this product

is_available: boolean

Is the product available?

colors: ProductColor

List of available colors

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

User: object

integrations: UserIntegration

List of integrations (connected applications) for this user

is_billing_valid: boolean

Have billing options been filled out?

city: string

City, used for billing

lastname: string

Last name

sender_type: string full, company, legacy
street: string

Street and number, used for billing

sender_street: string
sender_title: string
sender_state: string
has_orders: boolean

Does user have orders?

sender_company_name: string
phone: string

Phone nubmer

company_name: string

Company name

title: string

(Academical) title

user_group: UserGroup
email: string

Email address

firstname: string

First name(s)

sender_firstname: string
country: string

Country, used for billing

is_business: boolean

Is a business customer

postcode: string

ZIP code, used for billing

sender_lastname: string
sender_postcode: string
display_name: string

Display name, e.g. first + last name

sender_country: string
updated_at: string

Timestamp of last update

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

OrderProduct: object

amount: integer

Number of items

size: string

Size name

images: UtilProductImage

Available image URLs

net_total_price: Money

Total price (net_unit_price*amount)

name: string

Product name

id: integer

Product id

net_unit_price: Money

Net unit price

color: string

Color name

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

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"
}

ProductManufacturer: object

id: integer

Numerical identifier

name: string

Manufacturer name

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

Money: object

currency_symbol: string

Currency symbol

currency_factor: integer

Number of cents in one unit of currency

amount: integer

Price in cents

currency_code: string

Three letter ISO 4217 code

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

ProductProcessingArea: object

position_name: string

Name of the printarea

printable_area_margin_from_top: integer

Distance between top and processable area top

position_id: integer

Numerical identifier

template: string

Template

template_width: integer

Default template width

height_in_mm: integer

Height of the printarea in millimeters

height: integer

Height of the printarea in pixels

width_in_mm: integer

Width of the printarea in millimeters

width: integer

Width of the printarea in pixels

template_height: integer

Default template height

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

ProjectIntegrationProduct: object

integration_product_id: string

The identifier used by the integration application

integration_id: integer

The cockpit internal id of the used user integration

updated_at: string

Timestamp of last update

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

ProductColor: object

id: integer

Numerical identifier

color: string

Color name

is_colored: boolean

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

sizes: object[]

Available sizes

color_hex: string

Hexadecimal RGB color value

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

OrderAddress: object

Address

postcode: string

ZIP/area code

lastname: string

Last name

country: string

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

parent: OrderRelation

Details on the parent order

firstname: string

First name

street: string

Street and number

city: string

City

company: string

Company name

title: string

(Academic) title

children: object

Array of child orders

Example
{
  "postcode": "12345",
  "lastname": "Mustermann",
  "country": "DE",
  "parent": {
    "status_key": "",
    "net_price": {
      "currency_symbol": "€",
      "currency_factor": 100,
      "amount": 999,
      "currency_code": "EUR"
    },
    "created_at": "2017-01-01 12:34:56",
    "vat_amount": {
      "currency_symbol": "€",
      "currency_factor": 100,
      "amount": 999,
      "currency_code": "EUR"
    },
    "vat_rate": 19,
    "gross_price": {
      "currency_symbol": "€",
      "currency_factor": 100,
      "amount": 999,
      "currency_code": "EUR"
    },
    "reference": "ABCDXY1",
    "total_items": 5,
    "status": "Bestellung offen",
    "updated_at": "2017-01-01 12:34:56"
  },
  "firstname": "Max",
  "street": "Musterstraße 12",
  "city": "Köln",
  "company": "Shirtigo GmbH",
  "title": "Dr.",
  "children": {
    "data": [
      {
        "status_key": "",
        "net_price": {
          "currency_symbol": "€",
          "currency_factor": 100,
          "amount": 999,
          "currency_code": "EUR"
        },
        "created_at": "2017-01-01 12:34:56",
        "vat_amount": {
          "currency_symbol": "€",
          "currency_factor": 100,
          "amount": 999,
          "currency_code": "EUR"
        },
        "vat_rate": 19,
        "gross_price": {
          "currency_symbol": "€",
          "currency_factor": 100,
          "amount": 999,
          "currency_code": "EUR"
        },
        "reference": "ABCDXY1",
        "total_items": 5,
        "status": "Bestellung offen",
        "updated_at": "2017-01-01 12:34:56"
      }
    ]
  }
}

Coupon: object

discount_type: string

The type of discount, either percentage or euro

remaining_activations: integer

Number of remaining usages for this coupon

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)

new_user_only: integer

Flag to indicate if the coupon is for new users only

coupon_type: string

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

coupon_code: string

The identifier on the promo coupon

is_active: boolean

Activation status of coupon

discount_percent: integer

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

min_order_value: Money

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

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

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

Order: object

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)

total_items: integer

Total number of items in the order

created_at: string

Timestamp of creation

products: object

Array of products in this order

sender: OrderAddress

Sender address

reference: string

Unique identifier of this order

invoice_reference: string

Invoice reference

delivery: OrderAddress

Delivery address

fulfillment: object

Fulfillment details or false if no details are available

net_price: Money

Total net price of this order

vat_amount: Money

VAT amount

bill: OrderAddress

Billing address

vat_rate: integer

VAT rate in percent

status_key: string

Number of products

gross_price: Money

Total gross price of this order

payments: object

Array of payments associated with this order

status: string

Human readable order status

updated_at: string

Timestamp of last update

Example
{
  "orderStatusEntries": {
    "data": [
      {
        "created_at": "2017-01-01 12:34:56",
        "description": "integer",
        "key": "string",
        "status": "string",
        "updated_at": "2017-01-01 12:34:56"
      }
    ]
  },
  "shipping": {
    "cost": {
      "currency_symbol": "€",
      "currency_factor": 100,
      "amount": 999,
      "currency_code": "EUR"
    },
    "created_at": "2017-01-01 12:34:56",
    "country_code": "DE",
    "tracking_code": "string",
    "tracking_url": "string",
    "type": "delivery",
    "is_shipped": false,
    "updated_at": "2017-01-01 12:34:56"
  },
  "total_items": 5,
  "created_at": "2017-01-01 12:34:56",
  "products": {
    "data": [
      {
        "amount": 1,
        "size": "XL",
        "images": [
          {
            "urls": {
              "large": "http://www.example.com/my-orders/large.png",
              "small": "http://www.example.com/my-orders/small.png"
            },
            "color": "Red",
            "area": "front"
          }
        ],
        "net_total_price": 1375,
        "name": "Base product XY",
        "id": "integer",
        "net_unit_price": {
          "currency_symbol": "€",
          "currency_factor": 100,
          "amount": 999,
          "currency_code": "EUR"
        },
        "color": "Black"
      }
    ]
  },
  "sender": {
    "postcode": "12345",
    "lastname": "Mustermann",
    "country": "DE",
    "parent": {
      "status_key": "",
      "net_price": {
        "currency_symbol": "€",
        "currency_factor": 100,
        "amount": 999,
        "currency_code": "EUR"
      },
      "created_at": "2017-01-01 12:34:56",
      "vat_amount": {
        "currency_symbol": "€",
        "currency_factor": 100,
        "amount": 999,
        "currency_code": "EUR"
      },
      "vat_rate": 19,
      "gross_price": {
        "currency_symbol": "€",
        "currency_factor": 100,
        "amount": 999,
        "currency_code": "EUR"
      },
      "reference": "ABCDXY1",
      "total_items": 5,
      "status": "Bestellung offen",
      "updated_at": "2017-01-01 12:34:56"
    },
    "firstname": "Max",
    "street": "Musterstraße 12",
    "city": "Köln",
    "company": "Shirtigo GmbH",
    "title": "Dr.",
    "children": {
      "data": [
        {
          "status_key": "",
          "net_price": {
            "currency_symbol": "€",
            "currency_factor": 100,
            "amount": 999,
            "currency_code": "EUR"
          },
          "created_at": "2017-01-01 12:34:56"
        }
      ]
    }
  }
}

MoneyWithVat: object

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

ProjectProductIntegrationSync: object

integration_id: integer

The cockpit internal id of the used user integration

is_successful: boolean

Has the product been rendered?

integration_product_id: string

The identifier used by the integration application

is_syncing: boolean

Is the product available?

integration_name: string

Name of the integration application

updated_at: string

Timestamp of last update

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

Project: object

name: string

Project name

is_published: boolean

Has the project been published?

processings: object

Processings associated with this project

created_at: string

Timestamp of initial creation

reference: string

Unique identifier of this project

type: string

Type

products_count: integer

Number of products

status: string

Project status

updated_at: string

Timestamp of last update

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

ProvisionalProduct: object

description: string

Short description

base_product: Product

Base product

name: string

Product name

price: Money

Net price

colors: ProductColor

List of available colors

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

UserGroup: object

created_at: string

Timestamp of creation

quantity: integer

Required number of sold products

id: integer

Numerical group identifier

cockpit_discount: integer

Discount in percent

type: string

Group name

updated_at: string

Timestamp of last update

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

Payment: object

gross_amount: Money

Gross price

status_title: string

Payment description

payment_reference: string

Payment reference

vat_amount: Money

VAT amount

vat_rate: integer

VAT rate in percent

created_at: string

Timestamp of creation

id: string

Unique transaction identifier

net_amount: Money

Net price

status: string

Payment type

order: Order

Order

Example
{
  "gross_amount": {
    "currency_symbol": "€",
    "currency_factor": 100,
    "amount": 999,
    "currency_code": "EUR"
  },
  "status_title": "Erstattung",
  "payment_reference": "Kreditkarte",
  "vat_amount": {
    "currency_symbol": "€",
    "currency_factor": 100,
    "amount": 999,
    "currency_code": "EUR"
  },
  "vat_rate": 19,
  "created_at": "2017-01-01 12:34:56",
  "id": "d1364568-4b15-4706-89f1-2452efe1261d",
  "net_amount": {
    "currency_symbol": "€",
    "currency_factor": 100,
    "amount": 999,
    "currency_code": "EUR"
  },
  "status": "invoice",
  "order": {
    "orderStatusEntries": {
      "data": [
        {
          "created_at": "2017-01-01 12:34:56",
          "description": "integer",
          "key": "string",
          "status": "string",
          "updated_at": "2017-01-01 12:34:56"
        }
      ]
    },
    "shipping": {
      "cost": {
        "currency_symbol": "€",
        "currency_factor": 100,
        "amount": 999,
        "currency_code": "EUR"
      },
      "created_at": "2017-01-01 12:34:56",
      "country_code": "DE",
      "tracking_code": "string",
      "tracking_url": "string",
      "type": "delivery",
      "is_shipped": false,
      "updated_at": "2017-01-01 12:34:56"
    },
    "total_items": 5,
    "created_at": "2017-01-01 12:34:56",
    "products": {
      "data": [
        {
          "amount": 1,
          "size": "XL",
          "images": [
            {
              "urls": {
                "large": "http://www.example.com/my-orders/large.png",
                "small": "http://www.example.com/my-orders/small.png"
              },
              "color": "Red",
              "area": "front"
            }
          ],
          "net_total_price": 1375,
          "name": "Base product XY",
          "id": "integer",
          "net_unit_price": {
            "currency_symbol": "€",
            "currency_factor": 100,
            "amount": 999,
            "currency_code": "EUR"
          },
          "color": "Black"
        }
      ]
    },
    "sender": {
      "postcode": "12345",
      "lastname": "Mustermann",
      "country": "DE",
      "parent": {
        "status_key": "",
        "net_price": {
          "currency_symbol": "€",
          "currency_factor": 100,
          "amount": 999,
          "currency_code": "EUR"
        },
        "created_at": "2017-01-01 12:34:56",
        "vat_amount": {
          "currency_symbol": "€",
          "currency_factor": 100,
          "amount": 999,
          "currency_code": "EUR"
        },
        "vat_rate": 19
      }
    }
  }
}

Product: object

category: string

Category name

category_id: integer

Numerical category identifier

is_active: boolean

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

processing_areas: object

Available processing areas

manufacturer: ProductManufacturer

Manufacturer information

sizechart_image: string

URL of the product size table image

shipping_category: integer

Shipping category

name: string

Product name

price: object

Pricing information

images: object

Product images

short_description: string

Short description

description: string

Detailed description

id: integer

Numeric identifier of this product

original_name: string

Base product name

sales_price: object

Pricing information on sales

colors: object

Color information

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