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

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

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

in
header

oauth

This section contains endpoints related to the OAuth2 implementation.

Request access token

POST /oauth/token

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

grant_type

Grant type

type
string authorization_code
in
formData
code

Code received in callback from /oauth/authorize

type
string
in
formData
client_id

Client ID (from registration)

type
string
in
formData
client_secret

Client Secret (from registration)

type
string
in
formData
200 OK

Success, token issued.

400 Bad Request

Error.

401 Unauthorized

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

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

Obtain authorization from user

GET /oauth/authorize

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

response_type

Response type

type
string code
in
query
redirect_url

Redirect URL. Must match registered redirect URL.

type
string
in
query
client_id

Client ID (from registration)

type
string
in
query
client_secret

Client Secret (from registration)

type
string
in
query
200 OK

Success, body contains prompt for confirmation.

302 Found

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

401 Unauthorized

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

user

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

Update sender address

POST /user/sender-address

Update sender address fields of currently authenticated user.

sender_firstname: string (up to 20 chars)

Update sender address

Update sender address fields of currently authenticated user.

sender_city: string (up to 30 chars)

Update sender address

Update sender address fields of currently authenticated user.

sender_lastname: string (up to 20 chars)

Update sender address

Update sender address fields of currently authenticated user.

sender_street: string (up to 35 chars)

Update sender address

Update sender address fields of currently authenticated user.

