Print from Make: PDFs from any scenario to paper
One module in your scenario sends a PDF to a role such as invoice or label. The agent on the PC next to the printer prints it, and Make gets back “printed”, or “failed” with the reason, for example paper out or printer missing.
What you get
- The same idempotency key never prints twice, so retries are safe.
- Every job has a deadline (15 minutes by default). After a disruption, no pile of old jobs prints at once.
- Printers and trays are set per role in the console. The scenario only names the role.
Set it up
1. In the console, add a station (install the agent on the PC next to the printers) and create your roles.
2. Create an API key (pck_…).
3. In Make, add the module “HTTP › Make a request” as shown below. A Printaloft app for Make is coming soon.
Today: HTTP › Make a request
Method POST, header Authorization with your key, body type JSON:
POST https://api.printaloft.com/v1/jobs?wait=30
Authorization: Bearer pck_…
Body type: JSON, Parse response: Yes
{
"idempotencyKey": "order-{{1.orderNumber}}-invoice-1",
"role": "invoice",
"pdfBase64": "{{base64(2.data)}}",
"fileName": "{{2.fileName}}"
}- Wait at most 30 seconds in the request, because Make stops after 40 seconds. If the job is not final yet, ask again with GET /v1/jobs/<jobId>?wait=30.
- Always set the idempotency key from your data, so a repeated run never prints twice.
The answer
You get ok, accepted, jobId, status, message, printer and stationOnline.
status is printed, failed, queued, delivered, spooled, cancelled or expired.
Cancel a job with POST /v1/jobs/<jobId>/cancel.
Coming soon: the Printaloft app for Make
Modules Print a PDF, Get a print job, Cancel a print job, List roles and Make an API call. The app is built and not published yet. Write to us and we tell you when it is out.