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

description

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

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

cockpit_apikey

name
Authorization
description

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

in
header

oauth

This section contains endpoints related to the OAuth2 implementation.

Request access token

POST /oauth/token

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

grant_type

Grant type

type
string authorization_code
in
formData
code

Code received in callback from /oauth/authorize

type
string
in
formData
client_id

Client ID (from registration)

type
string
in
formData
client_secret

Client Secret (from registration)

type
string
in
formData
200 OK

Success, token issued.

400 Bad Request

Error.

401 Unauthorized

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

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

Obtain authorization from user

GET /oauth/authorize

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

response_type

Response type

type
string code
in
query
redirect_url

Redirect URL. Must match registered redirect URL.

type
string
in
query
client_id

Client ID (from registration)

type
string
in
query
client_secret

Client Secret (from registration)

type
string
in
query
200 OK

Success, body contains prompt for confirmation.

302 Found

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

401 Unauthorized

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

user

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

Get balance for current user

POST user/balance

Return a Money object for the users current balance

200 OK

Success

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

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

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

Get all payments

GET /payments

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

page

Page number

type
integer 1
in
query
items

Items per page

type
integer 12
in
query
search

Search query

type
integer
in
query
sort_col

Property to order by

type
string
in
query
sort_dir

Order direction

type
string asc, desc asc
in
query
period

Days to show (default: all)

type
integer
in
query
action

Action to filter for (default: none)

type
integer
in
query
200 OK

Success

Response Example (200 OK)
{
  "data": [
    {
      "gross_amount": {
        "currency_factor": 100,
        "currency_code": "EUR",
        "amount": 999,
        "currency_symbol": "€"
      },
      "status": "invoice",
      "net_amount": {
        "currency_factor": 100,
        "currency_code": "EUR",
        "amount": 999,
        "currency_symbol": "€"
      },
      "order": {
        "total_items": 5,
        "fulfillment": {},
        "gross_price": {
          "currency_factor": 100,
          "currency_code": "EUR",
          "amount": 999,
          "currency_symbol": "€"
        },
        "vat_rate": 19,
        "payments": {
          "data": [
            {
              "status_details": "An error occured.",
              "status": "paid",
              "net_amount": {
                "currency_factor": 100,
                "currency_code": "EUR",
                "amount": 999,
                "currency_symbol": "€"
              },
              "gross_amount": {
                "currency_factor": 100,
                "currency_code": "EUR",
                "amount": 999,
                "currency_symbol": "€"
              },
              "id": "d1364568-4b15-4706-89f1-2452efe1261d",
              "updated_at": "2017-01-01 12:34:56",
              "vat_amount": {
                "currency_factor": 100,
                "currency_code": "EUR",
                "amount": 999,
                "currency_symbol": "€"
              },
              "type": "creditcard",
              "vat_rate": 19
            }
          ]
        },
        "bill": {
          "country": "DE",
          "title": "Dr.",
          "company": "Shirtigo GmbH",
          "street": "Musterstraße 12",
          "city": "Köln",
          "postcode": "12345",
          "lastname": "Mustermann",
          "firstname": "Max"
        },
        "status_key": "",
        "delivery": {
          "country": "DE",
          "title": "Dr.",
          "company": "Shirtigo GmbH",
          "street": "Musterstraße 12",
          "city": "Köln",
          "postcode": "12345",
          "lastname": "Mustermann",
          "firstname": "Max"
        },
        "reference": "ABCDXY1",
        "net_price": {
          "currency_factor": 100,
          "currency_code": "EUR",
          "amount": 999,
          "currency_symbol": "€"
        },
        "packins": {
          "data": [
            {
              "type": "hangtag",
              "amount": 1,
              "net_unit_price": {
                "currency_factor": 100,
                "currency_code": "EUR",
                "amount": 999,
                "currency_symbol": "€"
              },
              "id": "integer"
            }
          ]
        }
      }
    }
  ]
}

Update user advanced

POST /user/advanced

Update advanced user settings.

default_hangtag_reference: string

Update user advanced

Update advanced user settings.

