Printer Status Callback: Based on the agent's specific application scenarios outlined below, configure the appropriate callback URL. Whenever the printer's status is updated, the Open Platform will push the task information to this address in real-time to facilitate subsequent processing.
Note: This feature is available only after upgrading to or installing the latest version of the Cloud Print client. (You may verify the client version with the official technical support team.)
Callback URL
| API Endpoint Examples | http://XXXX.com/api/callback Configure the corresponding addresses based on different application scenarios. |
|---|---|
| Application Scenario 1 | For agent integration development, service providers transmit real-time printer status messages to this interface; the agent is responsible for processing these various messages, while the full endpoint URL is customized by the client. |
| Application Scenario 2 | Agents do not integrate directly via development; instead, they view the latest printer tasks and statuses on the service provider's system platform and configure the callback URL provided by the service provider.https://tprint.colorpark.cn/api/OpenCallBack/printerCallBack |
| Application Scenario 3 | If the value is null, no callback is sent, and no device data is updated on any platform. |
Callback Result
| Parameter Name | Data Type | Parameter Value (Example) | Parameter Description | | --- | --- |----| | printer_id | string | 500001 | The ID of the printer assigned to the print job | | once | string | 8305 | A random value sent with each request | | time | string | 1646790335 | The timestamp at the time of sending the request | | sign | string | 9ce3ce7a3fccaf3d7715bd7e9bb1dc1c | Signature | | status | string | 1 | Printer status (pushed synchronously with print task callbacks) 0: Offline 1: Idle 2: Printing 3: Fault 4: Maintenance | | msg | string | Idle | Description of the printer status | | fault_status | string | 1 | Fault status: 1-Feeding failure 2-Dispensing failure 3-Homing failure 4-Printer reset failure 5-System error 6-Printing error 7-Lowering failure 8-Unknown error | | fault_status_msg | string | Feeding failure | Description of the fault | | stock_status | string | 1 | Stock status: 1-Sufficient stock 2-Insufficient stock | | stock_status_msg | string | Insufficient stock | Description of the stock status | | ink_status | string | 1 | Ink level status: 1-Sufficient ink 2-Insufficient ink | | ink_status_msg | string | Sufficient ink | Description of the ink level status | | error_status | string | 1 | Error status: 1-Network error 2-Printing error 3-System error 4-Unknown error | | error_status_msg | string | Network error | Description of the error status | | other_status | string | -1 | Other status: 1-Machine currently cleaning 2-Machine cleaning complete 3-Machine cleaning cancelled | | other_status_msg | string | Machine currently cleaning | Description of the other status | | phone | | string | 19900990000 | Device Maintenance Mobile Number | | notice_time | string | 2022-07-19 17:08:30 | Notification Time |
If you encounter any unresolved issues during the device debugging process, please contact the Cloud Printing representative 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