Skip to content

General

Cancelling Print Jobs

You can cancel a print job before it is printed.

Node.js SDK
Node.js
import Intelliprint from 'intelliprint'

const ip = new Intelliprint('your-api-key-here')

const printJob = await ip.prints.delete('print-job-id')

// If this print job was unconfirmed, `deleted` will be `true`.
console.log(`Print job deleted: ${printJob.deleted}`)

// If this print job was confirmed, as many `letters` as possible will have their status set to `cancelled`.

// Check the status of each letter in the print job.
for (const item of printJob?.letters ?? []) {
  console.log(`Letter ${item.id} is: ${item.status}`)
}

Which Statuses Can Be Cancelled?

Status
draft
Description
The print job has not been confirmed yet.
Can be cancelled?
Yes ✅
Status
waiting_to_print
Description
The mail item is waiting to be printed.
Can be cancelled?
Yes ✅
Status
printing
Description
The mail item is being printed.
Can be cancelled?
No
Status
enclosing
Description
The mail item is being enclosed.
Can be cancelled?
No
Status
shipping
Description
The mail item is waiting to be picked up by the postage service.
Can be cancelled?
No
Status
sent
Description
The mail item has been sent.
Can be cancelled?
No
Status
returned
Description
The mail item has been returned back to Intelliprint. A return reason and date is attached in the returned field of the mail item.
Can be cancelled?
No
Status
cancelled
Description
The mail item has been cancelled by the user.
Can be cancelled?
No
Status
invalid_address
Description
The mail item was refused to be picked up by the postage service as the address was deemed invalid by them. This status is very rare and only possible for tracked postage services.
Can be cancelled?
No