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.com/api
Request Content-Types: application/json
Response Content-Types: application/json
Schemes: https
Version: 1.0.0

Authentication

cockpit_apikey

description

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

name
Authorization
in
header

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

oauth

This section contains endpoints related to the OAuth2 implementation.

Obtain authorization from user

GET /oauth/authorize

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

response_type

Response type

type
string code
in
query
redirect_url

Redirect URL. Must match registered redirect URL.

type
string
in
query
client_id

Client ID (from registration)

type
string
in
query
client_secret

Client Secret (from registration)

type
string
in
query
200 OK

Success, body contains prompt for confirmation.

302 Found

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

401 Unauthorized

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

Request access token

POST /oauth/token

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

grant_type

Grant type

type
string authorization_code
in
formData
code

Code received in callback from /oauth/authorize

type
string
in
formData
client_id

Client ID (from registration)

type
string
in
formData
client_secret

Client Secret (from registration)

type
string
in
formData
200 OK

Success, token issued.

400 Bad Request

Error.

401 Unauthorized

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

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

user

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

Get all transactions

GET /transactions

Retrieve all accounting transactions 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": [
    {
      "id": "d1364568-4b15-4706-89f1-2452efe1261d",
      "status": "invoice",
      "status_title": "Erstattung",
      "payment_reference": "Kreditkarte",
      "order": {
        "reference": "ABCDXY1",
        "net_price": {
          "amount": 999,
          "currency_symbol": "€",
          "currency_code": "EUR",
          "currency_factor": 100
        },
        "gross_price": {
          "amount": 999,
          "currency_symbol": "€",
          "currency_code": "EUR",
          "currency_factor": 100
        },
        "vat_rate": 19,
        "vat_amount": {
          "amount": 999,
          "currency_symbol": "€",
          "currency_code": "EUR",
          "currency_factor": 100
        },
        "status": "Bestellung offen",
        "status_key": "",
        "invoice_reference": "string",
        "fulfillment": {},
        "delivery": {
          "title": "Dr.",
          "company": "Shirtigo GmbH",
          "firstname": "Max",
          "lastname": "Mustermann",
          "street": "Musterstraße 12",
          "postcode": "12345",
          "city": "Köln",
          "country": "DE"
        },
        "sender": {
          "title": "Dr.",
          "company": "Shirtigo GmbH",
          "firstname": "Max",
          "lastname": "Mustermann",
          "street": "Musterstraße 12",
          "postcode": "12345",
          "city": "Köln",
          "country": "DE"
        },
        "bill": {
          "title": "Dr.",
          "company": "Shirtigo GmbH",
          "firstname": "Max",
          "lastname": "Mustermann",
          "street": "Musterstraße 12",
          "postcode": "12345",
          "city": "Köln",
          "country": "DE"
        },
        "total_items": 5,
        "add_delivery_receipt": true,
        "delivery_receipt_logo_reference": "A456HJ",
        "delivery_receipt_note": "Use voucher XYZ and get a 10% discount for your next order",
        "use_custom_product_name": "true",
        "created_at": "2017-01-01 12:34:56",
        "updated_at": "2017-01-01 12:34:56",
        "products": {
          "data": [
            {
              "id": "integer",
              "amount": 1,
              "name": "Base product XY",
              "color": "Black",
              "size": "XL",
              "images": [
                {
                  "id": "1222",
                  "color": "Red",
                  "area": "front",
                  "urls": {
                    "small": "http://www.example.com/my-orders/small.png",
                    "large": "http://www.example.com/my-orders/large.png"
                  }
                }
              ],
              "net_total_price": 1375,
              "net_unit_price": {
                "amount": 999,
                "currency_symbol": "€",
                "currency_code": "EUR",
                "currency_factor": 100
              },
              "campaign_reference": "F7S33M2"
            }
          ]
        }
      }
    }
  ]
}

Get balance for current user

POST user/balance

Return a Money object for the users current balance

200 OK

Success

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

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 fulfillment

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

The endpoint returns an empty array with exit code 200.

file

Design file

type
file
in
formData
200 OK

Success, delivery receipt logo was uploaded

422 Unprocessable Entity

Error, image file does not meet requirements

Get user information

GET /user

Some of the listed resources are available as optional includes (add to the query ?include=firstInclude,secondInclude.subInclude). The available includes for this endpoint are: integrations, billingMethod, availableBillingMethods

200 OK

Success

Response Example (200 OK)

Update user information

POST /user

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

firstname: string

Update user information

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

lastname: string

Update user information

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

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.

city: string

Update user information

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

country: string

Update user information

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

company_name: string

Update user information

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

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

fulfillment_mode_key: boolean

Update user information

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

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

User information updated.

422 Unprocessable Entity

Validation of inputs failed.

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 deleted

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

POST /user/sticker

Upload a sticker to your user account which is printed on packaging for your customers to increase the branding of your fulfillment

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

The endpoint returns an empty array with exit code 200.

file

Design file

type
file
in
formData
200 OK

Success, sticker was uploaded

422 Unprocessable Entity

Error, image file does not meet requirements

Delete a sticker assigned to your account or integration

DELETE /user/sticker/{integration_id}

The endpoint returns an empty array with exit code 200.

integration_id

Unique integration identifier

type
string
in
path
200 OK

Success, sticker was deleted

Update sender address

POST /user/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.

sender_lastname: string (up to 20 chars)

Update sender address

Update sender address fields of currently authenticated user.

sender_street: string (up to 35 chars)

Update sender address

Update sender address fields of currently authenticated user.

sender_postcode: string (3 to 9 chars)

Update sender address

Update sender address fields of currently authenticated user.

sender_city: string (up to 30 chars)

Update sender address

Update sender address fields of currently authenticated user.

sender_country: string

Update sender address

Update sender address fields of currently authenticated user.

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

User information updated.

422 Unprocessable Entity

Validation of inputs failed.

Update user advanced

POST /user/advanced

Update advanced user settings.

locale: string

Update user advanced

Update advanced user settings.

accounting_email: string

Update user advanced

Update advanced user settings.

customs_email: string

Update user advanced

Update advanced user settings.

receives_mail_order_placed: boolean

Update user advanced

Update advanced user settings.

receives_mail_order_shipped: boolean

Update user advanced

Update advanced user settings.

use_tracking_de: boolean

Update user advanced

Update advanced user settings.

use_tracking_eu: boolean

Update user advanced

Update advanced user settings.

use_tracking_world: boolean

Update user advanced

Update advanced user settings.

add_delivery_receipt: boolean

Update user advanced

Update advanced user settings.

use_custom_product_name: boolean

Update user advanced

Update advanced user settings.

delivery_receipt_note: string

Update user advanced

Update advanced user settings.

default_first_packin_reference: string

Update user advanced

Update advanced user settings.

default_second_packin_reference: string

Update user advanced

Update advanced user settings.

default_hangtag_reference: string

