Ink Level Inquiry: Third-party platforms can query the current printer ink levels by calling a dedicated API, enabling agents to monitor this information in real time.
Interface Information
| API Endpoint | https://www.colorpark.cn/api/printer/getInk |
|---|---|
| Request Method | POST |
Request Parameters
| Parameter Name | Parameter Value (Example) | Data Type | Required | Description | | ---- | ---- | :----: | ---- | | printer_id | 500001 | string | yes | A unique ID number assigned by the printer; each printer is assigned a distinct number. | | once | 8305 | string| yes | Encrypts the random value used to generate the signature. | | time | 1646790335 | string| yes | The timestamp used when generating a cryptographic signature. | | sign | 9ce3ce7a3fccaf3d7715bd7e9bb1dc1c | string| yes | For instructions on how to generate the signature, please refer to the "Generating Signatures" section within the Underlying Methods [Basic Support] documentation. |
Return Results
| Parameter Name | Data Type | Parameter Value (Example) | Parameter Description |
|---|---|---|---|
| code | string | 0 | Status code for the returned result; 0 indicates success, 400 indicates failure. |
| msg | string | Success | Description of the returned result (e.g., "Success"). |
| data | Key-Value Pair | {"C":1,"M":1,"Y":1,"K":1,"W":1,"V":1} | Ink level information: 1 = Insufficient; 0 = Sufficient. |
| C | 0 | Cyan: 1 = Insufficient; 0 = Sufficient. | |
| M | 1 | Magenta: 1 = Insufficient; 0 = Sufficient. | |
| Y | 0 | Yellow: 1 = Insufficient; 0 = Sufficient. | |
| K | 0 | Black: 1 = Insufficient; 0 = Sufficient. | |
| W | 0 | White: 1 = Insufficient; 0 = Sufficient. | |
| V | 0 | Varnish: 1 = Insufficient; 0 = Sufficient. |
If you encounter any unresolved issues during the device debugging process, please contact the Cloud Printing representative for troubleshooting and assistance in finding a solution. Contact details are as follows: Phone: 137-5177-4454 (Available on WeChat) Email:info@ColorPark.cn