Mailing & production
Cancelling a mailing
You can cancel a print job before it's printed, and your account is refunded for any mail items that get cancelled. Here's which statuses can still be stopped.
Last reviewed · By Intelliprint Team
You can delete pending items in a confirmed print job, or delete the entire job if it hasn't been confirmed yet. Your account is refunded for the cost of whichever mail items get cancelled.
Node.js
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 it was confirmed, as many letters as possible will have their status set to cancelled.
for (const item of printJob?.letters ?? []) {
console.log(`Letter ${item.id} is: ${item.status}`)
}Which statuses can be cancelled?
- draft — yes, the job hasn't been confirmed yet.
- waiting_to_print — yes, the item hasn't started production.
- printing, enclosing, shipping, sent, returned, cancelled, invalid_address — no, these are all too far along to stop.
See the full parameter reference in the developer docs.