Update user advanced

Update advanced user settings.

default_imprint_reference: string

Update user advanced

Update advanced user settings.

default_label_reference: string

Update user advanced

Update advanced user settings.

default_product_packaging_reference: string

Update user advanced

Update advanced user settings.

default_order_packaging_reference: string

Update user advanced

Update advanced user settings.

Request Example
{
  "locale": "string",
  "accounting_email": "string",
  "customs_email": "string",
  "receives_mail_order_placed": "boolean",
  "receives_mail_order_shipped": "boolean",
  "use_tracking_de": "boolean",
  "use_tracking_eu": "boolean",
  "use_tracking_world": "boolean",
  "add_delivery_receipt": "boolean",
  "use_custom_product_name": "boolean",
  "delivery_receipt_note": "string",
  "default_first_packin_reference": "string",
  "default_second_packin_reference": "string",
  "default_hangtag_reference": "string",
  "default_imprint_reference": "string",
  "default_label_reference": "string",
  "default_product_packaging_reference": "string",
  "default_order_packaging_reference": "string"
}
204 No Content

User information updated.

422 Unprocessable Entity

Validation of inputs failed.

design

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

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

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

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.

colors: array

List of hex-color pairs with the currently used color and the color to replace. Only available for embroidery design files.

design-reference

Unique design identifier

type
string
in
path
Request Example
{
  "name": "string",
  "colors": {
    "F2E9EA": "25282A",
    "D0DF00": "84754E"
  }
}
200 OK

Success

404 Not Found

Design not found

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

Delete design

DELETE /designs/{design-reference}

Only designs by the currently authenticated user may be deleted.

design-reference

Unique design identifier

type
string
in
path
204 No Content

Success, design deleted

404 Not Found

Design not found

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

Create design from base64-encoded data

POST /designs/base64

Create a new design from the base64-encoded data

The endpoint returns the created design.

data: string

Base64-encoded data

original_filename: string

Original file name (optional)

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

Success, URL has been processed

422 Unprocessable Entity

Error, URL / image file does not meet requirements

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

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

product

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

Get all products

GET /products

Some of the listed resources are available as optional includes (add to the query ?include=firstInclude,secondInclude.subInclude). The available includes for this endpoint are: colors, base_product, active_integration_syncs, integration_sync_log, integration_products, projectProductColors

finished

Only return products where rendering is finished.

type
integer
in
query
200 OK

Success

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

Get product

GET /products/{product-id}

Some of the listed resources are available as optional includes (add to the query ?include=firstInclude,secondInclude.subInclude). The available includes for this endpoint are: colors, base_product, active_integration_syncs, integration_sync_log, integration_products, projectProductColors

product-id

Numerical product identifier

type
integer
in
path

Success

404 Not Found

Product not found

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

Update product

PUT /products/{product-id}

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

custom_name: string

Product name

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

product-id

Numerical product identifier

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

Success

404 Not Found

Product not found

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

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

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

Create product

POST /customized-product

Use this endpoint to a create a product based on a specific baseProduct. The product can be customized on the baseProduct color level. This allows you to have a different design, size and positioning for each baseProduct color. Each processing can be associated to one or many colorIds. Multiple processings can be added. Workflow: create project, add customized-products

project_id: string

Identifier of existing project

base_product_id: integer

Identifier of desired base product

processings: object[]

List of processings to apply

Request Example
{
  "project_id": "CP94791DFD28",
  "base_product_id": 235,
  "processings": [
    {
      "processingarea_type": "front",
      "processingposition": "chest-center",
      "processingmethod": "dtg",
      "design": "310ef229-2254-4f4f-9041-a8e02674ff36",
      "offset_top": 50,
      "offset_center": 0,
      "width": 200,
      "is_customizable": "false",
      "force_position": "false",
      "colors": [
        {
          "colorId": 608,
          "price": 2195,
          "sortPosition": 1
        }
      ]
    }
  ]
}
200 OK

Success

401 Unauthorized

Unauthorized (no credentials or not eligible for ordering)

422 Unprocessable Entity

Validation failed, details in response body

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

Update product colors

PUT /customized-product/{product-id}

Use this endpoint to update an existing product. The product can be customized on the baseProduct color level similar to the create endpoint. Each processing can be associated to one or many colorIds. Multiple processings can be added. Instead of the complete processing information (design, width, position info) it is possible to pass a baseProduct color id as a referenceColorId. In this case all processing information is created based on the existing processings for the reference color.

processings: object[]

List of processings to add / update

Request Example
{
  "processings": [
    {
      "processingarea_type": "front",
      "processingposition": "chest-center",
      "processingmethod": "dtg",
      "design_reference": "310ef229-2254-4f4f-9041-a8e02674ff36",
      "offset_top": 50,
      "offset_center": 0,
      "width": 200,
      "is_customizable": "false",
      "force_position": "false",
      "colors": [
        {
          "colorId": 608,
          "referenceColorId": 2195,
          "price": 2195,
          "sortPosition": 1
        }
      ]
    }
  ]
}
200 OK

Success

401 Unauthorized

Unauthorized (no credentials or not eligible for ordering)

422 Unprocessable Entity

Validation failed, details in response body

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

baseProduct

Endpoints in this section retrieve baseProducts available for creating customized products.

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

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

List available categories

GET /base-categories
200 OK

Success

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

project

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

Get all projects

GET /projects

Some of the listed resources are available as optional includes (add to the query ?include=firstInclude,secondInclude.subInclude). The available includes for this endpoint are: products, productInfo

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

Create project

POST /projects

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

name: string

Project name

description: string

Project description

is_deprecated_campaign: boolean

indicates if deprecated way for product creation is used (use 1/0 instead of true/false)

Request Example
{
  "name": "My cool project",
  "description": "My cool project",
  "is_deprecated_campaign": "0"
}
200 OK

Success

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

Get project

GET /projects/{project-reference}

Some of the listed resources are available as optional includes (add to the query ?include=firstInclude,secondInclude.subInclude). The available includes for this endpoint are: products, productInfo

project-reference

Unique project identifier

type
string
in
path
200 OK

Success

404 Not Found

Project not found

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

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

Delete project

DELETE /projects/{project-reference}

Delete the selected project.

project-reference

Unique project identifier

type
string
in
path
204 No Content

Success, project deleted

404 Not Found

Project not found

502 Bad Gateway

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

Get products for a project

GET /projects/{project-reference}/products

Some of the listed resources are available as optional includes (add to the query ?include=firstInclude,secondInclude.subInclude). The available includes for this endpoint are: colors, base_product, active_integration_syncs, integration_sync_log, integration_products, projectProductColors

project-reference

Unique project identifier

type
string
in
path

Success

404 Not Found

Project not found

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

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

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

Get all orders

GET /orders

