Hoplix Print on Demand

v1.1.2
com.hoplix/print-on-demand Checked 3 days ago Published 25 days ago

Print-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.

ParameterTypeDescription
limitintegerMaximum number of results (default 20)
offsetintegerNumber of results to skip, for paging (default 0)
searchstringText 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.

ParameterTypeDescription
product_code *stringCatalogue 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.

ParameterTypeDescription
limitintegerMaximum number of results (default 20)
offsetintegerNumber of results to skip, for paging (default 0)
searchstringText to look for in campaign name, id or URL
statusstringOnly 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.

ParameterTypeDescription
campaign_id *stringCampaign 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.

ParameterTypeDescription
limitintegerMaximum number of results (default 20)
offsetintegerNumber of results to skip, for paging (default 0)
statusstringOnly orders in this status
testbooleantrue 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-...).

ParameterTypeDescription
order_id *stringHoplix 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).

ParameterTypeDescription
order_idstringHoplix order id, or a TEST-... id
order_referencestringThe seller's own order reference given when the order was created
testbooleanWith 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.

ParameterTypeDescription
shipping_info *objectDelivery 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.

ParameterTypeDescription
products *arrayProducts to order
shipping_info *objectDelivery address
shipping_mode *stringShipping 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.

ParameterTypeDescription
name *stringCampaign name
product_code *stringCatalogue product code of the main product
product_colors *arrayColours of the main product, from the product colours
product_price *numberSelling price in EUR, VAT included; for public campaigns at least the base cost (base-cost-back when printing front and back)
additional_productsarrayOther products with the same design, among the additional products of the main product
back_design_upload_idstringUPL-... id of an uploaded image, used as back design (alternative to back_image_url)
back_image_urlstringPublic http(s) URL of the back design (PNG or JPG), only for products with two print sides
descriptionstringCampaign description shown on the public page (defaults to the name)
front_design_upload_idstringUPL-... id of an uploaded image, used as front design (alternative to front_image_url)
front_image_urlstringPublic http(s) URL of the front design (PNG or JPG)
privatebooleantrue = private campaign, only for the seller's own orders (default false)
urlstringPublic 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.

ParameterTypeDescription
design_upload_id *stringUPL-... 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).

ParameterTypeDescription
order_reference *stringThe seller's own unique reference for this order (letters, digits, dot, underscore, hyphen; max 50)
products *arrayProducts to order
shipping_info *objectDelivery address
shipping_mode *stringShipping method
testbooleantrue = 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.

ParameterTypeDescription
order_id *stringHoplix order id, or a TEST-... id