Our RESTful API enables interaction with the Print Hub.
Setup and Requirements:
Responses:
Common status codes:
| Code | Meaning |
|---|---|
| 200 | Success |
| 201 | Created |
| 400 | Bad Request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not Found |
| 500 | Server Error |
Error responses include details about the issue in JSON format.
Our API uses token-based authentication.
Key points:
Authorization: Bearer YOUR_API_TOKEN
Security notes:
For token rotation or authentication questions, contact our support team.
Companies can be created manually from the dashboard
Key points:
| Parameter | Description |
|---|---|
| company_id | Your company identifier |
Endpoint: https://print-hub.customiser.online/api/v1/orders
Creates a new order in the system.
| Parameter | Required | Type | Description |
|---|---|---|---|
| company_id | No | string | Your store identifier. If not provided default company is used |
| title | No | string | Custom order title |
| template_config | Yes | string | Template config generated from customiser. It's urlencoded json string |
| thumbnails | Yes | array | Array of strings representing thumbnail URLs |
| dpi | No | int | Custom DPI number. Default is 72 |
| external_order_id | No | string | Your custom order reference in your system |
| note | No | string | Additional notes for the order |
A successful request will return the created order details.
{
"order_id": "ORDER_ID"
}