default_first_packin_reference: string

Update user advanced

Update advanced user settings.

accounting_email: string

Update user advanced

Update advanced user settings.

receives_mail_order_placed: boolean

Update user advanced

Update advanced user settings.

locale: string

Update user advanced

Update advanced user settings.

receives_mail_order_shipped: boolean

Update user advanced

Update advanced user settings.

default_second_packin_reference: string

Update user advanced

Update advanced user settings.

customs_email: string

Update user advanced

Update advanced user settings.

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

User information updated.

422 Unprocessable Entity

Validation of inputs failed.

Update sender address

POST /user/sender-address

Update sender address fields of currently authenticated user.

sender_lastname: string (up to 20 chars)

Update sender address

Update sender address fields of currently authenticated user.

sender_city: string (up to 30 chars)

Update sender address

Update sender address fields of currently authenticated user.

sender_street: string (up to 35 chars)

Update sender address

Update sender address fields of currently authenticated user.

sender_postcode: string (3 to 9 chars)

Update sender address

Update sender address fields of currently authenticated user.

sender_country: string

Update sender address

Update sender address fields of currently authenticated user.

sender_company_name: string (up to 30 chars)

Update sender address

Update sender address fields of currently authenticated user.

sender_firstname: string (up to 20 chars)

Update sender address

Update sender address fields of currently authenticated user.

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

User information updated.

422 Unprocessable Entity

Validation of inputs failed.

Update user information

POST /user

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

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

company_name: string

Update user information

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

city: string

Update user information

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

receives_mail_order_placed: boolean

Update user information

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

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

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

is_business: boolean

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.

postcode: string

Update user information

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

lastname: string

Update user information

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

firstname: string

Update user information

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

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

design

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

Create design from file

POST /designs/file

Create a new design from the submitted file.

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

The endpoint returns the created design.

file

Design file

type
file
in
formData
200 OK

Success, all file has been processed

422 Unprocessable Entity

Error, image file does not meet requirements

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

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

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

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

Delete design

DELETE /designs/{design-reference}

Only designs by the currently authenticated user may be deleted.

design-reference

Unique design identifier

type
string
in
path
204 No Content

Success, design deleted

404 Not Found

Design not found

Update design

PUT /designs/{design-reference}

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

name: string

Update design

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

design-reference

Unique design identifier

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

Success

404 Not Found

Design not found

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

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

product

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

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

Delete product

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

Numerical product identifier

type
integer
in
path
204 No Content

Success, product deleted

404 Not Found

Product not found

Update product

PUT /products/{product-id}

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

price: integer

Gross product price in Euro-cents

description: string

Short description

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

sort_position: integer

Set a sort position for this product within its project

custom_name: string

Product name

product-id

Numerical product identifier

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

Success

404 Not Found

Product not found

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

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

Create a CampaignProduct

POST /products

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

price: integer

Price in Euro-cents

project_id: string

Identifier of existing product

base_product_id: integer

Identifier of desired base product

sort_position: integer

Set a sort position for this product within its project

colors: integer[]

List of colors ids

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

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

Success

404 Not Found

Project or base product not found

422 Unprocessable Entity

Requirements not fulfilled

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

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

Create provisional product

POST /products/provisional/{base_product_id}

Retrieve information for a draft product

base_product_id

Identifier of desired base product

type
integer
in
path

Success

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

base-product

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

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

List available categories

GET /base-categories
200 OK

Success

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

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

project

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

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

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

Success

404 Not Found

Project not found

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

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

Success

404 Not Found

Project not found

cockpit_apikey
cockpit_oauth write-campaign

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

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

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

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

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

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

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

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

Create Quick-Order

POST /quickorder

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

delivery: OrderAddress

Create Quick-Order

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

jobs: object[]

Processing jobs

sender: OrderAddress

Create Quick-Order

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

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

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

Retry payment

POST /orders/{order-reference}/repay

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

order-reference

Alphanumerical order identifier

type
string
in
path
204 No Content

Success, order has been paid.

400 Bad Request

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

Calculate price

