Third-party platforms can invoke an interface to send commands to the Open Platform, thereby canceling specific tasks that are currently in the "preparing" or "printing" status; upon processing the request, the platform will synchronously return the cancellation result.
Interface Information
| API Endpoint | https://www.colorpark.cn/api/Printer/cancelPrint |
|---|---|
| Request Method | POST |
Request Parameters
| Parameter Name | Parameter Value (Example) | Data Type | Required | Parameter 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 encryption to generate the signature. | | time | 1646790335 | string | Yes | The timestamp used during encryption 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 Underlying Methods [Basic Support]. | | taskid | 20000196 | string | Yes | The unique ID assigned to the print task. |
Return Results
| Parameter Name | Parameter Name | Data Type | Parameter Value (Example) | Parameter Description |
| --- | --- | --- |----|
| code | | string| 0 | Returns the result status code; 0 for success, 1 for failure |
| msg | | string| Successful retrieval | Returns a description of the result, such as: Successful retrieval |
|data|taskid| string|20000196 | The unique ID of the print task |
||printer_id | string|500001 | The unique ID assigned to the printer; each printer is assigned a different number |
||status | string|3 | The status of the print task; 3: Printing canceled |
*If you encounter problems that cannot be resolved during device debugging, you can contact the cloud printing manager to troubleshoot and find a solution. Contact information is as follows:
Tel: 137-5177-4454 (WeChat ID same as phone number)
Email: info@ColorPark.cn*