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
tokenUrl
/oauth/token
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.

cockpit_apikey

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

oauth

This section contains endpoints related to the OAuth2 implementation.

Obtain authorization from user

GET /oauth/authorize

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

response_type

Response type

type
string code
in
query
redirect_url

Redirect URL. Must match registered redirect URL.

type
string
in
query
client_id

Client ID (from registration)

type
string
in
query
client_secret

Client Secret (from registration)

type
string
in
query
200 OK

Success, body contains prompt for confirmation.

302 Found

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

401 Unauthorized

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

Request access token

POST /oauth/token

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

grant_type

Grant type

type
string authorization_code
in
formData
code

Code received in callback from /oauth/authorize

type
string
in
formData
client_id

Client ID (from registration)

type
string
in
formData
client_secret

Client Secret (from registration)

type
string
in
formData
200 OK

Success, token issued.

400 Bad Request

Error.

401 Unauthorized

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

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

user

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

Get balance for current user

POST user/balance

Return a Money object for the users current balance

200 OK

Success

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

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

POST /user/delivery-receipt-logo

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

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

The endpoint returns an empty array with exit code 200.

file

Design file

type
file
in
formData
200 OK

Success, delivery receipt logo was uploaded

422 Unprocessable Entity

Error, image file does not meet requirements

Update sender address

POST /user/sender-address

Update sender address fields of currently authenticated user.

sender_city: string (up to 30 chars)

Update sender address

Update sender address fields of currently authenticated user.

sender_postcode: string (3 to 9 chars)

Update sender address

Update sender address fields of currently authenticated user.

sender_country: string

Update sender address

Update sender address fields of currently authenticated user.

sender_firstname: string (up to 20 chars)

Update sender address

Update sender address fields of currently authenticated user.

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

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

User information updated.

422 Unprocessable Entity

Validation of inputs failed.

Get user information

GET /user

Retrieve information about the currently authenticated user.

200 OK

Success

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

Update user information

POST /user

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

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

is_business: boolean

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.

street: string

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.

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

lastname: string

Update user information

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

country: string

Update user information

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

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

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

