Keyline Inbox API documentation version 0.2
https://app.keyline-mis.com/api/v2/inbox
API for placing orders for printed products at Keyline powered printeries.
Usage Guide
Creating a Cart
Similar to an Online-Shopping site, you need a shopping cart in which you can place your products. Therefore, the first call to start the interaction is POST /carts
.
Filling the Cart
After that you can place Products
and their Components
into the cart by making POST
requests to the respective endpoints. Also, you can already upload the print data files, related to each Component
.
Performing Checkout aka Placing the Order
Once the cart is filled with all the Products
and associated with all necessary addresses and information, a checkout can be performed on the cart, by making a POST
request to the cart's resource (/carts/{id}
that is).
The response to a GET
request to a cart's resource will return all the cart's details and also perform a full validation on the cart's state. This means that as long as these responses contain validation errors, placing a POST
request to a cart's resource will fail with a status code 400
.
Querying an Order
Once a cart has been checked out successfully, further GET
requests to this cart's resource will redirect to the order's resource. All other requests to resources related to this cart will return a 404
response.
The Inbox API only allows reading orders, that is only GET
are supported and orders cannot be edited in any way via the Inbox API.
Authentication
Keyline requires API users to authenticate before they can access any information, and leverages a bearer token based authentication scheme to secure access.
All valid requests to the Keyline API must therefore contain the Authorization
header field, which contains a valid API key, prefixed with the string Bearer
, so that the header line looks similar to the following:
Authorization: Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e
You can add or revoke access tokens in the Settings > API section of Keyline.
Status Codes
The Keyline API uses standardised HTTP response codes the inform the caller about the status of any requests.
These are the most common codes you'll get to see:
200 OK
: Everything is okay201 Created
: You just created a new resource204 No Content
: The update or delete operation you just ran was successful400 Bad request
: The request you made is missing required parameters and cannot be executed401 Unauthorized
: You're not allowed to access this resource. Check your access token404 Not found
: You tried to access a resource that doesn't exist422 Unprocessable Entity
: The validation of the resource you wanted to create or change failed. The JSON will contain a detailed error description500 Internal Server Error
: Yikes! This is pretty bad and might be our fault. If you encounter one of these, we are automatically informed, but please contact us with some in-depth infos.
/carts
Create a Shopping Cart
post /carts
Create a Shopping Cart
Keyline requires API users to authenticate before they can access any information.
HTTP status code 201
Designates as successfully created Cart
Body
Media type: application/json
Type: object
Properties- cart: required(object)
- reference: required(string - pattern: ^[0-9A-Z]{6}$)
A 6-character, alphanumeric string, that uniquely identifies the cart.
Example:
N4XTC8
- carrier: (object)
The carrier with which the order will be transported to the delivery address
- id: required(integer)
- name: required(string)
Name of the carrier
- recipient: (object)
The person receiving the order
- first_name: required(string)
- name: required(string)
- email: required(string)
- phone: (string)
- billing_address: (object)
Billing Address for the order
- addressee: required(string)
- town: required(string)
- number: (string)
- country_code: required(string)
ISO Country code of country this address is located in.
- zip_code: required(string)
- street: (string)
- addition: (string)
An optional additional information, usually displayed right below the address.
- delivery_address: (object)
Delivery Address for the order
- addressee: required(string)
- town: required(string)
- number: (string)
- country_code: required(string)
ISO Country code of country this address is located in.
- zip_code: required(string)
- street: (string)
- addition: (string)
An optional additional information, usually displayed right below the address.
- due_at: (datetime)
The datetime when this cart is due
- custom_offer_text: (string)
A custom text that will be part of the offer document
- custom_references: (object)
Contains up to 5 arbitrary key-value entries, for data that doesn't fit into any other field of the cart
- created_at: required(datetime)
The exact time the respective object was created.
- updated_at: required(datetime)
The exact time the respective object was last updated.
- id: required(integer - minimum: 1)
Unique identifier for every object. Is used when referencing resources in URLs.
- reference: required(string - pattern: ^[0-9A-Z]{6}$)
Examples:
full:
{
"cart": {
"id": 9981,
"reference": "BWT2HD",
"updated_at": "2017-08-11T12:07:23.865+02:00",
"created_at": "2017-08-11T12:07:23.865+02:00",
"due_at": "2017-11-09T17:00:00.000+01:00",
"custom_offer_text": "Special Offer",
"custom_references": {
"PO": 7891234,
"Besteller": "Torsten Schmidt",
"Druckerei": "Crispy",
"Kostenstelle": 12345677,
"Interne Bestell Nr": "BestellNr123"
},
"carrier": {
"id": 43,
"name": "Paket DHL"
},
"recipient": {
"first_name": "Bran",
"name": "Stark",
"email": "bran.stark@crispymtn.com",
"phone": null
},
"billing_address": {
"addressee": "Keyline\r\nc/o Crispy Mountain GmbH",
"street": "Emmerich-Josef-Str.",
"number": "1a",
"addition": "Hinterhaus",
"zip_code": "55116",
"town": "Mainz",
"country_code": "DE"
},
"delivery_address": {
"addressee": "Keyline\r\nc/o Crispy Mountain GmbH",
"street": "Emmerich-Josef-Str.",
"number": "1a",
"addition": "Hinterhaus",
"zip_code": "55116",
"town": "Mainz",
"country_code": "DE"
}
}
}
minimal:
{
"cart": {
"id": 9981,
"reference": "BWT2HD",
"updated_at": "2017-08-11T12:07:23.865+02:00",
"created_at": "2017-08-11T12:07:23.865+02:00",
"due_at": null,
"custom_references": null,
"custom_offer_text": null,
"carrier": null,
"recipient": null,
"billing_address": null,
"delivery_address": null
}
}
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
Returns the details to this cart
Update the specification of this cart.
Delete this cart instance.
get /carts/{cart_id}
Returns the details to this cart
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- cart_id: required(integer)
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- cart: required(object)
- reference: required(string - pattern: ^[0-9A-Z]{6}$)
A 6-character, alphanumeric string, that uniquely identifies the cart.
Example:
N4XTC8
- carrier: (object)
The carrier with which the order will be transported to the delivery address
- id: required(integer)
- name: required(string)
Name of the carrier
- recipient: (object)
The person receiving the order
- first_name: required(string)
- name: required(string)
- email: required(string)
- phone: (string)
- billing_address: (object)
Billing Address for the order
- addressee: required(string)
- town: required(string)
- number: (string)
- country_code: required(string)
ISO Country code of country this address is located in.
- zip_code: required(string)
- street: (string)
- addition: (string)
An optional additional information, usually displayed right below the address.
- delivery_address: (object)
Delivery Address for the order
- addressee: required(string)
- town: required(string)
- number: (string)
- country_code: required(string)
ISO Country code of country this address is located in.
- zip_code: required(string)
- street: (string)
- addition: (string)
An optional additional information, usually displayed right below the address.
- due_at: (datetime)
The datetime when this cart is due
- custom_offer_text: (string)
A custom text that will be part of the offer document
- custom_references: (object)
Contains up to 5 arbitrary key-value entries, for data that doesn't fit into any other field of the cart
- created_at: required(datetime)
The exact time the respective object was created.
- updated_at: required(datetime)
The exact time the respective object was last updated.
- id: required(integer - minimum: 1)
Unique identifier for every object. Is used when referencing resources in URLs.
- reference: required(string - pattern: ^[0-9A-Z]{6}$)
Examples:
full:
{
"cart": {
"id": 9981,
"reference": "BWT2HD",
"updated_at": "2017-08-11T12:07:23.865+02:00",
"created_at": "2017-08-11T12:07:23.865+02:00",
"due_at": "2017-11-09T17:00:00.000+01:00",
"custom_offer_text": "Special Offer",
"custom_references": {
"PO": 7891234,
"Besteller": "Torsten Schmidt",
"Druckerei": "Crispy",
"Kostenstelle": 12345677,
"Interne Bestell Nr": "BestellNr123"
},
"carrier": {
"id": 43,
"name": "Paket DHL"
},
"recipient": {
"first_name": "Bran",
"name": "Stark",
"email": "bran.stark@crispymtn.com",
"phone": null
},
"billing_address": {
"addressee": "Keyline\r\nc/o Crispy Mountain GmbH",
"street": "Emmerich-Josef-Str.",
"number": "1a",
"addition": "Hinterhaus",
"zip_code": "55116",
"town": "Mainz",
"country_code": "DE"
},
"delivery_address": {
"addressee": "Keyline\r\nc/o Crispy Mountain GmbH",
"street": "Emmerich-Josef-Str.",
"number": "1a",
"addition": "Hinterhaus",
"zip_code": "55116",
"town": "Mainz",
"country_code": "DE"
}
}
}
minimal:
{
"cart": {
"id": 9981,
"reference": "BWT2HD",
"updated_at": "2017-08-11T12:07:23.865+02:00",
"created_at": "2017-08-11T12:07:23.865+02:00",
"due_at": null,
"custom_references": null,
"custom_offer_text": null,
"carrier": null,
"recipient": null,
"billing_address": null,
"delivery_address": null
}
}
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
patch /carts/{cart_id}
Update the specification of this cart.
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- cart_id: required(integer)
Body
Media type: application/json
Type: object
Properties- cart: required(object)
- custom_offer_text: required(string - maxLength: 200)
- due_at: (datetime)
- custom_references: (object)
Example:
{
"cart": {
"due_at": "2017-11-09T17:00:00.000+01:00",
"custom_offer_text": "Special Offer",
"custom_references": {
"PO": 7891234,
"Besteller": "Torsten Schmidt",
"Kostenstelle": 12345677,
"Interne Bestell Nr": "BestellNr123",
"Druckerei": "Crispy"
}
}
}
HTTP status code 204
If the update operation was successful
HTTP status code 422
If the update operation failed due to validation errors
Body
Media type: application/json
Type: object
Properties- errors: required(object)
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
delete /carts/{cart_id}
Delete this cart instance.
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- cart_id: required(integer)
HTTP status code 204
Is returned if the operation to remove all data associated with this cart_id
was successful
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
Returns all possible validation errors, determining if this cart can be checked out, in the sense that a POST
request to checkout
will succeed.
Perform a checkout on the cart, actually placing the order
get /carts/{cart_id}/checkout
Returns all possible validation errors, determining if this cart can be checked out, in the sense that a POST
request to checkout
will succeed.
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- cart_id: required(integer)
HTTP status code 200
This is returned in case a POST
request to this endpoint will succeed.
Body
Media type: application/json
Type: object
Properties- errors: required(array - maxItems: 0)
Example:
{
"errors": []
}
HTTP status code 422
This is returned in case a POST
request to this endpoint cannot be successfully performed on the current cart. The response lists all errors, that need to be fixed, before a POST
request will succeed.
Body
Media type: application/json
Type: any
Example:
{
"errors": [
{
"products": "muss ausgefüllt werden"
},
{
"delivery_address": "muss ausgefüllt werden"
},
{
"billing_address": "muss ausgefüllt werden"
},
{
"carrier": "muss ausgefüllt werden"
},
{
"recipient": "muss ausgefüllt werden"
},
{
"address": "muss ausgefüllt werden"
}
]
}
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
post /carts/{cart_id}/checkout
Perform a checkout on the cart, actually placing the order
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- cart_id: required(integer)
HTTP status code 301
This redirect is returned if the checkout succeeded.
Headers
- Location: required(string)
Contains the URL of the successfully checked out
order
HTTP status code 422
This is returned in case any validation errors occur during performing the checkout.
Body
Media type: application/json
Type: object
Properties- errors: required(array of )
Example:
{
"errors": [
{
"products": "muss ausgefüllt werden"
},
{
"delivery_address": "muss ausgefüllt werden"
},
{
"billing_address": "muss ausgefüllt werden"
},
{
"carrier": "muss ausgefüllt werden"
},
{
"recipient": "muss ausgefüllt werden"
},
{
"address": "muss ausgefüllt werden"
}
]
}
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
Returns the details for the current cart's customer.
Sets the customer for the current cart.
Delete the customer information for the current cart.
get /carts/{cart_id}/customer
Returns the details for the current cart's customer.
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- cart_id: required(integer)
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- recipient: required(object)
Identifies the customer of the cart (or order), which is usually the organization that buys the order.
- id: required(integer)
- name: required(string)
- tax_identifier: (string)
- reference: required(string - pattern: ^[0-9A-Z]{6}$)
A 6-character, alphanumeric string, that uniquely identifies the cart.
Example:
N4XTC8
Example:
{
"customer": {
"id": 206,
"name": "Crispy GmbH & Co. KG",
"tax_identifier": null,
"reference": "NEE6UC"
}
}
HTTP status code 404
This is returned if there's currently no customer information stored with the current cart.
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
post /carts/{cart_id}/customer
Sets the customer for the current cart.
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- cart_id: required(integer)
Body
Media type: application/json
Type: object
Properties- recipient: required(object)
Identifies the customer of the cart (or order), which is usually the organization that buys the order.
- id: required(integer)
- name: required(string)
- tax_identifier: (string)
- reference: required(string - pattern: ^[0-9A-Z]{6}$)
A 6-character, alphanumeric string, that uniquely identifies the cart.
Example:
N4XTC8
Example:
{
"customer": {
"id": 206
}
}
HTTP status code 201
This is returned if the customer information was successfully created for the current cart.
Body
Media type: application/json
Type: object
Properties- recipient: required(object)
Identifies the customer of the cart (or order), which is usually the organization that buys the order.
- id: required(integer)
- name: required(string)
- tax_identifier: (string)
- reference: required(string - pattern: ^[0-9A-Z]{6}$)
A 6-character, alphanumeric string, that uniquely identifies the cart.
Example:
N4XTC8
Example:
{
"customer": {
"id": 206,
"name": "Crispy GmbH & Co. KG",
"tax_identifier": null,
"reference": "NEE6UC"
}
}
HTTP status code 422
This is returned if the recipient information cannot be created with the given data.
Body
Media type: application/json
Type: object
Properties- errors: required(object)
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
delete /carts/{cart_id}/customer
Delete the customer information for the current cart.
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- cart_id: required(integer)
HTTP status code 204
This is returned if the current cart's customer was successfully deleted.
HTTP status code 404
This is returned if there's currently no customer information stored with the current cart.
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
Returns the details for the current cart's recipient, which is the person receiving the order's delivery, which again is separate from the address to which the printed product of the order will be delivered (see delivery_address
endpoints for that). Beware that a recipient
can only be set AFTER a customer has been set.
Sets the recipient for the current cart.
Delete the recipient information for the current cart.
get /carts/{cart_id}/recipient
Returns the details for the current cart's recipient, which is the person receiving the order's delivery, which again is separate from the address to which the printed product of the order will be delivered (see delivery_address
endpoints for that). Beware that a recipient
can only be set AFTER a customer has been set.
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- cart_id: required(integer)
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- recipient: required(object)
Identifies the recipient of the cart (or order), which is usually person that buys the order.
- first_name: required(string)
- name: required(string)
- email: required(string)
- phone: (string)
Example:
{
"recipient": {
"first_name": "Bran",
"name": "Stark",
"email": "bran.stark@crispymtn.com",
"phone": null
}
}
HTTP status code 404
This is returned if there's currently no recipient information stored with the current cart.
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
post /carts/{cart_id}/recipient
Sets the recipient for the current cart.
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- cart_id: required(integer)
Body
Media type: application/json
Type: object
Properties- recipient: required(object)
Identifies the recipient of the cart (or order), which is usually person that buys the order.
- first_name: required(string)
- name: required(string)
- email: required(string)
- phone: (string)
Example:
{
"recipient": {
"first_name": "Bran",
"name": "Stark",
"email": "bran.stark@crispymtn.com",
"phone": "+4961316171000"
}
}
HTTP status code 201
This is returned if the recipient information was successfully created for the current cart.
Body
Media type: application/json
Type: object
Properties- recipient: required(object)
Identifies the recipient of the cart (or order), which is usually person that buys the order.
- first_name: required(string)
- name: required(string)
- email: required(string)
- phone: (string)
Example:
{
"recipient": {
"first_name": "Bran",
"name": "Stark",
"email": "bran.stark@crispymtn.com",
"phone": null
}
}
HTTP status code 422
This is returned if the recipient information cannot be created with the given data.
Body
Media type: application/json
Type: object
Properties- errors: required(object)
Example:
{
"errors": {
"name": [
"muss ausgefüllt werden"
],
"email": [
"ist nicht gültig"
],
"phone": [
"hat ein ungültiges Format (Beispiel: +4961316171000)"
]
}
}
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
delete /carts/{cart_id}/recipient
Delete the recipient information for the current cart.
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- cart_id: required(integer)
HTTP status code 204
This is returned if the current cart's recipient was successfully deleted.
HTTP status code 404
This is returned if there's currently no recipient information stored with the current cart.
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
Returns the details for the current cart's carrier definition. A carrier basically defines which shipping carrier will transport the printed products of the current cart to it's delivery address. In most cases this will be some carrier such as 'DHL' or 'UPS', but it's essentially totally up to the printeries discretion which carriers it uses and defines.
Set the current cart's carrier definition
Delete the current cart's carrier definition
get /carts/{cart_id}/carrier
Returns the details for the current cart's carrier definition. A carrier basically defines which shipping carrier will transport the printed products of the current cart to it's delivery address. In most cases this will be some carrier such as 'DHL' or 'UPS', but it's essentially totally up to the printeries discretion which carriers it uses and defines.
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- cart_id: required(integer)
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- carrier: required(object)
The carrier which will transport the order to it's delivery address.
- id: required(integer)
- name: required(string)
Name of the carrier
Example:
{
"carrier": {
"id": 43,
"name": "Paket DHL"
}
}
HTTP status code 404
This is returned if there's currently no carrier definition stored with the current cart.
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
post /carts/{cart_id}/carrier
Set the current cart's carrier definition
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- cart_id: required(integer)
Body
Media type: application/json
Type: object
Properties- carrier: required(object)
- id: required(integer)
The
id
of the carrier, which identifies a carrier in the Keyline instance of the printery. This is a value which must be defined out-of-band between the API client and the printery, as there are no means with which carriers can be searched or requested via the API.
- id: required(integer)
Example:
{
"carrier": {
"id": 43
}
}
HTTP status code 201
This is returned if the carrier definition was successfully created for the current cart.
Body
Media type: application/json
Type: object
Properties- carrier: required(object)
The carrier which will transport the order to it's delivery address.
- id: required(integer)
- name: required(string)
Name of the carrier
Example:
{
"carrier": {
"id": 43,
"name": "Paket DHL"
}
}
HTTP status code 422
This is returned if the carrier definition cannot be created with the given data.
Body
Media type: application/json
Type: object
Properties- errors: required(object)
Example:
{
"errors": {
"carrier": [
"No carrier found with given id"
]
}
}
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
delete /carts/{cart_id}/carrier
Delete the current cart's carrier definition
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- cart_id: required(integer)
HTTP status code 204
This is returned if the current cart's carrier definition was successfully deleted.
HTTP status code 404
This is returned if there's currently no carrier definition stored with the current cart.
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
Fetch all products, currently added to this cart.
Add a printed product to this cart. Note that the Inbox API only allows to add instances of predefined products (a ProductTemplate
in Keyline terminology) to a cart. Those products however can be further customized within certain boundaries.
get /carts/{cart_id}/products
Fetch all products, currently added to this cart.
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- cart_id: required(integer)
HTTP status code 200
Body
Media type: application/json
Type: array of object
Items: Product
- product: required(object)
- name: required(string - minLength: 1 - maxLength: 200)
- circulation_sum: required(integer - minimum: 1)
- reference: required(string - pattern: ^[0-9A-Z]{6}$)
A 6-character, alphanumeric string, that uniquely identifies an object.
Example:
N4XTC8
- custom_references: (object)
Contains up to 5 arbitrary key-value entries, for data that doesn't fit into any other category of the product
- components: required(array of inbox.Component)
Items: Component
- component: required(object)
- name: required(string - minLength: 1 - maxLength: 200)
- number_of_pages: required(integer - minimum: 1)
- closed_dimensions: required(array of integer - minItems: 2 - maxItems: 2)
- front_colors: required(array of string)
Lists the colors of the front of the component
- back_colors: required(array of string)
Lists the colors of the back of the component
- paper_name: (string - maxLength: 200)
- grain: (one of short, long)
- grammage: (integer - minimum: 1)
- created_at: required(datetime)
The exact time the respective object was created.
- updated_at: required(datetime)
The exact time the respective object was last updated.
- id: required(integer - minimum: 1)
Unique identifier for every object. Is used when referencing resources in URLs.
Example:
{ "component": { "id": 21692, "name": "Etikett", "number_of_pages": 2, "closed_dimensions": [ 140, 140 ], "paper_name": "Arctic White", "grain": "short", "grammage": 200, "front_colors": [ "CMYK/Cyan", "CMYK/Magenta", "CMYK/Yellow", "CMYK/Black" ], "back_colors": [], "front_colors": ["CMYK/Black", "Pantone/83", "custom/superdark"], "updated_at": "2017-08-11T12:27:11.038+02:00", "created_at": "2017-08-11T12:24:12.950+02:00" } }
- component: required(object)
- variants: required(array of inbox.Variant)
Items: Variant
- variant: required(object)
- name: required(string - minLength: 1 - maxLength: 200)
- circulation: required(integer - minimum: 1)
- id: required(integer - minimum: 1)
Unique identifier for every object. Is used when referencing resources in URLs.
Example:
{ "variant": { "id": 38426, "name": "Deutsch", "circulation": 100 } }
- variant: required(object)
- net_total: required(object)
A
Money
object represents a single monetary value, that is it always constitutes the amount of money together with it's currency.- cent_amount: required(integer)
Money amount in cents, that is the monetary unit that equals 1/100 of the basic monetary unit of the currency
- currency: required(string)
ISO 4217 code for the currency of the money value
- cent_amount: required(integer)
- created_at: required(datetime)
The exact time the respective object was created.
- updated_at: required(datetime)
The exact time the respective object was last updated.
- id: required(integer - minimum: 1)
Unique identifier for every object. Is used when referencing resources in URLs.
Example:
[
{
"product": {
"id": 17628,
"reference": "BX2WAV",
"name": "Aufkleber",
"updated_at": "2017-09-08T14:24:12.677+02:00",
"created_at": "2017-09-08T14:23:47.195+02:00",
"circulation_sum": 5100,
"net_total": {
"cent_amount": 19562,
"currency": "EUR"
},
"custom_references": {
"PO": 7891234
},
"components": [
{
"component": {
"id": 24178,
"name": "Aufkleber / Etikett",
"number_of_pages": 2,
"closed_dimensions": [
140,
140
],
"updated_at": "2017-09-08T14:23:47.204+02:00",
"created_at": "2017-09-08T14:23:47.204+02:00",
"paper_name": null,
"grain": null,
"grammage": null
}
}
],
"variants": [
{
"variant": {
"id": 38426,
"name": "Deutsch",
"circulation": 100
}
},
{
"variant": {
"id": 38429,
"name": "Englisch",
"circulation": 5000
}
}
]
}
},
{
"product": {
"id": 17629,
"reference": "GQFBCS",
"name": "Best Stickers ever",
"updated_at": "2017-09-08T17:40:36.125+02:00",
"created_at": "2017-09-08T17:40:36.125+02:00",
"circulation_sum": 1000,
"net_total": {
"cent_amount": 19562,
"currency": "EUR"
},
"custom_references": null,
"components": [
{
"component": {
"id": 24179,
"name": "Aufkleber / Etikett",
"number_of_pages": 2,
"closed_dimensions": [
140,
140
],
"updated_at": "2017-09-08T17:40:36.135+02:00",
"created_at": "2017-09-08T17:40:36.135+02:00",
"paper_name": null,
"grain": null,
"grammage": null
}
}
],
"variants": [
{
"variant": {
"id": 38433,
"name": "Standard",
"circulation": 1000
}
}
]
}
}
]
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
post /carts/{cart_id}/products
Add a printed product to this cart. Note that the Inbox API only allows to add instances of predefined products (a ProductTemplate
in Keyline terminology) to a cart. Those products however can be further customized within certain boundaries.
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- cart_id: required(integer)
Body
Media type: application/json
Type: object
Properties- product: required(object)
- product_template_id: (integer)
The id of the product template that you want to add to the current cart. Either the order number or the product template's id needs to be specified.
- order_number: (string)
The order number of the product template that you want to add to the current cart. Either the order number or the product template's id needs to be specified.
- name: (string - maxLength: 200)
- net_total: (integer - minimum: 1)
Specify the net total price for this product in the smallest currency unit of the printery. If the product has any service costs attached they will still be added to this price. Setting the price of the product in this way, will override any previous margin settings and lock the price of the product and the product's margin will be calculated accordingly.
- circulation: (integer - minimum: 1)
- custom_references: (object)
- product_template_id: (integer)
Example:
{
"product": {
"order_number": "KEY-XY-123",
"name": "Sticker",
"net_total": 4321,
"custom_references": {
"PO": 7891234
}
}
}
HTTP status code 201
Body
Media type: application/json
Type: object
Properties- product: required(object)
- name: required(string - minLength: 1 - maxLength: 200)
- circulation_sum: required(integer - minimum: 1)
- reference: required(string - pattern: ^[0-9A-Z]{6}$)
A 6-character, alphanumeric string, that uniquely identifies an object.
Example:
N4XTC8
- custom_references: (object)
Contains up to 5 arbitrary key-value entries, for data that doesn't fit into any other category of the product
- components: required(array of inbox.Component)
Items: Component
- component: required(object)
- name: required(string - minLength: 1 - maxLength: 200)
- number_of_pages: required(integer - minimum: 1)
- closed_dimensions: required(array of integer - minItems: 2 - maxItems: 2)
- front_colors: required(array of string)
Lists the colors of the front of the component
- back_colors: required(array of string)
Lists the colors of the back of the component
- paper_name: (string - maxLength: 200)
- grain: (one of short, long)
- grammage: (integer - minimum: 1)
- created_at: required(datetime)
The exact time the respective object was created.
- updated_at: required(datetime)
The exact time the respective object was last updated.
- id: required(integer - minimum: 1)
Unique identifier for every object. Is used when referencing resources in URLs.
Example:
{ "component": { "id": 21692, "name": "Etikett", "number_of_pages": 2, "closed_dimensions": [ 140, 140 ], "paper_name": "Arctic White", "grain": "short", "grammage": 200, "front_colors": [ "CMYK/Cyan", "CMYK/Magenta", "CMYK/Yellow", "CMYK/Black" ], "back_colors": [], "front_colors": ["CMYK/Black", "Pantone/83", "custom/superdark"], "updated_at": "2017-08-11T12:27:11.038+02:00", "created_at": "2017-08-11T12:24:12.950+02:00" } }
- component: required(object)
- variants: required(array of inbox.Variant)
Items: Variant
- variant: required(object)
- name: required(string - minLength: 1 - maxLength: 200)
- circulation: required(integer - minimum: 1)
- id: required(integer - minimum: 1)
Unique identifier for every object. Is used when referencing resources in URLs.
Example:
{ "variant": { "id": 38426, "name": "Deutsch", "circulation": 100 } }
- variant: required(object)
- net_total: required(object)
A
Money
object represents a single monetary value, that is it always constitutes the amount of money together with it's currency.- cent_amount: required(integer)
Money amount in cents, that is the monetary unit that equals 1/100 of the basic monetary unit of the currency
- currency: required(string)
ISO 4217 code for the currency of the money value
- cent_amount: required(integer)
- created_at: required(datetime)
The exact time the respective object was created.
- updated_at: required(datetime)
The exact time the respective object was last updated.
- id: required(integer - minimum: 1)
Unique identifier for every object. Is used when referencing resources in URLs.
Example:
{
"product": {
"id": 17628,
"reference": "BX2WAV",
"name": "Aufkleber",
"updated_at": "2017-09-08T14:24:12.677+02:00",
"created_at": "2017-09-08T14:23:47.195+02:00",
"circulation_sum": 5100,
"net_total": {
"cent_amount": 19562,
"currency": "EUR"
},
"custom_references": {
"PO": 7891234
},
"components": [
{
"component": {
"id": 24178,
"name": "Aufkleber / Etikett",
"number_of_pages": 2,
"closed_dimensions": [
140,
140
],
"updated_at": "2017-09-08T14:23:47.204+02:00",
"created_at": "2017-09-08T14:23:47.204+02:00",
"paper_name": null,
"grain": null,
"grammage": null
}
}
],
"variants": [
{
"variant": {
"id": 38426,
"name": "Deutsch",
"circulation": 100
}
},
{
"variant": {
"id": 38429,
"name": "Englisch",
"circulation": 5000
}
}
]
}
}
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
Fetch details of a single product, that's been added to this cart.
Update the specification of this specific product in the cart.
Remove this one product from the cart.
get /carts/{cart_id}/products/{product_id}
Fetch details of a single product, that's been added to this cart.
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- cart_id: required(integer)
- product_id: required(integer)
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- product: required(object)
- name: required(string - minLength: 1 - maxLength: 200)
- circulation_sum: required(integer - minimum: 1)
- reference: required(string - pattern: ^[0-9A-Z]{6}$)
A 6-character, alphanumeric string, that uniquely identifies an object.
Example:
N4XTC8
- custom_references: (object)
Contains up to 5 arbitrary key-value entries, for data that doesn't fit into any other category of the product
- components: required(array of inbox.Component)
Items: Component
- component: required(object)
- name: required(string - minLength: 1 - maxLength: 200)
- number_of_pages: required(integer - minimum: 1)
- closed_dimensions: required(array of integer - minItems: 2 - maxItems: 2)
- front_colors: required(array of string)
Lists the colors of the front of the component
- back_colors: required(array of string)
Lists the colors of the back of the component
- paper_name: (string - maxLength: 200)
- grain: (one of short, long)
- grammage: (integer - minimum: 1)
- created_at: required(datetime)
The exact time the respective object was created.
- updated_at: required(datetime)
The exact time the respective object was last updated.
- id: required(integer - minimum: 1)
Unique identifier for every object. Is used when referencing resources in URLs.
Example:
{ "component": { "id": 21692, "name": "Etikett", "number_of_pages": 2, "closed_dimensions": [ 140, 140 ], "paper_name": "Arctic White", "grain": "short", "grammage": 200, "front_colors": [ "CMYK/Cyan", "CMYK/Magenta", "CMYK/Yellow", "CMYK/Black" ], "back_colors": [], "front_colors": ["CMYK/Black", "Pantone/83", "custom/superdark"], "updated_at": "2017-08-11T12:27:11.038+02:00", "created_at": "2017-08-11T12:24:12.950+02:00" } }
- component: required(object)
- variants: required(array of inbox.Variant)
Items: Variant
- variant: required(object)
- name: required(string - minLength: 1 - maxLength: 200)
- circulation: required(integer - minimum: 1)
- id: required(integer - minimum: 1)
Unique identifier for every object. Is used when referencing resources in URLs.
Example:
{ "variant": { "id": 38426, "name": "Deutsch", "circulation": 100 } }
- variant: required(object)
- net_total: required(object)
A
Money
object represents a single monetary value, that is it always constitutes the amount of money together with it's currency.- cent_amount: required(integer)
Money amount in cents, that is the monetary unit that equals 1/100 of the basic monetary unit of the currency
- currency: required(string)
ISO 4217 code for the currency of the money value
- cent_amount: required(integer)
- created_at: required(datetime)
The exact time the respective object was created.
- updated_at: required(datetime)
The exact time the respective object was last updated.
- id: required(integer - minimum: 1)
Unique identifier for every object. Is used when referencing resources in URLs.
Example:
{
"product": {
"id": 17628,
"reference": "BX2WAV",
"name": "Aufkleber",
"updated_at": "2017-09-08T14:24:12.677+02:00",
"created_at": "2017-09-08T14:23:47.195+02:00",
"circulation_sum": 5100,
"net_total": {
"cent_amount": 19562,
"currency": "EUR"
},
"custom_references": {
"PO": 7891234
},
"components": [
{
"component": {
"id": 24178,
"name": "Aufkleber / Etikett",
"number_of_pages": 2,
"closed_dimensions": [
140,
140
],
"updated_at": "2017-09-08T14:23:47.204+02:00",
"created_at": "2017-09-08T14:23:47.204+02:00",
"paper_name": null,
"grain": null,
"grammage": null
}
}
],
"variants": [
{
"variant": {
"id": 38426,
"name": "Deutsch",
"circulation": 100
}
},
{
"variant": {
"id": 38429,
"name": "Englisch",
"circulation": 5000
}
}
]
}
}
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
patch /carts/{cart_id}/products/{product_id}
Update the specification of this specific product in the cart.
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- cart_id: required(integer)
- product_id: required(integer)
Body
Media type: application/json
Type: object
Properties- product: required(object)
- name: (string - maxLength: 200)
- net_total: (integer - minimum: 1)
Specify the net total price for this product in the smallest currency unit of the printery.
If the product has any service costs attached they will still be added to this price. Setting the price of the product in this way, will override any previous margin settings and lock the price of the product and the product's margin will be calculated accordingly. - circulation: (integer - minimum: 1)
- custom_references: (object)
Contains up to 5 arbitrary key-value entries, for data that doesn't fit into any other category of the order
Example:
{
"product": {
"name": "Sticker",
"circulation": 400,
"net_total": 4321,
"custom_references": {
"PO": 7891234
}
}
}
HTTP status code 204
If the update operation was successful
HTTP status code 422
If the update operation failed due to validation errors
Body
Media type: application/json
Type: object
Properties- errors: required(object)
Example:
{
"errors": {
"name": [
"ist zu kurz (weniger als 1 Zeichen)"
]
}
}
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
delete /carts/{cart_id}/products/{product_id}
Remove this one product from the cart.
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- cart_id: required(integer)
- product_id: required(integer)
HTTP status code 204
If the delete operation was successful
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
Get details about all variants for the given product.
Create a new variant for the given product.
get /carts/{cart_id}/products/{product_id}/variants
Get details about all variants for the given product.
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- cart_id: required(integer)
- product_id: required(integer)
HTTP status code 200
Body
Media type: application/json
Type: array of object
Items: Variant
- variant: required(object)
- name: required(string - minLength: 1 - maxLength: 200)
- circulation: required(integer - minimum: 1)
- id: required(integer - minimum: 1)
Unique identifier for every object. Is used when referencing resources in URLs.
Example:
[
{
"variant": {
"id": 38426,
"name": "Deutsch",
"circulation": 100
}
},
{
"variant": {
"id": 38429,
"name": "Englisch",
"circulation": 5000
}
}
]
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
post /carts/{cart_id}/products/{product_id}/variants
Create a new variant for the given product.
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- cart_id: required(integer)
- product_id: required(integer)
Body
Media type: application/json
Type: object
Properties- variant: required(object)
- name: (string - maxLength: 200)
Name of the variant, must be unique within the product
- circulation: (integer - default: 1000 - minimum: 1)
- name: (string - maxLength: 200)
Example:
{
"variant": {
"name": "Englisch",
"circulation": 5000
}
}
HTTP status code 201
This is returned if creating the variant succeeded.
Body
Media type: application/json
Type: object
Properties- variant: required(object)
- name: required(string - minLength: 1 - maxLength: 200)
- circulation: required(integer - minimum: 1)
- id: required(integer - minimum: 1)
Unique identifier for every object. Is used when referencing resources in URLs.
Example:
{
"variant": {
"id": 38426,
"name": "Deutsch",
"circulation": 100
}
}
HTTP status code 422
This is returned if the variant could not be created due to validation errors.
Body
Media type: application/json
Type: object
Properties- errors: required(object)
Example:
{
"errors": {
"name": [
"ist bereits vergeben"
]
}
}
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
Get details about a single variant for the given product.
Update a variant for the given product.
Delete a variant for the given product.
get /carts/{cart_id}/products/{product_id}/variants/{variant_id}
Get details about a single variant for the given product.
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- cart_id: required(integer)
- product_id: required(integer)
- variant_id: required(integer)
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- variant: required(object)
- name: required(string - minLength: 1 - maxLength: 200)
- circulation: required(integer - minimum: 1)
- id: required(integer - minimum: 1)
Unique identifier for every object. Is used when referencing resources in URLs.
Example:
{
"variant": {
"id": 38426,
"name": "Deutsch",
"circulation": 100
}
}
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
patch /carts/{cart_id}/products/{product_id}/variants/{variant_id}
Update a variant for the given product.
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- cart_id: required(integer)
- product_id: required(integer)
- variant_id: required(integer)
Body
Media type: application/json
Type: object
Properties- variant: required(object)
- name: (string - maxLength: 200)
Name of the variant, must be unique within the product
- circulation: (integer - default: 1000 - minimum: 1)
- name: (string - maxLength: 200)
Example:
{
"variant": {
"name": "Englisch",
"circulation": 5000
}
}
HTTP status code 204
This is returned if the update operation was successful
HTTP status code 422
This is returned if the update operation did not succeed
Body
Media type: application/json
Type: object
Properties- errors: required(object)
Example:
{
"errors": {
"name": [
"ist bereits vergeben"
]
}
}
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
delete /carts/{cart_id}/products/{product_id}/variants/{variant_id}
Delete a variant for the given product.
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- cart_id: required(integer)
- product_id: required(integer)
- variant_id: required(integer)
HTTP status code 204
This is returned if deleting the variant succeeded.
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
Fetch information for all print data files for the given product
Create a new print data file for the given product
get /carts/{cart_id}/products/{product_id}/print_data_files
Fetch information for all print data files for the given product
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- cart_id: required(integer)
- product_id: required(integer)
HTTP status code 200
Body
Media type: application/json
Type: array of object
Items: PrintDataFile
- print_data_file: required(object)
- component_id: (integer)
The
component_id
may be null, if the print data file is associated with a product instead of a component - product_id: required(integer)
- uri: required(string)
The full URI of this print data file, including the protocol
- filesize: required(integer)
The size of this print data file in bytes
- last_page: (integer)
The last page inside the print data file's PDF
- first_page: (integer)
The first page inside the print data file's PDF
- kind: required(one of original, processed, imposed)
- state: required(one of newly_uploaded, processing, processed)
- created_at: required(datetime)
The exact time the respective object was created.
- updated_at: required(datetime)
The exact time the respective object was last updated.
- id: required(integer - minimum: 1)
Unique identifier for every object. Is used when referencing resources in URLs.
- component_id: (integer)
Example:
[
{
"print_data_file": {
"id": 871,
"product_id": 17626,
"component_id": null,
"kind": "original",
"state": "newly_uploaded",
"uri": "https://example.com/keyline_print_data_file",
"filesize": 12345,
"first_page": 3,
"last_page": 10,
"created_at": "2017-09-07T10:35:23.079+02:00",
"updated_at": "2017-09-07T10:35:23.079+02:00"
}
}
]
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
post /carts/{cart_id}/products/{product_id}/print_data_files
Create a new print data file for the given product
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- cart_id: required(integer)
- product_id: required(integer)
Body
Media type: application/json
Type: object
Properties- print_data_file: required(object)
- uri: required(string)
The full URI of this print data file, including the protocol
- kind: required(one of original, processed, imposed)
- filesize: (integer)
The size of this print data file in bytes
- last_page: (integer)
The last page inside the print data file's PDF
- first_page: (integer)
The first page inside the print data file's PDF
- uri: required(string)
Examples:
minimal:
{
"print_data_file": {
"kind": "original",
"uri": "https://example.com/keyline_print_data_file"
}
}
full:
{
"print_data_file": {
"kind": "original",
"uri": "https://example.com/keyline_print_data_file",
"filesize": 12345,
"first_page": 3,
"last_page": 10
}
}
HTTP status code 201
Body
Media type: application/json
Type: object
Properties- print_data_file: required(object)
- component_id: (integer)
The
component_id
may be null, if the print data file is associated with a product instead of a component - product_id: required(integer)
- uri: required(string)
The full URI of this print data file, including the protocol
- filesize: required(integer)
The size of this print data file in bytes
- last_page: (integer)
The last page inside the print data file's PDF
- first_page: (integer)
The first page inside the print data file's PDF
- kind: required(one of original, processed, imposed)
- state: required(one of newly_uploaded, processing, processed)
- created_at: required(datetime)
The exact time the respective object was created.
- updated_at: required(datetime)
The exact time the respective object was last updated.
- id: required(integer - minimum: 1)
Unique identifier for every object. Is used when referencing resources in URLs.
- component_id: (integer)
Example:
{
"print_data_file": {
"id": 871,
"product_id": 17626,
"component_id": null,
"kind": "original",
"state": "newly_uploaded",
"uri": "https://example.com/keyline_print_data_file",
"filesize": 12345,
"first_page": 3,
"last_page": 10,
"created_at": "2017-09-07T10:35:23.079+02:00",
"updated_at": "2017-09-07T10:35:23.079+02:00"
}
}
HTTP status code 422
This is returned if creating a new print data file failed
Body
Media type: application/json
Type: object
Properties- errors: required(object)
Example:
{
"errors": {
"uri": [
"muss ausgefüllt werden"
],
"kind": [
"ist kein gültiger Wert"
]
}
}
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
Fetch details for a single print data file
Update the given print data file
Delete the given print data file information
get /carts/{cart_id}/products/{product_id}/print_data_files/{print_data_file_id}
Fetch details for a single print data file
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- cart_id: required(integer)
- product_id: required(integer)
- print_data_file_id: required(integer)
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- print_data_file: required(object)
- component_id: (integer)
The
component_id
may be null, if the print data file is associated with a product instead of a component - product_id: required(integer)
- uri: required(string)
The full URI of this print data file, including the protocol
- filesize: required(integer)
The size of this print data file in bytes
- last_page: (integer)
The last page inside the print data file's PDF
- first_page: (integer)
The first page inside the print data file's PDF
- kind: required(one of original, processed, imposed)
- state: required(one of newly_uploaded, processing, processed)
- created_at: required(datetime)
The exact time the respective object was created.
- updated_at: required(datetime)
The exact time the respective object was last updated.
- id: required(integer - minimum: 1)
Unique identifier for every object. Is used when referencing resources in URLs.
- component_id: (integer)
Example:
{
"print_data_file": {
"id": 871,
"product_id": 17626,
"component_id": null,
"kind": "original",
"state": "newly_uploaded",
"uri": "https://example.com/keyline_print_data_file",
"filesize": 12345,
"first_page": 3,
"last_page": 10,
"created_at": "2017-09-07T10:35:23.079+02:00",
"updated_at": "2017-09-07T10:35:23.079+02:00"
}
}
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
patch /carts/{cart_id}/products/{product_id}/print_data_files/{print_data_file_id}
Update the given print data file
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- cart_id: required(integer)
- product_id: required(integer)
- print_data_file_id: required(integer)
Body
Media type: application/json
Type: object
Properties- print_data_file: required(object)
- uri: required(string)
The full URI of this print data file, including the protocol
- kind: required(one of original, processed, imposed)
- filesize: (integer)
The size of this print data file in bytes
- last_page: (integer)
The last page inside the print data file's PDF
- first_page: (integer)
The first page inside the print data file's PDF
- uri: required(string)
Examples:
minimal:
{
"print_data_file": {
"kind": "original",
"uri": "https://example.com/keyline_print_data_file"
}
}
full:
{
"print_data_file": {
"kind": "original",
"uri": "https://example.com/keyline_print_data_file",
"filesize": 12345,
"first_page": 3,
"last_page": 10
}
}
HTTP status code 204
This is returned if updating the given print data file information succeeded
HTTP status code 422
This is returned if updating a new print data file failed
Body
Media type: application/json
Type: object
Properties- errors: required(object)
Example:
{
"errors": {
"uri": [
"muss ausgefüllt werden"
],
"kind": [
"ist kein gültiger Wert"
]
}
}
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
delete /carts/{cart_id}/products/{product_id}/print_data_files/{print_data_file_id}
Delete the given print data file information
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- cart_id: required(integer)
- product_id: required(integer)
- print_data_file_id: required(integer)
HTTP status code 204
This is returned if deleting the print data file information succeeded
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
Fetch details of a all components of a product.
get /carts/{cart_id}/products/{product_id}/components
Fetch details of a all components of a product.
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- cart_id: required(integer)
- product_id: required(integer)
HTTP status code 200
Body
Media type: application/json
Type: array of object
Items: Component
- component: required(object)
- name: required(string - minLength: 1 - maxLength: 200)
- number_of_pages: required(integer - minimum: 1)
- closed_dimensions: required(array of integer - minItems: 2 - maxItems: 2)
- front_colors: required(array of string)
Lists the colors of the front of the component
- back_colors: required(array of string)
Lists the colors of the back of the component
- paper_name: (string - maxLength: 200)
- grain: (one of short, long)
- grammage: (integer - minimum: 1)
- created_at: required(datetime)
The exact time the respective object was created.
- updated_at: required(datetime)
The exact time the respective object was last updated.
- id: required(integer - minimum: 1)
Unique identifier for every object. Is used when referencing resources in URLs.
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
Fetch details of a particular component of this product.
Update the specification of a particular component of this product.
get /carts/{cart_id}/products/{product_id}/components/{component_id}
Fetch details of a particular component of this product.
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- cart_id: required(integer)
- product_id: required(integer)
- component_id: required(integer)
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- component: required(object)
- name: required(string - minLength: 1 - maxLength: 200)
- number_of_pages: required(integer - minimum: 1)
- closed_dimensions: required(array of integer - minItems: 2 - maxItems: 2)
- front_colors: required(array of string)
Lists the colors of the front of the component
- back_colors: required(array of string)
Lists the colors of the back of the component
- paper_name: (string - maxLength: 200)
- grain: (one of short, long)
- grammage: (integer - minimum: 1)
- created_at: required(datetime)
The exact time the respective object was created.
- updated_at: required(datetime)
The exact time the respective object was last updated.
- id: required(integer - minimum: 1)
Unique identifier for every object. Is used when referencing resources in URLs.
Example:
{
"component": {
"id": 21692,
"name": "Etikett",
"number_of_pages": 2,
"closed_dimensions": [
140,
140
],
"paper_name": "Arctic White",
"grain": "short",
"grammage": 200,
"front_colors": [
"CMYK/Cyan",
"CMYK/Magenta",
"CMYK/Yellow",
"CMYK/Black"
],
"back_colors": [],
"front_colors": ["CMYK/Black", "Pantone/83", "custom/superdark"],
"updated_at": "2017-08-11T12:27:11.038+02:00",
"created_at": "2017-08-11T12:24:12.950+02:00"
}
}
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
patch /carts/{cart_id}/products/{product_id}/components/{component_id}
Update the specification of a particular component of this product.
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- cart_id: required(integer)
- product_id: required(integer)
- component_id: required(integer)
Body
Media type: application/json
Type: object
Properties- component: required(object)
- name: (string - maxLength: 200)
- paper_name: (string - maxLength: 200)
- closed_dimensions: (array of integer - minItems: 2 - maxItems: 2)
An array, that must always be comprised of two integers, that give the components
closed_dimensions
in mm. First element is closed dimensionswidth
, second element isheight
- grain: (one of short, long)
- front_colors: (array of string)
Optionally specify the colors of the front of the component, in the form of
$color_family/$color_name
, where$color_family
is one ofCMYK
,HKS
,Pantone
,custom
. - back_colors: (array of string)
Optionally specify the colors of the front of the component, in the form of
$color_family/$color_name
, where$color_family
is one ofCMYK
,HKS
,Pantone
,custom
. - grammage: (integer - minimum: 1)
Example:
{
"component": {
"name": "Etikett",
"paper_name": "Arctic White",
"grain": "short",
"grammage": 200,
"front_colors": ["CMYK/Black", "Pantone/83", "custom/superdark"]
}
}
HTTP status code 204
If the update operation was successful
HTTP status code 422
If the update operation failed for validation reasons
Body
Media type: application/json
Type: object
Properties- errors: required(object)
Example:
{
"errors": {
"name": [
"ist zu kurz (weniger als 1 Zeichen)"
],
"grain": [
"ist kein gültiger Wert"
],
"grammage": [
"muss ganzzahlig sein"
]
}
}
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
Fetch information for all print data files for the given component
Create a new print data file for the given component
get /carts/{cart_id}/products/{product_id}/components/{component_id}/print_data_files
Fetch information for all print data files for the given component
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- cart_id: required(integer)
- product_id: required(integer)
- component_id: required(integer)
HTTP status code 200
Body
Media type: application/json
Type: array of object
Items: PrintDataFile
- print_data_file: required(object)
- component_id: (integer)
The
component_id
may be null, if the print data file is associated with a product instead of a component - product_id: required(integer)
- uri: required(string)
The full URI of this print data file, including the protocol
- filesize: required(integer)
The size of this print data file in bytes
- last_page: (integer)
The last page inside the print data file's PDF
- first_page: (integer)
The first page inside the print data file's PDF
- kind: required(one of original, processed, imposed)
- state: required(one of newly_uploaded, processing, processed)
- created_at: required(datetime)
The exact time the respective object was created.
- updated_at: required(datetime)
The exact time the respective object was last updated.
- id: required(integer - minimum: 1)
Unique identifier for every object. Is used when referencing resources in URLs.
- component_id: (integer)
Example:
[
{
"print_data_file": {
"id": 872,
"product_id": 17626,
"component_id": 21692,
"kind": "original",
"state": "newly_uploaded",
"uri": "https://example.com/keyline_print_data_file",
"filesize": 12345,
"first_page": null,
"last_page": null,
"created_at": "2017-09-07T10:35:23.079+02:00",
"updated_at": "2017-09-07T10:35:23.079+02:00"
}
}
]
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
post /carts/{cart_id}/products/{product_id}/components/{component_id}/print_data_files
Create a new print data file for the given component
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- cart_id: required(integer)
- product_id: required(integer)
- component_id: required(integer)
Body
Media type: application/json
Type: object
Properties- print_data_file: required(object)
- uri: required(string)
The full URI of this print data file, including the protocol
- kind: required(one of original, processed, imposed)
- filesize: (integer)
The size of this print data file in bytes
- last_page: (integer)
The last page inside the print data file's PDF
- first_page: (integer)
The first page inside the print data file's PDF
- uri: required(string)
Examples:
minimal:
{
"print_data_file": {
"kind": "original",
"uri": "https://example.com/keyline_print_data_file"
}
}
full:
{
"print_data_file": {
"kind": "original",
"uri": "https://example.com/keyline_print_data_file",
"filesize": 12345,
"first_page": 3,
"last_page": 10
}
}
HTTP status code 201
Body
Media type: application/json
Type: object
Properties- print_data_file: required(object)
- component_id: (integer)
The
component_id
may be null, if the print data file is associated with a product instead of a component - product_id: required(integer)
- uri: required(string)
The full URI of this print data file, including the protocol
- filesize: required(integer)
The size of this print data file in bytes
- last_page: (integer)
The last page inside the print data file's PDF
- first_page: (integer)
The first page inside the print data file's PDF
- kind: required(one of original, processed, imposed)
- state: required(one of newly_uploaded, processing, processed)
- created_at: required(datetime)
The exact time the respective object was created.
- updated_at: required(datetime)
The exact time the respective object was last updated.
- id: required(integer - minimum: 1)
Unique identifier for every object. Is used when referencing resources in URLs.
- component_id: (integer)
Example:
{
"print_data_file": {
"id": 872,
"product_id": 17626,
"component_id": 21692,
"kind": "original",
"state": "newly_uploaded",
"uri": "https://example.com/keyline_print_data_file",
"filesize": 12345,
"first_page": null,
"last_page": null,
"created_at": "2017-09-07T10:35:23.079+02:00",
"updated_at": "2017-09-07T10:35:23.079+02:00"
}
}
HTTP status code 422
This is returned if creating a new print data file failed
Body
Media type: application/json
Type: object
Properties- errors: required(object)
Example:
{
"errors": {
"uri": [
"muss ausgefüllt werden"
],
"kind": [
"ist kein gültiger Wert"
]
}
}
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
/carts/{cart_id}/products/{product_id}/components/{component_id}/print_data_files/{print_data_file_id} get patch delete
Fetch details for a single print data file related to the given component
Update the given print data file
Delete the given print data file information
get /carts/{cart_id}/products/{product_id}/components/{component_id}/print_data_files/{print_data_file_id}
Fetch details for a single print data file related to the given component
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- cart_id: required(integer)
- product_id: required(integer)
- component_id: required(integer)
- print_data_file_id: required(integer)
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- print_data_file: required(object)
- component_id: (integer)
The
component_id
may be null, if the print data file is associated with a product instead of a component - product_id: required(integer)
- uri: required(string)
The full URI of this print data file, including the protocol
- filesize: required(integer)
The size of this print data file in bytes
- last_page: (integer)
The last page inside the print data file's PDF
- first_page: (integer)
The first page inside the print data file's PDF
- kind: required(one of original, processed, imposed)
- state: required(one of newly_uploaded, processing, processed)
- created_at: required(datetime)
The exact time the respective object was created.
- updated_at: required(datetime)
The exact time the respective object was last updated.
- id: required(integer - minimum: 1)
Unique identifier for every object. Is used when referencing resources in URLs.
- component_id: (integer)
Example:
{
"print_data_file": {
"id": 872,
"product_id": 17626,
"component_id": 21692,
"kind": "original",
"state": "newly_uploaded",
"uri": "https://example.com/keyline_print_data_file",
"filesize": 12345,
"first_page": null,
"last_page": null,
"created_at": "2017-09-07T10:35:23.079+02:00",
"updated_at": "2017-09-07T10:35:23.079+02:00"
}
}
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
patch /carts/{cart_id}/products/{product_id}/components/{component_id}/print_data_files/{print_data_file_id}
Update the given print data file
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- cart_id: required(integer)
- product_id: required(integer)
- component_id: required(integer)
- print_data_file_id: required(integer)
Body
Media type: application/json
Type: object
Properties- print_data_file: required(object)
- uri: required(string)
The full URI of this print data file, including the protocol
- kind: required(one of original, processed, imposed)
- filesize: (integer)
The size of this print data file in bytes
- last_page: (integer)
The last page inside the print data file's PDF
- first_page: (integer)
The first page inside the print data file's PDF
- uri: required(string)
Examples:
minimal:
{
"print_data_file": {
"kind": "original",
"uri": "https://example.com/keyline_print_data_file"
}
}
full:
{
"print_data_file": {
"kind": "original",
"uri": "https://example.com/keyline_print_data_file",
"filesize": 12345,
"first_page": 3,
"last_page": 10
}
}
HTTP status code 204
This is returned if updating the given print data file information succeeded
HTTP status code 422
This is returned if updating a new print data file failed
Body
Media type: application/json
Type: object
Properties- errors: required(object)
Example:
{
"errors": {
"uri": [
"muss ausgefüllt werden"
],
"kind": [
"ist kein gültiger Wert"
]
}
}
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
delete /carts/{cart_id}/products/{product_id}/components/{component_id}/print_data_files/{print_data_file_id}
Delete the given print data file information
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- cart_id: required(integer)
- product_id: required(integer)
- component_id: required(integer)
- print_data_file_id: required(integer)
HTTP status code 204
This is returned if deleting the print data file information succeeded
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
Show the billing address set for this cart
Set the billing address for this cart.
Delete the billing address associated with this cart
get /carts/{cart_id}/billing_address
Show the billing address set for this cart
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- cart_id: required(integer)
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- billing_address: required(object)
An
Address
object represents a postal Address- addressee: required(string)
- town: required(string)
- number: (string)
- country_code: required(string)
ISO Country code of country this address is located in.
- zip_code: required(string)
- street: (string)
- addition: (string)
An optional additional information, usually displayed right below the address.
Example:
{
"billing_address": {
"addition": "Hinterhaus",
"addressee": "Keyline\r\nc/o Crispy Mountain GmbH",
"country_code": "DE",
"number": "1a",
"street": "Emmerich-Josef-Str.",
"town": "Mainz",
"zip_code": "55116"
}
}
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
post /carts/{cart_id}/billing_address
Set the billing address for this cart.
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- cart_id: required(integer)
Body
Media type: application/json
Type: object
Properties- billing_address: required(object)
An
Address
object represents a postal Address- addressee: required(string)
- town: required(string)
- number: (string)
- country_code: required(string)
ISO Country code of country this address is located in.
- zip_code: required(string)
- street: (string)
- addition: (string)
An optional additional information, usually displayed right below the address.
Example:
{
"billing_address": {
"addition": "Hinterhaus",
"addressee": "Keyline\r\nc/o Crispy Mountain GmbH",
"country_code": "DE",
"number": "1a",
"street": "Emmerich-Josef-Str.",
"town": "Mainz",
"zip_code": "55116"
}
}
HTTP status code 201
Body
Media type: application/json
Type: object
Properties- billing_address: required(object)
An
Address
object represents a postal Address- addressee: required(string)
- town: required(string)
- number: (string)
- country_code: required(string)
ISO Country code of country this address is located in.
- zip_code: required(string)
- street: (string)
- addition: (string)
An optional additional information, usually displayed right below the address.
Example:
{
"billing_address": {
"addition": "Hinterhaus",
"addressee": "Keyline\r\nc/o Crispy Mountain GmbH",
"country_code": "DE",
"number": "1a",
"street": "Emmerich-Josef-Str.",
"town": "Mainz",
"zip_code": "55116"
}
}
HTTP status code 422
Body
Media type: application/json
Type: object
Properties- errors: required(object)
Example:
{
"errors": {
"addressee": [
"ist zu kurz (weniger als 1 Zeichen)"
],
"town": [
"ist zu kurz (weniger als 1 Zeichen)"
],
"country_code": [
"ist kein gültiger Wert"
]
}
}
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
delete /carts/{cart_id}/billing_address
Delete the billing address associated with this cart
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- cart_id: required(integer)
HTTP status code 204
Is returned if the billing address was successfully deleted from the cart with the given cart_id
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
Show the delivery address set for this cart
Set the delivery address for this cart.
Delete the delivery address associated with this cart
get /carts/{cart_id}/delivery_address
Show the delivery address set for this cart
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- cart_id: required(integer)
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- delivery_address: required(object)
An
Address
object represents a postal Address- addressee: required(string)
- town: required(string)
- number: (string)
- country_code: required(string)
ISO Country code of country this address is located in.
- zip_code: required(string)
- street: (string)
- addition: (string)
An optional additional information, usually displayed right below the address.
- delivery_contact_phone: (string)
Phone number of delivery recipient.
- delivery_contact_email: (string)
Email address of delivery recipient.
Example:
{
"delivery_address": {
"addition": "Hinterhaus",
"addressee": "Keyline\r\nc/o Crispy Mountain GmbH",
"country_code": "DE",
"number": "1a",
"street": "Emmerich-Josef-Str.",
"town": "Mainz",
"zip_code": "55116"
}
}
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
post /carts/{cart_id}/delivery_address
Set the delivery address for this cart.
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- cart_id: required(integer)
Body
Media type: application/json
Type: object
Properties- delivery_address: required(object)
An
Address
object represents a postal Address- addressee: required(string)
- town: required(string)
- number: (string)
- country_code: required(string)
ISO Country code of country this address is located in.
- zip_code: required(string)
- street: (string)
- addition: (string)
An optional additional information, usually displayed right below the address.
- delivery_contact_phone: (string)
Phone number of delivery recipient.
- delivery_contact_email: (string)
Email address of delivery recipient.
Example:
{
"delivery_address": {
"addition": "Hinterhaus",
"addressee": "Keyline\r\nc/o Crispy Mountain GmbH",
"country_code": "DE",
"number": "1a",
"street": "Emmerich-Josef-Str.",
"town": "Mainz",
"zip_code": "55116"
}
}
HTTP status code 201
If the delivery address was successfully set for the cart with the given cart_id
Body
Media type: application/json
Type: object
Properties- delivery_address: required(object)
An
Address
object represents a postal Address- addressee: required(string)
- town: required(string)
- number: (string)
- country_code: required(string)
ISO Country code of country this address is located in.
- zip_code: required(string)
- street: (string)
- addition: (string)
An optional additional information, usually displayed right below the address.
- delivery_contact_phone: (string)
Phone number of delivery recipient.
- delivery_contact_email: (string)
Email address of delivery recipient.
Example:
{
"delivery_address": {
"addition": "Hinterhaus",
"addressee": "Keyline\r\nc/o Crispy Mountain GmbH",
"country_code": "DE",
"number": "1a",
"street": "Emmerich-Josef-Str.",
"town": "Mainz",
"zip_code": "55116"
}
}
HTTP status code 422
If setting of the delivery address was not successful
Body
Media type: application/json
Type: object
Properties- errors: required(object)
Example:
{
"errors": {
"addressee": [
"ist zu kurz (weniger als 1 Zeichen)"
],
"town": [
"ist zu kurz (weniger als 1 Zeichen)"
],
"country_code": [
"ist kein gültiger Wert"
]
}
}
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
delete /carts/{cart_id}/delivery_address
Delete the delivery address associated with this cart
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- cart_id: required(integer)
HTTP status code 204
Is returned if the delivery address was successfully deleted from the cart with the given cart_id
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
/orders
Fetch Details and state of a specific order, including details for all products
Cancel the order. This might fail with this status code 422
, if the order cannot be canceled anymore, because is already being printed or due to other reasons.
get /orders/{order_id}
Fetch Details and state of a specific order, including details for all products
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- order_id: required(integer)
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- order: required(object)
- reference: required(string - pattern: ^[0-9A-Z]{6}$)
A 6-character, alphanumeric string, that uniquely identifies an object.
Example:
N4XTC8
- state: required(one of draft, confirmed, completed, archived)
- billing_address: required(object)
Billing Address for the order
- addressee: required(string)
- town: required(string)
- number: (string)
- country_code: required(string)
ISO Country code of country this address is located in.
- zip_code: required(string)
- street: (string)
- addition: (string)
An optional additional information, usually displayed right below the address.
- delivery_address: required(object)
Delivery Address for the order
- addressee: required(string)
- town: required(string)
- number: (string)
- country_code: required(string)
ISO Country code of country this address is located in.
- zip_code: required(string)
- street: (string)
- addition: (string)
An optional additional information, usually displayed right below the address.
- due_at: (datetime)
- custom_offer_text: required(string)
A custom text that will be part of the offer document
- custom_references: required(object)
Contains up to 5 arbitrary key-value entries, for data that doesn't fit into any other category of the order
- carrier: required(object)
The carrier which will transport the order to it's delivery address.
- id: required(integer)
- name: required(string)
Name of the carrier
- recipient: required(object)
Identifies the recipient of the cart (or order), which is usually person that buys the order.
- first_name: required(string)
- name: required(string)
- email: required(string)
- phone: (string)
- products: required(array of inbox.Product)
Items: Product
- product: required(object)
- name: required(string - minLength: 1 - maxLength: 200)
- circulation_sum: required(integer - minimum: 1)
- reference: required(string - pattern: ^[0-9A-Z]{6}$)
A 6-character, alphanumeric string, that uniquely identifies an object.
Example:
N4XTC8
- custom_references: (object)
Contains up to 5 arbitrary key-value entries, for data that doesn't fit into any other category of the product
- components: required(array of inbox.Component)
Items: Component
- component: required(object)
- name: required(string - minLength: 1 - maxLength: 200)
- number_of_pages: required(integer - minimum: 1)
- closed_dimensions: required(array of integer - minItems: 2 - maxItems: 2)
- front_colors: required(array of string)
Lists the colors of the front of the component
- back_colors: required(array of string)
Lists the colors of the back of the component
- paper_name: (string - maxLength: 200)
- grain: (one of short, long)
- grammage: (integer - minimum: 1)
- created_at: required(datetime)
The exact time the respective object was created.
- updated_at: required(datetime)
The exact time the respective object was last updated.
- id: required(integer - minimum: 1)
Unique identifier for every object. Is used when referencing resources in URLs.
Example:
{ "component": { "id": 21692, "name": "Etikett", "number_of_pages": 2, "closed_dimensions": [ 140, 140 ], "paper_name": "Arctic White", "grain": "short", "grammage": 200, "front_colors": [ "CMYK/Cyan", "CMYK/Magenta", "CMYK/Yellow", "CMYK/Black" ], "back_colors": [], "front_colors": ["CMYK/Black", "Pantone/83", "custom/superdark"], "updated_at": "2017-08-11T12:27:11.038+02:00", "created_at": "2017-08-11T12:24:12.950+02:00" } }
- component: required(object)
- variants: required(array of inbox.Variant)
Items: Variant
- variant: required(object)
- name: required(string - minLength: 1 - maxLength: 200)
- circulation: required(integer - minimum: 1)
- id: required(integer - minimum: 1)
Unique identifier for every object. Is used when referencing resources in URLs.
Example:
{ "variant": { "id": 38426, "name": "Deutsch", "circulation": 100 } }
- variant: required(object)
- net_total: required(object)
A
Money
object represents a single monetary value, that is it always constitutes the amount of money together with it's currency.- cent_amount: required(integer)
Money amount in cents, that is the monetary unit that equals 1/100 of the basic monetary unit of the currency
- currency: required(string)
ISO 4217 code for the currency of the money value
- cent_amount: required(integer)
- created_at: required(datetime)
The exact time the respective object was created.
- updated_at: required(datetime)
The exact time the respective object was last updated.
- id: required(integer - minimum: 1)
Unique identifier for every object. Is used when referencing resources in URLs.
Example:
{ "product": { "id": 17628, "reference": "BX2WAV", "name": "Aufkleber", "updated_at": "2017-09-08T14:24:12.677+02:00", "created_at": "2017-09-08T14:23:47.195+02:00", "circulation_sum": 5100, "net_total": { "cent_amount": 19562, "currency": "EUR" }, "custom_references": { "PO": 7891234 }, "components": [ { "component": { "id": 24178, "name": "Aufkleber / Etikett", "number_of_pages": 2, "closed_dimensions": [ 140, 140 ], "updated_at": "2017-09-08T14:23:47.204+02:00", "created_at": "2017-09-08T14:23:47.204+02:00", "paper_name": null, "grain": null, "grammage": null } } ], "variants": [ { "variant": { "id": 38426, "name": "Deutsch", "circulation": 100 } }, { "variant": { "id": 38429, "name": "Englisch", "circulation": 5000 } } ] } }
- product: required(object)
- print_data_files: required(array of inbox.PrintDataFile)
Items: PrintDataFile
- print_data_file: required(object)
- component_id: (integer)
The
component_id
may be null, if the print data file is associated with a product instead of a component - product_id: required(integer)
- uri: required(string)
The full URI of this print data file, including the protocol
- filesize: required(integer)
The size of this print data file in bytes
- last_page: (integer)
The last page inside the print data file's PDF
- first_page: (integer)
The first page inside the print data file's PDF
- kind: required(one of original, processed, imposed)
- state: required(one of newly_uploaded, processing, processed)
- created_at: required(datetime)
The exact time the respective object was created.
- updated_at: required(datetime)
The exact time the respective object was last updated.
- id: required(integer - minimum: 1)
Unique identifier for every object. Is used when referencing resources in URLs.
- component_id: (integer)
- print_data_file: required(object)
- created_at: required(datetime)
The exact time the respective object was created.
- updated_at: required(datetime)
The exact time the respective object was last updated.
- id: required(integer - minimum: 1)
Unique identifier for every object. Is used when referencing resources in URLs.
- reference: required(string - pattern: ^[0-9A-Z]{6}$)
Example:
{
"order": {
"id": 14014,
"due_at": "2017-11-09T17:00:00.000+01:00",
"custom_offer_text": "Special Offer",
"reference": "S28H7Q",
"state": "draft",
"updated_at": "2017-11-03T16:46:10.317+01:00",
"created_at": "2017-11-03T15:24:05.173+01:00",
"custom_references": {
"PO": 7891234,
"Besteller": "Torsten Schmidt",
"Druckerei": "Crispy",
"Kostenstelle": 12345677,
"Interne Bestell Nr": "BestellNr123"
},
"carrier": {
"id": 43,
"name": "Paket DHL"
},
"delivery_address": {
"addressee": "Keyline\r\nc/o Crispy Mountain GmbH",
"street": "Emmerich-Josef-Str.",
"number": "1a",
"addition": "Hinterhaus",
"zip_code": "55116",
"town": "Mainz",
"country_code": "DE"
},
"recipient": {
"first_name": "Bran",
"name": "Starko",
"email": "bs@stark.com",
"phone": "+441123123"
},
"billing_address": {
"addressee": "Keyline\r\nc/o Crispy Mountain GmbH",
"street": "Emmerich-Josef-Str.",
"number": "1a",
"addition": "Hinterhaus",
"zip_code": "55116",
"town": "Mainz",
"country_code": "DE"
},
"products": [
{
"product": {
"id": 21219,
"reference": "GVESNT",
"name": "Aufkleber",
"updated_at": "2017-11-03T16:46:03.899+01:00",
"created_at": "2017-11-03T16:46:03.899+01:00",
"circulation_sum": 1000,
"net_total": {
"cent_amount": 14128,
"currency": "EUR"
},
"custom_references": {
"PO": 7891234
},
"components": [
{
"component": {
"id": 28722,
"name": "Aufkleber / Etikett",
"number_of_pages": 2,
"closed_dimensions": [
140,
140
],
"updated_at": "2017-11-03T16:46:03.914+01:00",
"created_at": "2017-11-03T16:46:03.914+01:00",
"paper_name": "Arctic White",
"grain": "short",
"grammage": 200
}
}
],
"variants": [
{
"variant": {
"id": 44163,
"name": "Standard",
"circulation": 1000
}
}
]
}
}
],
"print_data_files": [
{
"print_data_file": {
"id": 880,
"product_id": 21219,
"component_id": null,
"kind": "original",
"state": "newly_uploaded",
"uri": "somenewurl",
"filesize": 123467,
"first_page": null,
"last_page": null,
"created_at": "2017-09-08T14:20:57.183+02:00",
"updated_at": "2017-09-08T14:20:57.183+02:00"
}
}
]
}
}
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
delete /orders/{order_id}
Cancel the order. This might fail with this status code 422
, if the order cannot be canceled anymore, because is already being printed or due to other reasons.
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- order_id: required(integer)
HTTP status code 204
The cancel operation was successful
HTTP status code 422
The order cannot be canceled anymore.
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
Fetch all products that make up this order
get /orders/{order_id}/products
Fetch all products that make up this order
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- order_id: required(integer)
HTTP status code 200
Body
Media type: application/json
Type: array of object
Items: Product
- product: required(object)
- name: required(string - minLength: 1 - maxLength: 200)
- circulation_sum: required(integer - minimum: 1)
- reference: required(string - pattern: ^[0-9A-Z]{6}$)
A 6-character, alphanumeric string, that uniquely identifies an object.
Example:
N4XTC8
- custom_references: (object)
Contains up to 5 arbitrary key-value entries, for data that doesn't fit into any other category of the product
- components: required(array of inbox.Component)
Items: Component
- component: required(object)
- name: required(string - minLength: 1 - maxLength: 200)
- number_of_pages: required(integer - minimum: 1)
- closed_dimensions: required(array of integer - minItems: 2 - maxItems: 2)
- front_colors: required(array of string)
Lists the colors of the front of the component
- back_colors: required(array of string)
Lists the colors of the back of the component
- paper_name: (string - maxLength: 200)
- grain: (one of short, long)
- grammage: (integer - minimum: 1)
- created_at: required(datetime)
The exact time the respective object was created.
- updated_at: required(datetime)
The exact time the respective object was last updated.
- id: required(integer - minimum: 1)
Unique identifier for every object. Is used when referencing resources in URLs.
Example:
{ "component": { "id": 21692, "name": "Etikett", "number_of_pages": 2, "closed_dimensions": [ 140, 140 ], "paper_name": "Arctic White", "grain": "short", "grammage": 200, "front_colors": [ "CMYK/Cyan", "CMYK/Magenta", "CMYK/Yellow", "CMYK/Black" ], "back_colors": [], "front_colors": ["CMYK/Black", "Pantone/83", "custom/superdark"], "updated_at": "2017-08-11T12:27:11.038+02:00", "created_at": "2017-08-11T12:24:12.950+02:00" } }
- component: required(object)
- variants: required(array of inbox.Variant)
Items: Variant
- variant: required(object)
- name: required(string - minLength: 1 - maxLength: 200)
- circulation: required(integer - minimum: 1)
- id: required(integer - minimum: 1)
Unique identifier for every object. Is used when referencing resources in URLs.
Example:
{ "variant": { "id": 38426, "name": "Deutsch", "circulation": 100 } }
- variant: required(object)
- net_total: required(object)
A
Money
object represents a single monetary value, that is it always constitutes the amount of money together with it's currency.- cent_amount: required(integer)
Money amount in cents, that is the monetary unit that equals 1/100 of the basic monetary unit of the currency
- currency: required(string)
ISO 4217 code for the currency of the money value
- cent_amount: required(integer)
- created_at: required(datetime)
The exact time the respective object was created.
- updated_at: required(datetime)
The exact time the respective object was last updated.
- id: required(integer - minimum: 1)
Unique identifier for every object. Is used when referencing resources in URLs.
Example:
[
{
"product": {
"id": 17628,
"reference": "BX2WAV",
"name": "Aufkleber",
"updated_at": "2017-09-08T14:24:12.677+02:00",
"created_at": "2017-09-08T14:23:47.195+02:00",
"circulation_sum": 5100,
"net_total": {
"cent_amount": 19562,
"currency": "EUR"
},
"custom_references": {
"PO": 7891234
},
"components": [
{
"component": {
"id": 24178,
"name": "Aufkleber / Etikett",
"number_of_pages": 2,
"closed_dimensions": [
140,
140
],
"updated_at": "2017-09-08T14:23:47.204+02:00",
"created_at": "2017-09-08T14:23:47.204+02:00",
"paper_name": null,
"grain": null,
"grammage": null
}
}
],
"variants": [
{
"variant": {
"id": 38426,
"name": "Deutsch",
"circulation": 100
}
},
{
"variant": {
"id": 38429,
"name": "Englisch",
"circulation": 5000
}
}
]
}
},
{
"product": {
"id": 17629,
"reference": "GQFBCS",
"name": "Best Stickers ever",
"updated_at": "2017-09-08T17:40:36.125+02:00",
"created_at": "2017-09-08T17:40:36.125+02:00",
"circulation_sum": 1000,
"net_total": {
"cent_amount": 19562,
"currency": "EUR"
},
"custom_references": null,
"components": [
{
"component": {
"id": 24179,
"name": "Aufkleber / Etikett",
"number_of_pages": 2,
"closed_dimensions": [
140,
140
],
"updated_at": "2017-09-08T17:40:36.135+02:00",
"created_at": "2017-09-08T17:40:36.135+02:00",
"paper_name": null,
"grain": null,
"grammage": null
}
}
],
"variants": [
{
"variant": {
"id": 38433,
"name": "Standard",
"circulation": 1000
}
}
]
}
}
]
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
Fetch details of a single product, that's part of this order.
get /orders/{order_id}/products/{product_id}
Fetch details of a single product, that's part of this order.
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- order_id: required(integer)
- product_id: required(integer)
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- product: required(object)
- name: required(string - minLength: 1 - maxLength: 200)
- circulation_sum: required(integer - minimum: 1)
- reference: required(string - pattern: ^[0-9A-Z]{6}$)
A 6-character, alphanumeric string, that uniquely identifies an object.
Example:
N4XTC8
- custom_references: (object)
Contains up to 5 arbitrary key-value entries, for data that doesn't fit into any other category of the product
- components: required(array of inbox.Component)
Items: Component
- component: required(object)
- name: required(string - minLength: 1 - maxLength: 200)
- number_of_pages: required(integer - minimum: 1)
- closed_dimensions: required(array of integer - minItems: 2 - maxItems: 2)
- front_colors: required(array of string)
Lists the colors of the front of the component
- back_colors: required(array of string)
Lists the colors of the back of the component
- paper_name: (string - maxLength: 200)
- grain: (one of short, long)
- grammage: (integer - minimum: 1)
- created_at: required(datetime)
The exact time the respective object was created.
- updated_at: required(datetime)
The exact time the respective object was last updated.
- id: required(integer - minimum: 1)
Unique identifier for every object. Is used when referencing resources in URLs.
Example:
{ "component": { "id": 21692, "name": "Etikett", "number_of_pages": 2, "closed_dimensions": [ 140, 140 ], "paper_name": "Arctic White", "grain": "short", "grammage": 200, "front_colors": [ "CMYK/Cyan", "CMYK/Magenta", "CMYK/Yellow", "CMYK/Black" ], "back_colors": [], "front_colors": ["CMYK/Black", "Pantone/83", "custom/superdark"], "updated_at": "2017-08-11T12:27:11.038+02:00", "created_at": "2017-08-11T12:24:12.950+02:00" } }
- component: required(object)
- variants: required(array of inbox.Variant)
Items: Variant
- variant: required(object)
- name: required(string - minLength: 1 - maxLength: 200)
- circulation: required(integer - minimum: 1)
- id: required(integer - minimum: 1)
Unique identifier for every object. Is used when referencing resources in URLs.
Example:
{ "variant": { "id": 38426, "name": "Deutsch", "circulation": 100 } }
- variant: required(object)
- net_total: required(object)
A
Money
object represents a single monetary value, that is it always constitutes the amount of money together with it's currency.- cent_amount: required(integer)
Money amount in cents, that is the monetary unit that equals 1/100 of the basic monetary unit of the currency
- currency: required(string)
ISO 4217 code for the currency of the money value
- cent_amount: required(integer)
- created_at: required(datetime)
The exact time the respective object was created.
- updated_at: required(datetime)
The exact time the respective object was last updated.
- id: required(integer - minimum: 1)
Unique identifier for every object. Is used when referencing resources in URLs.
Example:
{
"product": {
"id": 17628,
"reference": "BX2WAV",
"name": "Aufkleber",
"updated_at": "2017-09-08T14:24:12.677+02:00",
"created_at": "2017-09-08T14:23:47.195+02:00",
"circulation_sum": 5100,
"net_total": {
"cent_amount": 19562,
"currency": "EUR"
},
"custom_references": {
"PO": 7891234
},
"components": [
{
"component": {
"id": 24178,
"name": "Aufkleber / Etikett",
"number_of_pages": 2,
"closed_dimensions": [
140,
140
],
"updated_at": "2017-09-08T14:23:47.204+02:00",
"created_at": "2017-09-08T14:23:47.204+02:00",
"paper_name": null,
"grain": null,
"grammage": null
}
}
],
"variants": [
{
"variant": {
"id": 38426,
"name": "Deutsch",
"circulation": 100
}
},
{
"variant": {
"id": 38429,
"name": "Englisch",
"circulation": 5000
}
}
]
}
}
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
Fetch information for all print data files for the given product
Create a new print data file for the given product
get /orders/{order_id}/products/{product_id}/print_data_files
Fetch information for all print data files for the given product
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- order_id: required(integer)
- product_id: required(integer)
HTTP status code 200
Body
Media type: application/json
Type: array of object
Items: PrintDataFile
- print_data_file: required(object)
- component_id: (integer)
The
component_id
may be null, if the print data file is associated with a product instead of a component - product_id: required(integer)
- uri: required(string)
The full URI of this print data file, including the protocol
- filesize: required(integer)
The size of this print data file in bytes
- last_page: (integer)
The last page inside the print data file's PDF
- first_page: (integer)
The first page inside the print data file's PDF
- kind: required(one of original, processed, imposed)
- state: required(one of newly_uploaded, processing, processed)
- created_at: required(datetime)
The exact time the respective object was created.
- updated_at: required(datetime)
The exact time the respective object was last updated.
- id: required(integer - minimum: 1)
Unique identifier for every object. Is used when referencing resources in URLs.
- component_id: (integer)
Example:
[
{
"print_data_file": {
"id": 871,
"product_id": 17626,
"component_id": null,
"kind": "original",
"state": "newly_uploaded",
"uri": "https://example.com/keyline_print_data_file",
"filesize": 12345,
"first_page": 3,
"last_page": 10,
"created_at": "2017-09-07T10:35:23.079+02:00",
"updated_at": "2017-09-07T10:35:23.079+02:00"
}
}
]
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
post /orders/{order_id}/products/{product_id}/print_data_files
Create a new print data file for the given product
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- order_id: required(integer)
- product_id: required(integer)
Body
Media type: application/json
Type: object
Properties- print_data_file: required(object)
- uri: required(string)
The full URI of this print data file, including the protocol
- kind: required(one of original, processed, imposed)
- filesize: (integer)
The size of this print data file in bytes
- last_page: (integer)
The last page inside the print data file's PDF
- first_page: (integer)
The first page inside the print data file's PDF
- uri: required(string)
Examples:
minimal:
{
"print_data_file": {
"kind": "original",
"uri": "https://example.com/keyline_print_data_file"
}
}
full:
{
"print_data_file": {
"kind": "original",
"uri": "https://example.com/keyline_print_data_file",
"filesize": 12345,
"first_page": 3,
"last_page": 10
}
}
HTTP status code 201
Body
Media type: application/json
Type: object
Properties- print_data_file: required(object)
- component_id: (integer)
The
component_id
may be null, if the print data file is associated with a product instead of a component - product_id: required(integer)
- uri: required(string)
The full URI of this print data file, including the protocol
- filesize: required(integer)
The size of this print data file in bytes
- last_page: (integer)
The last page inside the print data file's PDF
- first_page: (integer)
The first page inside the print data file's PDF
- kind: required(one of original, processed, imposed)
- state: required(one of newly_uploaded, processing, processed)
- created_at: required(datetime)
The exact time the respective object was created.
- updated_at: required(datetime)
The exact time the respective object was last updated.
- id: required(integer - minimum: 1)
Unique identifier for every object. Is used when referencing resources in URLs.
- component_id: (integer)
Example:
{
"print_data_file": {
"id": 871,
"product_id": 17626,
"component_id": null,
"kind": "original",
"state": "newly_uploaded",
"uri": "https://example.com/keyline_print_data_file",
"filesize": 12345,
"first_page": 3,
"last_page": 10,
"created_at": "2017-09-07T10:35:23.079+02:00",
"updated_at": "2017-09-07T10:35:23.079+02:00"
}
}
HTTP status code 422
This is returned if creating a new print data file failed
Body
Media type: application/json
Type: object
Properties- errors: required(object)
Example:
{
"errors": {
"uri": [
"muss ausgefüllt werden"
],
"kind": [
"ist kein gültiger Wert"
]
}
}
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
Fetch details for a single print data file
Update the given print data file
Delete the given print data file information
get /orders/{order_id}/products/{product_id}/print_data_files/{print_data_file_id}
Fetch details for a single print data file
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- order_id: required(integer)
- product_id: required(integer)
- print_data_file_id: required(integer)
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- print_data_file: required(object)
- component_id: (integer)
The
component_id
may be null, if the print data file is associated with a product instead of a component - product_id: required(integer)
- uri: required(string)
The full URI of this print data file, including the protocol
- filesize: required(integer)
The size of this print data file in bytes
- last_page: (integer)
The last page inside the print data file's PDF
- first_page: (integer)
The first page inside the print data file's PDF
- kind: required(one of original, processed, imposed)
- state: required(one of newly_uploaded, processing, processed)
- created_at: required(datetime)
The exact time the respective object was created.
- updated_at: required(datetime)
The exact time the respective object was last updated.
- id: required(integer - minimum: 1)
Unique identifier for every object. Is used when referencing resources in URLs.
- component_id: (integer)
Example:
{
"print_data_file": {
"id": 871,
"product_id": 17626,
"component_id": null,
"kind": "original",
"state": "newly_uploaded",
"uri": "https://example.com/keyline_print_data_file",
"filesize": 12345,
"first_page": 3,
"last_page": 10,
"created_at": "2017-09-07T10:35:23.079+02:00",
"updated_at": "2017-09-07T10:35:23.079+02:00"
}
}
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
patch /orders/{order_id}/products/{product_id}/print_data_files/{print_data_file_id}
Update the given print data file
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- order_id: required(integer)
- product_id: required(integer)
- print_data_file_id: required(integer)
Body
Media type: application/json
Type: object
Properties- print_data_file: required(object)
- uri: required(string)
The full URI of this print data file, including the protocol
- kind: required(one of original, processed, imposed)
- filesize: (integer)
The size of this print data file in bytes
- last_page: (integer)
The last page inside the print data file's PDF
- first_page: (integer)
The first page inside the print data file's PDF
- uri: required(string)
Examples:
minimal:
{
"print_data_file": {
"kind": "original",
"uri": "https://example.com/keyline_print_data_file"
}
}
full:
{
"print_data_file": {
"kind": "original",
"uri": "https://example.com/keyline_print_data_file",
"filesize": 12345,
"first_page": 3,
"last_page": 10
}
}
HTTP status code 204
This is returned if updating the given print data file information succeeded
HTTP status code 422
This is returned if updating a new print data file failed
Body
Media type: application/json
Type: object
Properties- errors: required(object)
Example:
{
"errors": {
"uri": [
"muss ausgefüllt werden"
],
"kind": [
"ist kein gültiger Wert"
]
}
}
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
delete /orders/{order_id}/products/{product_id}/print_data_files/{print_data_file_id}
Delete the given print data file information
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- order_id: required(integer)
- product_id: required(integer)
- print_data_file_id: required(integer)
HTTP status code 204
This is returned if deleting the print data file information succeeded
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
Fetch details of a all components of a product.
get /orders/{order_id}/products/{product_id}/components
Fetch details of a all components of a product.
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- order_id: required(integer)
- product_id: required(integer)
HTTP status code 200
Body
Media type: application/json
Type: array of object
Items: Component
- component: required(object)
- name: required(string - minLength: 1 - maxLength: 200)
- number_of_pages: required(integer - minimum: 1)
- closed_dimensions: required(array of integer - minItems: 2 - maxItems: 2)
- front_colors: required(array of string)
Lists the colors of the front of the component
- back_colors: required(array of string)
Lists the colors of the back of the component
- paper_name: (string - maxLength: 200)
- grain: (one of short, long)
- grammage: (integer - minimum: 1)
- created_at: required(datetime)
The exact time the respective object was created.
- updated_at: required(datetime)
The exact time the respective object was last updated.
- id: required(integer - minimum: 1)
Unique identifier for every object. Is used when referencing resources in URLs.
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
Fetch details of a particular component of the given product.
get /orders/{order_id}/products/{product_id}/components/{component_id}
Fetch details of a particular component of the given product.
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- order_id: required(integer)
- product_id: required(integer)
- component_id: required(integer)
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- component: required(object)
- name: required(string - minLength: 1 - maxLength: 200)
- number_of_pages: required(integer - minimum: 1)
- closed_dimensions: required(array of integer - minItems: 2 - maxItems: 2)
- front_colors: required(array of string)
Lists the colors of the front of the component
- back_colors: required(array of string)
Lists the colors of the back of the component
- paper_name: (string - maxLength: 200)
- grain: (one of short, long)
- grammage: (integer - minimum: 1)
- created_at: required(datetime)
The exact time the respective object was created.
- updated_at: required(datetime)
The exact time the respective object was last updated.
- id: required(integer - minimum: 1)
Unique identifier for every object. Is used when referencing resources in URLs.
Example:
{
"component": {
"id": 21692,
"name": "Etikett",
"number_of_pages": 2,
"closed_dimensions": [
140,
140
],
"paper_name": "Arctic White",
"grain": "short",
"grammage": 200,
"front_colors": [
"CMYK/Cyan",
"CMYK/Magenta",
"CMYK/Yellow",
"CMYK/Black"
],
"back_colors": [],
"front_colors": ["CMYK/Black", "Pantone/83", "custom/superdark"],
"updated_at": "2017-08-11T12:27:11.038+02:00",
"created_at": "2017-08-11T12:24:12.950+02:00"
}
}
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
Fetch information for all print data files for the given component
Create a new print data file for the given component
get /orders/{order_id}/products/{product_id}/components/{component_id}/print_data_files
Fetch information for all print data files for the given component
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- order_id: required(integer)
- product_id: required(integer)
- component_id: required(integer)
HTTP status code 200
Body
Media type: application/json
Type: array of object
Items: PrintDataFile
- print_data_file: required(object)
- component_id: (integer)
The
component_id
may be null, if the print data file is associated with a product instead of a component - product_id: required(integer)
- uri: required(string)
The full URI of this print data file, including the protocol
- filesize: required(integer)
The size of this print data file in bytes
- last_page: (integer)
The last page inside the print data file's PDF
- first_page: (integer)
The first page inside the print data file's PDF
- kind: required(one of original, processed, imposed)
- state: required(one of newly_uploaded, processing, processed)
- created_at: required(datetime)
The exact time the respective object was created.
- updated_at: required(datetime)
The exact time the respective object was last updated.
- id: required(integer - minimum: 1)
Unique identifier for every object. Is used when referencing resources in URLs.
- component_id: (integer)
Example:
[
{
"print_data_file": {
"id": 872,
"product_id": 17626,
"component_id": 21692,
"kind": "original",
"state": "newly_uploaded",
"uri": "https://example.com/keyline_print_data_file",
"filesize": 12345,
"first_page": null,
"last_page": null,
"created_at": "2017-09-07T10:35:23.079+02:00",
"updated_at": "2017-09-07T10:35:23.079+02:00"
}
}
]
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
post /orders/{order_id}/products/{product_id}/components/{component_id}/print_data_files
Create a new print data file for the given component
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- order_id: required(integer)
- product_id: required(integer)
- component_id: required(integer)
Body
Media type: application/json
Type: object
Properties- print_data_file: required(object)
- uri: required(string)
The full URI of this print data file, including the protocol
- kind: required(one of original, processed, imposed)
- filesize: (integer)
The size of this print data file in bytes
- last_page: (integer)
The last page inside the print data file's PDF
- first_page: (integer)
The first page inside the print data file's PDF
- uri: required(string)
Examples:
minimal:
{
"print_data_file": {
"kind": "original",
"uri": "https://example.com/keyline_print_data_file"
}
}
full:
{
"print_data_file": {
"kind": "original",
"uri": "https://example.com/keyline_print_data_file",
"filesize": 12345,
"first_page": 3,
"last_page": 10
}
}
HTTP status code 201
Body
Media type: application/json
Type: object
Properties- print_data_file: required(object)
- component_id: (integer)
The
component_id
may be null, if the print data file is associated with a product instead of a component - product_id: required(integer)
- uri: required(string)
The full URI of this print data file, including the protocol
- filesize: required(integer)
The size of this print data file in bytes
- last_page: (integer)
The last page inside the print data file's PDF
- first_page: (integer)
The first page inside the print data file's PDF
- kind: required(one of original, processed, imposed)
- state: required(one of newly_uploaded, processing, processed)
- created_at: required(datetime)
The exact time the respective object was created.
- updated_at: required(datetime)
The exact time the respective object was last updated.
- id: required(integer - minimum: 1)
Unique identifier for every object. Is used when referencing resources in URLs.
- component_id: (integer)
Example:
{
"print_data_file": {
"id": 872,
"product_id": 17626,
"component_id": 21692,
"kind": "original",
"state": "newly_uploaded",
"uri": "https://example.com/keyline_print_data_file",
"filesize": 12345,
"first_page": null,
"last_page": null,
"created_at": "2017-09-07T10:35:23.079+02:00",
"updated_at": "2017-09-07T10:35:23.079+02:00"
}
}
HTTP status code 422
This is returned if creating a new print data file failed
Body
Media type: application/json
Type: object
Properties- errors: required(object)
Example:
{
"errors": {
"uri": [
"muss ausgefüllt werden"
],
"kind": [
"ist kein gültiger Wert"
]
}
}
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
/orders/{order_id}/products/{product_id}/components/{component_id}/print_data_files/{print_data_file_id} get patch delete
Fetch details for a single print data file related to the given component
Update the given print data file
Delete the given print data file information
get /orders/{order_id}/products/{product_id}/components/{component_id}/print_data_files/{print_data_file_id}
Fetch details for a single print data file related to the given component
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- order_id: required(integer)
- product_id: required(integer)
- component_id: required(integer)
- print_data_file_id: required(integer)
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- print_data_file: required(object)
- component_id: (integer)
The
component_id
may be null, if the print data file is associated with a product instead of a component - product_id: required(integer)
- uri: required(string)
The full URI of this print data file, including the protocol
- filesize: required(integer)
The size of this print data file in bytes
- last_page: (integer)
The last page inside the print data file's PDF
- first_page: (integer)
The first page inside the print data file's PDF
- kind: required(one of original, processed, imposed)
- state: required(one of newly_uploaded, processing, processed)
- created_at: required(datetime)
The exact time the respective object was created.
- updated_at: required(datetime)
The exact time the respective object was last updated.
- id: required(integer - minimum: 1)
Unique identifier for every object. Is used when referencing resources in URLs.
- component_id: (integer)
Example:
{
"print_data_file": {
"id": 872,
"product_id": 17626,
"component_id": 21692,
"kind": "original",
"state": "newly_uploaded",
"uri": "https://example.com/keyline_print_data_file",
"filesize": 12345,
"first_page": null,
"last_page": null,
"created_at": "2017-09-07T10:35:23.079+02:00",
"updated_at": "2017-09-07T10:35:23.079+02:00"
}
}
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
patch /orders/{order_id}/products/{product_id}/components/{component_id}/print_data_files/{print_data_file_id}
Update the given print data file
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- order_id: required(integer)
- product_id: required(integer)
- component_id: required(integer)
- print_data_file_id: required(integer)
Body
Media type: application/json
Type: object
Properties- print_data_file: required(object)
- uri: required(string)
The full URI of this print data file, including the protocol
- kind: required(one of original, processed, imposed)
- filesize: (integer)
The size of this print data file in bytes
- last_page: (integer)
The last page inside the print data file's PDF
- first_page: (integer)
The first page inside the print data file's PDF
- uri: required(string)
Examples:
minimal:
{
"print_data_file": {
"kind": "original",
"uri": "https://example.com/keyline_print_data_file"
}
}
full:
{
"print_data_file": {
"kind": "original",
"uri": "https://example.com/keyline_print_data_file",
"filesize": 12345,
"first_page": 3,
"last_page": 10
}
}
HTTP status code 204
This is returned if updating the given print data file information succeeded
HTTP status code 422
This is returned if updating a new print data file failed
Body
Media type: application/json
Type: object
Properties- errors: required(object)
Example:
{
"errors": {
"uri": [
"muss ausgefüllt werden"
],
"kind": [
"ist kein gültiger Wert"
]
}
}
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
delete /orders/{order_id}/products/{product_id}/components/{component_id}/print_data_files/{print_data_file_id}
Delete the given print data file information
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- order_id: required(integer)
- product_id: required(integer)
- component_id: required(integer)
- print_data_file_id: required(integer)
HTTP status code 204
This is returned if deleting the print data file information succeeded
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
Returns the details for the current order's carrier definition. A carrier basically defines which shipping carrier will transport the printed products of the current cart to it's delivery address. In most cases this will be some carrier such as 'DHL' or 'UPS', but it's essentially totally up to the printeries discretion which carriers it uses and defines.
Set the current cart's carrier definition
Delete the current order's carrier definition
get /orders/{order_id}/carrier
Returns the details for the current order's carrier definition. A carrier basically defines which shipping carrier will transport the printed products of the current cart to it's delivery address. In most cases this will be some carrier such as 'DHL' or 'UPS', but it's essentially totally up to the printeries discretion which carriers it uses and defines.
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- order_id: required(integer)
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- carrier: required(object)
The carrier which will transport the order to it's delivery address.
- id: required(integer)
- name: required(string)
Name of the carrier
Example:
{
"carrier": {
"id": 43,
"name": "Paket DHL"
}
}
HTTP status code 404
This is returned if there's currently no carrier definition stored with the current cart.
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
post /orders/{order_id}/carrier
Set the current cart's carrier definition
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- order_id: required(integer)
Body
Media type: application/json
Type: object
Properties- carrier: required(object)
- id: required(integer)
The
id
of the carrier, which identifies a carrier in the Keyline instance of the printery. This is a value which must be defined out-of-band between the API client and the printery, as there are no means with which carriers can be searched or requested via the API.
- id: required(integer)
Example:
{
"carrier": {
"id": 43
}
}
HTTP status code 201
This is returned if the carrier definition was successfully created for the current order.
Body
Media type: application/json
Type: object
Properties- carrier: required(object)
The carrier which will transport the order to it's delivery address.
- id: required(integer)
- name: required(string)
Name of the carrier
Example:
{
"carrier": {
"id": 43,
"name": "Paket DHL"
}
}
HTTP status code 422
This is returned if the carrier definition cannot be created with the given data.
Body
Media type: application/json
Type: object
Properties- errors: required(object)
Example:
{
"errors": {
"carrier": [
"No carrier found with given id"
]
}
}
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
delete /orders/{order_id}/carrier
Delete the current order's carrier definition
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- order_id: required(integer)
HTTP status code 204
This is returned if the current cart's carrier definition was successfully deleted.
HTTP status code 404
This is returned if there's currently no carrier definition stored with the current order.
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
Show the delivery address set for this order
Set the delivery address for this order.
Delete the delivery address associated with this order
get /orders/{order_id}/delivery_address
Show the delivery address set for this order
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- order_id: required(integer)
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- delivery_address: required(object)
An
Address
object represents a postal Address- addressee: required(string)
- town: required(string)
- number: (string)
- country_code: required(string)
ISO Country code of country this address is located in.
- zip_code: required(string)
- street: (string)
- addition: (string)
An optional additional information, usually displayed right below the address.
- delivery_contact_phone: (string)
Phone number of delivery recipient.
- delivery_contact_email: (string)
Email address of delivery recipient.
Example:
{
"delivery_address": {
"addition": "Hinterhaus",
"addressee": "Keyline\r\nc/o Crispy Mountain GmbH",
"country_code": "DE",
"number": "1a",
"street": "Emmerich-Josef-Str.",
"town": "Mainz",
"zip_code": "55116"
}
}
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
post /orders/{order_id}/delivery_address
Set the delivery address for this order.
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- order_id: required(integer)
Body
Media type: application/json
Type: object
Properties- delivery_address: required(object)
An
Address
object represents a postal Address- addressee: required(string)
- town: required(string)
- number: (string)
- country_code: required(string)
ISO Country code of country this address is located in.
- zip_code: required(string)
- street: (string)
- addition: (string)
An optional additional information, usually displayed right below the address.
- delivery_contact_phone: (string)
Phone number of delivery recipient.
- delivery_contact_email: (string)
Email address of delivery recipient.
Example:
{
"delivery_address": {
"addition": "Hinterhaus",
"addressee": "Keyline\r\nc/o Crispy Mountain GmbH",
"country_code": "DE",
"number": "1a",
"street": "Emmerich-Josef-Str.",
"town": "Mainz",
"zip_code": "55116"
}
}
HTTP status code 201
If the delivery address was successfully set for the cart with the given order_id
Body
Media type: application/json
Type: object
Properties- delivery_address: required(object)
An
Address
object represents a postal Address- addressee: required(string)
- town: required(string)
- number: (string)
- country_code: required(string)
ISO Country code of country this address is located in.
- zip_code: required(string)
- street: (string)
- addition: (string)
An optional additional information, usually displayed right below the address.
- delivery_contact_phone: (string)
Phone number of delivery recipient.
- delivery_contact_email: (string)
Email address of delivery recipient.
Example:
{
"delivery_address": {
"addition": "Hinterhaus",
"addressee": "Keyline\r\nc/o Crispy Mountain GmbH",
"country_code": "DE",
"number": "1a",
"street": "Emmerich-Josef-Str.",
"town": "Mainz",
"zip_code": "55116"
}
}
HTTP status code 422
If setting of the delivery address was not successful
Body
Media type: application/json
Type: object
Properties- errors: required(object)
Example:
{
"errors": {
"addressee": [
"ist zu kurz (weniger als 1 Zeichen)"
],
"town": [
"ist zu kurz (weniger als 1 Zeichen)"
],
"country_code": [
"ist kein gültiger Wert"
]
}
}
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.
delete /orders/{order_id}/delivery_address
Delete the delivery address associated with this order
Keyline requires API users to authenticate before they can access any information.
URI Parameters
- order_id: required(integer)
HTTP status code 204
Is returned if the delivery address was successfully deleted from the cart with the given order_id
Secured by BearerToken
Headers
- Authorization: required(string - minLength: 71 - maxLength: 71 - pattern: ^Bearer [0-9a-fA-F]{64}$)
Contains the key for using the API, which prefixed with the string 'Bearer'. # Token administration You can add or revoke access tokens in Keyline in the
Settings > API
section.Example:
Bearer f338bc59b1ee082ee08600f85022cf7d661426ee342b22c73c18d3875f2e9885
HTTP status code 401
Header missing or No token provided
HTTP status code 403
Bad token.