POST /orders/predict-price

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

products: object[]

Selected products

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.

sender: OrderAddress

Create order

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

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

Success, price has been calculated

422 Unprocessable Entity

Validation failed, details in response body

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

Create order

POST /orders

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

products: object[]

Selected products

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.

sender: OrderAddress

Create order

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

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

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

other

This section contains miscellaneous endpoints.

Get delivery targets

GET /delivery-countries

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

200 OK

Success

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

Get selling statistics

GET /selling-statistics

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

200 OK

Success

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

Calculate production cost

POST /calculation

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

is_colored: boolean

Is this a color print?

printareas: integer[]

Desired print areas

product_id: integer

Desired base product

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

Success

404 Not Found

Product not found

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

Schema Definitions

Design: object

is_dark: boolean

Is this a design with dark colors?

colors: integer

Total number of colors in the color palette

name: string

Design Name

is_processed: boolean

Has the design been rendered?

original_file: string

URL to full resolution image

reference: string

Unique identifier of this design

palette: string[]

List of hex-codes of representative colors

height: integer

Height of the design file in pixels

filetype: string

Extension of the design file name

complementary_color: string

Complementary color

created_at: string

Timestamp of creation

width: integer

Width of the design file in pixels

updated_at: string

Timestamp of last update

preview: string

URL to preview image

filename: string

Design file name

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

OAuthServerException: object

error: string

Machine readable error type.

hint: string

A helper hint.

message: string

Human readable error message.

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

Payment: object

gross_amount: Money

Gross price

status: string

Payment type

net_amount: Money

Net price

order: Order

Order

vat_amount: Money

VAT amount

id: string

Unique transaction identifier

created_at: string

Timestamp of creation

status_title: string

Payment description

payment_reference: string

Payment reference

vat_rate: integer

VAT rate in percent

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

MoneyWithVat: object

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

ProjectWithProducts:

products: Product

Products associated with this Project

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

Money: object

currency_factor: integer

Number of cents in one unit of currency

currency_code: string

Three letter ISO 4217 code

amount: integer

Price in cents

currency_symbol: string

Currency symbol

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

Country: object

iso: string

Two-letter identifier according to ISO 3166-1

name: string

Country name

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

ProvisionalProduct: object

description: string

Short description

price: Money

Net price

name: string

Product name

colors: ProductColor

List of available colors

base_product: Product

Base product

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

Coupon: object

discount_netto: Money

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

discount_percent: integer

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

coupon_code: string

The identifier on the promo coupon

remaining_activations: integer

Number of remaining usages for this coupon

new_user_only: integer

Flag to indicate if the coupon is for new users only

min_order_value: Money

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

n_activations: integer

Number of usages for this coupon

is_active: boolean

Activation status of coupon

discount_brutto: Money

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

is_expired: boolean

Flag to indicate if the coupon is expired

expiration_date: string

Timestamp for the validity of the coupon code

discount_type: string

The type of discount, either percentage or euro

coupon_type: string

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

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

ProductProcessingArea: object

height_in_mm: integer

Height of the printarea in millimeters

height: integer

Height of the printarea in pixels

template: string

Template

width: integer

Width of the printarea in pixels

width_in_mm: integer

Width of the printarea in millimeters

template_height: integer

Default template height

position_name: string

Name of the printarea

printable_area_margin_from_top: integer

Distance between top and processable area top

position_id: integer

Numerical identifier

template_width: integer

Default template width

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

UserGroup: object

type: string

Group name

cockpit_discount: integer

Discount in percent

quantity: integer

Required number of sold products

id: integer

Numerical group identifier

created_at: string

Timestamp of creation

updated_at: string

Timestamp of last update

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

Project: object

processings: object

Processings associated with this project

type: string

Type

is_queueing: array

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

products_count: integer

Number of products

created_at: string

Timestamp of initial creation

reference: string

Unique identifier of this project

updated_at: string

Timestamp of last update

name: string

Project name

status: string

Project status

is_published: boolean

Has the project been published?

is_syncing: array

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

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

Pagination: object

Pagination information

