Hoplix Print on Demand
v1.1.2Print-on-demand: browse products, create campaigns with your designs, quote, order and track.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_products Search the Hoplix catalogue
Lists the blank products available on Hoplix (t-shirts, hoodies, mugs, bags, phone cases...) with product code, colours, sizes, base cost in EUR for front print and for front and back print, production days.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum number of results (default 20) |
offset | integer | Number of results to skip, for paging (default 0) |
search | string | Text to look for in product name or code (e.g. "hoodie", "mug") |
get_product Get product details
Full details of one catalogue product: description, colours, sizes, base costs, production days, printable area, pixels needed for the artwork, weight, and the products that can be added to the same campaign.
| Parameter | Type | Description |
|---|---|---|
product_code * | string | Catalogue product code (e.g. "maglietta-unisex") |
list_campaigns List my campaigns
Lists the seller's campaigns (a campaign is a design applied to one or more products), newest first, with id, name, URL, status, dates, and products with selling price and colours.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum number of results (default 20) |
offset | integer | Number of results to skip, for paging (default 0) |
search | string | Text to look for in campaign name, id or URL |
status | string | Only campaigns with this status (as returned in the status field) |
get_campaign Get campaign details
Details of one of the seller's campaigns: name, description, URL, status, currency and its products with product-id, price, colours, sizes and preview images. The product-id identifies a campaign product in quotes and orders.
| Parameter | Type | Description |
|---|---|---|
campaign_id * | string | Campaign id (e.g. "00608240") |
list_orders List my orders
Lists the seller's orders, newest first, with status, shipping code and tracking URL. With test=true it lists only the test orders.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum number of results (default 20) |
offset | integer | Number of results to skip, for paging (default 0) |
status | string | Only orders in this status |
test | boolean | true to list test orders instead of real ones |
get_order Get order details
Full details of one order: date, your reference, status, shipping cost, tracking and the ordered products. Accepts real order ids and test order ids (TEST-...).
| Parameter | Type | Description |
|---|---|---|
order_id * | string | Hoplix order id, or a TEST-... id |
get_order_status Get order status
Status, shipping code and tracking URL of an order, looked up by Hoplix order id or by the seller's own order reference (one of the two is required).
| Parameter | Type | Description |
|---|---|---|
order_id | string | Hoplix order id, or a TEST-... id |
order_reference | string | The seller's own order reference given when the order was created |
test | boolean | With order_reference: true to search among test orders |
check_shipping_address Check a shipping address
Checks whether a delivery address is complete and the destination country is served by Hoplix. Returns valid true/false with the reason.
| Parameter | Type | Description |
|---|---|---|
shipping_info * | object | Delivery address |
quote_order Quote an order
Calculates total and shipping cost of an order with the seller's prices and discounts, running the same checks as a real order (campaign products, sizes, colours, quantities, address). Nothing is saved and nothing is charged.
| Parameter | Type | Description |
|---|---|---|
products * | array | Products to order |
shipping_info * | object | Delivery address |
shipping_mode * | string | Shipping method |
create_campaign Create a campaign
Creates a new campaign: the seller's design printed on a catalogue product (plus optional additional products), with selling price and colours. The design is an image uploaded on a personal Hoplix upload page (front_design_upload_id / back_design_upload_id) or a public http(s) URL of a PNG or JPG image (front_image_url / back_image_url). A transparent PNG at the size given in the product "pixel" field gives the best print. A public campaign gets its own page on Hoplix at the chosen url; a private one is only for the seller's own orders. Returns the campaign id.
| Parameter | Type | Description |
|---|---|---|
name * | string | Campaign name |
product_code * | string | Catalogue product code of the main product |
product_colors * | array | Colours of the main product, from the product colours |
product_price * | number | Selling price in EUR, VAT included; for public campaigns at least the base cost (base-cost-back when printing front and back) |
additional_products | array | Other products with the same design, among the additional products of the main product |
back_design_upload_id | string | UPL-... id of an uploaded image, used as back design (alternative to back_image_url) |
back_image_url | string | Public http(s) URL of the back design (PNG or JPG), only for products with two print sides |
description | string | Campaign description shown on the public page (defaults to the name) |
front_design_upload_id | string | UPL-... id of an uploaded image, used as front design (alternative to front_image_url) |
front_image_url | string | Public http(s) URL of the front design (PNG or JPG) |
private | boolean | true = private campaign, only for the seller's own orders (default false) |
url | string | Public page slug: letters, digits and hyphens, must be unused (required unless private) |
request_design_upload Get an image upload link
Creates a personal Hoplix upload page for a campaign design and returns its upload_url and a design_upload_id (UPL-...). On that page the user uploads a PNG or JPG image (max 15 MB) from their device; images shared in a chat are not reachable by the server. The link expires in 30 minutes; uploaded images are deleted after 7 days. The design_upload_id is accepted by campaign creation as front or back design.
get_design_upload Check an image upload
Status of a design upload: waiting_for_upload, uploaded (with file name, type, width and height in pixels) or expired.
| Parameter | Type | Description |
|---|---|---|
design_upload_id * | string | UPL-... id of the upload |
create_order Place an order
Places a real order that Hoplix prints and ships, with the same checks and prices as an order quote. Nothing is charged: the order is created unpaid and goes into production only after the seller pays it from the Orders page of the Hoplix account (the payment link is also sent by email), unless the account has agreed billing terms. order_reference is mandatory and unique: an existing reference is never ordered twice. With test=true the order is only validated and recorded as a test (TEST-... id).
| Parameter | Type | Description |
|---|---|---|
order_reference * | string | The seller's own unique reference for this order (letters, digits, dot, underscore, hyphen; max 50) |
products * | array | Products to order |
shipping_info * | object | Delivery address |
shipping_mode * | string | Shipping method |
test | boolean | true = test order: validated and priced, nothing is produced or charged |
cancel_order Cancel an order
Cancels an order that is not in production yet; if it was already paid from the wallet the amount goes back to the wallet. Orders in production or shipped cannot be cancelled. Also cancels TEST-... orders.
| Parameter | Type | Description |
|---|---|---|
order_id * | string | Hoplix order id, or a TEST-... id |