Some of the listed resources are available as optional includes (add to the query ?include=firstInclude,secondInclude.subInclude). The available includes for this endpoint are: parent, children, comments, products, warehouseProducts, payments, orderStatusEntries, shipping, packins

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": [
    {
      "reference": "ABCDXY1",
      "net_price": {
        "amount": 999,
        "currency_symbol": "€",
        "currency_code": "EUR",
        "currency_factor": 100
      },
      "gross_price": {
        "amount": 999,
        "currency_symbol": "€",
        "currency_code": "EUR",
        "currency_factor": 100
      },
      "vat_rate": 19,
      "vat_amount": {
        "amount": 999,
        "currency_symbol": "€",
        "currency_code": "EUR",
        "currency_factor": 100
      },
      "status": "Bestellung offen",
      "status_key": "",
      "invoice_reference": "string",
      "fulfillment": {},
      "delivery": {
        "title": "Dr.",
        "company": "Shirtigo GmbH",
        "firstname": "Max",
        "lastname": "Mustermann",
        "street": "Musterstraße 12",
        "postcode": "12345",
        "city": "Köln",
        "country": "DE"
      },
      "sender": {
        "title": "Dr.",
        "company": "Shirtigo GmbH",
        "firstname": "Max",
        "lastname": "Mustermann",
        "street": "Musterstraße 12",
        "postcode": "12345",
        "city": "Köln",
        "country": "DE"
      },
      "bill": {
        "title": "Dr.",
        "company": "Shirtigo GmbH",
        "firstname": "Max",
        "lastname": "Mustermann",
        "street": "Musterstraße 12",
        "postcode": "12345",
        "city": "Köln",
        "country": "DE"
      },
      "total_items": 5,
      "add_delivery_receipt": true,
      "delivery_receipt_logo_reference": "A456HJ",
      "delivery_receipt_note": "Use voucher XYZ and get a 10% discount for your next order",
      "use_custom_product_name": "true",
      "created_at": "2017-01-01 12:34:56",
      "updated_at": "2017-01-01 12:34:56",
      "products": {
        "data": [
          {
            "id": "integer",
            "amount": 1,
            "name": "Base product XY",
            "color": "Black",
            "size": "XL",
            "images": [
              {
                "id": "1222",
                "color": "Red",
                "area": "front",
                "urls": {
                  "small": "http://www.example.com/my-orders/small.png",
                  "large": "http://www.example.com/my-orders/large.png"
                }
              }
            ],
            "net_total_price": 1375,
            "net_unit_price": {
              "amount": 999,
              "currency_symbol": "€",
              "currency_code": "EUR",
              "currency_factor": 100
            },
            "campaign_reference": "F7S33M2",
            "campaign_name": "Example Project",
            "campaign_product_id": "123"
          }
        ]
      },
      "packins": {
        "data": [
          {}
        ]
      }
    }
  ]
}

Create order

POST /orders

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

delivery: OrderAddress

Create order

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

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.

products: object[]

Selected products

packins: object[]

Selected packins (optional)

is_onhold: boolean

Indicates if order is automatically pushed to production (default = false)

add_delivery_receipt: boolean

Indicates if delivery receipt is added to delivery (default = true)

delivery_receipt_logo_reference: string

Logo printed on delivery receipt (optional)

delivery_receipt_note: string

Custom note printed on delivery receipt

fulfillment_mode_key: integer

Choose a special fulfilment mode for this order.

Request Example
{
  "delivery": {
    "title": "Dr.",
    "company": "Shirtigo GmbH",
    "firstname": "Max",
    "lastname": "Mustermann",
    "street": "Musterstraße 12",
    "postcode": "12345",
    "city": "Köln",
    "country": "DE"
  },
  "sender": {
    "title": "Dr.",
    "company": "Shirtigo GmbH",
    "firstname": "Max",
    "lastname": "Mustermann",
    "street": "Musterstraße 12",
    "postcode": "12345",
    "city": "Köln",
    "country": "DE"
  },
  "products": [
    {
      "productId": 235,
      "colorId": 326,
      "sizeId": 1,
      "amount": 1
    }
  ],
  "packins": [
    {
      "first_packin_reference": "A12345",
      "second_packin_reference": "A12345",
      "hangtag_reference": "A12345",
      "imprint_reference": "A12345",
      "label_reference": "A12345",
      "product_packaging_reference": "A12345",
      "order_packaging_reference": "A12345",
      "sticker_reference": "A12345"
    }
  ],
  "is_onhold": "true",
  "add_delivery_receipt": "true",
  "delivery_receipt_logo_reference": "ABC123",
  "delivery_receipt_note": "Use Voucher XYZ for a 10% discount.",
  "fulfillment_mode_key": "24h-express"
}
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)
{
  "reference": "ABCDXY1",
  "net_price": {
    "amount": 999,
    "currency_symbol": "€",
    "currency_code": "EUR",
    "currency_factor": 100
  },
  "gross_price": {
    "amount": 999,
    "currency_symbol": "€",
    "currency_code": "EUR",
    "currency_factor": 100
  },
  "vat_rate": 19,
  "vat_amount": {
    "amount": 999,
    "currency_symbol": "€",
    "currency_code": "EUR",
    "currency_factor": 100
  },
  "status": "Bestellung offen",
  "status_key": "",
  "invoice_reference": "string",
  "fulfillment": {},
  "delivery": {
    "title": "Dr.",
    "company": "Shirtigo GmbH",
    "firstname": "Max",
    "lastname": "Mustermann",
    "street": "Musterstraße 12",
    "postcode": "12345",
    "city": "Köln",
    "country": "DE"
  },
  "sender": {
    "title": "Dr.",
    "company": "Shirtigo GmbH",
    "firstname": "Max",
    "lastname": "Mustermann",
    "street": "Musterstraße 12",
    "postcode": "12345",
    "city": "Köln",
    "country": "DE"
  },
  "bill": {
    "title": "Dr.",
    "company": "Shirtigo GmbH",
    "firstname": "Max",
    "lastname": "Mustermann",
    "street": "Musterstraße 12",
    "postcode": "12345",
    "city": "Köln",
    "country": "DE"
  },
  "total_items": 5,
  "add_delivery_receipt": true,
  "delivery_receipt_logo_reference": "A456HJ",
  "delivery_receipt_note": "Use voucher XYZ and get a 10% discount for your next order",
  "use_custom_product_name": "true",
  "created_at": "2017-01-01 12:34:56",
  "updated_at": "2017-01-01 12:34:56",
  "products": {
    "data": [
      {
        "id": "integer",
        "amount": 1,
        "name": "Base product XY",
        "color": "Black",
        "size": "XL",
        "images": [
          {
            "id": "1222",
            "color": "Red",
            "area": "front",
            "urls": {
              "small": "http://www.example.com/my-orders/small.png",
              "large": "http://www.example.com/my-orders/large.png"
            }
          }
        ],
        "net_total_price": 1375,
        "net_unit_price": {
          "amount": 999,
          "currency_symbol": "€",
          "currency_code": "EUR",
          "currency_factor": 100
        },
        "campaign_reference": "F7S33M2",
        "campaign_name": "Example Project",
        "campaign_product_id": "123"
      }
    ]
  },
  "packins": {
    "data": [
      {
        "id": "integer",
        "amount": 1
      }
    ]
  }
}

