Cancel a print job
curl --request POST \
--url https://api.printeasy.adfinite.com/v1/printjobs/{id}/cancel \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.printeasy.adfinite.com/v1/printjobs/{id}/cancel', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.printeasy.adfinite.com/v1/printjobs/{id}/cancel"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"computerId": "0192f1a0-7c00-7000-8000-0000000000cc",
"contentType": "pdf_uri",
"createdAt": "2026-10-14T10:00:00.000Z",
"expireAfter": 86400,
"expiresAt": "2026-10-15T10:00:00.000Z",
"fileSha256": "9f2c4a1e0b7d3f5a8c6e2d4b1a9f7e5c3b1d9f7a5e3c1b9d7f5a3e1c9b7d5f3a",
"fileSize": 48213,
"finishedAt": "2026-10-14T10:00:09.000Z",
"id": "0192f1a0-7c00-7000-8000-0000000000aa",
"mode": "live",
"options": {
"copies": 1,
"paper": "A4"
},
"printerId": "0192f1a0-7c00-7000-8000-0000000000bb",
"printingAt": "2026-10-14T10:00:03.000Z",
"qty": 1,
"receivedAt": "2026-10-14T10:00:02.000Z",
"sentAt": "2026-10-14T10:00:01.000Z",
"source": "api",
"state": "done",
"stateMessage": null,
"title": "Invoice 1042"
}{
"error": {
"code": "not_found",
"message": "Printer not found",
"request_id": "4f9c2a7e-1b3d-4c5e-8f6a-0b1c2d3e4f5a"
}
}{
"error": {
"code": "not_found",
"message": "Printer not found",
"request_id": "4f9c2a7e-1b3d-4c5e-8f6a-0b1c2d3e4f5a"
}
}{
"error": {
"code": "not_found",
"message": "Printer not found",
"request_id": "4f9c2a7e-1b3d-4c5e-8f6a-0b1c2d3e4f5a"
}
}{
"error": {
"code": "not_found",
"message": "Printer not found",
"request_id": "4f9c2a7e-1b3d-4c5e-8f6a-0b1c2d3e4f5a"
}
}{
"error": {
"code": "not_found",
"message": "Printer not found",
"request_id": "4f9c2a7e-1b3d-4c5e-8f6a-0b1c2d3e4f5a"
}
}{
"error": {
"code": "not_found",
"message": "Printer not found",
"request_id": "4f9c2a7e-1b3d-4c5e-8f6a-0b1c2d3e4f5a"
}
}Print jobs
Cancel a print job
Cancels a print job that is still queued or sent; the agent drops it if it already has it. Jobs the printer has received can no longer be cancelled.
POST
/
v1
/
printjobs
/
{id}
/
cancel
Cancel a print job
curl --request POST \
--url https://api.printeasy.adfinite.com/v1/printjobs/{id}/cancel \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.printeasy.adfinite.com/v1/printjobs/{id}/cancel', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.printeasy.adfinite.com/v1/printjobs/{id}/cancel"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"computerId": "0192f1a0-7c00-7000-8000-0000000000cc",
"contentType": "pdf_uri",
"createdAt": "2026-10-14T10:00:00.000Z",
"expireAfter": 86400,
"expiresAt": "2026-10-15T10:00:00.000Z",
"fileSha256": "9f2c4a1e0b7d3f5a8c6e2d4b1a9f7e5c3b1d9f7a5e3c1b9d7f5a3e1c9b7d5f3a",
"fileSize": 48213,
"finishedAt": "2026-10-14T10:00:09.000Z",
"id": "0192f1a0-7c00-7000-8000-0000000000aa",
"mode": "live",
"options": {
"copies": 1,
"paper": "A4"
},
"printerId": "0192f1a0-7c00-7000-8000-0000000000bb",
"printingAt": "2026-10-14T10:00:03.000Z",
"qty": 1,
"receivedAt": "2026-10-14T10:00:02.000Z",
"sentAt": "2026-10-14T10:00:01.000Z",
"source": "api",
"state": "done",
"stateMessage": null,
"title": "Invoice 1042"
}{
"error": {
"code": "not_found",
"message": "Printer not found",
"request_id": "4f9c2a7e-1b3d-4c5e-8f6a-0b1c2d3e4f5a"
}
}{
"error": {
"code": "not_found",
"message": "Printer not found",
"request_id": "4f9c2a7e-1b3d-4c5e-8f6a-0b1c2d3e4f5a"
}
}{
"error": {
"code": "not_found",
"message": "Printer not found",
"request_id": "4f9c2a7e-1b3d-4c5e-8f6a-0b1c2d3e4f5a"
}
}{
"error": {
"code": "not_found",
"message": "Printer not found",
"request_id": "4f9c2a7e-1b3d-4c5e-8f6a-0b1c2d3e4f5a"
}
}{
"error": {
"code": "not_found",
"message": "Printer not found",
"request_id": "4f9c2a7e-1b3d-4c5e-8f6a-0b1c2d3e4f5a"
}
}{
"error": {
"code": "not_found",
"message": "Printer not found",
"request_id": "4f9c2a7e-1b3d-4c5e-8f6a-0b1c2d3e4f5a"
}
}Authorizations
ApiKeyAuthBasicAuth
Send Authorization: Bearer <API key>. Use a pe_test_ key in the playground; it only reaches virtual test printers.
Path Parameters
Response
The cancelled job
Available options:
pdf_uri, pdf_base64, raw_uri, raw_base64 Available options:
live, test Show child attributes
Show child attributes
Available options:
queued, sent, received, printing, done, error, cancelled, expired Was this page helpful?