sender_company_name: string (up to 30 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_postcode: string (3 to 9 chars)

Update sender address

Update sender address fields of currently authenticated user.

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

User information updated.

422 Unprocessable Entity

Validation of inputs failed.

Update user advanced

POST /user/advanced

Update advanced user settings.

receives_mail_order_shipped: boolean

Update user advanced

Update advanced user settings.

default_first_packin_reference: string

Update user advanced

Update advanced user settings.

accounting_email: string

Update user advanced

Update advanced user settings.

receives_mail_order_placed: boolean

Update user advanced

Update advanced user settings.

default_hangtag_reference: string

Update user advanced

Update advanced user settings.

locale: string

Update user advanced

Update advanced user settings.

customs_email: string

Update user advanced

Update advanced user settings.

default_second_packin_reference: string

Update user advanced

Update advanced user settings.

Request Example
{
  "receives_mail_order_shipped": "boolean",
  "default_first_packin_reference": "string",
  "accounting_email": "string",
  "receives_mail_order_placed": "boolean",
  "default_hangtag_reference": "string",
  "locale": "string",
  "customs_email": "string",
  "default_second_packin_reference": "string"
}
204 No Content

User information updated.

422 Unprocessable Entity

Validation of inputs failed.

Get all payments

GET /payments

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

page

Page number

type
integer 1
in
query
items

Items per page

type
integer 12
in
query
search

Search query

type
integer
in
query
sort_col

Property to order by

type
string
in
query
sort_dir

Order direction

type
string asc, desc asc
in
query
period

Days to show (default: all)

type
integer
in
query
action

Action to filter for (default: none)

type
integer
in
query
200 OK

Success

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

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

POST /user/delivery-receipt-logo

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

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

The endpoint returns an empty array with exit code 200.

file

Design file

type
file
in
formData
200 OK

Success, delivery receipt logo was uploaded

422 Unprocessable Entity

Error, image file does not meet requirements

Get balance for current user

POST user/balance

Return a Money object for the users current balance

200 OK

Success

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

Get user information

GET /user

Retrieve information about the currently authenticated user.

200 OK

Success

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

Update user information

POST /user

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

lastname: string

Update user information

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

postcode: string

Update user information

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

street: string

Update user information

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

locale: string

Update user information

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

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

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

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

receives_mail_order_placed: boolean

Update user information

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

is_business: boolean

Update user information

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

receives_mail_order_shipped: boolean

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.

Request Example
{
  "lastname": "string",
  "postcode": "string",
  "street": "string",
  "locale": "string",
  "customs_email": "string",
  "company_name": "string",
  "phone": "string",
  "firstname": "string",
  "accounting_email": "string",
  "city": "string",
  "receives_mail_order_placed": "boolean",
  "is_business": "boolean",
  "receives_mail_order_shipped": "boolean",
  "country": "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 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)
{
  "name": "My cool design",
  "original_file": "https://example.com/product.png",
  "height": 3000,
  "updated_at": "2017-01-01 12:34:56",
  "preview": "https://example.com/product_prev.png",
  "is_dark": true,
  "filetype": "png",
  "width": 5000,
  "is_processed": true,
  "reference": "9e7aba40-3bce-4639-9caa-9a9a0397cbff",
  "colors": 5,
  "palette": [
    "A20061",
    "FFBC42",
    "1C838A",
    "021618",
    "A3AAAB"
  ],
  "created_at": "2017-01-01 12:34:56",
  "filename": "ABCDE",
  "complementary_color": ""
}

Create design from file

POST /designs/file

Create a new design from the submitted file.

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

The endpoint returns the created design.

file

Design file

type
file
in
formData
200 OK

Success, all file has been processed

422 Unprocessable Entity

Error, image file does not meet requirements

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

Create design from URL

POST /designs/url

Create a new design from the submitted URL.

The endpoint returns the created design.

url: string

Design file URL

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

Success, URL has been processed

422 Unprocessable Entity

Error, URL / image file does not meet requirements

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

Update design

PUT /designs/{design-reference}

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

name: string

Update design

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

design-reference

Unique design identifier

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

Success

404 Not Found

Design not found

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

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

Get design

GET /designs/{design-reference}

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

design-reference

Unique design identifier

type
string
in
path
200 OK

Success

404 Not Found

Design not found

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

Get all designs

GET /designs

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

200 OK

Success

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

product

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

Create provisional product

POST /products/provisional/{base_product_id}

Retrieve information for a draft product

base_product_id

Identifier of desired base product

type
integer
in
path

Success

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

Get all products

GET /products
finished

Only return products where rendering is finished.

type
integer
in
query
200 OK

Success

Response Example (200 OK)
{
  "data": [
    {
      "name": "Base Product Name XY",
      "active_integration_syncs": [
        {
          "updated_at": "2017-01-01 12:34:56",
          "integration_id": 111,
          "is_syncing": true,
          "in_queue": true,
          "integration_product_id": "9286211826",
          "integration_name": "shopify",
          "is_successful": true
        }
      ],
      "updated_at": "2017-01-01 12:34:56",
      "price": {
        "currency_code": "EUR",
        "amount": 999,
        "currency_symbol": "€",
        "currency_factor": 100
      },
      "id": 123,
      "is_available": true,
      "integration_sync_log": [
        {
          "updated_at": "2017-01-01 12:34:56",
          "integration_id": 111,
          "is_syncing": true,
          "in_queue": true,
          "integration_product_id": "9286211826",
          "integration_name": "shopify",
          "is_successful": true
        }
      ],
      "integration_products": [
        {
          "integration_id": 111,
          "updated_at": "2017-01-01 12:34:56",
          "integration_product_id": "9286211826"
        }
      ],
      "images": [
        {
          "area": "front",
          "color": "Red",
          "urls": {
            "large": "http://www.example.com/my-orders/large.png",
            "small": "http://www.example.com/my-orders/small.png"
          }
        }
      ],
      "custom_name": "My cool product",
      "project_name": "Projekt 123",
      "project": "9e7aba40-3bce-4639-9caa-9a9a0397cbff",
      "colors": [
        {
          "color_hex": "#000000",
          "is_colored": true,
          "sizes": [
            {
              "size": "XL",
              "is_onlocalstock": true,
              "id": 67,
              "sort_position": 1,
              "is_available": true
            }
          ],
          "id": 123,
          "color": "Black"
        }
      ],
      "base_product": {
        "name": "Base product XY",
        "sales_price": {
          "data": [
            {
              "price": {
                "currency_code": "EUR",
                "amount": 999,
                "currency_symbol": "€",
                "currency_factor": 100
              },
              "type": "generic"
            }
          ]
        },
        "price": {
          "data": [
            {
              "price": {
                "currency_code": "EUR",
                "amount": 999,
                "currency_symbol": "€",
                "currency_factor": 100
              },
              "type": "generic"
            }
          ]
        },
        "id": 1,
        "category_id": 5,
        "processing_areas": {
          "data": [
            {
              "width_in_mm": 100,
              "position_name": "front",
              "template": "string",
              "template_width": 1000
            }
          ]
        }
      }
    }
  ]
}

Create product

POST /products
project_id: string

Identifier of existing product

custom_name: string

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

price: integer

Price in Euro-cents

colors: integer[]

List of colors ids

base_product_id: integer

Identifier of desired base product

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

Success

Response Example (200 OK)
{
  "data": [
    {
      "name": "Base Product Name XY",
      "active_integration_syncs": [
        {
          "updated_at": "2017-01-01 12:34:56",
          "integration_id": 111,
          "is_syncing": true,
          "in_queue": true,
          "integration_product_id": "9286211826",
          "integration_name": "shopify",
          "is_successful": true
        }
      ],
      "updated_at": "2017-01-01 12:34:56",
      "price": {
        "currency_code": "EUR",
        "amount": 999,
        "currency_symbol": "€",
        "currency_factor": 100
      },
      "id": 123,
      "is_available": true,
      "integration_sync_log": [
        {
          "updated_at": "2017-01-01 12:34:56",
          "integration_id": 111,
          "is_syncing": true,
          "in_queue": true,
          "integration_product_id": "9286211826",
          "integration_name": "shopify",
          "is_successful": true
        }
      ],
      "integration_products": [
        {
          "integration_id": 111,
          "updated_at": "2017-01-01 12:34:56",
          "integration_product_id": "9286211826"
        }
      ],
      "images": [
        {
          "area": "front",
          "color": "Red",
          "urls": {
            "large": "http://www.example.com/my-orders/large.png",
            "small": "http://www.example.com/my-orders/small.png"
          }
        }
      ],
      "custom_name": "My cool product",
      "project_name": "Projekt 123",
      "project": "9e7aba40-3bce-4639-9caa-9a9a0397cbff",
      "colors": [
        {
          "color_hex": "#000000",
          "is_colored": true,
          "sizes": [
            {
              "size": "XL",
              "is_onlocalstock": true,
              "id": 67,
              "sort_position": 1,
              "is_available": true
            }
          ],
          "id": 123,
          "color": "Black"
        }
      ],
      "base_product": {
        "name": "Base product XY",
        "sales_price": {
          "data": [
            {
              "price": {
                "currency_code": "EUR",
                "amount": 999,
                "currency_symbol": "€",
                "currency_factor": 100
              },
              "type": "generic"
            }
          ]
        },
        "price": {
          "data": [
            {
              "price": {
                "currency_code": "EUR",
                "amount": 999,
                "currency_symbol": "€",
                "currency_factor": 100
              },
              "type": "generic"
            }
          ]
        },
        "id": 1,
        "category_id": 5,
        "processing_areas": {
          "data": [
            {
              "width_in_mm": 100,
              "position_name": "front",
              "template": "string",
              "template_width": 1000
            }
          ]
        }
      }
    }
  ]
}

Synchronize integrations

POST /products/{product-id}/sync

Trigger synchronization for all requested integrations for this product. The synchronization is performed in the background. Its status can be observed by querying the active_integration_syncs field in the product response.

integrations: object[]

Integration ids

product-id

Numerical product identifier

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

Success, all integrations processed

Update product

PUT /products/{product-id}
project_id: string

Unique product identifier

price: integer

Product price in Euro-cents

colors: integer[]

List of color ids

base_product_id: integer

Numerical base product identifier

description: string

Short description

custom_name: string

Product name

product-id

Numerical product identifier

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

Success

404 Not Found

Product not found

Response Example (200 OK)
{
  "name": "Base Product Name XY",
  "active_integration_syncs": [
    {
      "updated_at": "2017-01-01 12:34:56",
      "integration_id": 111,
      "is_syncing": true,
      "in_queue": true,
      "integration_product_id": "9286211826",
      "integration_name": "shopify",
      "is_successful": true
    }
  ],
  "updated_at": "2017-01-01 12:34:56",
  "price": {
    "currency_code": "EUR",
    "amount": 999,
    "currency_symbol": "€",
    "currency_factor": 100
  },
  "id": 123,
  "is_available": true,
  "integration_sync_log": [
    {
      "updated_at": "2017-01-01 12:34:56",
      "integration_id": 111,
      "is_syncing": true,
      "in_queue": true,
      "integration_product_id": "9286211826",
      "integration_name": "shopify",
      "is_successful": true
    }
  ],
  "integration_products": [
    {
      "integration_id": 111,
      "updated_at": "2017-01-01 12:34:56",
      "integration_product_id": "9286211826"
    }
  ],
  "images": [
    {
      "area": "front",
      "color": "Red",
      "urls": {
        "large": "http://www.example.com/my-orders/large.png",
        "small": "http://www.example.com/my-orders/small.png"
      }
    }
  ],
  "custom_name": "My cool product",
  "project_name": "Projekt 123",
  "project": "9e7aba40-3bce-4639-9caa-9a9a0397cbff",
  "colors": [
    {
      "color_hex": "#000000",
      "is_colored": true,
      "sizes": [
        {
          "size": "XL",
          "is_onlocalstock": true,
          "id": 67,
          "sort_position": 1,
          "is_available": true
        }
      ],
      "id": 123,
      "color": "Black"
    }
  ],
  "base_product": {
    "name": "Base product XY",
    "sales_price": {
      "data": [
        {
          "price": {
            "currency_code": "EUR",
            "amount": 999,
            "currency_symbol": "€",
            "currency_factor": 100
          },
          "type": "generic"
        }
      ]
    },
    "price": {
      "data": [
        {
          "price": {
            "currency_code": "EUR",
            "amount": 999,
            "currency_symbol": "€",
            "currency_factor": 100
          },
          "type": "generic"
        }
      ]
    },
    "id": 1,
    "category_id": 5,
    "processing_areas": {
      "data": [
        {
          "width_in_mm": 100,
          "position_name": "front",
          "template": "string",
          "template_width": 1000,
          "template_height": 1000,
          "width": 2000
        }
      ]
    }
  }
}

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

Get product

GET /products/{product-id}

Retrieve information on a single product.

product-id

Numerical product identifier

type
integer
in
path

Success

404 Not Found

Product not found

Response Example (200 OK)
{
  "name": "Base Product Name XY",
  "active_integration_syncs": [
    {
      "updated_at": "2017-01-01 12:34:56",
      "integration_id": 111,
      "is_syncing": true,
      "in_queue": true,
      "integration_product_id": "9286211826",
      "integration_name": "shopify",
      "is_successful": true
    }
  ],
  "updated_at": "2017-01-01 12:34:56",
  "price": {
    "currency_code": "EUR",
    "amount": 999,
    "currency_symbol": "€",
    "currency_factor": 100
  },
  "id": 123,
  "is_available": true,
  "integration_sync_log": [
    {
      "updated_at": "2017-01-01 12:34:56",
      "integration_id": 111,
      "is_syncing": true,
      "in_queue": true,
      "integration_product_id": "9286211826",
      "integration_name": "shopify",
      "is_successful": true
    }
  ],
  "integration_products": [
    {
      "integration_id": 111,
      "updated_at": "2017-01-01 12:34:56",
      "integration_product_id": "9286211826"
    }
  ],
  "images": [
    {
      "area": "front",
      "color": "Red",
      "urls": {
        "large": "http://www.example.com/my-orders/large.png",
        "small": "http://www.example.com/my-orders/small.png"
      }
    }
  ],
  "custom_name": "My cool product",
  "project_name": "Projekt 123",
  "project": "9e7aba40-3bce-4639-9caa-9a9a0397cbff",
  "colors": [
    {
      "color_hex": "#000000",
      "is_colored": true,
      "sizes": [
        {
          "size": "XL",
          "is_onlocalstock": true,
          "id": 67,
          "sort_position": 1,
          "is_available": true
        }
      ],
      "id": 123,
      "color": "Black"
    }
  ],
  "base_product": {
    "name": "Base product XY",
    "sales_price": {
      "data": [
        {
          "price": {
            "currency_code": "EUR",
            "amount": 999,
            "currency_symbol": "€",
            "currency_factor": 100
          },
          "type": "generic"
        }
      ]
    },
    "price": {
      "data": [
        {
          "price": {
            "currency_code": "EUR",
            "amount": 999,
            "currency_symbol": "€",
            "currency_factor": 100
          },
          "type": "generic"
        }
      ]
    },
    "id": 1,
    "category_id": 5,
    "processing_areas": {
      "data": [
        {
          "width_in_mm": 100,
          "position_name": "front",
          "template": "string",
          "template_width": 1000,
          "template_height": 1000,
          "width": 2000
        }
      ]
    }
  }
}

base-product

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

List available categories

GET /base-categories
200 OK

Success

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

Get base product

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

Retrieve information on a single base product.

base-product-id

Numerical base product identifier

type
integer
in
path
200 OK

Success

404 Not Found

Product not found

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

Get all base products

GET /base-products

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

category

Filter by category identifier (default: any)

type
integer
in
query
200 OK

Success

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

project

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

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

Delete project

DELETE /projects/{project-reference}

Delete the selected project.

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

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

Synchronize integrations

POST /projects/{project-reference}/sync

Trigger synchronization with all integrations defined for this campaign. The synchronization is performed in the background. Its status can be observed by querying for the attribute "status". It has the following enum-values:

  • 'is_queuing',
  • 'is_syncing',
  • 'is_completed'
  • 'has_errors'
integrations: object[]

Integration ids

project-reference

Unique project identifier

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

Success, all integrations processed

Publish project

POST /projects/{project-reference}/publish

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

project-reference

Unique project identifier

type
string
in
path
204 No Content

Success, project transferred

404 Not Found

Project not found

422 Unprocessable Entity

Requirements not fulfilled

Get products for a project

GET /projects/{project-reference}/products

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

project-reference

Unique project identifier

type
string
in
path

Success

404 Not Found

Project not found

Response Example (200 OK)
[
  {
    "name": "Base Product Name XY",
    "active_integration_syncs": [
      {
        "updated_at": "2017-01-01 12:34:56",
        "integration_id": 111,
        "is_syncing": true,
        "in_queue": true,
        "integration_product_id": "9286211826",
        "integration_name": "shopify",
        "is_successful": true
      }
    ],
    "updated_at": "2017-01-01 12:34:56",
    "price": {
      "currency_code": "EUR",
      "amount": 999,
      "currency_symbol": "€",
      "currency_factor": 100
    },
    "id": 123,
    "is_available": true,
    "integration_sync_log": [
      {
        "updated_at": "2017-01-01 12:34:56",
        "integration_id": 111,
        "is_syncing": true,
        "in_queue": true,
        "integration_product_id": "9286211826",
        "integration_name": "shopify",
        "is_successful": true
      }
    ],
    "integration_products": [
      {
        "integration_id": 111,
        "updated_at": "2017-01-01 12:34:56",
        "integration_product_id": "9286211826"
      }
    ],
    "images": [
      {
        "area": "front",
        "color": "Red",
        "urls": {
          "large": "http://www.example.com/my-orders/large.png",
          "small": "http://www.example.com/my-orders/small.png"
        }
      }
    ],
    "custom_name": "My cool product",
    "project_name": "Projekt 123",
    "project": "9e7aba40-3bce-4639-9caa-9a9a0397cbff",
    "colors": [
      {
        "color_hex": "#000000",
        "is_colored": true,
        "sizes": [
          {
            "size": "XL",
            "is_onlocalstock": true,
            "id": 67,
            "sort_position": 1,
            "is_available": true
          }
        ],
        "id": 123,
        "color": "Black"
      }
    ],
    "base_product": {
      "name": "Base product XY",
      "sales_price": {
        "data": [
          {
            "price": {
              "currency_code": "EUR",
              "amount": 999,
              "currency_symbol": "€",
              "currency_factor": 100
            },
            "type": "generic"
          }
        ]
      },
      "price": {
        "data": [
          {
            "price": {
              "currency_code": "EUR",
              "amount": 999,
              "currency_symbol": "€",
              "currency_factor": 100
            },
            "type": "generic"
          }
        ]
      },
      "id": 1,
      "category_id": 5,
      "processing_areas": {
        "data": [
          {
            "width_in_mm": 100,
            "position_name": "front",
            "template": "string",
            "template_width": 1000,
            "template_height": 1000
          }
        ]
      }
    }
  }
]

Get all projects

GET /projects

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

page

(no description)

type
integer 1
in
query
200 OK

Success

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

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

Add processing

POST /projects/{project-reference}/processings

Add processing information to a single campaign.

undefined
project-reference

Unique project identifier

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

Success

404 Not Found

Project not found

Update processing

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

Update processing information on a single campaign.

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

Success

404 Not Found

Project not found

cockpit_apikey
cockpit_oauth write-campaign

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

Campaign or processing not found

order

Endpoints in this section retrieve information about issued orders.

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": {
    "lastname": "Mustermann",
    "firstname": "Max",
    "postcode": "12345",
    "city": "Köln",
    "street": "Musterstraße 12",
    "title": "Dr.",
    "company": "Shirtigo GmbH",
    "country": "DE"
  },
  "products": [
    {
      "amount": 1,
      "colorId": 326,
      "productId": 235,
      "sizeId": 1
    }
  ],
  "sender": {
    "lastname": "Mustermann",
    "firstname": "Max",
    "postcode": "12345",
    "city": "Köln",
    "street": "Musterstraße 12",
    "title": "Dr.",
    "company": "Shirtigo GmbH",
    "country": "DE"
  }
}
200 OK