per_page: integer

Default number of items per page

total_pages: integer

Total number of pages

count: integer

Number of items on current page

total: integer

Total number of items

current_page: integer

Index of current page

links: object

URLs of adjacent pages

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

ProjectPrint: object

height: integer

Design height in millimeters

area: string

Processing site

design: Design
offset_top: integer

Vertical offset from top in millimeters

offset_center: integer

Horizontal offset from center in millimeters

width: integer

Design width in millimeters

position: string

Processing position

method: string

Processing method

updated_at: string

Timestamp of last update

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

OrderProduct: object

size: string

Size name

amount: integer

Number of items

net_unit_price: Money

Net unit price

images: UtilProductImage

Available image URLs

id: integer

Product id

net_total_price: Money

Total price (net_unit_price*amount)

color: string

Color name

name: string

Product name

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

Product: object

images: object

Product images

sales_price: object

Pricing information on sales

price: object

Pricing information

colors: object

Color information

sizechart_image: string

URL of the product size table image

category: string

Category name

processing_areas: object

Available processing areas

is_active: boolean

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

shipping_category: integer

Shipping category

category_id: integer

Numerical category identifier

id: integer

Numeric identifier of this product

manufacturer: ProductManufacturer

Manufacturer information

description: string

Detailed description

name: string

Product name

short_description: string

Short description

original_name: string

Base product name

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

ProductColor: object

id: integer

Numerical identifier

is_colored: boolean

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

color: string

Color name

color_hex: string

Hexadecimal RGB color value

sizes: object[]

Available sizes

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

OrderStatusEntry: object

created_at: string

Timestamp of creation

status: string

Human readable status

key: string

Order status key

description: integer

Verbose status description

updated_at: string

Timestamp of last update

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

UtilProductImage: object

area: string

Processing area name

color: string

Color name

urls: object

Product name

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

MoneyVatInclude:

vat_rate: integer

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

Example
{
  "vat_rate": 19
}

User: object

sender_lastname: string
default_first_packin_reference: string

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

is_billing_valid: boolean

Have billing options been filled out?

sender_state: string
title: string

(Academical) title

is_business: boolean

Is a business customer

has_orders: boolean

Does user have orders?

sender_firstname: string
company_name: string

Company name

updated_at: string

Timestamp of last update

delivery_receipt_logo: string

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

integration_count: number

Number of active integrations

sender_title: string
country: string

Country, used for billing

sender_company_name: string
email: string

Email address

user_group: UserGroup
default_hangtag_reference: string

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

phone: string

Phone nubmer

integrations: UserIntegration

List of integrations (connected applications) for this user

sender_street: string
sender_type: string full, company, legacy
city: string

City, used for billing

default_second_packin_reference: string

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

default_delivery_receipt_logo_reference: string

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

sender_city: string
display_name: string

Display name, e.g. first + last name

sender_postcode: string
sender_country: string
postcode: string

ZIP code, used for billing

lastname: string

Last name

street: string

Street and number, used for billing

firstname: string

First name(s)

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

ProductImage: object

sort_position: integer

Numerical index used for sorting

url: string

URL of the image file

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

Order: object

total_items: integer

Total number of items in the order

fulfillment: object

Fulfillment details or false if no details are available

gross_price: Money

Total gross price of this order

vat_rate: integer

VAT rate in percent

payments: object

Array of payments associated with this order

bill: OrderAddress

Billing address

status_key: string

Number of products

delivery: OrderAddress

Delivery address

reference: string

Unique identifier of this order

net_price: Money

Total net price of this order

packins: object

Array of packins and hangtags in this order

vat_amount: Money

VAT amount

status: string

Human readable order status

shipping: OrderShipping

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

updated_at: string

Timestamp of last update

created_at: string

Timestamp of creation

invoice_reference: string

Invoice reference

sender: OrderAddress

Sender address

orderStatusEntries: object

Array of status messages associated with this order

products: object

Array of products in this order

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

CampaignProduct: object

images: UtilProductImage

Product images

is_rendered: boolean

Has the product been rendered?

