Query Pending Task Count

Last updated:2026-10-13 11:33:20

Query Pending Task Count

A third-party platform calls the Query Pending Task Count interface (/api/printer/getTaskCount) to query the open platform for the number of pending orders on a designated printer. The counting scope includes tasks currently printing. It supports querying the stock quantity of a specified channel via the optional channel parameter — used for front-end queue display and kiosk channel management.

Interface Information

Item Value
Endpoint https://www.colorpark.cn/api/printer/getTaskCount
Method POST

Request Parameters

Parameter Sample Value Data Type Required Description
printer_id 500001 string Yes The unique ID assigned to the printer; each print job is assigned a distinct ID.
once 8305 string Yes A random value used when generating the signature (nonce).
time 1646790335 string Yes The timestamp used when generating the signature.
sign 9ce3ce7a3fccaf3d7715bd7e9bb1dc1c string Yes The generated signature. For the generation method, refer to the "Signature Generation" section in the Underlying Methods [Basic Support] document.
channel 1 string No Optional. If left empty, returns data for all channels; if a channel is specified, returns the count for that specific channel.

Response Result

Field Data Type Sample Value Description
code string 0 Result status code: 0 for success, 1 for failure.
msg string Success Result description, e.g., "Success".
data.count string 1 Number of queued tasks (including tasks currently printing; printing tasks are counted).
data.channel list [{"channel":1,"stock_quantity":10}] channel: the channel; stock_quantity: the stock quantity.

Note: In the source, the sample value for data.channel is [{"channel":1","stock_quantity":10}], where the quote around the channel key appears to be missing (should be {"channel":"1"...} or {"channel":1...}). Preserved verbatim per the source.


If a device encounters an unsolvable issue during debugging, please contact the cloud-printing lead to troubleshoot and resolve it. Contact details: Phone: 137-5177-4454 (WeChat same number) Email: info@ColorPark.cn

UV cloud-printing service provider with deep hardware–software integration ® Ruifengcai