Initiate Print Task: This function is primarily used by third-party platforms to transmit "start printing" commands to the Open Platform via an API interface. Upon receiving the operational command, the Open Platform establishes a connection with the printer to execute the printing operation and synchronously returns the current printing status.
Note: When the device is a desktop model (non-fully self-service) and a secondary confirmation is required to execute a task, this interface must be called again for the device to complete the printing task.
Interface Information
| API Endpoint | https://www.colorpark.cn/api/Printer/startPrint |
|---|---|
| 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 encryption to generate the signature. | | time | 1646790335 | string | Required | The timestamp used during encryption 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 Underlying Methods [Basic Support]. | | taskid | 20000196 | string | Required | The unique ID assigned to the print task. |
Return Results
| Parameter Name | Parameter Name | Data Type | Parameter Value (Example) | Parameter Description | | --- | --- | --- |----| | code | | string | 0 | Return status code: 0 for success, 1 for failure. | | msg | | string | Successfully sent; starting print... | Description of the return result (e.g., "Successfully sent; starting print..."). | | 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. |
If you encounter any unresolved issues during the device debugging process, please contact the Cloud Printing Administrator for troubleshooting assistance and to identify a solution. Contact details are as follows: Phone: 137-5177-4454 [Same number for WeChat] Email: info@ColorPark.cn