Get order

GET /orders/{order-reference}

Some of the listed resources are available as optional includes (add to the query ?include=firstInclude,secondInclude.subInclude). The available includes for this endpoint are: parent, children, comments, products, warehouseProducts, payments, orderStatusEntries, shipping, packins

order-reference

Alphanumerical order identifier

type
string
in
path
200 OK

Success

404 Not Found

Order not found

Response Example (200 OK)
{
  "reference": "ABCDXY1",
  "net_price": {
    "amount": 999,
    "currency_symbol": "€",
    "currency_code": "EUR",
    "currency_factor": 100
  },
  "gross_price": {
    "amount": 999,
    "currency_symbol": "€",
    "currency_code": "EUR",
    "currency_factor": 100
  },
  "vat_rate": 19,
  "vat_amount": {
    "amount": 999,
    "currency_symbol": "€",
    "currency_code": "EUR",
    "currency_factor": 100
  },
  "status": "Bestellung offen",
  "status_key": "",
  "invoice_reference": "string",
  "fulfillment": {},
  "delivery": {
    "title": "Dr.",
    "company": "Shirtigo GmbH",
    "firstname": "Max",
    "lastname": "Mustermann",
    "street": "Musterstraße 12",
    "postcode": "12345",
    "city": "Köln",
    "country": "DE"
  },
  "sender": {
    "title": "Dr.",
    "company": "Shirtigo GmbH",
    "firstname": "Max",
    "lastname": "Mustermann",
    "street": "Musterstraße 12",
    "postcode": "12345",
    "city": "Köln",
    "country": "DE"
  },
  "bill": {
    "title": "Dr.",
    "company": "Shirtigo GmbH",
    "firstname": "Max",
    "lastname": "Mustermann",
    "street": "Musterstraße 12",
    "postcode": "12345",
    "city": "Köln",
    "country": "DE"
  },
  "total_items": 5,
  "add_delivery_receipt": true,
  "delivery_receipt_logo_reference": "A456HJ",
  "delivery_receipt_note": "Use voucher XYZ and get a 10% discount for your next order",
  "use_custom_product_name": "true",
  "created_at": "2017-01-01 12:34:56",
  "updated_at": "2017-01-01 12:34:56",
  "products": {
    "data": [
      {
        "id": "integer",
        "amount": 1,
        "name": "Base product XY",
        "color": "Black",
        "size": "XL",
        "images": [
          {
            "id": "1222",
            "color": "Red",
            "area": "front",
            "urls": {
              "small": "http://www.example.com/my-orders/small.png",
              "large": "http://www.example.com/my-orders/large.png"
            }
          }
        ],
        "net_total_price": 1375,
        "net_unit_price": {
          "amount": 999,
          "currency_symbol": "€",
          "currency_code": "EUR",
          "currency_factor": 100
        },
        "campaign_reference": "F7S33M2",
        "campaign_name": "Example Project",
        "campaign_product_id": "123"
      }
    ]
  },
  "packins": {
    "data": [
      {
        "id": "integer",
        "amount": 1
      }
    ]
  }
}

Release onhold

PUT /order/{reference}/release-onhold

Orders with Flag Onhold will not be send to production until flag is released. Only Orders having completely rendered Images can be released.

204 No Content

Success, orderProduct customized

Set onhold

PUT /order/{reference}/set-onhold

Orders with Flag Onhold will not be send to production until flag is released. Orders can be set to onhold until they are pushed to production

204 No Content

Success, orderProduct customized

Calculate price

POST /orders/predict-price

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

delivery: OrderAddress

Create order

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

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.

products: object[]

Selected products

packins: object[]

Selected packins (optional)

is_onhold: boolean

Indicates if order is automatically pushed to production (default = false)

add_delivery_receipt: boolean

Indicates if delivery receipt is added to delivery (default = true)

delivery_receipt_logo_reference: string

Logo printed on delivery receipt (optional)

delivery_receipt_note: string

Custom note printed on delivery receipt

fulfillment_mode_key: integer

Choose a special fulfilment mode for this order.

Request Example
{
  "delivery": {
    "title": "Dr.",
    "company": "Shirtigo GmbH",
    "firstname": "Max",
    "lastname": "Mustermann",
    "street": "Musterstraße 12",
    "postcode": "12345",
    "city": "Köln",
    "country": "DE"
  },
  "sender": {
    "title": "Dr.",
    "company": "Shirtigo GmbH",
    "firstname": "Max",
    "lastname": "Mustermann",
    "street": "Musterstraße 12",
    "postcode": "12345",
    "city": "Köln",
    "country": "DE"
  },
  "products": [
    {
      "productId": 235,
      "colorId": 326,
      "sizeId": 1,
      "amount": 1
    }
  ],
  "packins": [
    {
      "first_packin_reference": "A12345",
      "second_packin_reference": "A12345",
      "hangtag_reference": "A12345",
      "imprint_reference": "A12345",
      "label_reference": "A12345",
      "product_packaging_reference": "A12345",
      "order_packaging_reference": "A12345",
      "sticker_reference": "A12345"
    }
  ],
  "is_onhold": "true",
  "add_delivery_receipt": "true",
  "delivery_receipt_logo_reference": "ABC123",
  "delivery_receipt_note": "Use Voucher XYZ for a 10% discount.",
  "fulfillment_mode_key": "24h-express"
}
200 OK

Success, price has been calculated

422 Unprocessable Entity

Validation failed, details in response body

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

Get available fulfillment modes

POST /orders/available-fulfillment-modes

Get a list of all fulfillment modes which can be used for this order. This endpoint can be used to collect the available options in a checkout process.

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.

products: object[]

Selected products

packins: object[]

Selected packins (optional)

is_onhold: boolean

Indicates if order is automatically pushed to production (default = false)

add_delivery_receipt: boolean

Indicates if delivery receipt is added to delivery (default = true)

delivery_receipt_logo_reference: string

Logo printed on delivery receipt (optional)

delivery_receipt_note: string

Custom note printed on delivery receipt

fulfillment_mode_key: integer

Choose a special fulfilment mode for this order.