Request Example
{
  "city": "string",
  "accounting_email": "string",
  "is_business": "boolean",
  "company_name": "string",
  "street": "string",
  "receives_mail_order_shipped": "boolean",
  "phone": "string",
  "locale": "string",
  "lastname": "string",
  "country": "string",
  "firstname": "string",
  "receives_mail_order_placed": "boolean",
  "customs_email": "string",
  "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.

locale: string

Update user advanced

Update advanced user settings.

accounting_email: string

Update user advanced

Update advanced user settings.

default_second_packin_reference: string

Update user advanced

Update advanced user settings.

default_first_packin_reference: string

Update user advanced

Update advanced user settings.

receives_mail_order_placed: boolean

Update user advanced

Update advanced user settings.

customs_email: string

Update user advanced

Update advanced user settings.

default_hangtag_reference: string

Update user advanced

Update advanced user settings.

Request Example
{
  "receives_mail_order_shipped": "boolean",
  "locale": "string",
  "accounting_email": "string",
  "default_second_packin_reference": "string",
  "default_first_packin_reference": "string",
  "receives_mail_order_placed": "boolean",
  "customs_email": "string",
  "default_hangtag_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)
{
  "data": [
    {
      "net_amount": {
        "currency_code": "EUR",
        "currency_symbol": "€",
        "currency_factor": 100,
        "amount": 999
      },
      "payment_reference": "Kreditkarte",
      "vat_amount": {
        "currency_code": "EUR",
        "currency_symbol": "€",
        "currency_factor": 100,
        "amount": 999
      },
      "id": "d1364568-4b15-4706-89f1-2452efe1261d",
      "gross_amount": {
        "currency_code": "EUR",
        "currency_symbol": "€",
        "currency_factor": 100,
        "amount": 999
      },
      "status_title": "Erstattung",
      "status": "invoice",
      "vat_rate": 19,
      "order": {
        "gross_price": {
          "currency_code": "EUR",
          "currency_symbol": "€",
          "currency_factor": 100,
          "amount": 999
        },
        "updated_at": "2017-01-01 12:34:56",
        "orderStatusEntries": {
          "data": [
            {
              "updated_at": "2017-01-01 12:34:56",
              "status": "string",
              "created_at": "2017-01-01 12:34:56",
              "description": "integer",
              "key": "string"
            }
          ]
        },
        "packins": {
          "data": [
            {
              "type": "hangtag",
              "net_unit_price": {
                "currency_code": "EUR",
                "currency_symbol": "€",
                "currency_factor": 100,
                "amount": 999
              },
              "id": "integer",
              "name": "Greeting card",
              "net_total_price": 75,
              "amount": 1
            }
          ]
        },
        "payments": {
          "data": [
            {
              "net_amount": {
                "currency_code": "EUR",
                "currency_symbol": "€",
                "currency_factor": 100,
                "amount": 999
              },
              "updated_at": "2017-01-01 12:34:56",
              "type": "creditcard",
              "vat_amount": {
                "currency_code": "EUR",
                "currency_symbol": "€",
                "currency_factor": 100,
                "amount": 999
              },
              "id": "d1364568-4b15-4706-89f1-2452efe1261d",
              "gross_amount": {
                "currency_code": "EUR",
                "currency_symbol": "€",
                "currency_factor": 100,
                "amount": 999
              },
              "status": "paid",
              "vat_rate": 19,
              "status_details": "An error occured."
            }
          ]
        },
        "net_price": {
          "currency_code": "EUR",
          "currency_symbol": "€",
          "currency_factor": 100,
          "amount": 999
        },
        "shipping": {
          "updated_at": "2017-01-01 12:34:56",
          "type": "delivery",
          "cost": {}
        }
      }
    }
  ]
}

Delete a Logo assigned to your account or integration

DELETE /user/delivery-receipt-logo/{integration_id}

The endpoint returns an empty array with exit code 200.

integration_id

Unique integration identifier

type
string
in
path
200 OK

Success, delivery receipt logo was delted

design

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

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

Create design from base64-encoded data

POST /designs/base64

Create a new design from the base64-encoded data

The endpoint returns the created design.

original_filename: string

Original file name (optional)

data: string

Base64-encoded data

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

Success, URL has been processed

422 Unprocessable Entity

Error, URL / image file does not meet requirements

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

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

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

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

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

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

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

Update product

PUT /products/{product-id}

Update names, descriptions, prices and add/delete a product of the authenticated user.

colors: integer[]

List of color ids

delete_unmentioned_colors: bool

Set to true if colors which are stored but do not appear in the request should be deleted. Default: false

custom_name: string

Product name

description: string

Short description

sort_position: integer

Set a sort position for this product within its project

price: integer

Gross product price in Euro-cents

product-id

Numerical product identifier

type
integer
in
path
Request Example
{
  "colors": [
    "integer"
  ],
  "delete_unmentioned_colors": "bool",
  "custom_name": "My cool product",
  "description": "string",
  "sort_position": "1",
  "price": 400
}

Success

404 Not Found

Product not found

Response Example (200 OK)
{
  "integration_sync_log": [
    {
      "integration_product_id": "9286211826",
      "updated_at": "2017-01-01 12:34:56",
      "integration_id": 111,
      "integration_name": "shopify",
      "is_syncing": true,
      "error": "Invalid or missing auth.",
      "in_queue": true,
      "is_successful": true
    }
  ],
  "integration_products": [
    {
      "integration_product_id": "9286211826",
      "updated_at": "2017-01-01 12:34:56",
      "integration_id": 111
    }
  ],
  "colors": [
    {
      "color_hex": "#000000",
      "sizes": [
        {
          "sort_position": 1,
          "is_available": true,
          "is_onlocalstock": true,
          "size": "XL",
          "id": 67
        }
      ],
      "color": "Black",
      "id": 123,
      "is_colored": true
    }
  ],
  "id": 123,
  "is_available": true,
  "images": [
    {
      "urls": {
        "small": "http://www.example.com/my-orders/small.png",
        "large": "http://www.example.com/my-orders/large.png"
      },
      "area": "front",
      "color": "Red"
    }
  ],
  "sort_position": "1",
  "description": "string",
  "project": "9e7aba40-3bce-4639-9caa-9a9a0397cbff",
  "updated_at": "2017-01-01 12:34:56",
  "base_product": {
    "sizechart_image": "string",
    "shipping_category": 1,
    "colors": {
      "data": [
        {
          "color_hex": "#000000",
          "sizes": [
            {
              "sort_position": 1,
              "is_available": true,
              "is_onlocalstock": true,
              "size": "XL",
              "id": 67
            }
          ],
          "color": "Black",
          "id": 123,
          "is_colored": true
        }
      ]
    },
    "original_name": "T-Shirt",
    "id": 1,
    "price": {
      "data": [
        {
          "type": "generic",
          "price": {
            "currency_code": "EUR",
            "currency_symbol": "€",
            "currency_factor": 100,
            "amount": 999
          }
        }
      ]
    },
    "short_description": "string",
    "category_id": 5,
    "images": {
      "data": [
        {
          "url": "https://www.example.com/image.jpg",
          "sort_position": 1
        }
      ]
    },
    "category": "Unisex-Shirts",
    "sales_price": {
      "data": [
        {
          "type": "generic",
          "price": {
            "currency_code": "EUR",
            "currency_symbol": "€",
            "currency_factor": 100,
            "amount": 999
          }
        }
      ]
    },
    "name": "Base product XY"
  }
}

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)
{
  "integration_sync_log": [
    {
      "integration_product_id": "9286211826",
      "updated_at": "2017-01-01 12:34:56",
      "integration_id": 111,
      "integration_name": "shopify",
      "is_syncing": true,
      "error": "Invalid or missing auth.",
      "in_queue": true,
      "is_successful": true
    }
  ],
  "integration_products": [
    {
      "integration_product_id": "9286211826",
      "updated_at": "2017-01-01 12:34:56",
      "integration_id": 111
    }
  ],
  "colors": [
    {
      "color_hex": "#000000",
      "sizes": [
        {
          "sort_position": 1,
          "is_available": true,
          "is_onlocalstock": true,
          "size": "XL",
          "id": 67
        }
      ],
      "color": "Black",
      "id": 123,
      "is_colored": true
    }
  ],
  "id": 123,
  "is_available": true,
  "images": [
    {
      "urls": {
        "small": "http://www.example.com/my-orders/small.png",
        "large": "http://www.example.com/my-orders/large.png"
      },
      "area": "front",
      "color": "Red"
    }
  ],
  "sort_position": "1",
  "description": "string",
  "project": "9e7aba40-3bce-4639-9caa-9a9a0397cbff",
  "updated_at": "2017-01-01 12:34:56",
  "base_product": {
    "sizechart_image": "string",
    "shipping_category": 1,
    "colors": {
      "data": [
        {
          "color_hex": "#000000",
          "sizes": [
            {
              "sort_position": 1,
              "is_available": true,
              "is_onlocalstock": true,
              "size": "XL",
              "id": 67
            }
          ],
          "color": "Black",
          "id": 123,
          "is_colored": true
        }
      ]
    },
    "original_name": "T-Shirt",
    "id": 1,
    "price": {
      "data": [
        {
          "type": "generic",
          "price": {
            "currency_code": "EUR",
            "currency_symbol": "€",
            "currency_factor": 100,
            "amount": 999
          }
        }
      ]
    },
    "short_description": "string",
    "category_id": 5,
    "images": {
      "data": [
        {
          "url": "https://www.example.com/image.jpg",
          "sort_position": 1
        }
      ]
    },
    "category": "Unisex-Shirts",
    "sales_price": {
      "data": [
        {
          "type": "generic",
          "price": {
            "currency_code": "EUR",
            "currency_symbol": "€",
            "currency_factor": 100,
            "amount": 999
          }
        }
      ]
    },
    "name": "Base product XY"
  }
}

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 all products

GET /products
finished

Only return products where rendering is finished.

type
integer
in
query
200 OK

Success

Response Example (200 OK)
{
  "data": [
    {
      "integration_sync_log": [
        {
          "integration_product_id": "9286211826",
          "updated_at": "2017-01-01 12:34:56",
          "integration_id": 111,
          "integration_name": "shopify",
          "is_syncing": true,
          "error": "Invalid or missing auth.",
          "in_queue": true,
          "is_successful": true
        }
      ],
      "integration_products": [
        {
          "integration_product_id": "9286211826",
          "updated_at": "2017-01-01 12:34:56",
          "integration_id": 111
        }
      ],
      "colors": [
        {
          "color_hex": "#000000",
          "sizes": [
            {
              "sort_position": 1,
              "is_available": true,
              "is_onlocalstock": true,
              "size": "XL",
              "id": 67
            }
          ],
          "color": "Black",
          "id": 123,
          "is_colored": true
        }
      ],
      "id": 123,
      "is_available": true,
      "images": [
        {
          "urls": {
            "small": "http://www.example.com/my-orders/small.png",
            "large": "http://www.example.com/my-orders/large.png"
          },
          "area": "front",
          "color": "Red"
        }
      ],
      "sort_position": "1",
      "description": "string",
      "project": "9e7aba40-3bce-4639-9caa-9a9a0397cbff",
      "updated_at": "2017-01-01 12:34:56",
      "base_product": {
        "sizechart_image": "string",
        "shipping_category": 1,
        "colors": {
          "data": [
            {
              "color_hex": "#000000",
              "sizes": [
                {
                  "sort_position": 1,
                  "is_available": true,
                  "is_onlocalstock": true,
                  "size": "XL",
                  "id": 67
                }
              ],
              "color": "Black",
              "id": 123,
              "is_colored": true
            }
          ]
        },
        "original_name": "T-Shirt",
        "id": 1,
        "price": {
          "data": [
            {
              "type": "generic",
              "price": {
                "currency_code": "EUR",
                "currency_symbol": "€",
                "currency_factor": 100,
                "amount": 999
              }
            }
          ]
        },
        "short_description": "string",
        "category_id": 5,
        "images": {
          "data": [
            {
              "url": "https://www.example.com/image.jpg",
              "sort_position": 1
            }
          ]
        },
        "category": "Unisex-Shirts",
        "sales_price": {
          "data": [
            {
              "type": "generic",
              "price": {
                "currency_code": "EUR",
                "currency_symbol": "€",
                "currency_factor": 100
              }
            }
          ]
        }
      }
    }
  ]
}

Create a CampaignProduct

POST /products

Add a product to a project from the catalog of available base products.

project_id: string

Identifier of existing product

colors: integer[]

List of colors ids

base_product_id: integer

Identifier of desired base product

custom_name: string

Set a custom name for this product, will be filled with a generated placeholder of the form '{project_name} - {product_name}' if not set

sort_position: integer

Set a sort position for this product within its project

price: integer

Price in Euro-cents

Request Example
{
  "project_id": "9e7aba40-3bce-4639-9caa-9a9a0397cbff",
  "colors": [
    "212,239"
  ],
  "base_product_id": 25,
  "custom_name": "My fancy product name",
  "sort_position": "1",
  "price": "1999"
}
200 OK

Success

404 Not Found

Project or base product not found

422 Unprocessable Entity

Requirements not fulfilled

Response Example (200 OK)
{
  "data": [
    {
      "integration_sync_log": [
        {
          "integration_product_id": "9286211826",
          "updated_at": "2017-01-01 12:34:56",
          "integration_id": 111,
          "integration_name": "shopify",
          "is_syncing": true,
          "error": "Invalid or missing auth.",
          "in_queue": true,
          "is_successful": true
        }
      ],
      "integration_products": [
        {
          "integration_product_id": "9286211826",
          "updated_at": "2017-01-01 12:34:56",
          "integration_id": 111
        }
      ],
      "colors": [
        {
          "color_hex": "#000000",
          "sizes": [
            {
              "sort_position": 1,
              "is_available": true,
              "is_onlocalstock": true,
              "size": "XL",
              "id": 67
            }
          ],
          "color": "Black",
          "id": 123,
          "is_colored": true
        }
      ],
      "id": 123,
      "is_available": true,
      "images": [
        {
          "urls": {
            "small": "http://www.example.com/my-orders/small.png",
            "large": "http://www.example.com/my-orders/large.png"
          },
          "area": "front",
          "color": "Red"
        }
      ],
      "sort_position": "1",
      "description": "string",
      "project": "9e7aba40-3bce-4639-9caa-9a9a0397cbff",
      "updated_at": "2017-01-01 12:34:56",
      "base_product": {
        "sizechart_image": "string",
        "shipping_category": 1,
        "colors": {
          "data": [
            {
              "color_hex": "#000000",
              "sizes": [
                {
                  "sort_position": 1,
                  "is_available": true,
                  "is_onlocalstock": true,
                  "size": "XL",
                  "id": 67
                }
              ],
              "color": "Black",
              "id": 123,
              "is_colored": true
            }
          ]
        },
        "original_name": "T-Shirt",
        "id": 1,
        "price": {
          "data": [
            {
              "type": "generic",
              "price": {
                "currency_code": "EUR",
                "currency_symbol": "€",
                "currency_factor": 100,
                "amount": 999
              }
            }
          ]
        },
        "short_description": "string",
        "category_id": 5,
        "images": {
          "data": [
            {
              "url": "https://www.example.com/image.jpg",
              "sort_position": 1
            }
          ]
        },
        "category": "Unisex-Shirts",
        "sales_price": {
          "data": [
            {
              "type": "generic",
              "price": {
                "currency_code": "EUR",
                "currency_symbol": "€",
                "currency_factor": 100
              }
            }
          ]
        }
      }
    }
  ]
}

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

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

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

project

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

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

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

Get project

GET /projects/{project-reference}

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

project-reference

Unique project identifier

type
string
in
path
200 OK

Success

404 Not Found

Project not found

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

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

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
{
  "position": "center",
  "method": "print",
  "area": "front",
  "offset_top": 50,
  "offset_center": 0,
  "width": 200,
  "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

422 Unprocessable Entity

Campaign or processing not found

Publish project

POST /projects/{project-reference}/publish

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

project-reference

Unique project identifier

type
string
in
path
204 No Content

Success, project transferred

404 Not Found

Project not found

422 Unprocessable Entity

Requirements not fulfilled

Get 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

Current page

type
integer 1
in
query
items

Number of items per page

type
integer 12
in
query
sort_col

Column used to sort the results. You can sort by: name, reference, url, default_preview_position, created_at, updated_at

type
string created_at
in
query
sort_dir

Direction for sorting

type
string DESC
in
query
200 OK

Success

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

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

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

Success

404 Not Found

Project not found

Get products for a project

GET /projects/{project-reference}/products

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

project-reference

Unique project identifier

type
string
in
path

Success

404 Not Found

Project not found

Response Example (200 OK)
[
  {
    "integration_sync_log": [
      {
        "integration_product_id": "9286211826",
        "updated_at": "2017-01-01 12:34:56",
        "integration_id": 111,
        "integration_name": "shopify",
        "is_syncing": true,
        "error": "Invalid or missing auth.",
        "in_queue": true,
        "is_successful": true
      }
    ],
    "integration_products": [
      {
        "integration_product_id": "9286211826",
        "updated_at": "2017-01-01 12:34:56",
        "integration_id": 111
      }
    ],
    "colors": [
      {
        "color_hex": "#000000",
        "sizes": [
          {
            "sort_position": 1,
            "is_available": true,
            "is_onlocalstock": true,
            "size": "XL",
            "id": 67
          }
        ],
        "color": "Black",
        "id": 123,
        "is_colored": true
      }
    ],
    "id": 123,
    "is_available": true,
    "images": [
      {
        "urls": {
          "small": "http://www.example.com/my-orders/small.png",
          "large": "http://www.example.com/my-orders/large.png"
        },
        "area": "front",
        "color": "Red"
      }
    ],
    "sort_position": "1",
    "description": "string",
    "project": "9e7aba40-3bce-4639-9caa-9a9a0397cbff",
    "updated_at": "2017-01-01 12:34:56",
    "base_product": {
      "sizechart_image": "string",
      "shipping_category": 1,
      "colors": {
        "data": [
          {
            "color_hex": "#000000",
            "sizes": [
              {
                "sort_position": 1,
                "is_available": true,
                "is_onlocalstock": true,
                "size": "XL",
                "id": 67
              }
            ],
            "color": "Black",
            "id": 123,
            "is_colored": true
          }
        ]
      },
      "original_name": "T-Shirt",
      "id": 1,
      "price": {
        "data": [
          {
            "type": "generic",
            "price": {
              "currency_code": "EUR",
              "currency_symbol": "€",
              "currency_factor": 100,
              "amount": 999
            }
          }
        ]
      },
      "short_description": "string",
      "category_id": 5,
      "images": {
        "data": [
          {
            "url": "https://www.example.com/image.jpg",
            "sort_position": 1
          }
        ]
      },
      "category": "Unisex-Shirts",
      "sales_price": {
        "data": [
          {
            "type": "generic",
            "price": {
              "currency_code": "EUR",
              "currency_symbol": "€",
              "currency_factor": 100,
              "amount": 999
            }
          }
        ]
      }
    }
  }
]

order

Endpoints in this section retrieve information about issued orders.

Get coupon info

GET /coupons/{coupon-code}

Retrieve information about a single order coupon.

coupon-code

Alphanumerical coupon identifier as provided to the customer

type
string
in
200 OK

Success

404 Not Found

Coupon not found

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

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

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

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.

404 Not Found

Order not found

Create Quick-Order

POST /quickorder

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

jobs: object[]

Processing jobs

sender: OrderAddress

Create Quick-Order

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

delivery: OrderAddress

Create Quick-Order

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

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

Get all orders

GET /orders

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

page

Page number

type
integer 1
in
query
filter

Filter by order status id

type
integer 1
in
query
items

Items per page

type
integer 12
in
query
search

Search query

type
integer
in
query
sort_col

Property to order by

type
string
in
query
sort_dir

Order direction

type
string asc, desc asc
in
query
period

Days to show (default: all)

type
integer
in
query
secondary_filter

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

type
string
in
query
200 OK

Success

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

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.

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.

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

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

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.

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.

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

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

Success, price has been calculated

422 Unprocessable Entity

Validation failed, details in response body

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

other

This section contains miscellaneous endpoints.

Get selling statistics

GET /selling-statistics

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

200 OK

Success

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

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

Calculate production cost

POST /calculation

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

printareas: integer[]

Desired print areas

is_colored: boolean

Is this a color print?

product_id: integer

Desired base product

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

Success

404 Not Found

Product not found

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

Schema Definitions

CampaignIntegrationProduct: object

integration_product_id: string

The identifier used by the integration application

updated_at: string

Timestamp of last update

integration_id: integer

The cockpit internal id of the used user integration

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

CampaignProduct: object

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

colors: ProductColor

List of available colors

id: integer

Numerical identifier

is_available: boolean

Is the product available?

images: UtilProductImage

Product images

sort_position: integer

Set a sort position for this product within its project

description: string

Short description in HTML format

project: string

Project reference

updated_at: string

Timestamp of last update

base_product: Product

Base product

has_express: boolean

Is the product available for express processing?

active_integration_syncs: CampaignProductIntegrationSync

List of currently active synchronizations with integrations

name: string

Product name

project_name: string

Project name

custom_name: string

User defined product name

is_rendered: boolean

Has the product been rendered?

price: Money

Net price

Example
{
  "integration_sync_log": [
    {
      "integration_product_id": "9286211826",
      "updated_at": "2017-01-01 12:34:56",
      "integration_id": 111,
      "integration_name": "shopify",
      "is_syncing": true,
      "error": "Invalid or missing auth.",
      "in_queue": true,
      "is_successful": true
    }
  ],
  "integration_products": [
    {
      "integration_product_id": "9286211826",
      "updated_at": "2017-01-01 12:34:56",
      "integration_id": 111
    }
  ],
  "colors": [
    {
      "color_hex": "#000000",
      "sizes": [
        {
          "sort_position": 1,
          "is_available": true,
          "is_onlocalstock": true,
          "size": "XL",
          "id": 67
        }
      ],
      "color": "Black",
      "id": 123,
      "is_colored": true
    }
  ],
  "id": 123,
  "is_available": true,
  "images": [
    {
      "urls": {
        "small": "http://www.example.com/my-orders/small.png",
        "large": "http://www.example.com/my-orders/large.png"
      },
      "area": "front",
      "color": "Red"
    }
  ],
  "sort_position": "1",
  "description": "string",
  "project": "9e7aba40-3bce-4639-9caa-9a9a0397cbff",
  "updated_at": "2017-01-01 12:34:56",
  "base_product": {
    "sizechart_image": "string",
    "shipping_category": 1,
    "colors": {
      "data": [
        {
          "color_hex": "#000000",
          "sizes": [
            {
              "sort_position": 1,
              "is_available": true,
              "is_onlocalstock": true,
              "size": "XL",
              "id": 67
            }
          ],
          "color": "Black",
          "id": 123,
          "is_colored": true
        }
      ]
    },
    "original_name": "T-Shirt",
    "id": 1,
    "price": {
      "data": [
        {
          "type": "generic",
          "price": {
            "currency_code": "EUR",
            "currency_symbol": "€",
            "currency_factor": 100,
            "amount": 999
          }
        }
      ]
    },
    "short_description": "string",
    "category_id": 5,
    "images": {
      "data": [
        {
          "url": "https://www.example.com/image.jpg",
          "sort_position": 1
        }
      ]
    },
    "category": "Unisex-Shirts",
    "sales_price": {
      "data": [
        {
          "type": "generic",
          "price": {
            "currency_code": "EUR",
            "currency_symbol": "€",
            "currency_factor": 100,
            "amount": 999
          }
        }
      ]
    },
    "name": "Base product XY"
  }
}

Country: object

name: string

Country name

iso: string

Two-letter identifier according to ISO 3166-1

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

CampaignProductIntegrationSync: object

integration_product_id: string

The identifier used by the integration application

updated_at: string

Timestamp of last update

integration_id: integer

The cockpit internal id of the used user integration

integration_name: string

Name of the integration application

is_syncing: boolean

Is the product available?

error: string

Error message

in_queue: boolean

Is the current sync-process still in queue?

is_successful: boolean

Has the product been rendered?

Example
{
  "integration_product_id": "9286211826",
  "updated_at": "2017-01-01 12:34:56",
  "integration_id": 111,
  "integration_name": "shopify",
  "is_syncing": true,
  "error": "Invalid or missing auth.",
  "in_queue": true,
  "is_successful": true
}

ProductProcessingArea: object

template_height: integer

Default template height

template: string

Template

height_in_mm: integer

Height of the printarea in millimeters

height: integer

Height of the printarea in pixels

width_in_mm: integer

Width of the printarea in millimeters

width: integer

Width of the printarea in pixels

printable_area_margin_from_top: integer

Distance between top and processable area top

position_id: integer

Numerical identifier

position_name: string

Name of the printarea

template_width: integer

Default template width

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

OrderPackin: object

type: string

Packin type (hangtag or packin)

net_unit_price: Money

Net unit price

id: integer

Packin id

name: string

Packin name

net_total_price: Money

Total price (net_unit_price*amount)

amount: integer

Number of items

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

Design: object

is_dark: boolean

Is this a design with dark colors?

original_file: string

URL to full resolution image

colors: integer

Total number of colors in the color palette

filename: string

Design file name

height: integer

Height of the design file in pixels

created_at: string

Timestamp of creation

is_processed: boolean

Has the design been rendered?

palette: string[]

List of hex-codes of representative colors

complementary_color: string

Complementary color

updated_at: string

Timestamp of last update

preview: string

URL to preview image

filetype: string

Extension of the design file name

name: string

Design Name

width: integer

Width of the design file in pixels

reference: string

Unique identifier of this design

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

OrderShipping: object

updated_at: string

Timestamp of last update

type: string

Shipping type

cost: Money

Shipping price

is_shipped: boolean

Has the order been shipped yet?

tracking_url: string

Carrier tracking URL

tracking_code: string

Carrier tracking code

country_code: string

Two letter country code

created_at: string

Timestamp of creation

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

ProductColor: object

color_hex: string

Hexadecimal RGB color value

sizes: object[]

Available sizes

color: string

Color name

id: integer

Numerical identifier

is_colored: boolean

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

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

OrderAddress: object

Address

company: string

Company name

street: string

Street and number

lastname: string

Last name

city: string

City

firstname: string

First name

country: string

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

postcode: string

ZIP/area code

title: string

(Academic) title

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

Product: object

sizechart_image: string

URL of the product size table image

shipping_category: integer

Shipping category

colors: object

Color information

original_name: string

Base product name

id: integer

Numeric identifier of this product

price: object

Pricing information

short_description: string

Short description

category_id: integer

Numerical category identifier

images: object

Product images

category: string

Category name

sales_price: object

Pricing information on sales

name: string

Product name

manufacturer: ProductManufacturer

Manufacturer information

processing_areas: object

Available processing areas

description: string

Detailed description

is_active: boolean

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

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

Payment: object

net_amount: Money

Net price

payment_reference: string

Payment reference

vat_amount: Money

VAT amount

id: string

Unique transaction identifier

gross_amount: Money

Gross price

status_title: string

Payment description

status: string

Payment type

vat_rate: integer

VAT rate in percent

order: Order

Order

created_at: string

Timestamp of creation

Example
{
  "net_amount": {
    "currency_code": "EUR",
    "currency_symbol": "€",
    "currency_factor": 100,
    "amount": 999
  },
  "payment_reference": "Kreditkarte",
  "vat_amount": {
    "currency_code": "EUR",
    "currency_symbol": "€",
    "currency_factor": 100,
    "amount": 999
  },
  "id": "d1364568-4b15-4706-89f1-2452efe1261d",
  "gross_amount": {
    "currency_code": "EUR",
    "currency_symbol": "€",
    "currency_factor": 100,
    "amount": 999
  },
  "status_title": "Erstattung",
  "status": "invoice",
  "vat_rate": 19,
  "order": {
    "gross_price": {
      "currency_code": "EUR",
      "currency_symbol": "€",
      "currency_factor": 100,
      "amount": 999
    },
    "updated_at": "2017-01-01 12:34:56",
    "orderStatusEntries": {
      "data": [
        {
          "updated_at": "2017-01-01 12:34:56",
          "status": "string",
          "created_at": "2017-01-01 12:34:56",
          "description": "integer",
          "key": "string"
        }
      ]
    },
    "packins": {
      "data": [
        {
          "type": "hangtag",
          "net_unit_price": {
            "currency_code": "EUR",
            "currency_symbol": "€",
            "currency_factor": 100,
            "amount": 999
          },
          "id": "integer",
          "name": "Greeting card",
          "net_total_price": 75,
          "amount": 1
        }
      ]
    },
    "payments": {
      "data": [
        {
          "net_amount": {
            "currency_code": "EUR",
            "currency_symbol": "€",
            "currency_factor": 100,
            "amount": 999
          },
          "updated_at": "2017-01-01 12:34:56",
          "type": "creditcard",
          "vat_amount": {
            "currency_code": "EUR",
            "currency_symbol": "€",
            "currency_factor": 100,
            "amount": 999
          },
          "id": "d1364568-4b15-4706-89f1-2452efe1261d",
          "gross_amount": {
            "currency_code": "EUR",
            "currency_symbol": "€",
            "currency_factor": 100,
            "amount": 999
          },
          "status": "paid",
          "vat_rate": 19,
          "status_details": "An error occured."
        }
      ]
    },
    "net_price": {
      "currency_code": "EUR",
      "currency_symbol": "€",
      "currency_factor": 100,
      "amount": 999
    },
    "shipping": {
      "updated_at": "2017-01-01 12:34:56",
      "type": "delivery",
      "cost": {
        "currency_code": "EUR",
        "currency_symbol": "€",
        "currency_factor": 100
      }
    }
  }
}

OrderStatusEntry: object

updated_at: string

Timestamp of last update

status: string

Human readable status

created_at: string

Timestamp of creation

description: integer

Verbose status description

key: string

Order status key

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

ProductDimensions: object

height: integer

Height in mm

width: integer

Width in mm

size: string

Product size name

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

OrderRelation: object

gross_price: Money

Total gross price of this order

updated_at: string

Timestamp of last update

reference: string

Unique identifier of this order

vat_amount: Money

VAT amount

net_price: Money

Total net price of this order

status: string

Human readable order status

vat_rate: integer

VAT rate in percent

status_key: string

Number of products

created_at: string

Timestamp of creation

total_items: integer

Total number of items in the order

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

Money: object

currency_code: string

Three letter ISO 4217 code

currency_symbol: string

Currency symbol

currency_factor: integer

Number of cents in one unit of currency

amount: integer

Price in cents

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

MoneyVatInclude:

vat_rate: integer

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

Example
{
  "vat_rate": 19
}

UserIntegration: object

image_type: string

Type of image transfered to external shop

id: integer

The internal cockpit id of the used user integration

app: string

Name of the integration application

default_second_packin_reference: string

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

default_hangtag_reference: string

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

name: string

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

delivery_receipt_logo: string

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

image_quality: string

Quality of image transfered to external shop

default_delivery_receipt_logo_reference: string

Default delivery receipt logo used for orders received via this intergrations (optional)

default_first_packin_reference: string

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

expires_in: string

Date of expire

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

UserPackin: object

stocking_costs: Money

Daily costs for stocking packin

height_mm: integer

Height of the packin in millimeter

type: string

Packin type (packin or hangtag)

reference: ABC123

Packin reference

inventory: integer

Estimated stock level of packin

weight_gram: integer

Weight of one single packin in gram

name: string

Packin name

width_mm: integer

Width of the packin in millimeter

is_active: boolean

Packins receives status is_active, when article is checked and warehoused

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

Project: object

is_queueing: array

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

processings: object

Processings associated with this project

updated_at: string

Timestamp of last update

type: string

Type

products_count: integer

Number of products

reference: string

Unique identifier of this project

is_published: boolean

Has the project been published?

name: string

Project name

status: string

Project status

is_syncing: array

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

created_at: string

Timestamp of initial creation

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

OrderProduct: object

net_unit_price: Money

Net unit price

color: string

Color name

id: integer

Product id

name: string

Product name

net_total_price: Money

Total price (net_unit_price*amount)

size: string

Size name

amount: integer

Number of items

images: UtilProductImage

Available image URLs

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

User: object

city: string

City, used for billing

updated_at: string

Timestamp of last update

integration_count: number

Number of active integrations

default_hangtag_reference: string

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

sender_type: string full, company, legacy
sender_country: string
sender_state: string
has_orders: boolean

Does user have orders?

sender_company_name: string
company_name: string

Company name

street: string

Street and number, used for billing

user_group: UserGroup
firstname: string

First name(s)

is_business: boolean

Is a business customer

delivery_receipt_logo: string

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

title: string

(Academical) title

sender_city: string
is_billing_valid: boolean

Have billing options been filled out?

sender_postcode: string
integrations: UserIntegration

List of integrations (connected applications) for this user

default_delivery_receipt_logo_reference: string

Default delivery receipt logo used for orders placed via dashboard (optional)

sender_lastname: string
postcode: string

ZIP code, used for billing

display_name: string

Display name, e.g. first + last name

sender_title: string
phone: string

Phone nubmer

lastname: string

Last name

country: string

Country, used for billing

default_second_packin_reference: string

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

email: string

Email address

default_first_packin_reference: string

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

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

Pagination: object

Pagination information

total: integer

Total number of items

current_page: integer

Index of current page

count: integer

Number of items on current page

total_pages: integer

Total number of pages

per_page: integer

Default number of items per page

links: object

URLs of adjacent pages

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

OAuthServerException: object

hint: string

A helper hint.

message: string

Human readable error message.

error: string

Machine readable error type.

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

Order: object

gross_price: Money

Total gross price of this order

updated_at: string

Timestamp of last update

orderStatusEntries: object

Array of status messages associated with this order

packins: object

Array of packins and hangtags in this order

payments: object

Array of payments associated with this order

net_price: Money

Total net price of this order

shipping: OrderShipping

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

vat_rate: integer

VAT rate in percent

fulfillment: object

Fulfillment details or false if no details are available

invoice_reference: string

Invoice reference

created_at: string

Timestamp of creation

bill: OrderAddress

Billing address

status_key: string

Number of products

sender: OrderAddress

Sender address

reference: string

Unique identifier of this order

vat_amount: Money

VAT amount

products: object

Array of products in this order

status: string

Human readable order status

delivery: OrderAddress

Delivery address

total_items: integer

Total number of items in the order

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

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
}

ProjectPrint: object

position: string

Processing position

method: string

Processing method

area: string

Processing site

offset_top: integer

Vertical offset from top in millimeters

updated_at: string

Timestamp of last update

height: integer

Design height in millimeters

offset_center: integer

Horizontal offset from center in millimeters

width: integer

Design width in millimeters

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

ProductPrice: object

type: string

Variant

price: Money

Price

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

ProvisionalProduct: object

name: string

Product name

base_product: Product

Base product

colors: ProductColor

List of available colors

description: string

Short description

price: Money

Net price

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

Processing: object

Processing to apply

position: string center

Processing position

method: string center

Processing method

area: string

Processing area

offset_top: integer

Vertical offset from top in millimeters

offset_center: integer

Horizontal offset from center in millimeters

width: string 120

Design width in millimeters

design: string

Design reference

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

ProductManufacturer: object

name: string

Manufacturer name

id: integer

Numerical identifier

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

UtilProductImage: object

urls: object

Product name

area: string

Processing area name

color: string

Color name

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

ProjectWithProducts:

products: Product

Products associated with this Project

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

OrderPayment: object

net_amount: Money

Net price

updated_at: string

Timestamp of last update

type: string

Payment type

vat_amount: Money

VAT amount

id: string

Unique transaction identifier

gross_amount: Money

Gross price

status: string

Payment status

vat_rate: integer

VAT rate in percent

status_details: string

Payment error description (if there is any)

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

Coupon: object

discount_netto: Money

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

min_order_value: Money

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

coupon_code: string

The identifier on the promo coupon

is_active: boolean

Activation status of coupon

expiration_date: string

Timestamp for the validity of the coupon code

discount_percent: integer

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

n_activations: integer

Number of usages for this coupon

new_user_only: integer

Flag to indicate if the coupon is for new users only

discount_brutto: Money

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

coupon_type: string

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

discount_type: string

The type of discount, either percentage or euro

remaining_activations: integer

Number of remaining usages for this coupon

is_expired: boolean

Flag to indicate if the coupon is expired

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

MoneyWithVat: object

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

UserGroup: object

updated_at: string

Timestamp of last update

type: string

Group name

cockpit_discount: integer

Discount in percent

id: integer

Numerical group identifier

quantity: integer

Required number of sold products

created_at: string

Timestamp of creation

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