Success, price has been calculated

422 Unprocessable Entity

Validation failed, details in response body

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

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

Create Quick-Order

POST /quickorder

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

jobs: object[]

Processing jobs

delivery: OrderAddress

Create Quick-Order

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

sender: OrderAddress

Create Quick-Order

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

Request Example
{
  "jobs": [
    {
      "base_products": [
        {
          "id": 235,
          "colors": [
            {
              "sizes": [
                {
                  "amount": "integer",
                  "id": 1
                }
              ],
              "id": 326
            }
          ]
        }
      ],
      "processings": [
        {
          "method": "print",
          "offset_top": 50,
          "area": "front",
          "position": "center",
          "width": 200,
          "offset_center": 0,
          "design": {
            "url": "https://myurl/myimage.png"
          }
        }
      ]
    }
  ],
  "delivery": {
    "lastname": "Mustermann",
    "firstname": "Max",
    "postcode": "12345",
    "city": "Köln",
    "street": "Musterstraße 12",
    "title": "Dr.",
    "company": "Shirtigo GmbH",
    "country": "DE"
  },
  "sender": {
    "lastname": "Mustermann",
    "firstname": "Max",
    "postcode": "12345",
    "city": "Köln",
    "street": "Musterstraße 12",
    "title": "Dr.",
    "company": "Shirtigo GmbH",
    "country": "DE"
  }
}
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)
{
  "shipping": {
    "updated_at": "2017-01-01 12:34:56",
    "type": "delivery",
    "tracking_code": "string",
    "is_shipped": false,
    "created_at": "2017-01-01 12:34:56",
    "cost": {
      "currency_code": "EUR",
      "amount": 999,
      "currency_symbol": "€",
      "currency_factor": 100
    },
    "country_code": "DE",
    "tracking_url": "string"
  },
  "payments": {
    "data": [
      {
        "updated_at": "2017-01-01 12:34:56",
        "vat_amount": {
          "currency_code": "EUR",
          "amount": 999,
          "currency_symbol": "€",
          "currency_factor": 100
        },
        "id": "d1364568-4b15-4706-89f1-2452efe1261d",
        "status": "paid",
        "vat_rate": 19,
        "status_details": "An error occured.",
        "gross_amount": {
          "currency_code": "EUR",
          "amount": 999,
          "currency_symbol": "€",
          "currency_factor": 100
        },
        "net_amount": {
          "currency_code": "EUR",
          "amount": 999,
          "currency_symbol": "€",
          "currency_factor": 100
        },
        "type": "creditcard"
      }
    ]
  },
  "total_items": 5,
  "gross_price": {
    "currency_code": "EUR",
    "amount": 999,
    "currency_symbol": "€",
    "currency_factor": 100
  },
  "delivery": {
    "lastname": "Mustermann",
    "firstname": "Max",
    "postcode": "12345",
    "city": "Köln",
    "street": "Musterstraße 12",
    "title": "Dr.",
    "company": "Shirtigo GmbH",
    "country": "DE"
  },
  "invoice_reference": "string",
  "orderStatusEntries": {
    "data": [
      {
        "status": "string",
        "key": "string",
        "created_at": "2017-01-01 12:34:56",
        "updated_at": "2017-01-01 12:34:56",
        "description": "integer"
      }
    ]
  },
  "status_key": "",
  "vat_rate": 19,
  "bill": {
    "lastname": "Mustermann",
    "firstname": "Max",
    "postcode": "12345",
    "city": "Köln",
    "street": "Musterstraße 12",
    "title": "Dr.",
    "company": "Shirtigo GmbH",
    "country": "DE"
  },
  "sender": {
    "lastname": "Mustermann",
    "firstname": "Max",
    "postcode": "12345",
    "city": "Köln",
    "street": "Musterstraße 12",
    "title": "Dr.",
    "company": "Shirtigo GmbH",
    "country": "DE"
  },
  "fulfillment": {},
  "packins": {
    "data": [
      null
    ]
  }
}

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

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)
{
  "is_expired": false,
  "discount_percent": 10,
  "is_active": true,
  "discount_netto": {
    "currency_code": "EUR",
    "amount": 999,
    "currency_symbol": "€",
    "currency_factor": 100
  },
  "coupon_code": "Shirt-coupon-XYZ",
  "remaining_activations": "1",
  "new_user_only": "1",
  "discount_type": "euro",
  "n_activations": "1",
  "min_order_value": {
    "currency_code": "EUR",
    "amount": 999,
    "currency_symbol": "€",
    "currency_factor": 100
  },
  "coupon_type": "discount",
  "discount_brutto": {
    "currency_code": "EUR",
    "amount": 999,
    "currency_symbol": "€",
    "currency_factor": 100
  },
  "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)
{
  "meta": {
    "pagination": {
      "total": 32,
      "total_pages": 4,
      "current_page": 2,
      "count": 10,
      "links": {
        "next": "string",
        "previous": "string"
      },
      "per_page": 10
    }
  },
  "data": [
    {
      "shipping": {
        "updated_at": "2017-01-01 12:34:56",
        "type": "delivery",
        "tracking_code": "string",
        "is_shipped": false,
        "created_at": "2017-01-01 12:34:56",
        "cost": {
          "currency_code": "EUR",
          "amount": 999,
          "currency_symbol": "€",
          "currency_factor": 100
        },
        "country_code": "DE",
        "tracking_url": "string"
      },
      "payments": {
        "data": [
          {
            "updated_at": "2017-01-01 12:34:56",
            "vat_amount": {
              "currency_code": "EUR",
              "amount": 999,
              "currency_symbol": "€",
              "currency_factor": 100
            },
            "id": "d1364568-4b15-4706-89f1-2452efe1261d",
            "status": "paid",
            "vat_rate": 19,
            "status_details": "An error occured.",
            "gross_amount": {
              "currency_code": "EUR",
              "amount": 999,
              "currency_symbol": "€",
              "currency_factor": 100
            },
            "net_amount": {
              "currency_code": "EUR",
              "amount": 999,
              "currency_symbol": "€",
              "currency_factor": 100
            },
            "type": "creditcard"
          }
        ]
      },
      "total_items": 5,
      "gross_price": {
        "currency_code": "EUR",
        "amount": 999,
        "currency_symbol": "€",
        "currency_factor": 100
      },
      "delivery": {
        "lastname": "Mustermann",
        "firstname": "Max",
        "postcode": "12345",
        "city": "Köln",
        "street": "Musterstraße 12",
        "title": "Dr.",
        "company": "Shirtigo GmbH",
        "country": "DE"
      },
      "invoice_reference": "string",
      "orderStatusEntries": {
        "data": [
          {
            "status": "string",
            "key": "string",
            "created_at": "2017-01-01 12:34:56",
            "updated_at": "2017-01-01 12:34:56",
            "description": "integer"
          }
        ]
      },
      "status_key": "",
      "vat_rate": 19,
      "bill": {
        "lastname": "Mustermann",
        "firstname": "Max",
        "postcode": "12345",
        "city": "Köln",
        "street": "Musterstraße 12",
        "title": "Dr.",
        "company": "Shirtigo GmbH",
        "country": "DE"
      },
      "sender": {
        "lastname": "Mustermann"
      }
    }
  ]
}

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": {
    "lastname": "Mustermann",
    "firstname": "Max",
    "postcode": "12345",
    "city": "Köln",
    "street": "Musterstraße 12",
    "title": "Dr.",
    "company": "Shirtigo GmbH",
    "country": "DE"
  },
  "products": [
    {
      "amount": 1,
      "colorId": 326,
      "productId": 235,
      "sizeId": 1
    }
  ],
  "sender": {
    "lastname": "Mustermann",
    "firstname": "Max",
    "postcode": "12345",
    "city": "Köln",
    "street": "Musterstraße 12",
    "title": "Dr.",
    "company": "Shirtigo GmbH",
    "country": "DE"
  }
}
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)
{
  "shipping": {
    "updated_at": "2017-01-01 12:34:56",
    "type": "delivery",
    "tracking_code": "string",
    "is_shipped": false,
    "created_at": "2017-01-01 12:34:56",
    "cost": {
      "currency_code": "EUR",
      "amount": 999,
      "currency_symbol": "€",
      "currency_factor": 100
    },
    "country_code": "DE",
    "tracking_url": "string"
  },
  "payments": {
    "data": [
      {
        "updated_at": "2017-01-01 12:34:56",
        "vat_amount": {
          "currency_code": "EUR",
          "amount": 999,
          "currency_symbol": "€",
          "currency_factor": 100
        },
        "id": "d1364568-4b15-4706-89f1-2452efe1261d",
        "status": "paid",
        "vat_rate": 19,
        "status_details": "An error occured.",
        "gross_amount": {
          "currency_code": "EUR",
          "amount": 999,
          "currency_symbol": "€",
          "currency_factor": 100
        },
        "net_amount": {
          "currency_code": "EUR",
          "amount": 999,
          "currency_symbol": "€",
          "currency_factor": 100
        },
        "type": "creditcard"
      }
    ]
  },
  "total_items": 5,
  "gross_price": {
    "currency_code": "EUR",
    "amount": 999,
    "currency_symbol": "€",
    "currency_factor": 100
  },
  "delivery": {
    "lastname": "Mustermann",
    "firstname": "Max",
    "postcode": "12345",
    "city": "Köln",
    "street": "Musterstraße 12",
    "title": "Dr.",
    "company": "Shirtigo GmbH",
    "country": "DE"
  },
  "invoice_reference": "string",
  "orderStatusEntries": {
    "data": [
      {
        "status": "string",
        "key": "string",
        "created_at": "2017-01-01 12:34:56",
        "updated_at": "2017-01-01 12:34:56",
        "description": "integer"
      }
    ]
  },
  "status_key": "",
  "vat_rate": 19,
  "bill": {
    "lastname": "Mustermann",
    "firstname": "Max",
    "postcode": "12345",
    "city": "Köln",
    "street": "Musterstraße 12",
    "title": "Dr.",
    "company": "Shirtigo GmbH",
    "country": "DE"
  },
  "sender": {
    "lastname": "Mustermann",
    "firstname": "Max",
    "postcode": "12345",
    "city": "Köln",
    "street": "Musterstraße 12",
    "title": "Dr.",
    "company": "Shirtigo GmbH",
    "country": "DE"
  },
  "fulfillment": {},
  "packins": {
    "data": [
      null
    ]
  }
}

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.

