Querying the Number of Pending Print Tasks: Third-party platforms can utilize an API to query the Open Platform for the current number of orders pending printing on a specific device, including tasks currently in progress.
Interface Information
| API Endpoint | https://www.colorpark.cn/api/printer/getTaskCount |
|---|---|
| Request Method | POST |
Request Parameters
| Parameter Name | Parameter Value (Example) | Data Type | Required | Description | | ---- | ---- | ---- | ---- | | printer_id | 500001 | string | Yes | The unique ID assigned to the printer; each printer is assigned a distinct number. | | once | 8305 | string | Yes | A random value used during the encryption process to generate the signature. | | time | 1646790335 | string | Yes | The timestamp used during the encryption process to generate the signature. | | sign | 9ce3ce7a3fccaf3d7715bd7e9bb1dc1c | string | Yes | The generated signature; for details on the generation method, please refer to the "Generating Signatures" section within the Underlying Methods [Basic Support] documentation. | | channel | 1 | string | No | Optional field: If left blank, data for all channels will be returned; if a specific channel number is provided, data for that specific channel will be returned. |
Return Results
| Parameter Name | Sub-parameter | Data Type | Parameter Value (Example) | Description |
|---|---|---|---|---|
| code | string | 0 | Status code for the returned result; 0 indicates success, 1 indicates failure. | |
| msg | string | Success | Description of the returned result (e.g., "Success"). | |
| data | count | string | 1 | The number of tasks currently in the queue (including tasks currently being printed; tasks in the process of printing are included in this count). |
| data | channel | list | [{"channel":1,"stock_quantity":10}] | channel: Dispensing channel; stock_quantity: Current stock quantity. |
If you encounter any unresolved issues during the device debugging process, please contact the Cloud Printing representative for troubleshooting and assistance in finding a solution. Contact details are as follows: Phone: 137-5177-4454 (Available on WeChat) Email: info@ColorPark.cn