This documentation describes the CloudSignal API v1.1
This version of the protocol has been depricated - Please upgrade to version 2.0.
To get started with Cloudprinter as a Print Partner please read the "Getting started as a Print Partner" article.
Online sign up as a Print Partner is found here: Sign up as Print Partner (opens new window)
The CloudSignal API is RESTful. All API calls are implemented as HTTP post requests.
All request data posted to the API must be in JSON objects. The documentation for each API call describes the request data parameters in detail.
In case on a HTTP response code 400 the return data can contain an error message. In all other cases the return data is not used.
The HTTP response code 200 is a positive responses, all other response codes must be considered as error.
Set content-type to application/json
on all requests.
Authentication on the CloudSignal API is done via the API key. The API key is generated by the Cloudprinter system when you create the CloudSignal API Interface in the admin panel.
Please note: The API key for signals is not the same API key as for incoming orders.
https://api.cloudprinter.com/1.1/status/
Order received and accepted by the production.
Example JSON Request
{
"apikey": "13b37bb1ed6d3403e158abe719b4f6d0",
"type": "OrderRegistered",
"order": "123456780000",
"datetime": "2016-01-20 13:00:00 GMT"
}
Parameters
Name | Type | Description | Required |
---|---|---|---|
apikey | string | api access key | required |
type | string | valid value: OrderRegistered | required |
order | string | the full order id | required |
datetime | string | timestamp | required |
Code | Status | Description |
---|---|---|
200 | OK | the request has succeeded |
400 | Bad request | the request was invalid or parameters are missing |
401 | Unauthorized | authentication failed |
403 | Forbidden | authentication failed |
https://api.cloudprinter.com/1.1/status/
Production has started for item.
Example JSON Request
{
"apikey": "13b37bb1ed6d3403e158abe719b4f6d0",
"type": "ItemProduce",
"order": "123456780000",
"item": "123456780001",
"datetime": "2016-01-20 13:00:00 GMT"
}
Parameters
Name | Type | Description | Required |
---|---|---|---|
apikey | string | api access key | required |
type | string | valid value: ItemProduce | required |
order | string | the full order id | required |
item | string | the full item id | required |
datetime | string | timestamp | required |
Code | Status | Description |
---|---|---|
200 | OK | the request has succeeded |
400 | Bad request | the request was invalid or parameters are missing |
401 | Unauthorized | authentication failed |
403 | Forbidden | authentication failed |
https://api.cloudprinter.com/1.1/status/
Production completed for item.
Example JSON Request
{
"apikey": "13b37bb1ed6d3403e158abe719b4f6d0",
"type": "ItemProduced",
"order": "123456780000",
"item": "123456780001",
"datetime": "2016-01-20 13:00:00 GMT"
}
Parameters
Name | Type | Description | Required |
---|---|---|---|
apikey | string | api access key | required |
type | string | valid value: ItemProduced | required |
order | string | the full order id | required |
item | string | the full item id | required |
datetime | string | timestamp | required |
Code | Status | Description |
---|---|---|
200 | OK | the request has succeeded |
400 | Bad request | the request was invalid or parameters are missing |
401 | Unauthorized | authentication failed |
403 | Forbidden | authentication failed |
https://api.cloudprinter.com/1.1/status/
Item has been packed.
Example JSON Request
{
"apikey": "13b37bb1ed6d3403e158abe719b4f6d0",
"type": "ItemPacked",
"order": "123456780000",
"item": "123456780001",
"datetime": "2016-01-20 13:00:00 GMT"
}
Parameters
Name | Type | Description | Required |
---|---|---|---|
apikey | string | api access key | required |
type | string | valid value: ItemPacked | required |
order | string | the full order id | required |
item | string | the full item id | required |
datetime | string | timestamp | required |
Code | Status | Description |
---|---|---|
200 | OK | the request has succeeded |
400 | Bad request | the request was invalid or parameters are missing |
401 | Unauthorized | authentication failed |
403 | Forbidden | authentication failed |
https://api.cloudprinter.com/1.1/status/
Item has been shipped. The tracking code for the packet is included in this signal.
Example JSON Request
{
"apikey": "13b37bb1ed6d3403e158abe719b4f6d0",
"type": "ItemShipped",
"order": "123456780000",
"item": "123456780001",
"tracking": "1A2B3C4D5E6F",
"datetime": "2016-01-20 13:00:00 GMT"
}
Parameters
Name | Type | Description | Required |
---|---|---|---|
apikey | string | api access key | required |
type | string | valid value: ItemShipped | required |
order | string | the full order id | required |
item | string | the full item id | required |
tracking | string | tracking code for the item | required |
datetime | string | timestamp | required |
Code | Status | Description |
---|---|---|
200 | OK | the request has succeeded |
400 | Bad request | the request was invalid or parameters are missing |
401 | Unauthorized | authentication failed |
403 | Forbidden | authentication failed |
https://api.cloudprinter.com/1.1/status/
Item has problem or error. This could be due print error or failed in quality check etc.
Example JSON Request
{
"apikey": "13b37bb1ed6d3403e158abe719b4f6d0",
"type": "ItemError",
"order": "123456780000",
"item": "123456780001",
"cause": "Print error, reprint needed",
"delay": "24",
"datetime": "2016-01-20 13:00:00 GMT"
}
Parameters
Name | Type | Description | Required |
---|---|---|---|
apikey | string | api access key | required |
type | string | valid value: ItemError | required |
order | string | the full order id | required |
item | string | the full item id | required |
cause | string | text string explaning the error | optional |
delay | string | expected delay in hours | optional |
datetime | string | timestamp | required |
Code | Status | Description |
---|---|---|
200 | OK | the request has succeeded |
400 | Bad request | the request was invalid or parameters are missing |
401 | Unauthorized | authentication failed |
403 | Forbidden | authentication failed |
https://api.cloudprinter.com/1.1/status/
Item has been canceled.
Example JSON Request
{
"apikey": "13b37bb1ed6d3403e158abe719b4f6d0",
"type": "ItemCanceled",
"order": "123456780000",
"item": "123456780001",
"cause": "190",
"message": "Example message",
"datetime": "2016-01-20 13:00:00 GMT"
}
Parameters
Name | Type | Description | Required |
---|---|---|---|
apikey | string | api access key | required |
type | string | valid value: ItemCanceled | required |
order | string | the full order id | required |
item | string | the full item id | required |
cause | string | cause | optional |
message | string | message | optional |
delay | string | expected delay in hours | optional |
datetime | string | timestamp | required |
Code | Status | Description |
---|---|---|
200 | OK | the request has succeeded |
400 | Bad request | the request was invalid or parameters are missing |
401 | Unauthorized | authentication failed |
403 | Forbidden | authentication failed |