Calculate production cost

POST /calculation

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

is_colored: boolean

Is this a color print?

printareas: integer[]

Desired print areas

product_id: integer

Desired base product

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

Success

404 Not Found

Product not found

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

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

Get delivery targets

GET /delivery-countries

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

200 OK

Success

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

Schema Definitions

ProductImage: object

url: string

URL of the image file

sort_position: integer

Numerical index used for sorting

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

ProjectWithProducts:

products: Product

Products associated with this Project

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

OrderStatusEntry: object

status: string

Human readable status

key: string

Order status key

created_at: string

Timestamp of creation

updated_at: string

Timestamp of last update

description: integer

Verbose status description

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

CampaignIntegrationProduct: object

integration_id: integer

The cockpit internal id of the used user integration

updated_at: string

Timestamp of last update

integration_product_id: string

The identifier used by the integration application

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

OrderPackin: object

name: string

Packin name

net_unit_price: Money

Net unit price

id: integer

Packin id

amount: integer

Number of items

net_total_price: Money

Total price (net_unit_price*amount)

type: string

Packin type (hangtag or packin)

Example
{
  "name": "Greeting card",
  "net_unit_price": {
    "currency_code": "EUR",
    "amount": 999,
    "currency_symbol": "€",
    "currency_factor": 100
  },
  "id": "integer",
  "amount": 1,
  "net_total_price": 75,
  "type": "hangtag"
}