Request Example
{
  "delivery": {
    "title": "Dr.",
    "company": "Shirtigo GmbH",
    "firstname": "Max",
    "lastname": "Mustermann",
    "street": "Musterstraße 12",
    "postcode": "12345",
    "city": "Köln",
    "country": "DE"
  },
  "sender": {
    "title": "Dr.",
    "company": "Shirtigo GmbH",
    "firstname": "Max",
    "lastname": "Mustermann",
    "street": "Musterstraße 12",
    "postcode": "12345",
    "city": "Köln",
    "country": "DE"
  },
  "products": [
    {
      "productId": 235,
      "colorId": 326,
      "sizeId": 1,
      "amount": 1
    }
  ],
  "packins": [
    {
      "first_packin_reference": "A12345",
      "second_packin_reference": "A12345",
      "hangtag_reference": "A12345",
      "imprint_reference": "A12345",
      "label_reference": "A12345",
      "product_packaging_reference": "A12345",
      "order_packaging_reference": "A12345",
      "sticker_reference": "A12345"
    }
  ],
  "is_onhold": "true",
  "add_delivery_receipt": "true",
  "delivery_receipt_logo_reference": "ABC123",
  "delivery_receipt_note": "Use Voucher XYZ for a 10% discount.",
  "fulfillment_mode_key": "24h-express"
}

Success

422 Unprocessable Entity

Validation failed, details in response body

Response Example (200 OK)
{
  "key": "24h-express",
  "name": "24h Express",
  "description": "The order is produced and handed to the carrier within 24h",
  "is_per_order": "true",
  "price_net": {
    "amount": 999,
    "currency_symbol": "€",
    "currency_code": "EUR",
    "currency_factor": 100
  },
  "fulfillment_days": "1",
  "sort_weight": "22"
}

Retry payment

POST /orders/{order-reference}/repay

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

order-reference

Alphanumerical order identifier

type
string
in
path
204 No Content

Success, order has been paid.

400 Bad Request

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

Cancel order

POST /orders/{order-reference}/cancel

Set the order status to canceled.

order-reference

Alphanumerical order identifier

type
string
in
path
204 No Content

Success, order has been canceled.

404 Not Found

Order not found

Create order comment

POST /orders/{order-reference}/comments

Creates a new comment for a given order. Expects the comment text.

order-reference

Alphanumerical order identifier

type
string
in
path
204 No Content

Success, comment has been created.

404 Not Found

Order not found

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.

sender: OrderAddress

Create Quick-Order

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

packins: object[]

Selected packins (optional)

add_delivery_receipt: boolean

Indicates if delivery receipt is added to delivery (default = true)

delivery_receipt_logo_reference: string

Logo printed on delivery receipt (optional)

delivery_receipt_note: string

Custom note printed on delivery receipt

jobs: object[]

Processing jobs

