postkamer.nl
v1.0.0Print a letter and deliver it by post to every address in an area of the Netherlands.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
estimate_mailing Estimate a mailing
Count the addresses in an area of the Netherlands and price a letter to all of them (printing, envelope and postage included). Creates nothing. Use it to check the area with the user before create_print_job.
| Parameter | Type | Description |
|---|---|---|
area * | object | |
pageCount | integer | Pages in the letter (A4). Omit for a 1-page letter. |
create_print_job Prepare a mailing for the user
Prepare a print job with the area (and optionally the letter) and return reviewUrl: the link the user opens to see the area on the map, change it, upload or check the letter, and pay. Nothing is sent or charged until the user confirms there. The link is valid for 24 hours.
| Parameter | Type | Description |
|---|---|---|
area * | object | |
letter | object | The letter: A4 portrait, top-left address window empty. Omit to let the user upload it on the review page. |
name | string | A name for the mailing the user recognises, e.g. "Bewonersbrief verbouwing Dorpsstraat". |
update_print_job_area Change the area of a prepared mailing
Replace the area of a print job made with create_print_job, while the user has not confirmed it or opened it in their account. The review link stays the same; the user reloads it to see the change.
| Parameter | Type | Description |
|---|---|---|
area * | object | |
jobId * | string | |
name | string | A name for the mailing the user recognises, e.g. "Bewonersbrief verbouwing Dorpsstraat". |
get_print_job Check a prepared mailing
Whether the user has confirmed a print job made with create_print_job. status pending: waiting for the user; in_account: the user opened it signed in and continues there; submitted: confirmed.
| Parameter | Type | Description |
|---|---|---|
jobId * | string |