ProvisionalProduct: object

name: string

Product name

description: string

Short description

price: Money

Net price

colors: ProductColor

List of available colors

base_product: Product

Base product

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

Pagination: object

Pagination information

total: integer

Total number of items

total_pages: integer

Total number of pages

current_page: integer

Index of current page

count: integer

Number of items on current page

links: object

URLs of adjacent pages

per_page: integer

Default number of items per page

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

ProductPrice: object

price: Money

Price

type: string

Variant

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

OrderShipping: object

updated_at: string

Timestamp of last update

type: string

Shipping type

tracking_code: string

Carrier tracking code

is_shipped: boolean

Has the order been shipped yet?

created_at: string

Timestamp of creation

cost: Money

Shipping price

country_code: string

Two letter country code

tracking_url: string

Carrier tracking URL

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

OrderRelation: object

vat_amount: Money

VAT amount

total_items: integer

Total number of items in the order

gross_price: Money

Total gross price of this order

reference: string

Unique identifier of this order

net_price: Money

Total net price of this order

status: string

Human readable order status

created_at: string

Timestamp of creation

status_key: string

Number of products

vat_rate: integer

VAT rate in percent

updated_at: string

Timestamp of last update

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

ProductManufacturer: object

name: string

Manufacturer name

id: integer

Numerical identifier

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