Request Example
{
  "delivery": {
    "title": "Dr.",
    "company": "Shirtigo GmbH",
    "firstname": "Max",
    "lastname": "Mustermann",
    "street": "Musterstraße 12",
    "postcode": "12345",
    "city": "Köln",
    "country": "DE"
  },
  "sender": {
    "title": "Dr.",
    "company": "Shirtigo GmbH",
    "firstname": "Max",
    "lastname": "Mustermann",
    "street": "Musterstraße 12",
    "postcode": "12345",
    "city": "Köln",
    "country": "DE"
  },
  "packins": [
    {
      "first_packin_reference": "A12345",
      "second_packin_reference": "A12345",
      "hangtag_reference": "A12345",
      "imprint_reference": "A12345",
      "label_reference": "A12345",
      "product_packaging_reference": "A12345",
      "order_packaging_reference": "A12345",
      "sticker_reference": "A12345"
    }
  ],
  "add_delivery_receipt": "true",
  "delivery_receipt_logo_reference": "ABC123",
  "delivery_receipt_note": "Use Voucher XYZ for a 10% discount.",
  "jobs": [
    {
      "processings": [
        {
          "area": "front",
          "position": "center",
          "method": "print",
          "design": {
            "url": "https://myurl/myimage.png"
          },
          "offset_top": 50,
          "offset_center": 0,
          "width": 200
        }
      ],
      "base_products": [
        {
          "id": 235,
          "colors": [
            {
              "id": 326,
              "sizes": [
                {
                  "id": 1,
                  "amount": "integer"
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}
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)
{
  "reference": "ABCDXY1",
  "net_price": {
    "amount": 999,
    "currency_symbol": "€",
    "currency_code": "EUR",
    "currency_factor": 100
  },
  "gross_price": {
    "amount": 999,
    "currency_symbol": "€",
    "currency_code": "EUR",
    "currency_factor": 100
  },
  "vat_rate": 19,
  "vat_amount": {
    "amount": 999,
    "currency_symbol": "€",
    "currency_code": "EUR",
    "currency_factor": 100
  },
  "status": "Bestellung offen",
  "status_key": "",
  "invoice_reference": "string",
  "fulfillment": {},
  "delivery": {
    "title": "Dr.",
    "company": "Shirtigo GmbH",
    "firstname": "Max",
    "lastname": "Mustermann",
    "street": "Musterstraße 12",
    "postcode": "12345",
    "city": "Köln",
    "country": "DE"
  },
  "sender": {
    "title": "Dr.",
    "company": "Shirtigo GmbH",
    "firstname": "Max",
    "lastname": "Mustermann",
    "street": "Musterstraße 12",
    "postcode": "12345",
    "city": "Köln",
    "country": "DE"
  },
  "bill": {
    "title": "Dr.",
    "company": "Shirtigo GmbH",
    "firstname": "Max",
    "lastname": "Mustermann",
    "street": "Musterstraße 12",
    "postcode": "12345",
    "city": "Köln",
    "country": "DE"
  },
  "total_items": 5,
  "add_delivery_receipt": true,
  "delivery_receipt_logo_reference": "A456HJ",
  "delivery_receipt_note": "Use voucher XYZ and get a 10% discount for your next order",
  "use_custom_product_name": "true",
  "created_at": "2017-01-01 12:34:56",
  "updated_at": "2017-01-01 12:34:56",
  "products": {
    "data": [
      {
        "id": "integer",
        "amount": 1,
        "name": "Base product XY",
        "color": "Black",
        "size": "XL",
        "images": [
          {
            "id": "1222",
            "color": "Red",
            "area": "front",
            "urls": {
              "small": "http://www.example.com/my-orders/small.png",
              "large": "http://www.example.com/my-orders/large.png"
            }
          }
        ],
        "net_total_price": 1375,
        "net_unit_price": {
          "amount": 999,
          "currency_symbol": "€",
          "currency_code": "EUR",
          "currency_factor": 100
        },
        "campaign_reference": "F7S33M2",
        "campaign_name": "Example Project",
        "campaign_product_id": "123"
      }
    ]
  },
  "packins": {
    "data": [
      {
        "id": "integer",
        "amount": 1
      }
    ]
  }
}

integration

Endpoints in this section control data about integrations to 3rd party applications for fullfilments. Integrations may only be updated or deleted via API while the initial installation of integrations is performed in the user dashboard

Get UserIntegration

GET /integrations/{integration-id}

Some of the listed resources are available as optional includes (add to the query ?include=firstInclude,secondInclude.subInclude). The available includes for this endpoint are: fulfillmentPolicy, regions, defaultStock

syncs: integer

Includes current product states

Request Example
{
  "syncs": "integer"
}

Success

404 Not Found

integration not found

Response Example (200 OK)

Delete UserIntegration

DELETE /integrations/{integration-id}

Uninstall this integration from your 3rd party store and delete the integration. IMPORTANT: all synchronized products will be deleted as well in the 3rd party store.

design-reference

Unique design identifier

type
string
in
path
204 No Content

Success, integration uninstalled and deleted

404 Not Found

integration not found

Get UserIntegration

GET /integrations/{integration-id}/products

Some of the listed resources are available as optional includes (add to the query ?include=firstInclude,secondInclude.subInclude). The available includes for this endpoint are: colors, base_product, active_integration_syncs, integration_sync_log, integration_products, projectProductColors

syncs: integer

Includes current product states

Request Example
{
  "syncs": "integer"
}

Success

404 Not Found

integration not found

Response Example (200 OK)

Get OrderReference

GET integration/{integrationreference}/{integrationOrderId}/reference

Get shirtigo order reference for given integrationId and integration orderId

204 No Content

Success, orderProduct customized

other

This section contains miscellaneous endpoints.

Calculate production cost

POST /calculation

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

is_colored: boolean

Is this a color print?

printareas: integer[]

Desired print areas

product_id: integer

Desired base product

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

Success

404 Not Found

Product not found

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

Get delivery targets

GET /delivery-countries

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

200 OK

Success

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

Get all fulfillment_modes

GET /fulfillment-modes

Retrieve a list of available fulfillment_modes, which are available to authenticated user.

200 OK

Success

Response Example (200 OK)
{
  "data": [
    {
      "key": "24h-express",
      "name": "24h Express",
      "description": "The order is produced and handed to the carrier within 24h",
      "is_per_order": "true",
      "price_net": {
        "amount": 999,
        "currency_symbol": "€",
        "currency_code": "EUR",
        "currency_factor": 100
      },
      "fulfillment_days": "1",
      "sort_weight": "22"
    }
  ]
}

orderProduct

Customize OrderProduct

PUT /orderproduct/{reference}/customize

Customize an existing OrderProduct for the currently authenticated user.

design_reference

Reference of design

type
string
in
query
processingarea_type_id

Processingarea to be customized. 1 = front, 2 = back

type
integer
in
query
width

Width of design in millimeter

type
integer
in
query
offset_top

Offset to collar in millimeter

type
integer
in
query
offset_center

x-shift to centerline in millimeter

type
integer
in
query
204 No Content

Success, orderProduct customized

warehousing

DELETE /warehousing/shipments/{reference}

Deletes WarehouseInboundShipment

reference

Reference of the InboundShipment to be deleted

type
string
in

Success

404 Not Found

WarehouseInboundShipment not found

Response Example (200 OK)

Schema Definitions

Payment: object

id: string

Unique transaction identifier

status: string

Payment type

status_title: string

Payment description

payment_reference: string

Payment reference

order: Order

Order

net_amount: Money

Net price

gross_amount: Money

Gross price

vat_amount: Money

VAT amount

vat_rate: integer

VAT rate in percent

created_at: string

Timestamp of creation

Example
{
  "id": "d1364568-4b15-4706-89f1-2452efe1261d",
  "status": "invoice",
  "status_title": "Erstattung",
  "payment_reference": "Kreditkarte",
  "order": {
    "reference": "ABCDXY1",
    "net_price": {
      "amount": 999,
      "currency_symbol": "€",
      "currency_code": "EUR",
      "currency_factor": 100
    },
    "gross_price": {
      "amount": 999,
      "currency_symbol": "€",
      "currency_code": "EUR",
      "currency_factor": 100
    },
    "vat_rate": 19,
    "vat_amount": {
      "amount": 999,
      "currency_symbol": "€",
      "currency_code": "EUR",
      "currency_factor": 100
    },
    "status": "Bestellung offen",
    "status_key": "",
    "invoice_reference": "string",
    "fulfillment": {},
    "delivery": {
      "title": "Dr.",
      "company": "Shirtigo GmbH",
      "firstname": "Max",
      "lastname": "Mustermann",
      "street": "Musterstraße 12",
      "postcode": "12345",
      "city": "Köln",
      "country": "DE"
    },
    "sender": {
      "title": "Dr.",
      "company": "Shirtigo GmbH",
      "firstname": "Max",
      "lastname": "Mustermann",
      "street": "Musterstraße 12",
      "postcode": "12345",
      "city": "Köln",
      "country": "DE"
    },
    "bill": {
      "title": "Dr.",
      "company": "Shirtigo GmbH",
      "firstname": "Max",
      "lastname": "Mustermann",
      "street": "Musterstraße 12",
      "postcode": "12345",
      "city": "Köln",
      "country": "DE"
    },
    "total_items": 5,
    "add_delivery_receipt": true,
    "delivery_receipt_logo_reference": "A456HJ",
    "delivery_receipt_note": "Use voucher XYZ and get a 10% discount for your next order",
    "use_custom_product_name": "true",
    "created_at": "2017-01-01 12:34:56",
    "updated_at": "2017-01-01 12:34:56",
    "products": {
      "data": [
        {
          "id": "integer",
          "amount": 1,
          "name": "Base product XY",
          "color": "Black",
          "size": "XL",
          "images": [
            {
              "id": "1222",
              "color": "Red",
              "area": "front",
              "urls": {
                "small": "http://www.example.com/my-orders/small.png",
                "large": "http://www.example.com/my-orders/large.png"
              }
            }
          ],
          "net_total_price": 1375,
          "net_unit_price": {
            "amount": 999,
            "currency_symbol": "€",
            "currency_code": "EUR",
            "currency_factor": 100
          },
          "campaign_reference": "F7S33M2",
          "campaign_name": "Example Project",
          "campaign_product_id": "123"
        }
      ]
    },
    "packins": {}
  }
}

CampaignIntegrationProduct: object

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

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

ProjectPrint: object

area: string

Processing site

position: string

Processing position

method: string

Processing method

height: integer

Design height in millimeters

width: integer

Design width in millimeters

offset_top: integer

Vertical offset from top in millimeters

offset_center: integer

Horizontal offset from center in millimeters

updated_at: string

Timestamp of last update

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

CampaignProductIntegrationSync: object

integration_name: string

Name of the integration application

integration_id: integer

The cockpit internal id of the used user integration

integration_product_id: string

The identifier used by the integration application

is_syncing: boolean

Is the product available?

is_successful: boolean

Has the product been rendered?

in_queue: boolean

Is the current sync-process still in queue?

error: string

Error message

updated_at: string

Timestamp of last update

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

CampaignProduct: object

id: integer

Numerical identifier

project: string

Project reference

project_name: string

Project name

name: string

Product name

custom_name: string

User defined product name

description: string

Short description in HTML format

price: Money

Net price

sort_position: integer

Numerical identifier

colors: ProductColor

List of available colors

is_available: boolean

Is the product available?

is_rendered: boolean

Has the product been rendered?

has_express: boolean

Is the product available for express processing?

images: UtilProductImage

Product images

base_product: Product

Base product

active_integration_syncs: CampaignProductIntegrationSync

List of currently active synchronizations with integrations

integration_sync_log: CampaignProductIntegrationSync

History of synchronizations with integrations for this product

integration_products: CampaignIntegrationProduct

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

updated_at: string

Timestamp of last update

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

UtilProductImage: object

id: integer

id of the image object

color: string

Color name

area: string

Processing area name

urls: object

Product name

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

Project: object

reference: string

Unique identifier of this project

name: string

Project name

type: string

Type

products_count: integer

Number of products

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.

is_queueing: array

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

status: string

Project status

updated_at: string

Timestamp of last update

created_at: string

Timestamp of initial creation

processings: object

Processings associated with this project

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

ProjectWithProducts:

products: Product

Products associated with this Project

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

Coupon: object

coupon_code: string

The identifier on the promo coupon

coupon_type: string

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

discount_type: string

The type of discount, either percentage or euro

discount_percent: integer

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

discount_netto: Money

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

discount_brutto: Money

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

is_active: boolean

Activation status of coupon

min_order_value: Money

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

is_expired: boolean

Flag to indicate if the coupon is expired

expiration_date: string

Timestamp for the validity of the coupon code

n_activations: integer

Number of usages for this 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

rate_limit_exceeded: integer

Flag to indicate if the coupon was used too often in the last hour.

has_orders: integer

Flag to indicate if orders for user exist.

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

Country: object

iso: string

Two-letter identifier according to ISO 3166-1

name: string

Country name

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

Design: object

reference: string

Unique identifier of this design

filename: string

Design file name

name: string

Design Name

width: integer

Width of the design file in pixels

height: integer

Height of the design file in pixels

filetype: string

Extension of the design file name

processingmethod_key: string

Indicates for which processingmethod the design can be used

colors: integer

Total number of colors in the color palette

palette: string[]

List of hex-codes of representative colors

complementary_color: string

Complementary color

preview: string

URL to preview image

original_file: string

URL to full resolution image

is_processed: boolean

Has the design been rendered?

is_dark: boolean

Is this a design with dark colors?

is_editable: boolean

Indicates if design colors can be updated

created_at: string

Timestamp of creation

updated_at: string

Timestamp of last update

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

FulfillmentMode: object

key: string

A unique key to identify a fulfillment mode

name: string

The name of the fulfillment mode

description: string

A description of the fulfillment conditions for this mode

is_per_order: boolean

Flag to indicate if the surcharge for this mode is per order or per item

price_net: Money

The net price, either per order or per item, dependent in the is_per_order_setting

fulfillment_days: string

The number of fulfillment days for this fulfillment mode

sort_weight: string

Country name

Example
{
  "key": "24h-express",
  "name": "24h Express",
  "description": "The order is produced and handed to the carrier within 24h",
  "is_per_order": "true",
  "price_net": {
    "amount": 999,
    "currency_symbol": "€",
    "currency_code": "EUR",
    "currency_factor": 100
  },
  "fulfillment_days": "1",
  "sort_weight": "22"
}

OrderComment: object

id: integer

ID of the order comment

comment: string

Text of the order comment

created_at: string

Timestamp of creation

Example
{
  "id": "integer",
  "comment": "Great communication with customer",
  "created_at": "2017-01-01 12:34:56"
}

OrderPackin: object

id: integer

Packin id

amount: integer

Number of items

name: string

Packin name

type: string

Packin type (hangtag or packin)

net_total_price: Money

Total price (net_unit_price*amount)

net_unit_price: Money

Net unit price

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

OrderPayment: object

id: string

Unique transaction identifier

status: string

Payment status

status_details: string

Payment error description (if there is any)

type: string

Payment type

net_amount: Money

Net price

gross_amount: Money

Gross price

vat_amount: Money

VAT amount

vat_rate: integer

VAT rate in percent

updated_at: string

Timestamp of last update

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

OrderProduct: object

id: integer

Product id

amount: integer

Number of items

name: string

Product name

color: string

Color name

size: string

Size name

images: UtilProductImage

Available image URLs

net_total_price: Money

Total price (net_unit_price*amount)

net_unit_price: Money

Net unit price

campaign_reference: string

Reference of the campaign

campaign_name: string

Name of the campaign

campaign_product_id: int

ID of the campaign product

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

OrderRelation: object

reference: string

Unique identifier of this order

net_price: Money

Total net price of this order

gross_price: Money

Total gross price of this order

vat_rate: integer

VAT rate in percent

vat_amount: Money

VAT amount

status: string

Human readable order status

status_key: string

Number of products

total_items: integer

Total number of items in the order

created_at: string

Timestamp of creation

updated_at: string

Timestamp of last update

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

OrderShipping: object

type: string

Shipping type

cost: Money

Shipping price

is_shipped: boolean

Has the order been shipped yet?

country_code: string

Two letter country code

tracking_code: string

Carrier tracking code

tracking_url: string

Carrier tracking URL

created_at: string

Timestamp of creation

updated_at: string

Timestamp of last update

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

OrderStatusEntry: object

key: string

Order status key

status: string

Human readable status

description: integer

Verbose status description

created_at: string

Timestamp of creation

updated_at: string

Timestamp of last update

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

Order: object

reference: string

Unique identifier of this order

net_price: Money

Total net price of this order

gross_price: Money

Total gross price of this order

vat_rate: integer

VAT rate in percent

vat_amount: Money

VAT amount

status: string

Human readable order status

status_key: string

Number of products

invoice_reference: string

Invoice reference

fulfillment: object

Fulfillment details or false if no details are available

delivery: OrderAddress

Delivery address

sender: OrderAddress

Sender address

bill: OrderAddress

Billing address

total_items: integer

Total number of items in the order

add_delivery_receipt: boolean

Indicates if delivery receipt is added to order

delivery_receipt_logo_reference: string

Media reference for the logo added to delivery_receipt

delivery_receipt_note: string

Custom note on delivery receipt

use_custom_product_name: boolean

Use custom product name on delivery receipt

created_at: string

Timestamp of creation

updated_at: string

Timestamp of last update

products: object

Array of products in this order

packins: object

Array of packins and hangtags in this order

payments: object

Array of payments associated with this order

orderStatusEntries: object

Array of status messages associated with this order

shipping: OrderShipping

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

Example
{
  "reference": "ABCDXY1",
  "net_price": {
    "amount": 999,
    "currency_symbol": "€",
    "currency_code": "EUR",
    "currency_factor": 100
  },
  "gross_price": {
    "amount": 999,
    "currency_symbol": "€",
    "currency_code": "EUR",
    "currency_factor": 100
  },
  "vat_rate": 19,
  "vat_amount": {
    "amount": 999,
    "currency_symbol": "€",
    "currency_code": "EUR",
    "currency_factor": 100
  },
  "status": "Bestellung offen",
  "status_key": "",
  "invoice_reference": "string",
  "fulfillment": {},
  "delivery": {
    "title": "Dr.",
    "company": "Shirtigo GmbH",
    "firstname": "Max",
    "lastname": "Mustermann",
    "street": "Musterstraße 12",
    "postcode": "12345",
    "city": "Köln",
    "country": "DE"
  },
  "sender": {
    "title": "Dr.",
    "company": "Shirtigo GmbH",
    "firstname": "Max",
    "lastname": "Mustermann",
    "street": "Musterstraße 12",
    "postcode": "12345",
    "city": "Köln",
    "country": "DE"
  },
  "bill": {
    "title": "Dr.",
    "company": "Shirtigo GmbH",
    "firstname": "Max",
    "lastname": "Mustermann",
    "street": "Musterstraße 12",
    "postcode": "12345",
    "city": "Köln",
    "country": "DE"
  },
  "total_items": 5,
  "add_delivery_receipt": true,
  "delivery_receipt_logo_reference": "A456HJ",
  "delivery_receipt_note": "Use voucher XYZ and get a 10% discount for your next order",
  "use_custom_product_name": "true",
  "created_at": "2017-01-01 12:34:56",
  "updated_at": "2017-01-01 12:34:56",
  "products": {
    "data": [
      {
        "id": "integer",
        "amount": 1,
        "name": "Base product XY",
        "color": "Black",
        "size": "XL",
        "images": [
          {
            "id": "1222",
            "color": "Red",
            "area": "front",
            "urls": {
              "small": "http://www.example.com/my-orders/small.png",
              "large": "http://www.example.com/my-orders/large.png"
            }
          }
        ],
        "net_total_price": 1375,
        "net_unit_price": {
          "amount": 999,
          "currency_symbol": "€",
          "currency_code": "EUR",
          "currency_factor": 100
        },
        "campaign_reference": "F7S33M2",
        "campaign_name": "Example Project",
        "campaign_product_id": "123"
      }
    ]
  },
  "packins": {
    "data": [
      {
        "id": "integer",
        "amount": 1,
        "name": "Greeting card"
      }
    ]
  }
}

OrderAddress: object

Address

title: string

(Academic) title

company: string

Company name

firstname: string

First name

lastname: string

Last name

street: string

Street and number

postcode: string

ZIP/area code

city: string

City

country: string

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

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

OrderWarehouseProduct: object

reference: string

Product Reference

amount: integer

Number of items

name: string

Product name

sku: string

SKU of ordered warehouseProductVariant

net_total_price: Money

Total price (net_unit_price*amount)

net_unit_price: Money

Net unit price

Example
{
  "reference": "string",
  "amount": 1,
  "name": "Base product XY",
  "sku": "WP-12345",
  "net_total_price": 1375,
  "net_unit_price": {
    "amount": 999,
    "currency_symbol": "€",
    "currency_code": "EUR",
    "currency_factor": 100
  }
}

ProductColor: object

id: integer

Numerical identifier

color: string

Color name

color_hex: string

Hexadecimal RGB color value

is_colored: boolean

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

sizes: object[]

Available sizes

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

ProductDimensions: object

size: string

Product size name

width: integer

Width in mm

height: integer

Height in mm

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

ProductImage: object

sort_position: integer

Numerical index used for sorting

url: string

URL of the image file

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

ProductManufacturer: object

id: integer

Numerical identifier

name: string

Manufacturer name

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

ProductPrice: object

price: Money

Price

type: string

Variant

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

ProductProcessingArea: object

position_id: integer

Numerical identifier

position_name: string

Name of the printarea

width_in_mm: integer

Width of the printarea in millimeters

height_in_mm: integer

Height of the printarea in millimeters

width: integer

Width of the printarea in pixels

height: integer

Height of the printarea in pixels

printable_area_margin_from_top: integer

Distance between top and processable area top

template_width: integer

Default template width

template_height: integer

Default template height

template: string

Template

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

Product: object

id: integer

Numeric identifier of this product

name: string

Product name

original_name: string

Base product name

shipping_category: integer

Shipping category

category_id: integer

Numerical category identifier

category: string

Category name

short_description: string

Short description

description: string

Detailed description

sizechart_image: string

URL of the product size table image

is_active: boolean

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

manufacturer: ProductManufacturer

Manufacturer information

images: object

Product images

colors: object

Color information

processing_areas: object

Available processing areas

price: object

Pricing information

sales_price: object

Pricing information on sales

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

ProvisionalProduct: object

name: string

Product name

description: string

Short description

colors: ProductColor

List of available colors

price: Money

Net price

base_product: Product

Base product

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

UserPackin: object

reference: ABC123

Packin reference

name: string

Packin name

type: string

Packin type (packin or hangtag)

position: string

Position of Label

size_id: integer

Product size ID for which imprint will be applied

color_ids: string

Array of product color ids for which imprint or label will be applied

weight_gram: integer

Weight of one single packin in gram

width_mm: integer

Width of the packin in millimeter

height_mm: integer

Height of the packin in millimeter

initial_inventory: integer

Initial stock level of packin

inventory: integer

Actual stock level of packin

preview_path: string

Path to packin preview

is_active: boolean

Packins receives status is_active, when article is checked and warehoused

stocking_costs: Money

Daily costs for stocking packin

Example
{
  "reference": "ABC123",
  "name": "Greetings card",
  "type": "packin",
  "position": "seam-left",
  "size_id": "3",
  "color_ids": "['147','157']",
  "weight_gram": "10",
  "width_mm": "100",
  "height_mm": "100",
  "initial_inventory": "1000",
  "inventory": "1000",
  "preview_path": "https://s3.amazon.com/preview.png",
  "is_active": "true",
  "stocking_costs": 50
}

UserGroup: object

id: integer

Numerical group identifier

type: string

Group name

cockpit_discount: integer

Discount in percent

quantity: integer

Required number of sold products

created_at: string

Timestamp of creation

updated_at: string

Timestamp of last update

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

Money: object

amount: integer

Price in cents

currency_symbol: string

Currency symbol

currency_code: string

Three letter ISO 4217 code

currency_factor: integer

Number of cents in one unit of currency

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

MoneyVatInclude:

vat_rate: integer

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

Example
{
  "vat_rate": 19
}

MoneyWithVat: object

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

OAuthServerException: object

error: string

Machine readable error type.

message: string

Human readable error message.

hint: string

A helper hint.

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

Pagination: object

Pagination information

total: integer

Total number of items

count: integer

Number of items on current page

per_page: integer

Default number of items per page

current_page: integer

Index of current page

total_pages: integer

Total number of pages

links: object

URLs of adjacent pages

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