price: Money

Net price

active_integration_syncs: CampaignProductIntegrationSync

List of currently active synchronizations with integrations

project: string

Project reference

name: string

Product name

integration_products: CampaignIntegrationProduct

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

integration_sync_log: CampaignProductIntegrationSync

History of synchronizations with integrations for this product

description: string

Short description in HTML format

custom_name: string

User defined product name

updated_at: string

Timestamp of last update

base_product: Product

Base product

id: integer

Numerical identifier

has_express: boolean

Is the product available for express processing?

sort_position: integer

Set a sort position for this product within its project

is_available: boolean

Is the product available?

colors: ProductColor

List of available colors

project_name: string

Project name

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

ProductDimensions: object

width: integer

Width in mm

size: string

Product size name

height: integer

Height in mm

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

OrderRelation: object

vat_amount: Money

VAT amount

status: string

Human readable order status

gross_price: Money

Total gross price of this order

vat_rate: integer

VAT rate in percent

total_items: integer

Total number of items in the order

created_at: string

Timestamp of creation

status_key: string

Number of products

updated_at: string

Timestamp of last update

reference: string

Unique identifier of this order

net_price: Money

Total net price of this order

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

OrderShipping: object

type: string

Shipping type

tracking_url: string

Carrier tracking URL

tracking_code: string

Carrier tracking code

created_at: string

Timestamp of creation

updated_at: string

Timestamp of last update

country_code: string

Two letter country code

is_shipped: boolean

Has the order been shipped yet?

cost: Money

Shipping price

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

ProductManufacturer: object

id: integer

Numerical identifier

name: string

Manufacturer name

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

ProductPrice: object

type: string

Variant

price: Money

Price

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

CampaignProductIntegrationSync: object

in_queue: boolean

Is the current sync-process still in queue?

integration_name: string

Name of the integration application

error: string

Error message

integration_id: integer

The cockpit internal id of the used user integration

integration_product_id: string

The identifier used by the integration application

updated_at: string

Timestamp of last update

is_successful: boolean

Has the product been rendered?

is_syncing: boolean

Is the product available?

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

Processing: object

Processing to apply

area: string

Processing area

design: string

Design reference

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

position: string center

Processing position

method: string center

Processing method

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

OrderPayment: object

status_details: string

Payment error description (if there is any)

status: string

Payment status

net_amount: Money

Net price

gross_amount: Money

Gross price

id: string

Unique transaction identifier

updated_at: string

Timestamp of last update

vat_amount: Money

VAT amount

type: string

Payment type

vat_rate: integer

VAT rate in percent

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

OrderAddress: object

Address

country: string

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

title: string

(Academic) title

company: string

Company name

street: string

Street and number

city: string

City

postcode: string

ZIP/area code

lastname: string

Last name

firstname: string

First name

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

OrderPackin: object

type: string

Packin type (hangtag or packin)

amount: integer

Number of items

net_unit_price: Money

Net unit price

id: integer

Packin id

net_total_price: Money

Total price (net_unit_price*amount)

name: string

Packin name

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

UserIntegration: object

expires_in: string

Date of expire

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_first_packin_reference: string

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

app: string

Name of the integration application

id: integer

The internal cockpit id of the used user integration

default_hangtag_reference: string

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

image_type: string

Type of image transfered to external shop

name: string

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

default_second_packin_reference: string

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

default_delivery_receipt_logo_reference: string

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

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

UserPackin: object

is_active: boolean

Packins receives status is_active, when article is checked and warehoused

type: string

Packin type (packin or hangtag)

stocking_costs: Money

Daily costs for stocking packin

weight_gram: integer

Weight of one single packin in gram

reference: ABC123

Packin reference

inventory: integer

Estimated stock level of packin

name: string

Packin name

width_mm: integer

Width of the packin in millimeter

height_mm: integer

Height of the packin in millimeter

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

CampaignIntegrationProduct: object

integration_product_id: string

The identifier used by the integration application

integration_id: integer

The cockpit internal id of the used user integration

updated_at: string

Timestamp of last update

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