ProductProcessingArea: object

width_in_mm: integer

Width of the printarea in millimeters

position_name: string

Name of the printarea

template: string

Template

template_width: integer

Default template width

template_height: integer

Default template height

width: integer

Width of the printarea in pixels

printable_area_margin_from_top: integer

Distance between top and processable area top

position_id: integer

Numerical identifier

height: integer

Height of the printarea in pixels

height_in_mm: integer

Height of the printarea in millimeters

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

MoneyVatInclude:

vat_rate: integer

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

Example
{
  "vat_rate": 19
}

Product: object

name: string

Product name

sales_price: object

Pricing information on sales

price: object

Pricing information

id: integer

Numeric identifier of this product

category_id: integer

Numerical category identifier

processing_areas: object

Available processing areas

is_active: boolean

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

manufacturer: ProductManufacturer

Manufacturer information

sizechart_image: string

URL of the product size table image

images: object

Product images

colors: object

Color information

short_description: string

Short description

description: string

Detailed description

original_name: string

Base product name

category: string

Category name

shipping_category: integer

Shipping category

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

Order: object

shipping: OrderShipping

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

payments: object

Array of payments associated with this order

total_items: integer

Total number of items in the order

gross_price: Money

Total gross price of this order

delivery: OrderAddress

Delivery address

