Cancel Specified Print Job
The customer cancelled this order — cancel the specified job; do not treat this operation as a payment refund.
Before You Start
Prepare the device credentials and the returned task ID, and verify the current job status first.
The pause and resume interfaces use task_id; the cancel and query interfaces use taskid. Fill in according to each document's body text.
Third-party platforms call the Cancel Specified Print Job interface (
/api/Printer/cancelPrint) to send a command to the open platform, cancelling a job that is in the preparing or printing state on the designated device. After processing, the platform synchronously returns the cancellation result.
Interface Information
| Item | Value |
|---|---|
| Endpoint | https://www.colorpark.cn/api/Printer/cancelPrint |
| Method | POST |
Request Parameters
| Parameter | Example | Type | Required | Description |
|---|---|---|---|---|
| printer_id | 500001 | string | Yes | The unique ID assigned to the printer; each printer gets a different number. |
| once | 8305 | string | Yes | A random value (nonce) used when generating the encrypted signature. |
| time | 1646790335 | string | Yes | The timestamp used when generating the encrypted signature. |
| sign | 9ce3ce7a3fccaf3d7715bd7e9bb1dc1c | string | Yes | The generated signature. See the "Generate Signature" section under Underlying Methods [Basic Support]. |
| taskid | 20000196 | string | Yes | The unique ID of the assigned print job. |
Response
| Field | Type | Example | Description |
|---|---|---|---|
| code | string | 0 | Result status code. 0 on success, 1 on failure. |
| msg | string | retrieved successfully | Result description, e.g. "retrieved successfully". |
| data.taskid | string | 20000196 | The unique ID of the print job. |
| data.printer_id | string | 500001 | The unique ID assigned to the printer. |
| data.status | string | 3 | Print-job status; 3 = cancelled. |
If a device encounters an unresolved issue during debugging, contact the cloud-printing responsible person for troubleshooting. Phone: 137-5177-4454 (WeChat same number); Email: info@ColorPark.cn
© Ruifengcai (瑞丰彩) — UV cloud-printing service provider with deep hardware–software integration