To query all print tasks, third-party platforms may invoke the designated interface to retrieve detailed information regarding all print tasks from the Open Platform; the platform will synchronously return the relevant task and order statuses.
Interface Information
| API Endpoint | https://www.colorpark.cn/api/printer/getPrinterTask |
|---|---|
| Request Method | POST |
Request Parameters
| Parameter Name | Parameter Value (Example) | Data Type | Required | Description | | ---- | ---- | :----: | ---- | | printer_id | 500001 | string | Required | The unique ID assigned to the printer; each printer is assigned a distinct number. | | once | 8305 | string | Required | A random value used during the encryption process to generate the signature. | | time | 1646790335 | string | Required | The timestamp used during the encryption process to generate the signature. | | sign | 9ce3ce7a3fccaf3d7715bd7e9bb1dc1c | string | Required | The generated signature; for details on the generation method, please refer to the "Generating Signatures" section within the Underlying Methods [Basic Support] documentation. |
Return Results
| Parameter Name | Sub-parameter Name | Data Type | Parameter Value (Example) | Parameter Description | | --- | --- | --- |----| | code | | string| 0 | Return status code: 0 for success, 1 for failure. | | msg | | string| Submission successful | Description of the return result (e.g., "Submission successful"). | | data | taskid | string | 20000196 | Unique identifier for the print task. | || printer_id | string | 500001 | Unique ID assigned to the printer; each printer is assigned a distinct number. | || order_id | string | 164679033555822 | Order number from the third-party platform; generated by the third-party platform (accepts a maximum of 32 characters). | || status | string | 0 | Print task status: 0 (Waiting to print), 1 (Printing), 2 (Print complete), 3 (Print cancelled), 4 (Print error). | || name | string | Pearl Milk Tea | Product name (e.g., "Pearl Milk Tea," "Boba Milk Tea"). | ||file | string|https://img.colorpark.cn/api/render/80301001651287933588.png |The URL address of the image.| ||callback | string|http://www.abc.com/api/callback |The callback URL for Party A's system to receive print notifications—such as notifications for print start, completion, cancellation, and failure.| ||create_time | string|2022-03-09 14:19:30 |The time the print task was created| ||start_time | string|2022-03-09 14:19:30 |The time the print task started printing| ||finish_time | string|2022-03-09 14:19:30 |The time the print task finished printing|
If you encounter any unresolved issues during the device commissioning process, please contact the Cloud Printing Administrator for troubleshooting and assistance in finding a solution. Contact details are as follows: Phone: 137-5177-4454 (Same number for WeChat) Email: info@ColorPark.cn