invoice_reference: string

Invoice reference

orderStatusEntries: object

Array of status messages associated with this order

status_key: string

Number of products

vat_rate: integer

VAT rate in percent

bill: OrderAddress

Billing address

sender: OrderAddress

Sender address

fulfillment: object

Fulfillment details or false if no details are available

packins: object

Array of packins and hangtags in this order

vat_amount: Money

VAT amount

reference: string

Unique identifier of this order

updated_at: string

Timestamp of last update

net_price: Money

Total net price of this order

status: string

Human readable order status

created_at: string

Timestamp of creation

products: object

Array of products in this order

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

Design: object

name: string

Design Name

original_file: string

URL to full resolution image

height: integer

Height of the design file in pixels

updated_at: string

Timestamp of last update

preview: string

URL to preview image

is_dark: boolean

Is this a design with dark colors?

filetype: string

Extension of the design file name

width: integer

Width of the design file in pixels

is_processed: boolean

Has the design been rendered?

reference: string

Unique identifier of this design

colors: integer

Total number of colors in the color palette

palette: string[]

List of hex-codes of representative colors

created_at: string

Timestamp of creation

filename: string

Design file name

complementary_color: string

Complementary color

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

ProjectPrint: object

method: string

Processing method

offset_top: integer

Vertical offset from top in millimeters

height: integer

Design height in millimeters

area: string

Processing site

position: string

Processing position

width: integer

Design width in millimeters

updated_at: string

Timestamp of last update

offset_center: integer

Horizontal offset from center in millimeters

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

MoneyWithVat: object

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

Payment: object

status_title: string

Payment description

vat_amount: Money

VAT amount

payment_reference: string

Payment reference

id: string

Unique transaction identifier

order: Order

Order

status: string

Payment type

vat_rate: integer

VAT rate in percent

created_at: string

Timestamp of creation

gross_amount: Money

Gross price

net_amount: Money

Net price

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

UserIntegration: object

name: string

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

expires_in: string

Date of expire

default_second_packin_reference: string

Default second packin added to orders received via this intergrations (optional)

default_first_packin_reference: string

Default first packin added to orders received via this intergrations (optional)

id: integer

The internal cockpit id of the used user integration

image_type: string

Type of image transfered to external shop

default_hangtag_reference: string

Default hangtag added to all textil products of orders received via this intergrations (optional)

app: string

Name of the integration application

image_quality: string

Quality of image transfered to external shop

delivery_receipt_logo: string

Url to custom logo added to delivery slip and shipping lable for orders received via this integration

Example
{
  "name": "my-cool-shirtstore.myshopify.com",
  "expires_in": "2018-01-01 12:34:56",
  "default_second_packin_reference": "ABC123",
  "default_first_packin_reference": "ABC123",
  "id": 111,
  "image_type": "png",
  "default_hangtag_reference": "ABC123",
  "app": "shopify",
  "image_quality": "high",
  "delivery_receipt_logo": "https://example.com/custom_logo.png"
}

Money: object

currency_code: string

Three letter ISO 4217 code

amount: integer

Price in cents

currency_symbol: string

Currency symbol

currency_factor: integer

Number of cents in one unit of currency

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

ProductColor: object

color_hex: string

Hexadecimal RGB color value

is_colored: boolean

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

sizes: object[]

Available sizes

id: integer

Numerical identifier

color: string

Color name

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

OrderProduct: object

name: string

Product name

net_unit_price: Money

Net unit price

id: integer

Product id

size: string

Size name

amount: integer

Number of items

color: string

Color name

images: UtilProductImage

Available image URLs

net_total_price: Money

Total price (net_unit_price*amount)

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

CampaignProduct: object

name: string

Product name

active_integration_syncs: CampaignProductIntegrationSync

List of currently active synchronizations with integrations

updated_at: string

Timestamp of last update

price: Money

Net price

id: integer

Numerical identifier

is_available: boolean

Is the product available?

integration_sync_log: CampaignProductIntegrationSync

History of synchronizations with integrations for this product

integration_products: CampaignIntegrationProduct

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

images: UtilProductImage

Product images

custom_name: string

User defined product name

project_name: string

Project name

project: string

Project reference

colors: ProductColor

List of available colors

base_product: Product

Base product

description: string

Short description in HTML format

has_express: boolean

Is the product available for express processing?

is_rendered: boolean

Has the product been rendered?

Example
{
  "name": "Base Product Name XY",
  "active_integration_syncs": [
    {
      "updated_at": "2017-01-01 12:34:56",
      "integration_id": 111,
      "is_syncing": true,
      "in_queue": true,
      "integration_product_id": "9286211826",
      "integration_name": "shopify",
      "is_successful": true
    }
  ],
  "updated_at": "2017-01-01 12:34:56",
  "price": {
    "currency_code": "EUR",
    "amount": 999,
    "currency_symbol": "€",
    "currency_factor": 100
  },
  "id": 123,
  "is_available": true,
  "integration_sync_log": [
    {
      "updated_at": "2017-01-01 12:34:56",
      "integration_id": 111,
      "is_syncing": true,
      "in_queue": true,
      "integration_product_id": "9286211826",
      "integration_name": "shopify",
      "is_successful": true
    }
  ],
  "integration_products": [
    {
      "integration_id": 111,
      "updated_at": "2017-01-01 12:34:56",
      "integration_product_id": "9286211826"
    }
  ],
  "images": [
    {
      "area": "front",
      "color": "Red",
      "urls": {
        "large": "http://www.example.com/my-orders/large.png",
        "small": "http://www.example.com/my-orders/small.png"
      }
    }
  ],
  "custom_name": "My cool product",
  "project_name": "Projekt 123",
  "project": "9e7aba40-3bce-4639-9caa-9a9a0397cbff",
  "colors": [
    {
      "color_hex": "#000000",
      "is_colored": true,
      "sizes": [
        {
          "size": "XL",
          "is_onlocalstock": true,
          "id": 67,
          "sort_position": 1,
          "is_available": true
        }
      ],
      "id": 123,
      "color": "Black"
    }
  ],
  "base_product": {
    "name": "Base product XY",
    "sales_price": {
      "data": [
        {
          "price": {
            "currency_code": "EUR",
            "amount": 999,
            "currency_symbol": "€",
            "currency_factor": 100
          },
          "type": "generic"
        }
      ]
    },
    "price": {
      "data": [
        {
          "price": {
            "currency_code": "EUR",
            "amount": 999,
            "currency_symbol": "€",
            "currency_factor": 100
          },
          "type": "generic"
        }
      ]
    },
    "id": 1,
    "category_id": 5,
    "processing_areas": {
      "data": [
        {
          "width_in_mm": 100,
          "position_name": "front",
          "template": "string",
          "template_width": 1000,
          "template_height": 1000,
          "width": 2000,
          "printable_area_margin_from_top": 0
        }
      ]
    }
  }
}

OrderAddress: object

Address

lastname: string

Last name

firstname: string

First name

postcode: string

ZIP/area code

city: string

City

street: string

Street and number

title: string

(Academic) title

company: string

Company name

country: string

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

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

Processing: object

Processing to apply

method: string center

Processing method

offset_top: integer

Vertical offset from top in millimeters

area: string

Processing area

position: string center

Processing position

width: string 120

Design width in millimeters

offset_center: integer

Horizontal offset from center in millimeters

design: string

Design reference

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

Coupon: object

is_expired: boolean

Flag to indicate if the coupon is expired

discount_percent: integer

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

is_active: boolean

Activation status of coupon

discount_netto: Money

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

coupon_code: string

The identifier on the promo coupon

remaining_activations: integer

Number of remaining usages for this coupon

new_user_only: integer

Flag to indicate if the coupon is for new users only

discount_type: string

The type of discount, either percentage or euro

n_activations: integer

Number of usages for this coupon

min_order_value: Money

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

coupon_type: string

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

discount_brutto: Money

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

expiration_date: string

Timestamp for the validity of the coupon code

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

UserPackin: object

name: string

Packin name

inventory: integer

Estimated stock level of packin

width_mm: integer

Width of the packin in millimeter

type: string

Packin type (packin or hangtag)

height_mm: integer

Height of the packin in millimeter

reference: ABC123

Packin reference

weight_gram: integer

Weight of one single packin in gram

stocking_costs: Money

Daily costs for stocking packin

is_active: boolean

Packins receives status is_active, when article is checked and warehoused

Example
{
  "name": "Greetings card",
  "inventory": "1000",
  "width_mm": "100",
  "type": "packin",
  "height_mm": "100",
  "reference": "ABC123",
  "weight_gram": "10",
  "stocking_costs": 50,
  "is_active": "true"
}

UtilProductImage: object

area: string

Processing area name

color: string

Color name

urls: object

Product name

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

Country: object

name: string

Country name

iso: string

Two-letter identifier according to ISO 3166-1

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

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

User: object

lastname: string

Last name

email: string

Email address

default_first_packin_reference: string

Default first packin added to orders placed via dashboard (optional)

default_second_packin_reference: string

Default second packin added to orders placed via dashboard (optional)

user_group: UserGroup
sender_title: string
default_hangtag_reference: string

Default hangtag added to all textil products of orders placed via dashboard (optional)

has_orders: boolean

Does user have orders?

company_name: string

Company name

sender_state: string
delivery_receipt_logo: string

Url to custom logo added to delivery slip and shipping lable for orders placed via dashboard

city: string

City, used for billing

postcode: string

ZIP code, used for billing

is_business: boolean

Is a business customer

country: string

Country, used for billing

sender_type: string full, company, legacy
updated_at: string

Timestamp of last update

sender_city: string
title: string

(Academical) title

street: string

Street and number, used for billing

sender_country: string
integrations: UserIntegration

List of integrations (connected applications) for this user

display_name: string

Display name, e.g. first + last name

phone: string

Phone nubmer

firstname: string

First name(s)

sender_lastname: string
sender_street: string
sender_firstname: string
is_billing_valid: boolean

Have billing options been filled out?

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

Project: object

name: string

Project name

updated_at: string

Timestamp of last update

is_syncing: array

Array with a list of all CampaignProductIntegrationSyncs of this campaign and its status, if it is currently syncing.

reference: string

Unique identifier of this project

type: string

Type

processings: object

Processings associated with this project

is_queueing: array

Array with a list of all CampaignProductIntegrationSyncs of this campaign and its status, if it is currently in queue.

status: string

Project status

created_at: string

Timestamp of initial creation

is_published: boolean

Has the project been published?

products_count: integer

Number of products

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

OrderPayment: object

updated_at: string

Timestamp of last update

vat_amount: Money

VAT amount

id: string

Unique transaction identifier

status: string

Payment status

vat_rate: integer

VAT rate in percent

status_details: string

Payment error description (if there is any)

gross_amount: Money

Gross price

net_amount: Money

Net price

type: string

Payment type

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

CampaignProductIntegrationSync: object

updated_at: string

Timestamp of last update

integration_id: integer

The cockpit internal id of the used user integration

is_syncing: boolean

Is the product available?

in_queue: boolean

Is the current sync-process still in queue?

integration_product_id: string

The identifier used by the integration application

integration_name: string

Name of the integration application

is_successful: boolean

Has the product been rendered?

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

ProductDimensions: object

size: string

Product size name

height: integer

Height in mm

width: integer

Width in mm

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

UserGroup: object

updated_at: string

Timestamp of last update

cockpit_discount: integer

Discount in percent

id: integer

Numerical group identifier

created_at: string

Timestamp of creation

quantity: integer

Required number of sold products

type: string

Group name

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