{"info":{"_postman_id":"30d9da4f-15c3-4b6a-aae1-d3a329dc6b13","name":"PostGrid Print & Mail","description":"<html><head></head><body><p>A simple API to send letters, postcards, and cheques. You can integrate this API to automate your transactional mailings and/or provide offline sending capabilities to your users.</p>\n<p>If you just want to perform one-off sends, you can also do so directly from the API dashboard at <a href=\"https://dashboard.postgrid.com\">https://dashboard.postgrid.com</a></p>\n<p>Take a look at our <a href=\"https://www.postgrid.com/guides/print-mail/\">guides</a> for information on how to get started.</p>\n<h1 id=\"test-mode\">Test Mode</h1>\n<p>Every user in your organization will be provided 2 API keys which they can access from their settings: the <em>test</em> key and the <em>live</em> key. Any API calls made with the test key operate in an isolated sandbox. None of the resources you manage in test mode will affect your live environment, and vice versa.</p>\n<p>You can try out your integration using the test API keys. There is no difference other than the fact that we do not verify addresses in test mode. Also, more importantly, <strong>none of the orders made in test mode will be sent out</strong>. Once you've tested your integration, you can switch to the live API key and it will <em>just work</em>.</p>\n<p>Test orders will also transition from <code>ready</code> to <code>completed</code> at the same time (equivalent) live orders would transition into <code>printing</code>.</p>\n<h1 id=\"design\">Design</h1>\n<p>There are two primary ways of providing printable content to this API: you can either send predesigned PDFs or provide HTML with personalizable variables. In either case, the address information will automatically be stamped on the final mailing.</p>\n<h3 id=\"letters\">Letters</h3>\n<p>For letters, the destination and return addresses are stamped on the first page of your mailing by default. Refer to the following table:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Country</th>\n<th>Guideline</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Canada</td>\n<td>Click <a href=\"https://pg-prod-bucket-1.s3.amazonaws.com/assets/canada_letter_guideline.pdf\">here</a></td>\n</tr>\n<tr>\n<td>United Kingdom</td>\n<td>Click <a href=\"https://pg-prod-bucket-1.s3.amazonaws.com/assets/letter_guideline_uk.pdf\">here</a></td>\n</tr>\n<tr>\n<td>US &amp; Intl.</td>\n<td>Click <a href=\"https://pg-prod-bucket-1.s3.amazonaws.com/assets/letter_guideline.pdf\">here</a></td>\n</tr>\n<tr>\n<td>Australia</td>\n<td>Click <a href=\"https://pg-prod-bucket-1.s3.amazonaws.com/assets/letter_guideline_au.pdf\">here</a></td>\n</tr>\n</tbody>\n</table>\n</div><div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Country</th>\n<th>Page Size</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Canada</td>\n<td>8.5 x 11 inches</td>\n</tr>\n<tr>\n<td>United Kingdom</td>\n<td>8.3 x 11.7 inches</td>\n</tr>\n<tr>\n<td>US &amp; Intl.</td>\n<td>8.5 x 11 inches</td>\n</tr>\n<tr>\n<td>Australia</td>\n<td>8.3 x 11.7 inches</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>PostGrid will automatically cancel orders if it detects that there is content underneath the address region</strong>. If you are not able to accommodate the address region in your design, you can also insert a blank page just for the address via the letters API <code>addressPlacement</code> parameter.</p>\n<h3 id=\"plastic-card-inserts\">Plastic Card Inserts</h3>\n<p>If you have the plastic card inserts feature enabled, your plastic card templates/PDF files must follow the following guideline: Click <a href=\"https://pg-prod-bucket-1.s3.amazonaws.com/assets/plastic_card_guideline_standard.pdf\">here.</a></p>\n<h3 id=\"postcards\">Postcards</h3>\n<p>For postcards, the guideline varies depending on size and country. Refer to the following table</p>\n<p>Canada:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Size</th>\n<th>Guideline</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>6x4</code></td>\n<td>Click <a href=\"https://pg-prod-bucket-1.s3.amazonaws.com/assets/postcard_guideline_6x4_ca.pdf\">here</a> to view the guideline</td>\n</tr>\n<tr>\n<td><code>9x6</code></td>\n<td>Click <a href=\"https://pg-prod-bucket-1.s3.amazonaws.com/assets/postcard_guideline_9x6_ca.pdf\">here</a> to view the guideline</td>\n</tr>\n<tr>\n<td><code>11x6</code></td>\n<td>Click <a href=\"https://pg-prod-bucket-1.s3.amazonaws.com/assets/postcard_guideline_11x6_ca.pdf\">here</a> to view the guideline</td>\n</tr>\n</tbody>\n</table>\n</div><p>United Kingdom &amp; Europe:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Size</th>\n<th>Guideline</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>6x4</code></td>\n<td>Click <a href=\"https://pg-prod-bucket-1.s3.amazonaws.com/assets/uk_postcard_guideline_6x4.pdf\">here</a> to view the guideline</td>\n</tr>\n<tr>\n<td><code>9x6</code></td>\n<td>Click <a href=\"https://pg-prod-bucket-1.s3.amazonaws.com/assets/uk_postcard_guideline_9x6.pdf\">here</a> to view the guideline</td>\n</tr>\n<tr>\n<td><code>11x6</code></td>\n<td>Click <a href=\"https://pg-prod-bucket-1.s3.amazonaws.com/assets/uk_postcard_guideline_11x6.pdf\">here</a> to view the guideline</td>\n</tr>\n</tbody>\n</table>\n</div><p><em>Note that for the UK postcards, the red zone's width is half the width of the postcard itself.</em></p>\n<p>US &amp; International:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Size</th>\n<th>Guideline</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>6x4</code></td>\n<td>Click <a href=\"https://pg-prod-bucket-1.s3.amazonaws.com/assets/postcard_guideline_6x4.pdf\">here</a> to view the guideline</td>\n</tr>\n<tr>\n<td><code>9x6</code></td>\n<td>Click <a href=\"https://pg-prod-bucket-1.s3.amazonaws.com/assets/postcard_guideline_9x6.pdf\">here</a> to view the guideline</td>\n</tr>\n<tr>\n<td><code>11x6</code></td>\n<td>Click <a href=\"https://pg-prod-bucket-1.s3.amazonaws.com/assets/postcard_guideline_11x6.pdf\">here</a> to view the guideline</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"cheques\">Cheques</h3>\n<p>For cheques, the <code>message</code> HTML can cover 7 inches from the top of the first page to the top of the cheque. There is a <code>0.3in</code> margin applied to this message as it is required for optimal printing.</p>\n<h3 id=\"self-mailers\">Self Mailers</h3>\n<p>For self mailers, the guideline varies depending on the size/type of self mailer you're sending:</p>\n<p>US &amp; International:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Size</th>\n<th>Guideline</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>8.5x11_bifold</code></td>\n<td>Click <a href=\"https://pg-prod-bucket-1.s3.amazonaws.com/assets/bifold_guideline.pdf\">here</a> to view the guideline</td>\n</tr>\n<tr>\n<td><code>8.5x11_trifold</code></td>\n<td>Click <a href=\"https://pg-prod-bucket-1.s3.us-east-1.amazonaws.com/assets/trifold_guideline.pdf\">here </a> to view the guideline</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"integrations\">Integrations</h1>\n<p>Click <a href=\"https://zapier.com/developer/public-invite/122621/b21ef467fae16f31201738815f0055a7/\">here</a> to get access to our Zapier integration. Zapier will enable you to connect over 1300 apps with PostGrid's print &amp; mail capabilities without writing any code.</p>\n<h1 id=\"tracking\">Tracking</h1>\n<p>Every order contains a <code>status</code> field with one of the following values</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Status</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>ready</code></td>\n<td>The order was created successfully and will be printed on <code>sendDate</code></td>\n</tr>\n<tr>\n<td><code>printing</code></td>\n<td>The order has been given to a printer and will be processed within our SLA</td>\n</tr>\n<tr>\n<td><code>processed_for_delivery</code></td>\n<td>The order has been handed off to the local postal service</td>\n</tr>\n<tr>\n<td><code>completed</code></td>\n<td>The order has most likely been delivered. This is an approximation.</td>\n</tr>\n<tr>\n<td><code>cancelled</code></td>\n<td>The order has been cancelled and will never be sent out</td>\n</tr>\n</tbody>\n</table>\n</div><p>See the intelligent-mail tracking section below for more detailed tracking information that we provide in the US.</p>\n<h1 id=\"intelligent-mail-tracking\">Intelligent-Mail Tracking</h1>\n<p>Live orders <strong>destined for the US</strong> have an <code>imbStatus</code> field added to them once they are processed at a USPS facility. This field has one of the following values</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Status</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>entered_mail_stream</code></td>\n<td>The order has entered a USPS facility.</td>\n</tr>\n<tr>\n<td><code>out_for_delivery</code></td>\n<td>The order has been processed at its final USPS facility and will deliver within a day.</td>\n</tr>\n<tr>\n<td><code>returned_to_sender</code></td>\n<td>The order has been returned to the sender.</td>\n</tr>\n</tbody>\n</table>\n</div><p>Additionally, the fields <code>imbDate</code> and <code>imbZIPCode</code> are included to provide more details about the mailing's journey.</p>\n<p>The <code>imbDate</code> represents the date when the mailing was last scanned at a USPS facility, and the <code>imbZIPCode</code> indicates the postal code of that facility. These fields are updated as your order progresses through the USPS processing stages.</p>\n<h1 id=\"mailing-class\">Mailing Class</h1>\n<p>By default, all mail is sent as First Class or the fastest non-express postage available in the destination country. You can override this by supplying a specific <code>mailingClass</code> value. For instance, for a lower postage you can supply a <code>mailingClass</code> parameter with value of <code>standard_class</code> to your API calls.</p>\n<p>The table below is an exhaustive list of the possible <code>mailingClass</code> values.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Mailing Class</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>first_class</code></td>\n<td>Generic first class mail. A suitable carrier will be automatically chosen to send the first class mail.</td>\n</tr>\n<tr>\n<td><code>standard_class</code></td>\n<td>Generic standard class mail. A suitable carrier will be automatically chosen to send the standard class mail</td>\n</tr>\n<tr>\n<td><code>express</code></td>\n<td>Generic express mail. A suitable carrier will be automatically chosen to send the express mail.</td>\n</tr>\n<tr>\n<td><code>certified</code></td>\n<td>Generic certified mail. A suitable carrier will be automatically chosen to send the certified mail. See <a href=\"#certified-and-registered-mail\">Certified and Registered Mail</a> for more information.</td>\n</tr>\n<tr>\n<td><code>certified_return_receipt</code></td>\n<td>Generic certified mail with return receipt. A suitable carrier will be automatically chosen to send the certified mail with return receipt. See <a href=\"#certified-and-registered-mail\">Certified and Registered Mail</a> for more information.</td>\n</tr>\n<tr>\n<td><code>registered</code></td>\n<td>Generic registered mail. A suitable carrier will be automatically chosen to send the registered mail. See <a href=\"#certified-and-registered-mail\">Certified and Registered Mail</a> for more information.</td>\n</tr>\n<tr>\n<td><code>usps_first_class</code></td>\n<td>First class mail sent through USPS.</td>\n</tr>\n<tr>\n<td><code>usps_standard_class</code></td>\n<td>Standard class mail sent through USPS.</td>\n</tr>\n<tr>\n<td><code>usps_express_3_day</code></td>\n<td>USPS Priority Mail (2-3 day); Expedited USPS shipping tracking.</td>\n</tr>\n<tr>\n<td><code>usps_first_class_certified</code></td>\n<td>First class certified mail sent through USPS. See <a href=\"#certified-and-registered-mail\">Certified and Registered Mail</a> for more information.</td>\n</tr>\n<tr>\n<td><code>usps_first_class_certified_return_receipt</code></td>\n<td>First class certified mail with return receipt sent through USPS. See <a href=\"#certified-and-registered-mail\">Certified and Registered Mail</a> for more information.</td>\n</tr>\n<tr>\n<td><code>ca_post_lettermail</code></td>\n<td>Lettermail mail sent through Canada Post.</td>\n</tr>\n<tr>\n<td><code>ca_post_personalized</code></td>\n<td>Personailzed mail sent through Canada Post.</td>\n</tr>\n<tr>\n<td><code>ca_post_registered</code></td>\n<td>Generic registered mail sent through Canada Post.</td>\n</tr>\n<tr>\n<td><code>ca_post_expedited_with_signature</code></td>\n<td>Expedited mail with signature sent through Canada Post.</td>\n</tr>\n<tr>\n<td><code>ca_post_expedited</code></td>\n<td>Expedited mail sent through Canada Post</td>\n</tr>\n<tr>\n<td><code>ca_post_xpresspost_with_signature</code></td>\n<td>Xpresspost mail with signature sent through Canada Post.</td>\n</tr>\n<tr>\n<td><code>ca_post_xpresspost</code></td>\n<td>Xpresspost mail sent through Canada Post.</td>\n</tr>\n<tr>\n<td><code>royal_mail_first_class</code></td>\n<td>First class mail sent through Royal Mail.</td>\n</tr>\n<tr>\n<td><code>royal_mail_standard_class</code></td>\n<td>Standard class mail sent through Royal Mail.</td>\n</tr>\n<tr>\n<td><code>au_post_regular</code></td>\n<td>Regular class mail sent through Australian Post.</td>\n</tr>\n<tr>\n<td><code>ups_express_overnight</code></td>\n<td>Overnight express mail sent through UPS; only supported in Canada at the moment</td>\n</tr>\n<tr>\n<td><code>ups_express_2_day</code></td>\n<td>2-day express mail sent through UPS; only supported in Canada at the moment</td>\n</tr>\n<tr>\n<td><code>ups_express_3_day</code></td>\n<td>3-day express mail sent through UPS; only supported in Canada at the moment</td>\n</tr>\n<tr>\n<td><code>ups_express_3_day_signature_confirmation</code></td>\n<td>3-day express mail sent through UPS; only supported in Canada at the moment</td>\n</tr>\n<tr>\n<td><code>ups_express_3_day_adult_signature_confirmation</code></td>\n<td>3-day express mail sent through UPS; only supported in Canada at the moment</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"letter-size\">Letter Size</h1>\n<p>By default, the letter size will be chosen based on the destination country. You can override this to get a specific letter size by supplying a <code>size</code> parameter with one of the other size options <code>us_letter</code>, <code>us_legal</code>, <code>a4</code>.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Country</strong></th>\n<th><strong>Allowed Options</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>US</td>\n<td><code>us_letter</code></td>\n</tr>\n<tr>\n<td>UK</td>\n<td><code>a4</code></td>\n</tr>\n<tr>\n<td>Rest of the world</td>\n<td><code>us_letter</code></td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"cheque-size\">Cheque Size</h1>\n<p>By default, the cheque size will be chosen based on the destination country. You can override this to get a specific cheque size by supplying a <code>size</code> parameter with one of the other size options <code>us_letter</code> or <code>us_legal</code>.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Country</strong></th>\n<th><strong>Allowed Options</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>US</td>\n<td><code>us_letter</code></td>\n</tr>\n<tr>\n<td>Rest of the world</td>\n<td><code>us_letter</code></td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"cancellation\">Cancellation</h1>\n<p>You can cancel orders while they are still in the <code>ready</code> status. For orders scheduled in advance, this typically means you can cancel them until 12AM eastern time on its <code>sendDate</code>. For orders that are scheduled to send ASAP, you should be able to cancel until 12AM eastern time on the following day.</p>\n<p>For example, if I create an order without a <code>sendDate</code> (i.e. send ASAP) at 3PM eastern time on <code>2020-09-14</code>, I can cancel it until 12AM eastern time on <code>2020-09-15</code>.</p>\n<h1 id=\"authorization\">Authorization</h1>\n<p>All requests here can be authorized via an <code>x-api-key</code> header. If you're using <code>cURL</code>, you can also supply the key using the shorthand <code>-u YOUR_API_KEY:</code></p>\n<p>You can retrieve your API key from the dashboard inside the <code>Settings</code> page.</p>\n<h1 id=\"request-bodies\">Request Bodies</h1>\n<p>All request bodies can be specified in <code>application/json</code> or <code>application/x-www-form-urlencoded</code>. For the endpoints that require uploading a file, you can supply the body as <code>multipart/form-data</code>.</p>\n<p>Note that the examples here use the URL encoded format. However, this maps easily into JSON. Wherever you see e.g. <code>to[addressLine1]=Example</code>, that's equivalent to</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">\"to\": { \"addressLine1\": \"Example\" }\n\n</code></pre>\n<p>in JSON.</p>\n<h1 id=\"rate-limit\">Rate Limit</h1>\n<p>We have different rate limits depending on the type of request.</p>\n<p>For orders (letters, postcards, cheques, self mailers, boxes) and resources (contacts, templates, bank accounts, return envelopes, trackers).</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Request</strong></th>\n<th><strong>Limit</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>POST Create</td>\n<td>1000/minute</td>\n</tr>\n<tr>\n<td>GET Individual</td>\n<td>50/minute</td>\n</tr>\n<tr>\n<td>GET List</td>\n<td>10/minute</td>\n</tr>\n</tbody>\n</table>\n</div><p>If you do exceed our rate limit we will return a 429 status code. We recommend using an <a href=\"https://postgrid.readme.io/docs/response-codes-and-retry-logic#/\">exponential backoff with jitter retry strategy</a> along with making use of our <a href=\"#idempotent-requests\">idempotent requests</a> feature.</p>\n<h1 id=\"idempotent-requests\">Idempotent Requests</h1>\n<p>Our API supports <a href=\"https://en.wikipedia.org/wiki/Idempotence\">idempotence</a> on our order creation endpoints. This allows you to safely retry API calls without creating duplicate orders. This also makes your code more robust in the presence of network issues which disrupt API calls. As such, <strong>we highly recommend you make use of this feature.</strong></p>\n<p>In order to make your order creation calls idempotent, you must supply an additional <code>Idempotency-Key:</code> header. <strong>If your request validates successfully</strong>, we will ensure that subsequent requests with an identical idempotency key <strong>made up to 24 hours after the initial</strong> will return the exact same response without creating any orders. This includes error responses.</p>\n<p>You are free to generate your keys however you like, but we suggest using V4 UUIDs.</p>\n<h1 id=\"errors\">Errors</h1>\n<p>All of our error responses contain an <code>error</code> top-level object. This is what it looks like.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>type</td>\n<td>string</td>\n<td>An computer friendly stable string like <code>invalid_pdf_error</code></td>\n</tr>\n<tr>\n<td>message</td>\n<td>string</td>\n<td>A human-readable description of the error</td>\n</tr>\n</tbody>\n</table>\n</div><p>PostGrid uses standard HTTP codes to indicate successful or failed API requests. Successful operations will return 2xx codes. Responses with 4xx codes usually indicate input errors and 5xx codes indicate a server error.</p>\n<p>Please refer to the documentation below for more details.</p>\n<h2 id=\"authentication-errors\">Authentication Errors</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Error Condition</th>\n<th><strong>Status Code</strong></th>\n<th><strong>Code</strong></th>\n<th><strong>Message</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Your API key could have an incorrect value or be missing from your request headers.</td>\n<td>401</td>\n<td>missing_auth_error</td>\n<td>Missing or invalid authentication.</td>\n</tr>\n<tr>\n<td></td>\n<td>401</td>\n<td>invalid_oauth_token_error</td>\n<td>Invalid OAuth token.</td>\n</tr>\n<tr>\n<td>Your API key is incorrect. Learn how to access your API keys <a href=\"https://postgrid.readme.io/docs/account-set-up#api-keys\">here</a>.</td>\n<td>401</td>\n<td>invalid_api_key_error</td>\n<td>Invalid API key ${keyValue}</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"authorization-errors\">Authorization Errors</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Error Condition</th>\n<th><strong>Status Code</strong></th>\n<th><strong>Code</strong></th>\n<th><strong>Message</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td></td>\n<td>403</td>\n<td>limit_reached_error</td>\n<td>You have reached your mailing limit for the month (${limit}). Upgrade to send more.</td>\n</tr>\n<tr>\n<td>It is necessary to add a payment method in order to use Live Mode. Learn more about adding a payment method <a href=\"https://postgrid.readme.io/docs/account-set-up#setting-up-a-payment-method\">here</a>.</td>\n<td>403</td>\n<td>org_missing_payment_method_error</td>\n<td>You have not attached a payment method so you cannot access the live API.</td>\n</tr>\n<tr>\n<td></td>\n<td>403</td>\n<td>org_not_subscribed_error</td>\n<td>You are not subscribed so you cannot do this.</td>\n</tr>\n<tr>\n<td>It is necessary to attach a payment method to your PostGrid account to access live mode. If you made an external payment, contact PostGrid support to enable live access to your account.</td>\n<td>401</td>\n<td>live_permissions_missing_error</td>\n<td>You do not have permission to complete live requests. Contact your administrator to gain live access.</td>\n</tr>\n<tr>\n<td></td>\n<td>429</td>\n<td>rate_limit_exceeded_error</td>\n<td>Rate limit exceeded.</td>\n</tr>\n<tr>\n<td></td>\n<td>403</td>\n<td>self_mailers_not_enabled_error</td>\n<td>Self mailers are not enabled for this organization.</td>\n</tr>\n<tr>\n<td></td>\n<td>400</td>\n<td>expired_url_error</td>\n<td>The URL you are trying to access has expired.</td>\n</tr>\n<tr>\n<td></td>\n<td>422</td>\n<td>url_generation_error</td>\n<td>Failed to generate URL for tracker.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"validation-errors\">Validation Errors</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Error Condition</th>\n<th><strong>Status Code</strong></th>\n<th><strong>Code</strong></th>\n<th><strong>Message</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Missing signature text or image when creating a bank account.</td>\n<td>400</td>\n<td>missing_signature_image_error</td>\n<td>Missing signature image or signature text.</td>\n</tr>\n<tr>\n<td>Invalid signature image type (must be PNG/JPEG).</td>\n<td>400</td>\n<td>invalid_signature_image_type</td>\n<td>Invalid signature image type ${mimetype} when expecting one of ['image/jpeg', 'image/png']</td>\n</tr>\n<tr>\n<td></td>\n<td>400</td>\n<td>invalid_protocol_error</td>\n<td>Please use the 'https' protocol for the url: ${url}</td>\n</tr>\n<tr>\n<td></td>\n<td>400</td>\n<td>express_extra_service_unsupported_error</td>\n<td>Cannot create an order with both extra service and express delivery.</td>\n</tr>\n<tr>\n<td></td>\n<td>400</td>\n<td>missing_contact_name_error</td>\n<td>Missing first name and company name on contact. At least one must be provided.</td>\n</tr>\n<tr>\n<td>You must provide a valid ISO 3611-1 country code when creating contacts.</td>\n<td>400</td>\n<td>missing_contact_country_error</td>\n<td>Missing country information on contact.</td>\n</tr>\n<tr>\n<td></td>\n<td>400</td>\n<td>multiple_countries_in_batch_error</td>\n<td>Provided multiple destination countries ${countryCodeA} and ${countryCodeB}. Please make sure all letters are destined for the same country.</td>\n</tr>\n<tr>\n<td></td>\n<td>400</td>\n<td>no_valid_contacts_in_batch_error</td>\n<td>There are no valid contacts in this batch; make sure the country of the contacts is set correctly or adjust your address strictness setting.</td>\n</tr>\n<tr>\n<td></td>\n<td>400</td>\n<td>validation_error</td>\n<td>Failed to satisfy the following constraints: ${errors}</td>\n</tr>\n<tr>\n<td></td>\n<td>400</td>\n<td>invalid_pdf_error</td>\n<td>Unable to get PDF information. The file or the link you provided might be incorrect.</td>\n</tr>\n<tr>\n<td>Please refer to our <a href=\"https://postgrid.readme.io/docs/design-and-templates\">design guidelines</a> for the expected PDF dimensions for each country.</td>\n<td>400</td>\n<td>pdf_incorrect_size_error</td>\n<td>File has incorrect page dimensions ${width}x${height} when expecting ${expectedWidth}x${expectedHeight}.</td>\n</tr>\n<tr>\n<td>The provided PDF has pages with different sizes. Please check and resize the PDF according to the <a href=\"https://postgrid.readme.io/docs/design-and-templates\">design guidelines</a>.</td>\n<td>400</td>\n<td>pdf_inconsistent_page_dimensions_error</td>\n<td>File has minimum ${dimension} of ${minDimension} and a maximum of ${maxDimension} when expecting similar values.</td>\n</tr>\n<tr>\n<td></td>\n<td>400</td>\n<td>pdf_invalid_page_rotation_error</td>\n<td>Page ${ page} in PDF has invalid rotation of ${rotation}</td>\n</tr>\n<tr>\n<td></td>\n<td>400</td>\n<td>pdf_incorrect_page_count_error</td>\n<td>File has an incorrect number of pages ${pageCount} when expecting ${expectedPageCount}.</td>\n</tr>\n<tr>\n<td>The order status is either <code>complete</code> or <code>cancelled</code>. Therefore, it cannot be progressed.</td>\n<td>422</td>\n<td>invalid_progression_error</td>\n<td>Cannot progress order ${id} from status '${status}' because it is terminal.</td>\n</tr>\n<tr>\n<td></td>\n<td>400</td>\n<td>could_not_resolve_error</td>\n<td>Could not resolve the domain for the URL \"${url}\"</td>\n</tr>\n<tr>\n<td>The <code>search</code> parameter may be incorrectly formatted. Learn more about the searching capabilities of our endpoints <a href=\"https://docs.postgrid.com/#search\">here</a>.</td>\n<td>400</td>\n<td>invalid_search_query_error</td>\n<td>The syntax of the search query is incorrect. Make sure it is valid JSON.</td>\n</tr>\n<tr>\n<td></td>\n<td>400</td>\n<td>insert_blank_page_perforate_error</td>\n<td>Cannot insert blank page for address and also perforate the first page. Please disable one or the other.</td>\n</tr>\n<tr>\n<td>The selected mailing class is not available for the selected country. Please check the list of all available mailing classes here.</td>\n<td>400</td>\n<td>mailing_class_not_supported_for_country_error</td>\n<td>The mailing class ${mailingClass} is not available for the country code ${countryCode}.</td>\n</tr>\n<tr>\n<td></td>\n<td>400</td>\n<td>${collateral}_size_not_available_error</td>\n<td>The requested ${collateral} size ${requestedSize} is not available for destination country '${destCountryCode}'. Please choose one of ${availableSizes}</td>\n</tr>\n<tr>\n<td></td>\n<td>422</td>\n<td>pdf_workflow_run_not_waiting_for_confirmation_error</td>\n<td>Attempted to confirm a workflow run ${runID} whose status is not waiting_for_confirmation.</td>\n</tr>\n<tr>\n<td></td>\n<td>400</td>\n<td>pdf_workflow_missing_last_send_job</td>\n<td>The last job in a PDF workflow must be a send job. See the API documentation for the various send jobs available.</td>\n</tr>\n<tr>\n<td></td>\n<td>400</td>\n<td>pdf_workflow_multiple_send_jobs_error</td>\n<td>PDF workflows cannot contain multiple send jobs. Send jobs must be the last job in a workflow.</td>\n</tr>\n<tr>\n<td></td>\n<td>400</td>\n<td>pdf_workflow_invalid_job_sequence_error</td>\n<td>You cannot have a '${prevJobType}' job followed by a '${nextJobType}' job in a PDF workflow. The following job types are valid inputs to a '${nextJobType}' job: ${validInputJobs}.</td>\n</tr>\n<tr>\n<td>You cannot retrieve a postal cheque (non-digital) using this endpoint.</td>\n<td>400</td>\n<td>cheque_not_digital_only_error</td>\n<td>Cheque is not digital only.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"not-found-errors\">Not Found Errors</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Error Condition</th>\n<th><strong>Status Code</strong></th>\n<th><strong>Code</strong></th>\n<th><strong>Message</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>The resource (such as order, user, template, etc.) with the specified ID could not be found.</td>\n<td>404</td>\n<td>${object}_not_found_error</td>\n<td>Could not find ${object} with id ${id}</td>\n</tr>\n<tr>\n<td></td>\n<td>404</td>\n<td>contact_not_found_error</td>\n<td>Contact with ID ${id} was not found.</td>\n</tr>\n<tr>\n<td></td>\n<td>404</td>\n<td>no_users_found_error</td>\n<td>No users could be found with your organization</td>\n</tr>\n<tr>\n<td></td>\n<td>404</td>\n<td>email_not_found_error</td>\n<td>User with email ${email} not found.</td>\n</tr>\n<tr>\n<td></td>\n<td>400</td>\n<td>url_not_found_error</td>\n<td>Got status ${status} when attempting to download PDF from the URL \"${url}\"</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"conflict-errors\">Conflict Errors</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Error Condition</strong></th>\n<th><strong>Status Code</strong></th>\n<th><strong>Code</strong></th>\n<th><strong>Message</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td></td>\n<td>422</td>\n<td>duplicate_contact_info_error</td>\n<td>There is already a contact with the exact same information.</td>\n</tr>\n<tr>\n<td>The return envelope you attempted to use is out of stock. Learn more about ordering return envelopes <a href=\"https://postgrid.readme.io/docs/creating-your-first-return-envelope-order\">here</a>.</td>\n<td>422</td>\n<td>return_envelope_out_of_stock_error</td>\n<td>Return envelope ${id} is out of stock (0 available). Please order more or wait for existing orders to fill.</td>\n</tr>\n<tr>\n<td>It is not possible to create a return envelope as one already exists for the selected contact.</td>\n<td>422</td>\n<td>return_envelope_already_exists_error</td>\n<td>There is already a return envelope for destination contact ${contactID}.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"order-errors\">Order Errors</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Error Condition</th>\n<th>Status Code</th>\n<th>Code</th>\n<th>Message</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td></td>\n<td>422</td>\n<td>return_envelope_order_cannot_fill_live_error</td>\n<td>Can only force-fill return envelope orders in test mode.</td>\n</tr>\n<tr>\n<td></td>\n<td>422</td>\n<td>return_envelope_order_cannot_fill_error</td>\n<td>Cannot fill return envelope order ${id} because its status is not 'placed'.</td>\n</tr>\n<tr>\n<td>The order you attempted to cancel may have already been cancelled or may have progressed beyond the <code>ready</code> status. Please contact PostGrid Support for more assistance.  <br>The order you attempted to cancel may have already been cancelled or may have progressed beyond the <code>ready</code> status. Please contact PostGrid Support for more assistance.</td>\n<td>422</td>\n<td>return_envelope_order_cancel_failed_error</td>\n<td>Cannot cancel return envelope order ID ${id}.</td>\n</tr>\n<tr>\n<td>Same as above.</td>\n<td>422</td>\n<td>cancel_failed_error</td>\n<td>Cannot cancel order ID ${id}.</td>\n</tr>\n<tr>\n<td>A postal code is required for sending mail to the selected country.</td>\n<td>400</td>\n<td>postal_code_required_error</td>\n<td>Cannot mail to ${countryCode} without a postal code</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"address-errors\">Address Errors</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Error Condition</th>\n<th>Status Code</th>\n<th><strong>Code</strong></th>\n<th><strong>Message</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>The contact’s address may have failed to verify and your address strictness status may be set to <code>allow_corrected</code> or <code>allow_verified</code>. You can either update your address strictness setting or set the <code>forceVerifiedStatus</code> flag to <code>true</code>. Check more about that <a href=\"https://docs.postgrid.com/#a72df6c8-a887-4203-8f7e-98d928e00580\">here</a>.</td>\n<td>422</td>\n<td>address_strictness_error</td>\n<td>The address '${address}' does not meet the strictness '${setting}' because its status is '${status}</td>\n</tr>\n<tr>\n<td>Same as above.</td>\n<td>422</td>\n<td>address_strictness_error</td>\n<td>The address containing '${line1}' failed to meet your strictness requirement (${setting}) because its status was ${status}</td>\n</tr>\n<tr>\n<td></td>\n<td>400</td>\n<td>invalid_address_error</td>\n<td>Cannot create plausible address from '${address}'.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"generic-errors\">Generic Errors</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Error Condition</strong></th>\n<th><strong>Status Code</strong></th>\n<th><strong>Code</strong></th>\n<th><strong>Message</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td></td>\n<td>503</td>\n<td>service_unavailable_error</td>\n<td>Our service is temporarily unavailable, please try again.</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"lists-and-pagination\">Lists and Pagination</h1>\n<p>All of our listing endpoints are paginated and produce responses according to the <a href=\"#list-response\">List</a> schema. These endpoints receive a <code>skip</code> and <code>limit</code> parameter which can be used to traverse the pages. You can traverse a complete list by incrementing <code>skip</code> by <code>limit</code> for each request until <code>skip &gt;= totalCount</code>, where <code>totalCount</code> is returned in the list response.</p>\n<h1 id=\"search\">Search</h1>\n<p>Our resource listing endpoints such as <code>GET /contacts</code> and <code>GET /letters</code> provide advanced search capabilities. You can perform this search via a <code>search</code> query parameter, or use the search field on our <em>dashboard</em>.</p>\n<p>For example <code>GET /v1/contacts?search=\"New York\"</code> (i.e. <code>search=\"New York\"</code>) will produce all the contacts that have the exact string <code>\"New York\"</code> in their body.</p>\n<p>You can also perform structured queries like <code>GET /v1/letters?search={\"metadata.campaignID\": \"ABC\"}</code> which searches for</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"metadata.campaignID\": \"ABC\"\n}\n\n</code></pre><p>In other words, this will produce all the letters whose <code>campaignID</code> matches <code>ABC</code>.</p>\n<h1 id=\"expansions\">Expansions</h1>\n<p>Some of our endpoints return resources with nested IDs. For example, when you retrieve a letter that was created from a template, its body will contain the template ID (See <a href=\"https://null\">Letter</a>). Rather than making a separate API request for the nested template, you can pass along an query parameter like <code>GET /letters?expand[]=template</code>.</p>\n<p>This also works for getting the nested <code>bankAccount</code> inside a cheque. However, it is important to note that <strong>you cannot do this for the listing endpoints</strong> due to its performance implications.</p>\n<h1 id=\"metadata\">Metadata</h1>\n<p>Every object in the API can have arbitrary <code>metadata</code> attached to it. For example, I can tag my letters with a campaign ID:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    // Other letter fields...\n    \"metadata\": {\n        \"campaignID\": \"ABC\"\n    }\n}\n\n</code></pre>\n<p>I can later get analytics on these letters using the advanced search functionality in the dashboard.</p>\n<p>The metadata object must not exceed 10kb of uncompressed storage.</p>\n<h1 id=\"merge-variables\">Merge Variables</h1>\n<p>Whenever you supply HTML to the API via a <a href=\"https://null\">Template</a>, directly inside a <a href=\"https://null\">Letter</a>, <a href=\"https://null\">Postcard</a>, or in the <code>message</code> of a <a href=\"https://null\">Cheque</a>, you can specify variable fields using curly braces like <code>{{variableName}}</code>. You can then supply a <code>mergeVariables</code> object in your <code>POST</code> requests, and provide values for them.</p>\n<p><code>mergeVariables</code> on a request can contain arbitrarily nested objects. For example</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"income\": {\n        \"beforeTax\": 100,\n        \"afterTax\": 73\n    }\n}\n\n</code></pre><p>and these can be referenced by using a <code>.</code> to access nested fields <code>{{income.beforeTax}}</code> and <code>{{income.afterTax}}</code>. <strong>Note that variable names (e.g.</strong> <strong><code>income</code></strong>, <strong><code>beforeTax</code></strong>, <strong><code>afterTax</code></strong>) cannot contain the characters <strong><code>, # $ .</code></strong></p>\n<p>You can also access the following predefined merge variables in your template</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>to</td>\n<td><a href=\"#a72df6c8-a887-4203-8f7e-98d928e00580\">Contact</a></td>\n<td>The recipient info e.g. <code>to.firstName</code>, <code>to.companyName</code></td>\n</tr>\n<tr>\n<td>from</td>\n<td><a href=\"#a72df6c8-a887-4203-8f7e-98d928e00580\">Contact</a></td>\n<td>The sender info e.g. <code>from.firstName</code>, <code>from.companyName</code></td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"pdf-previews\">PDF Previews</h1>\n<p>We provide PDF previews for all orders (including those created in test mode). These previews should be generated a few seconds after you create an order. They can be accessed through the <code>url</code> property of the returned objects or on the dashboard by clicking <code>View PDF</code> on the top-right of the order details page.</p>\n<p>In the case of cheques, the previews will censor the account number by padding the last 4 digits of the account number with zeros.</p>\n<h1 id=\"certified-and-registered-mail\">Certified and Registered Mail</h1>\n<p>You can provide an <code>extraService</code> parameter to the Letter and Cheque creation endpoints. This parameter will allow you to send certified/registered mail (including certified mail with return receipts). <strong>This is currently only available for US mailings</strong>. Note that additional charges will apply for these mailings.</p>\n<p>Once a tracking number has been generated, a <code>letter.updated</code> or <code>cheque.updated</code> event will be generated and a webhook will be triggered with the <code>trackingNumber</code> field present. It can be retrieved through a <code>GET</code> request or via the raw data in the dashboard. Using this tracking number, you can view the delivery status of the order on the USPS website or using their API.</p>\n<p>Here are the possible values you can provide for <code>extraService</code></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>certified</code></td>\n<td>Send as certified mail</td>\n</tr>\n<tr>\n<td><code>certified_return_receipt</code></td>\n<td>Send as certified mail with a return receipt</td>\n</tr>\n<tr>\n<td><code>registered</code></td>\n<td>Send as registered mail</td>\n</tr>\n</tbody>\n</table>\n</div><p>You can also supply specific values to <a href=\"#mailing-class\">mailingClass </a> to extra service for your orders.</p>\n<h1 id=\"perforation\">Perforation</h1>\n<p>You can request that the first page of a letter is perforated by adding a parameter <code>perforatedPage: 1</code> to your letters <code>POST</code> request body. The perforation will be done such that the bottom 3rd of the page (3.6 inches from the bottom) can be torn off the letter.</p>\n<h1 id=\"return-envelopes\">Return Envelopes</h1>\n<p>You can send your letters along with a return envelope by supplying a <code>returnEnvelope</code> ID to your <code>POST /letters</code> or <code>POST /cheques</code> API call. Note that you must first order return envelopes using our Return Envelopes API (see the relevant sections).</p>\n<h1 id=\"secret-resources\">Secret Resources</h1>\n<p>On select resources, providing a <code>secret</code> parameter allows hiding information from the dashboard and API. This allows external and private information to be used in the final prints without allowing PostGrid users to view this information. The provided resource ID can be used as a token to allow using these secret resources without giving access to their underlying data.</p>\n<h1 id=\"us-ncoa-address-changes\">US NCOA Address Changes</h1>\n<p>In the event that one of the recipients you've mailed to has moved from the address you supplied, PostGrid may redirect the mail to their new address (depending on your subscription tier).</p>\n<p>If mail is redirected, the address changes are applied directly to the affected contacts/orders within our API and dashboard. This also issues a webhook <code>{order_type}.updated</code> event where <code>{order_type}</code> is one of <code>letter</code>, <code>postcard</code>, <code>cheque</code>, or <code>self_mailer</code> depending on which type of order was updated.</p>\n<p>You can examine the new address by looking at the <code>addressLine1</code>, <code>addressLine2</code>, etc. fields of the contacts. There is also a new <code>addressChange</code> object that gets added to contacts that have changed as a result of a move. See the following for the schema of this object.</p>\n<h2 id=\"address-change-object\">Address Change Object</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>processedOn</td>\n<td>Date (string)</td>\n<td>The date and time this address change was ingested into our system.</td>\n</tr>\n<tr>\n<td>moveYearMonth</td>\n<td>string</td>\n<td>The <code>MM/YYYY</code> that this contact moved.</td>\n</tr>\n<tr>\n<td>oldAddress</td>\n<td>object</td>\n<td>An object containing the <code>addressLine1</code>, <code>city</code>, etc of the address prior to the move update.</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"express-shipping\">Express Shipping</h1>\n<p>You can request express shipping for your orders by setting specific options in <code>mailingClass</code>. See <a href=\"#mailing-class\">Mailing Class</a> for more details.</p>\n<h1 id=\"carrier-tracking\">Carrier Tracking</h1>\n<p>PostGrid can provide the <strong>exact</strong> status of an order as provided by the underlying mail carrier when an appropriate <code>mailingClass</code> is used (e.g. USPS certified mail). You can learn more about this feature here: <a href=\"https://postgrid.readme.io/reference/carrier-tracking\">https://postgrid.readme.io/reference/carrier-tracking</a></p>\n<h1 id=\"list-response\">List Response</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>object</td>\n<td>string</td>\n<td>Always <code>list</code></td>\n</tr>\n<tr>\n<td>limit</td>\n<td>integer</td>\n<td>The <code>limit</code> passed into the request</td>\n</tr>\n<tr>\n<td>skip</td>\n<td>integer</td>\n<td>The <code>skip</code> passed into the request</td>\n</tr>\n<tr>\n<td>totalCount</td>\n<td>integer</td>\n<td>Total number of documents in this list, including skipped documents</td>\n</tr>\n<tr>\n<td>data</td>\n<td>Array</td>\n<td>The requested documents</td>\n</tr>\n</tbody>\n</table>\n</div></body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Test Mode","slug":"test-mode"},{"content":"Design","slug":"design"},{"content":"Integrations","slug":"integrations"},{"content":"Tracking","slug":"tracking"},{"content":"Intelligent-Mail Tracking","slug":"intelligent-mail-tracking"},{"content":"Mailing Class","slug":"mailing-class"},{"content":"Letter Size","slug":"letter-size"},{"content":"Cheque Size","slug":"cheque-size"},{"content":"Cancellation","slug":"cancellation"},{"content":"Authorization","slug":"authorization"},{"content":"Request Bodies","slug":"request-bodies"},{"content":"Rate Limit","slug":"rate-limit"},{"content":"Idempotent Requests","slug":"idempotent-requests"},{"content":"Errors","slug":"errors"},{"content":"Lists and Pagination","slug":"lists-and-pagination"},{"content":"Search","slug":"search"},{"content":"Expansions","slug":"expansions"},{"content":"Metadata","slug":"metadata"},{"content":"Merge Variables","slug":"merge-variables"},{"content":"PDF Previews","slug":"pdf-previews"},{"content":"Certified and Registered Mail","slug":"certified-and-registered-mail"},{"content":"Perforation","slug":"perforation"},{"content":"Return Envelopes","slug":"return-envelopes"},{"content":"Secret Resources","slug":"secret-resources"},{"content":"US NCOA Address Changes","slug":"us-ncoa-address-changes"},{"content":"Express Shipping","slug":"express-shipping"},{"content":"Carrier Tracking","slug":"carrier-tracking"},{"content":"List Response","slug":"list-response"}],"owner":"17206988","collectionId":"30d9da4f-15c3-4b6a-aae1-d3a329dc6b13","publishedId":"U16opPhz","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"2d69ed"},"publishDate":"2023-07-14T21:05:00.000Z"},"item":[{"name":"Contacts","item":[{"name":"Create Contact","id":"3ac81e66-c5be-4bb6-93c1-fd8a6f0a24b3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"firstName","value":"Kevin","type":"text","description":"<p>The first name of the contact.</p>\n<p>This field is <code>optional</code> if a <code>companyName</code> is being supplied.  If no <code>companyName</code> is supplied then this field is <code>required</code></p>\n"},{"key":"lastName","value":"Smith","description":"<p>The last name of the contact.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"companyName","value":"PostGrid","type":"text","description":"<p>The contact's company name.  </p>\n<p>This field is <code>optional</code> if a <code>firstName</code> is being supplied.  If no <code>firstName</code> is supplied then this field is <code>required</code>.</p>\n"},{"key":"addressLine1","value":"20-20 bay st","type":"text","description":"<p>The contact's first address line.</p>\n<p><code>required</code></p>\n"},{"key":"addressLine2","value":"floor 11","type":"text","description":"<p>The contact's second address line.</p>\n<p><code>optional</code></p>\n"},{"key":"city","value":"toronto","type":"text","description":"<p>The contact's city.</p>\n<p><code>optional</code></p>\n"},{"key":"provinceOrState","value":"ON","type":"text","description":"<p>The province or state of the contact.</p>\n<p><code>optional</code></p>\n"},{"key":"email","value":"kevinsmith@postgrid.com","description":"<p>The contact's email.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"phoneNumber","value":"9059059059","description":"<p>The contact's phone number.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"jobTitle","value":"Manager","description":"<p>The contact's job title.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"postalOrZip","value":"M5J 2N8","description":"<p>The postal code or ZIP code of the contact.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"country","value":"CA","description":"<p>The ISO 3611-1 country code of the contact's address. Defaults to <code>CA</code></p>\n<p><code>optional</code> <code>deprecated</code></p>\n","type":"text"},{"key":"countryCode","value":"CA","description":"<p>The ISO 3611-1 country code of the contact's address. Defaults to <code>CA</code>.</p>\n<p><code>required</code></p>\n","type":"text"},{"key":"description","value":"Kevin Smith's contact information ","description":"<p>A description for the contact.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"metadata[friend]","value":"no","description":"<p>See <a href=\"#metadata\">metadata</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"skipVerification","value":"false","description":"<p>If true, skip address verification and mark the address as <code>failed</code>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"forceVerifiedStatus","value":"false","description":"<p>If true, force the status of the address to be verified, effectively whitelisting it even if our address verification system would otherwise fail it.</p>\n","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/contacts","description":"<p>Creates a new contact. Will also verify the address if created with the live API key. To successfully create a contact, either a <code>firstName</code>, <code>companyName</code>, or both is required. You can supply both, but you <strong>cannot</strong> supply neither.</p>\n<p><em>Note that if you create a contact that has identical information to another contact, this will simply update the description of the existing contact and return it. This avoids creating duplicate contacts.</em></p>\n","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"a72df6c8-a887-4203-8f7e-98d928e00580","id":"a72df6c8-a887-4203-8f7e-98d928e00580","name":"Contacts","type":"folder"}},"urlObject":{"path":["v1","contacts"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[]}},"response":[{"id":"48b08bd7-2bbe-4e4e-bfb0-6ceb31e8e6e7","name":"Create Contact","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"firstName","value":"Kevin","type":"text"},{"key":"companyName","value":"PostGrid","type":"text"},{"key":"addressLine1","value":"20-20 bay st","type":"text"},{"key":"addressLine2","value":"floor 11","type":"text"},{"key":"city","value":"toronto","type":"text"},{"key":"provinceOrState","value":"ON","type":"text"}],"options":{"raw":{"language":"json"}}},"url":"https://api.postgrid.com/print-mail/v1/contacts"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"380"},{"key":"ETag","value":"W/\"17c-5NkP/Hms1j8volyJYJYM8Oe9VOs\""},{"key":"Date","value":"Fri, 13 Nov 2020 01:03:40 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"contact_pxd7wnnD1xY6H6etKNvjb4\",\n    \"object\": \"contact\",\n    \"live\": false,\n    \"addressLine1\": \"20-20 BAY ST\",\n    \"addressLine2\": \"FLOOR 11\",\n    \"addressStatus\": \"verified\",\n    \"city\": \"TORONTO\",\n    \"companyName\": \"PostGrid\",\n    \"country\": \"CANADA\",\n    \"countryCode\": \"CA\",\n    \"description\": \"Kevin Smith's contact information \",\n    \"email\": \"kevinsmith@postgrid.com\",\n    \"firstName\": \"Kevin\",\n    \"jobTitle\": \"Manager\",\n    \"lastName\": \"Smith\",\n    \"metadata\": {\n        \"friend\": \"no\"\n    },\n    \"phoneNumber\": \"9059059059\",\n    \"postalOrZip\": \"M5J 2N8\",\n    \"provinceOrState\": \"ON\",\n    \"createdAt\": \"2022-02-16T15:08:41.052Z\",\n    \"updatedAt\": \"2022-02-17T16:58:10.063Z\"\n}"}],"_postman_id":"3ac81e66-c5be-4bb6-93c1-fd8a6f0a24b3"},{"name":"Create Secret Contact","id":"72bc8e4d-f62e-4656-b946-b650c8bf1cda","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"firstName","value":"Kevin","type":"text","description":"<p>The first name of the contact.</p>\n<p>This field is <code>optional</code> if a <code>companyName</code> is being supplied.  If no <code>companyName</code> is supplied then this field is <code>required</code></p>\n"},{"key":"lastName","value":"Smith","description":"<p>The last name of the contact.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"companyName","value":"PostGrid","type":"text","description":"<p>The contact's company name.  </p>\n<p>This field is <code>optional</code> if a <code>firstName</code> is being supplied.  If no <code>firstName</code> is supplied then this field is <code>required</code>.</p>\n"},{"key":"addressLine1","value":"20-20 bay st","type":"text","description":"<p>The contact's first address line.</p>\n<p><code>required</code></p>\n"},{"key":"addressLine2","value":"floor 11","type":"text","description":"<p>The contact's second address line.</p>\n<p><code>optional</code></p>\n"},{"key":"city","value":"toronto","type":"text","description":"<p>The contact's city.</p>\n<p><code>optional</code></p>\n"},{"key":"provinceOrState","value":"ON","type":"text","description":"<p>The province or state of the contact.</p>\n<p><code>optional</code></p>\n"},{"key":"email","value":"kevinsmith@postgrid.com","description":"<p>The contact's email.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"phoneNumber","value":"9059059059","description":"<p>The contact's phone number.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"jobTitle","value":"Manager","description":"<p>The contact's job title.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"postalOrZip","value":"M5J 2N8","description":"<p>The postal code or ZIP code of the contact.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"country","value":"CA","description":"<p>The ISO 3611-1 country code of the contact's address. Defaults to <code>CA</code></p>\n<p><code>optional</code> <code>deprecated</code></p>\n","type":"text"},{"key":"countryCode","value":"CA","description":"<p>The ISO 3611-1 country code of the contact's address. Defaults to <code>CA</code>.</p>\n<p><code>required</code></p>\n","type":"text"},{"key":"description","value":"Secret contact information ","description":"<p>A description for the contact.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"metadata[friend]","value":"no","description":"<p>See <a href=\"#metadata\">metadata</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"skipVerification","value":"false","description":"<p>If true, skip address verification and mark the address as <code>failed</code>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"forceVerifiedStatus","value":"false","description":"<p>If true, force the status of the address to be verified, effectively whitelisting it even if our address verification system would otherwise fail it.</p>\n","type":"text"},{"key":"secret","value":"true","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/contacts","description":"<p>Creates a new contact. Will also verify the address if created with the live API key. To successfully create a contact, either a <code>firstName</code>, <code>companyName</code>, or both is required. You can supply both, but you <strong>cannot</strong> supply neither.</p>\n<p><em>Note that if you create a contact that has identical information to another contact, this will simply update the description of the existing contact and return it. This avoids creating duplicate contacts.</em></p>\n","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"a72df6c8-a887-4203-8f7e-98d928e00580","id":"a72df6c8-a887-4203-8f7e-98d928e00580","name":"Contacts","type":"folder"}},"urlObject":{"path":["v1","contacts"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[]}},"response":[{"id":"d91720dc-70aa-4338-8099-2a906958f3ca","name":"Create Secret Contact","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"firstName","value":"Kevin","type":"text"},{"key":"companyName","value":"PostGrid","type":"text"},{"key":"addressLine1","value":"20-20 bay st","type":"text"},{"key":"addressLine2","value":"floor 11","type":"text"},{"key":"city","value":"toronto","type":"text"},{"key":"provinceOrState","value":"ON","type":"text"},{"key":"secret","value":"true","type":"text"},{"key":"description","value":"Secret contact information","type":"text"}],"options":{"raw":{"language":"json"}}},"url":"https://api.postgrid.com/print-mail/v1/contacts"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"380"},{"key":"ETag","value":"W/\"17c-5NkP/Hms1j8volyJYJYM8Oe9VOs\""},{"key":"Date","value":"Fri, 13 Nov 2020 01:03:40 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"contact_jokVYBf3jtpRKXmnnpZxf3\",\n    \"object\": \"contact\",\n    \"live\": false,\n    \"addressLine1\": \"*****\",\n    \"addressStatus\": \"verified\",\n    \"city\": \"*****\",\n    \"companyName\": \"(SECRET CONTACT)\",\n    \"countryCode\": \"CA\",\n    \"description\": \"Secret contact information\",\n    \"forceVerifiedStatus\": false,\n    \"mailingLists\": [],\n    \"postalOrZip\": \"*****\",\n    \"provinceOrState\": \"**\",\n    \"secret\": true,\n    \"skipVerification\": false,\n    \"createdAt\": \"2024-07-12T19:48:59.431Z\",\n    \"updatedAt\": \"2024-07-12T19:48:59.431Z\"\n}"}],"_postman_id":"72bc8e4d-f62e-4656-b946-b650c8bf1cda"},{"name":"Create Contact with Single Line","id":"5de06f9c-8fe3-4e55-a7d9-31011677508d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"firstName","type":"text","value":"Kevin","description":"<p>The contact's first name.</p>\n<p>This field is <code>optional</code> if a <code>companyName</code> is being supplied. If no <code>companyName</code> is supplied then this field is <code>required</code></p>\n"},{"key":"lastName","value":"Smith","description":"<p>The contact's last name.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"companyName","type":"text","value":"PostGrid","description":"<p>The contact's company name.</p>\n<p>This field is <code>optional</code> if a <code>firstName</code> is being supplied. If no <code>firstName</code> is supplied then this field is <code>required</code></p>\n"},{"key":"countryCode","value":"CA","description":"<p>The ISO 3611-1 country code of the contact's address. Defaults to <code>CA</code>.</p>\n<p><code>required</code></p>\n","type":"text"},{"key":"addressLine1","value":"20-20 bay st toronto on m9v 4v1","type":"text","description":"<p>The contact's full address.</p>\n<p><code>required</code></p>\n"},{"key":"email","value":"kevinsmith@postgrid.com","description":"<p>The contact's email.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"jobTitle","value":"Manager","description":"<p>The contact's job title.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"phoneNumber","value":"9059059059","description":"<p>The contact's phone number.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"description","value":"Kevin Smith's contact information","description":"<p>A description for the contact.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"metadata[friend]","value":"no","description":"<p>See <a href=\"#metadata\">metadata</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"country","value":"CA","description":"<p>The ISO 3611-1 country code of the contact's address. Defaults to <code>CA</code>.</p>\n<p><code>optional</code> <code>deprecated</code></p>\n","type":"text"},{"key":"skipVerification","value":"false","description":"<p>If true, skip address verification and mark the address as <code>failed</code>.</p>\n<p><code>optional</code></p>\n","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/contacts","description":"<p>Create a contact where the address of the contact is provided in a single line. PostGrid will automatically parse this address, and will verify/correct it in live mode.</p>\n","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"a72df6c8-a887-4203-8f7e-98d928e00580","id":"a72df6c8-a887-4203-8f7e-98d928e00580","name":"Contacts","type":"folder"}},"urlObject":{"path":["v1","contacts"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[]}},"response":[{"id":"5339ad49-4be7-4989-98c4-f834cad741de","name":"Create Contact with Single Line","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"firstName","type":"text","value":"Kevin"},{"key":"companyName","type":"text","value":"PostGrid"},{"key":"addressLine1","value":"20-20 bay st toronto on m9v 4v1","type":"text"}],"options":{"raw":{"language":"json"}}},"url":"https://api.postgrid.com/print-mail/v1/contacts"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 18 Nov 2020 01:05:35 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"370"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"172-cjnxecS+MQNo8ZJpIbfzdEDDZNE\""}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"contact_wKqkbNqBUm5t4Vs8iXiVBt\",\n    \"object\": \"contact\",\n    \"live\": true,\n    \"addressLine1\": \"20-20 BAY ST\",\n    \"addressLine2\": \"\",\n    \"addressStatus\": \"corrected\",\n    \"city\": \"TORONTO\",\n    \"companyName\": \"PostGrid\",\n    \"country\": \"CANADA\",\n    \"countryCode\": \"CA\",\n    \"firstName\": \"Kevin\",\n    \"postalOrZip\": \"M5J2N8\",\n    \"provinceOrState\": \"ON\",\n    \"createdAt\": \"2020-11-18T01:05:35.835Z\",\n    \"updatedAt\": \"2020-11-18T01:05:35.835Z\"\n}"}],"_postman_id":"5de06f9c-8fe3-4e55-a7d9-31011677508d"},{"name":"List Contacts","id":"c8e7281c-236f-43d7-b857-3be1d6d9a1a2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.postgrid.com/print-mail/v1/contacts?skip=5&limit=2&search=New York","description":"<p>Retrieve a list of all of the contacts of the user's current organization.</p>\n","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"a72df6c8-a887-4203-8f7e-98d928e00580","id":"a72df6c8-a887-4203-8f7e-98d928e00580","name":"Contacts","type":"folder"}},"urlObject":{"path":["v1","contacts"],"host":["https://api.postgrid.com/print-mail"],"query":[{"description":{"content":"<p>Used for traversing pages.  See <a href=\"#lists-and-pagination\">lists and pagination</a>.</p>\n<p><code>optional</code></p>\n","type":"text/plain"},"key":"skip","value":"5"},{"description":{"content":"<p>Limits the number of resources returned.  See <a href=\"#lists-and-pagination\">lists and pagination</a>.</p>\n<p><code>optional</code></p>\n","type":"text/plain"},"key":"limit","value":"2"},{"description":{"content":"<p>Searches the data for the given input.  See <a href=\"#search\">search</a>.</p>\n<p><code>optional</code>  </p>\n","type":"text/plain"},"key":"search","value":"New York"}],"variable":[]}},"response":[{"id":"ad5d7b17-96b6-4c61-af1d-90daebe721d3","name":"List Contacts","originalRequest":{"method":"GET","header":[],"url":"https://api.postgrid.com/print-mail/v1/contacts"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"441"},{"key":"ETag","value":"W/\"1b9-jFQnOE3xk0KoWlDVprsBcEeXqm0\""},{"key":"Date","value":"Thu, 12 Nov 2020 00:05:43 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"object\": \"list\",\n    \"limit\": 10,\n    \"skip\": 0,\n    \"totalCount\": 1,\n    \"data\": [\n        {\n            \"id\": \"contact_nA8mdzveShFEmFraaChaDn\",\n            \"object\": \"contact\",\n            \"live\": false,\n            \"addressLine1\": \"20-20 BAY ST FLOOR 11\",\n            \"addressLine2\": \"\",\n            \"addressStatus\": \"verified\",\n            \"city\": \"TORONTO\",\n            \"companyName\": \"PostGrid\",\n            \"country\": \"CANADA\",\n            \"countryCode\": \"CA\",\n            \"firstName\": \"Kevin\",\n            \"postalOrZip\": \"M5J2N8\",\n            \"provinceOrState\": \"ON\",\n            \"createdAt\": \"2020-11-12T00:05:26.677Z\",\n            \"updatedAt\": \"2020-11-12T00:05:26.677Z\"\n        }\n    ]\n}"}],"_postman_id":"c8e7281c-236f-43d7-b857-3be1d6d9a1a2"},{"name":"Get Contact","id":"d497b3c3-22e0-43f4-9bfb-b4decc3d6778","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.postgrid.com/print-mail/v1/contacts/:id","description":"<p>Gets the information for a specific contact with the corresponding <code>id</code>. The <code>id</code> for the contact. This should be a unique identifying string starting with <code>contact_</code>.</p>\n","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"a72df6c8-a887-4203-8f7e-98d928e00580","id":"a72df6c8-a887-4203-8f7e-98d928e00580","name":"Contacts","type":"folder"}},"urlObject":{"path":["v1","contacts",":id"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[{"description":{"content":"<p>The contact's <code>id</code>.</p>\n<p><code>required</code></p>\n","type":"text/plain"},"type":"any","value":"contact_pxd7wnnD1xY6H6etKNvjb4","key":"id"}]}},"response":[{"id":"78173b73-da7a-4b3c-bcab-805c72597931","name":"Get Contact","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.postgrid.com/print-mail/v1/contacts/:id","host":["https://api.postgrid.com/print-mail"],"path":["v1","contacts",":id"],"variable":[{"key":"id","value":"contact_nA8mdzveShFEmFraaChaDn"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"379"},{"key":"ETag","value":"W/\"17b-H56W7/28sHXim3tCmu9sqUbfpd4\""},{"key":"Date","value":"Thu, 12 Nov 2020 00:07:12 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"contact_nA8mdzveShFEmFraaChaDn\",\n    \"object\": \"contact\",\n    \"live\": false,\n    \"addressLine1\": \"20-20 BAY ST FLOOR 11\",\n    \"addressLine2\": \"\",\n    \"addressStatus\": \"verified\",\n    \"city\": \"TORONTO\",\n    \"companyName\": \"PostGrid\",\n    \"country\": \"CANADA\",\n    \"countryCode\": \"CA\",\n    \"firstName\": \"Kevin\",\n    \"postalOrZip\": \"M5J2N8\",\n    \"provinceOrState\": \"ON\",\n    \"createdAt\": \"2020-11-12T00:05:26.677Z\",\n    \"updatedAt\": \"2020-11-12T00:05:26.677Z\"\n}"}],"_postman_id":"d497b3c3-22e0-43f4-9bfb-b4decc3d6778"},{"name":"Delete Contact","id":"83f2f616-1a10-4dc3-929d-65ab84ac9cde","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://api.postgrid.com/print-mail/v1/contacts/:id","description":"<p>Removes a contact with the corresponding <code>id</code>. The <code>id</code> for the contact. This should be a unique identifying string starting with <code>contact_</code>.</p>\n","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"a72df6c8-a887-4203-8f7e-98d928e00580","id":"a72df6c8-a887-4203-8f7e-98d928e00580","name":"Contacts","type":"folder"}},"urlObject":{"path":["v1","contacts",":id"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[{"description":{"content":"<p>Removes the contact by <code>id</code>.</p>\n<p><code>required</code></p>\n","type":"text/plain"},"type":"any","value":"contact_nA8mdzveShFEmFraaChaDn","key":"id"}]}},"response":[{"id":"742d74d1-54dd-4f35-830b-61cdf11cd94a","name":"Delete Contact","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"https://api.postgrid.com/print-mail/v1/contacts/:id","host":["https://api.postgrid.com/print-mail"],"path":["v1","contacts",":id"],"variable":[{"key":"id","value":"contact_nA8mdzveShFEmFraaChaDn"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"73"},{"key":"ETag","value":"W/\"49-6I5AkFk9+jsdrZHKnzEP+33fHnY\""},{"key":"Date","value":"Thu, 12 Nov 2020 00:07:22 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"contact_nA8mdzveShFEmFraaChaDn\",\n    \"object\": \"contact\",\n    \"deleted\": true\n}"}],"_postman_id":"83f2f616-1a10-4dc3-929d-65ab84ac9cde"}],"id":"a72df6c8-a887-4203-8f7e-98d928e00580","description":"<p>Manage contacts that you can mail to. Test mode addresses will always have a <code>verified</code> status. In live mode, they may be <code>verified</code>, <code>corrected</code>, or <code>failed</code>. Addresses that fail to be corrected are likely undeliverable, but you can still send to them if you want to.</p>\n<p>For test mode contacts, you have the ability to assert the <code>addressStatus</code> of the contact by passing specific values to the <code>description</code> field. To receive an <code>addressStatus</code> of <code>failed</code>, the description of the contact should be a string with the exact value <code>test failed</code>. For an <code>addressStatus</code> value of <code>corrected</code>, the description of the contact should be a string with the exact value <code>test corrected</code>.</p>\n<p>Our address correction engine will often be able to fix missing postal/ZIP codes, city names, and also append ZIP+4. It is SERP (Canada Post) and CASS (USPS) certified, so you can rest assured that if an address is verified, we can deliver to it.</p>\n<h1 id=\"contact-response\">Contact Response</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>A unique ID prefixed with <code>contact_</code></td>\n</tr>\n<tr>\n<td>object</td>\n<td>string</td>\n<td>Always <code>contact</code></td>\n</tr>\n<tr>\n<td>live</td>\n<td>boolean</td>\n<td><code>true</code> if this is a live mode contact else <code>false</code></td>\n</tr>\n<tr>\n<td>description</td>\n<td>string or null</td>\n<td>Optional line describing the contact</td>\n</tr>\n<tr>\n<td>addressLine1</td>\n<td>string</td>\n<td>First line of address</td>\n</tr>\n<tr>\n<td>addressLine2</td>\n<td>string or null</td>\n<td>Second line of address</td>\n</tr>\n<tr>\n<td>provinceOrState</td>\n<td>string or null</td>\n<td>Province or state of address</td>\n</tr>\n<tr>\n<td>postalOrZip</td>\n<td>string or null</td>\n<td>Postal or ZIP code of address</td>\n</tr>\n<tr>\n<td>country</td>\n<td>string or null</td>\n<td>ISO 3611-1 country code of address. <code>deprecated</code></td>\n</tr>\n<tr>\n<td>countryCode</td>\n<td>string or null</td>\n<td>ISO 3611-1 country code of address</td>\n</tr>\n<tr>\n<td>addressStatus</td>\n<td>string</td>\n<td>One of <code>verified</code>, <code>corrected</code>, or <code>failed</code></td>\n</tr>\n<tr>\n<td>firstName</td>\n<td>string or null</td>\n<td>First name or full name of contact</td>\n</tr>\n<tr>\n<td>lastName</td>\n<td>string or null</td>\n<td>Last name of contact</td>\n</tr>\n<tr>\n<td>email</td>\n<td>string or null</td>\n<td>Email address</td>\n</tr>\n<tr>\n<td>phoneNumber</td>\n<td>string or null</td>\n<td>Phone number</td>\n</tr>\n<tr>\n<td>companyName</td>\n<td>string or null</td>\n<td>Company name of contact</td>\n</tr>\n<tr>\n<td>jobTitle</td>\n<td>string or null</td>\n<td>Job title of contact</td>\n</tr>\n<tr>\n<td>metadata</td>\n<td>object or null</td>\n<td>See <a href=\"#metadata\">Metadata</a></td>\n</tr>\n<tr>\n<td>skipVerification</td>\n<td>boolean</td>\n<td>Skip address correction and verification</td>\n</tr>\n<tr>\n<td>forceVerifiedStatus</td>\n<td>boolean</td>\n<td>Override the given address verification status</td>\n</tr>\n<tr>\n<td>secret</td>\n<td>boolean</td>\n<td>Hide contact details apart from final print</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"bcff4265-1b0e-430e-a7d8-bb9d4a77292a","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"07f5d11e-4c70-439f-8c4b-7806847870a4","type":"text/javascript","exec":[""]}}],"_postman_id":"a72df6c8-a887-4203-8f7e-98d928e00580"},{"name":"Templates","item":[{"name":"Create Template","id":"4ed66108-524f-466d-b274-1574e88f8594","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"html","value":"<b>Hello</b> {{to.firstName}}!","type":"text","description":"<p>The HTML content for the template.</p>\n<p><code>required</code></p>\n"},{"key":"description","value":"My first template!","type":"text","description":"<p>A description for the template.</p>\n<p><code>optional</code></p>\n"},{"key":"metadata[to]","value":"Jimmy","description":"<p>See <a href=\"#metadata\">metadata</a>.</p>\n<p><code>optional</code></p>\n","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/templates","description":"<p>Creates a new template.</p>\n","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"35fb0d03-6bf7-4346-97b2-5f9f1906eb90","id":"35fb0d03-6bf7-4346-97b2-5f9f1906eb90","name":"Templates","type":"folder"}},"urlObject":{"path":["v1","templates"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[]}},"response":[{"id":"66d330d9-7ddf-498c-8fa6-2e689b219a96","name":"Create Template","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"description","value":"Test","type":"text"},{"key":"html","value":"<b>Hello</b> {{to.firstName}}!","type":"text"}],"options":{"raw":{"language":"json"}}},"url":"https://api.postgrid.com/print-mail/v1/templates"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"228"},{"key":"ETag","value":"W/\"e4-k+9DpBcq45uK62b0gs/1yl7YdZ0\""},{"key":"Date","value":"Thu, 12 Nov 2020 23:23:47 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"template_tBnVEzz878mXLbHQaz86j8\",\n    \"object\": \"template\",\n    \"live\": false,\n    \"deleted\": false,\n    \"description\": \"Test\",\n    \"html\": \"<b>Hello</b> {{to.firstName}}!\",\n    \"createdAt\": \"2020-11-12T23:23:47.974Z\",\n    \"updatedAt\": \"2020-11-12T23:23:47.974Z\"\n}"}],"_postman_id":"4ed66108-524f-466d-b274-1574e88f8594"},{"name":"Get Template","id":"fae495e1-6b5f-4a0a-aca3-1baa8663a45c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.postgrid.com/print-mail/v1/templates/:id","description":"<p>Gets the specified template by <code>id</code>. The <code>id</code> for the template. This should be a unique identifying string starting with <code>template_</code>.</p>\n","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"35fb0d03-6bf7-4346-97b2-5f9f1906eb90","id":"35fb0d03-6bf7-4346-97b2-5f9f1906eb90","name":"Templates","type":"folder"}},"urlObject":{"path":["v1","templates",":id"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[{"description":{"content":"<p>The <code>id</code> of the template.</p>\n<p><code>required</code></p>\n","type":"text/plain"},"type":"any","value":"template_c6HSqnsD1h2zoeHJ6Z9EEA","key":"id"}]}},"response":[{"id":"1a775a50-98cf-4681-91aa-ef492d9ce095","name":"Get Template","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.postgrid.com/print-mail/v1/templates/:id","host":["https://api.postgrid.com/print-mail"],"path":["v1","templates",":id"],"variable":[{"key":"id","value":"template_c6HSqnsD1h2zoeHJ6Z9EEA"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"217"},{"key":"ETag","value":"W/\"d9-G+gSlmlQtFeCveytrPFun28e9S8\""},{"key":"Date","value":"Thu, 12 Nov 2020 23:16:04 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"template_c6HSqnsD1h2zoeHJ6Z9EEA\",\n    \"object\": \"template\",\n    \"live\": false,\n    \"deleted\": false,\n    \"description\": \"Test\",\n    \"html\": \"<b>Hello</b> world!\",\n    \"createdAt\": \"2020-11-12T23:15:46.750Z\",\n    \"updatedAt\": \"2020-11-12T23:15:46.750Z\"\n}"}],"_postman_id":"fae495e1-6b5f-4a0a-aca3-1baa8663a45c"},{"name":"List Templates","id":"55587a04-dcac-4f3a-8d7a-4e981d652230","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.postgrid.com/print-mail/v1/templates?skip=2&limit=5&search=test","description":"<p>Gets a list of templates associated with the users organization.</p>\n","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"35fb0d03-6bf7-4346-97b2-5f9f1906eb90","id":"35fb0d03-6bf7-4346-97b2-5f9f1906eb90","name":"Templates","type":"folder"}},"urlObject":{"path":["v1","templates"],"host":["https://api.postgrid.com/print-mail"],"query":[{"description":{"content":"<p>Used for traversing pages.  See <a href=\"#lists-and-pagination\">lists and pagination</a>.</p>\n<p><code>optional</code></p>\n","type":"text/plain"},"key":"skip","value":"2"},{"description":{"content":"<p>Limits the number of resources returned.  See <a href=\"#lists-and-pagination\">lists and pagination</a>.</p>\n<p><code>optional</code></p>\n","type":"text/plain"},"key":"limit","value":"5"},{"description":{"content":"<p>Searches the data for the given input.  See <a href=\"#search\">search</a>.</p>\n<p><code>optional</code></p>\n","type":"text/plain"},"key":"search","value":"test"}],"variable":[]}},"response":[{"id":"004555c5-fd33-46a0-8c0e-9211bfd5f5e8","name":"List Templates","originalRequest":{"method":"GET","header":[],"url":"https://api.postgrid.com/print-mail/v1/templates"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"287"},{"key":"ETag","value":"W/\"11f-XFyHJ/zA6Imxw27bgcP0fMXXvkA\""},{"key":"Date","value":"Thu, 12 Nov 2020 23:17:23 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"object\": \"list\",\n    \"limit\": 10,\n    \"skip\": 0,\n    \"totalCount\": 1,\n    \"data\": [\n        {\n            \"id\": \"template_c6HSqnsD1h2zoeHJ6Z9EEA\",\n            \"object\": \"template\",\n            \"live\": false,\n            \"deleted\": false,\n            \"description\": \"Test\",\n            \"html\": \"<b>Hello</b> updated world!\",\n            \"createdAt\": \"2020-11-12T23:15:46.750Z\",\n            \"updatedAt\": \"2020-11-12T23:16:36.142Z\"\n        }\n    ]\n}"}],"_postman_id":"55587a04-dcac-4f3a-8d7a-4e981d652230"},{"name":"Update Template","id":"4311456e-5202-4d7f-9de9-036347891b46","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"html","value":"<b>Hello</b> updated world!","type":"text","description":"<p>The HTML content for the template.</p>\n<p><code>required</code></p>\n"},{"key":"description","value":"My updated template","description":"<p>A description for the template.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"metadata[updated]","value":"true","description":"<p>See <a href=\"#metadata\">metadata</a>.</p>\n<p><code>optional</code></p>\n","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/templates/:id","description":"<p>Updates a template based on the passed <code>id</code>. The <code>id</code> for the template. This should be a unique identifying string starting with <code>template_</code>.</p>\n","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"35fb0d03-6bf7-4346-97b2-5f9f1906eb90","id":"35fb0d03-6bf7-4346-97b2-5f9f1906eb90","name":"Templates","type":"folder"}},"urlObject":{"path":["v1","templates",":id"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[{"description":{"content":"<p>The <code>id</code> of the template to update.</p>\n<p><code>required</code></p>\n","type":"text/plain"},"type":"any","value":"template_tBnVEzz878mXLbHQaz86j8","key":"id"}]}},"response":[{"id":"14582209-7ac0-4530-91f1-596c7603a18f","name":"Update Template","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"html","value":"<b>Hello</b> updated world!","type":"text"}],"options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.postgrid.com/print-mail/v1/templates/:id","host":["https://api.postgrid.com/print-mail"],"path":["v1","templates",":id"],"variable":[{"key":"id","value":"template_tBnVEzz878mXLbHQaz86j8"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"209"},{"key":"ETag","value":"W/\"d1-PhH5+eslBTmi55oU73axkS5TIR0\""},{"key":"Date","value":"Fri, 13 Nov 2020 01:06:42 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"template_tBnVEzz878mXLbHQaz86j8\",\n    \"object\": \"template\",\n    \"live\": false,\n    \"description\": \"Test\",\n    \"html\": \"<b>Hello</b> updated world!\",\n    \"createdAt\": \"2020-11-12T23:23:47.974Z\",\n    \"updatedAt\": \"2020-11-13T01:06:42.336Z\"\n}"}],"_postman_id":"4311456e-5202-4d7f-9de9-036347891b46"},{"name":"Delete Template","id":"67968199-cf2e-4a20-b07f-6f4f1f49a4fd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://api.postgrid.com/print-mail/v1/templates/:id","description":"<p>Deletes the specified template by <code>id</code>. The <code>id</code> for the template. This should be a unique identifying string starting with <code>template_</code>.</p>\n","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"35fb0d03-6bf7-4346-97b2-5f9f1906eb90","id":"35fb0d03-6bf7-4346-97b2-5f9f1906eb90","name":"Templates","type":"folder"}},"urlObject":{"path":["v1","templates",":id"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[{"description":{"content":"<p>The <code>id</code> of the template to delete.</p>\n<p><code>required</code></p>\n","type":"text/plain"},"type":"any","value":"template_c6HSqnsD1h2zoeHJ6Z9EEA","key":"id"}]}},"response":[{"id":"b0e7881a-300f-40a0-be2e-16079a4b3b13","name":"Delete Template","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"https://api.postgrid.com/print-mail/v1/templates/:id","host":["https://api.postgrid.com/print-mail"],"path":["v1","templates",":id"],"variable":[{"key":"id","value":"template_c6HSqnsD1h2zoeHJ6Z9EEA"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"75"},{"key":"ETag","value":"W/\"4b-6cXH54cyMaBi5wAXfRBgRFKW8pU\""},{"key":"Date","value":"Thu, 12 Nov 2020 23:18:01 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"template_c6HSqnsD1h2zoeHJ6Z9EEA\",\n    \"object\": \"template\",\n    \"deleted\": true\n}"}],"_postman_id":"67968199-cf2e-4a20-b07f-6f4f1f49a4fd"}],"id":"35fb0d03-6bf7-4346-97b2-5f9f1906eb90","description":"<h1 id=\"template\">Template</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>A unique ID prefixed with <code>template_</code></td>\n</tr>\n<tr>\n<td>object</td>\n<td>string</td>\n<td>Always <code>template</code></td>\n</tr>\n<tr>\n<td>live</td>\n<td>boolean</td>\n<td><code>true</code> if this is a live mode template else <code>false</code></td>\n</tr>\n<tr>\n<td>description</td>\n<td>string or null</td>\n<td>Optional line describing the template</td>\n</tr>\n<tr>\n<td>html</td>\n<td>string</td>\n<td>Raw HTML</td>\n</tr>\n<tr>\n<td>metadata</td>\n<td>object or null</td>\n<td>See <a href=\"#metadata\">Metadata</a></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"a1c0daf8-b3c4-409b-9764-d435036140d3","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"90cca5e9-c994-4d63-b9fc-93e0990b8be7","type":"text/javascript","exec":[""]}}],"_postman_id":"35fb0d03-6bf7-4346-97b2-5f9f1906eb90"},{"name":"Letters","item":[{"name":"Create Letter","id":"3359155b-f225-4f6a-b08a-eafe7a52b54d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"to","value":"contact_vExZRJMEYGKYURpheNNa4J","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the receiver. You can either pass a contact <code>object</code> or a contact's <code>id</code>.</p>\n<p><code>required</code></p>\n","type":"text"},{"key":"from","value":"contact_vExZRJMEYGKYURpheNNa4J","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the sender. You can either pass a contact <code>object</code> or a contact's <code>id</code>.</p>\n<p><code>required</code></p>\n","type":"text"},{"key":"html","value":"<b>Hello</b>, {{to.firstName}}!","type":"text","description":"<p>The HTML content of the letter.</p>\n<p><code>required</code></p>\n"},{"key":"addressPlacement","value":"top_first_page","description":"<p>The location where the address will be placed.  Must be either <code>top_first_page</code> or <code>insert_blank_page</code>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"doubleSided","value":"true","type":"text","description":"<p>Indicates if the letter is double sided or not.</p>\n<p><code>optional</code>\nDefault: <code>false</code></p>\n"},{"key":"color","value":"false","type":"text","description":"<p>Indicates whether the letter will be printed in color or not.</p>\n<p><code>optional</code>\nDefault: <code>false</code></p>\n"},{"key":"perforatedPage","value":"1","description":"<p>Indicates which page is to be perforated. Currently the only valid value is <code>1</code> (the first page).</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"extraService","value":"certified","description":"<p>Indicates extra services for the letter.  See <a href=\"#certified-and-registered-mail\">certified and registered mail</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"envelope","value":"custom_envelope_fb8ExqX7fbAsdbJTNZgQxU","description":"<p>The ID of the custom envelope your organization has, if applicable.If you are interested in using custom envelopes but do not yet have one, please contact PostGrid support for assistance.</p>\n<p>If this parameter is not provided, the default standard envelope (standard double window) will be used.\n<code>optional</code></p>\n","type":"text","disabled":true},{"key":"returnEnvelope","value":"return_envelope_97Tcv1LxhWWLPUvn58CuVJ","description":"<p>The <code>id</code> of the <a href=\"#return-envelope\">return envelope</a> to be used.</p>\n<p><code>optional</code></p>\n","type":"text","disabled":true},{"key":"sendDate","value":"2023-02-16T15:40:35.873Z","description":"<p>The desired date for the letter to be sent out.</p>\n<p><code>optional</code></p>\n","type":"text","disabled":true},{"key":"description","value":"My HTML letter","description":"<p>A description for the letter.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"express","value":"false","description":"<p>See <a href=\"#express-shipping\">express shipping</a>.</p>\n","type":"text"},{"key":"mergeVariables[language]","value":"english","description":"<p>See <a href=\"#merge-variables\">merge variables</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"metadata[company]","value":"PostGrid","description":"<p>See <a href=\"#metadata\">metadata</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"mailingClass","value":"first_class","description":"<p>Defaults to <code>first_class</code>. See <a href=\"#mailing-class\">mailing class</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"size","value":"us_letter","description":"<p>Default size will be chosen based on the destination country, if not provided. Indicates the letter size for the letter being created. See <a href=\"#letter-size\">letter size</a></p>\n<p><code>optional</code></p>\n","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/letters","description":"<p>Create a letter order using HTML.</p>\n","urlObject":{"path":["v1","letters"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[]}},"response":[{"id":"27e78101-78ee-4b13-8d6e-2730e9e8b087","name":"Create Letter","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"to[firstName]","value":"Kevin","type":"text"},{"key":"to[companyName]","value":"PostGrid","type":"text"},{"key":"to[addressLine1]","value":"20-20 bay st","type":"text"},{"key":"to[addressLine2]","value":"floor 11","type":"text"},{"key":"to[city]","value":"Toronto","type":"text"},{"key":"from[firstName]","value":"Apaar","type":"text"},{"key":"from[companyName]","value":"PostGrid","type":"text"},{"key":"from[addressLine1]","value":"20-20 bay st","type":"text"},{"key":"from[addressLine2]","value":"floor 11","type":"text"},{"key":"from[city]","value":"toronto","type":"text"},{"key":"html","value":"<b>Hello</b>, {{to.firstName}}!","type":"text"}],"options":{"raw":{"language":"json"}}},"url":"https://api.postgrid.com/print-mail/v1/letters"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"862"},{"key":"ETag","value":"W/\"35e-5XCVr+H+jN6ZQi4Gdg6L0kKU4cw\""},{"key":"Date","value":"Thu, 12 Nov 2020 23:30:12 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"letter_b2friz2FYMzHAUmDuZfy1F\",\n    \"object\": \"letter\",\n    \"live\": false,\n    \"addressPlacement\": \"top_first_page\",\n    \"from\": {\n        \"id\": \"contact_dk6G7aFruyzTfAMzDstUBp\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"20-20 BAY ST FLOOR 11\",\n        \"addressLine2\": \"\",\n        \"addressStatus\": \"corrected\",\n        \"city\": \"TORONTO\",\n        \"companyName\": \"PostGrid\",\n        \"country\": \"CANADA\",\n        \"countryCode\": \"CA\",\n        \"firstName\": \"Apaar\",\n        \"postalOrZip\": \"M5J2N8\",\n        \"provinceOrState\": \"ON\"\n    },\n    \"html\": \"<b>Hello</b>, {{to.firstName}}!\",\n    \"sendDate\": \"Thu Nov 12 2020\",\n    \"status\": \"ready\",\n    \"to\": {\n        \"id\": \"contact_qCpdmxgNV37pCoENhoCrPH\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"20-20 BAY ST FLOOR 11\",\n        \"addressLine2\": \"\",\n        \"addressStatus\": \"corrected\",\n        \"city\": \"TORONTO\",\n        \"companyName\": \"PostGrid\",\n        \"country\": \"CANADA\",\n        \"countryCode\": \"CA\",\n        \"firstName\": \"Kevin\",\n        \"postalOrZip\": \"M5J2N8\",\n        \"provinceOrState\": \"ON\"\n    },\n    \"createdAt\": \"2020-11-12T23:30:12.581Z\",\n    \"updatedAt\": \"2020-11-12T23:30:12.581Z\"\n}"}],"_postman_id":"3359155b-f225-4f6a-b08a-eafe7a52b54d"},{"name":"Create Letter With Full Contact Info","id":"18751301-01b1-4403-bf35-75baeda37c15","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"to[addressLine1]","value":"20-20 BAY ST","type":"text","description":"<p>Receiving contact's first line of address.</p>\n<p><code>required</code></p>\n"},{"key":"to[firstName]","value":"Kevin","type":"text","description":"<p>Receiving contact's first name.  This field is <code>optional</code> if a <code>companyName</code> is being supplied. If no <code>companyName</code> is supplied then this field is <code>required</code></p>\n"},{"key":"to[lastName]","value":"Smith","type":"text","description":"<p>Receiving contact's last name.</p>\n<p><code>optional</code></p>\n"},{"key":"to[companyName]","value":"PostGrid","type":"text","description":"<p>Receiving contact's company name.  This field is <code>optional</code> if a <code>firstName</code> is being supplied. If no <code>firstName</code> is supplied then this field is <code>required</code></p>\n"},{"key":"to[city]","value":"TORONTO","type":"text","description":"<p>The receiving contact's city.</p>\n<p><code>optional</code></p>\n"},{"key":"to[postalOrZip]","value":"M5J 2N8","type":"text","description":"<p>Receiving contacts postal code or ZIP code.</p>\n<p><code>optional</code></p>\n"},{"key":"to[provinceOrState]","value":"ON","type":"text","description":"<p>Receiving contacts province or state.</p>\n<p><code>optional</code></p>\n"},{"key":"to[countryCode]","value":"CA","description":"<p>The ISO 3611-1 country code of the receiving contact's address.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"to[skipVerification]","value":"true","type":"text","description":"<p>Whether we want to skip address verification for this contact. Defaults to <code>false</code>.</p>\n<p><code>optional</code></p>\n"},{"key":"from[addressLine1]","value":"20-20 BAY ST","type":"text","description":"<p>Sending contact's first line of address.\n<code>required</code></p>\n"},{"key":"from[city]","value":"TORONTO","type":"text","description":"<p>The sending contact's city.\n<code>optional</code></p>\n"},{"key":"from[companyName]","value":"PostGrid","type":"text","description":"<p>Sending contact's company name. This field is <code>optional</code> if a <code>firstName</code> is being supplied. If no <code>firstName</code> is supplied then this field is <code>required</code>.</p>\n"},{"key":"from[firstName]","value":"Kevin","type":"text","description":"<p>Sending contact's first name. This field is <code>optional</code> if a <code>companyName</code> is being supplied. If no <code>companyName</code> is supplied then this field is <code>required</code></p>\n"},{"key":"from[lastName]","value":"Smith","type":"text","description":"<p>Sending contact's last name.\n<code>optional</code></p>\n"},{"key":"from[postalOrZip]","value":"M5J 2N8","type":"text","description":"<p>Sending contacts postal code or ZIP code.\n<code>optional</code></p>\n"},{"key":"from[provinceOrState]","value":"ON","type":"text","description":"<p>Sending contacts province or state.\n<code>optional</code></p>\n"},{"key":"from[countryCode]","value":"CA","description":"<p>The ISO 3611-1 country code of the sending contact's address.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"html","value":"<b>Hello</b>, {{to.firstName}}!","type":"text","description":"<p>The HTML content of the letter.\n<code>required</code></p>\n"},{"key":"addressPlacement","value":"top_first_page","type":"text","description":"<p>The location where the address will be placed. Must be either <code>top_first_page</code> or <code>insert_blank_page</code>.\n<code>optional</code></p>\n"},{"key":"doubleSided","value":"true","type":"text","description":"<p>Indicates if the letter is double sided or not.\n<code>optional</code>\nDefault: <code>false</code></p>\n"},{"key":"color","value":"false","type":"text","description":"<p>Indicates whether the letter will be printed in color or not.\n<code>optional</code></p>\n"},{"key":"perforatedPage","value":"1","type":"text","description":"<p>Indicates if the page is to be perforated (holes). <code>1</code> denotes <code>true</code>.\n<code>optional</code></p>\n"},{"key":"extraService","value":"certified","type":"text","description":"<p>Indicates extra services for the letter. See <a href=\"#certified-and-registered-mail\">certified and registered mail</a>.\n<code>optional</code></p>\n"},{"key":"envelope","value":"custom_envelope_fb8ExqX7fbAsdbJTNZgQxU","description":"<p>The ID of the custom envelope your organization has, if applicable.If you are interested in using custom envelopes but do not yet have one, please contact PostGrid support for assistance.</p>\n<p>If this parameter is not provided, the default standard envelope (standard double window) will be used.\n<code>optional</code></p>\n","type":"text","disabled":true},{"key":"returnEnvelope","value":"return_envelope_97Tcv1LxhWWLPUvn58CuVJ","type":"text","description":"<p>The <code>id</code> of the <a href=\"#return-envelope\">return envelope</a> to be used.\n<code>optional</code></p>\n","disabled":true},{"key":"sendDate","value":"2023-02-16T15:40:35.873Z","type":"text","description":"<p>The desired date for the letter to be sent out.\n<code>optional</code></p>\n","disabled":true},{"key":"description","value":"My HTML letter","type":"text","description":"<p>A description for the letter.\n<code>optional</code></p>\n"},{"key":"express","value":"false","type":"text","description":"<p>See <a href=\"#express-shipping\">express shipping</a>.</p>\n"},{"key":"mailingClass","value":"first_class","type":"text","description":"<p>Defaults to <code>first_class</code>. See <a href=\"#mailing-class\">mailing class</a>.\n<code>optional</code></p>\n"},{"key":"mergeVariables[language]","value":"english","type":"text","description":"<p>See <a href=\"#merge-variables\">merge variables</a>.\n<code>optional</code></p>\n"},{"key":"metadata[company]","value":"PostGrid","type":"text","description":"<p>See <a href=\"#metadata\">metadata</a>.\n<code>optional</code></p>\n"},{"key":"size","value":"us_letter","description":"<p>Default size will be chosen based on the destination country, if not provided. Indicates the letter size for the letter being created. See <a href=\"#letter-size\">letter size</a>\n<code>optional</code></p>\n","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/letters","description":"<p>Create a letter order using HTML while providing a contact <code>object</code> to both <code>from</code> and <code>to</code>. This can be done while sending templates, uploaded PDFs or PDF links. This simply demonstrates an alternative to passing the <code>from</code> and <code>to</code> contact's <code>id.</code></p>\n","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"2220a598-7165-4a5b-9d4d-d51c9e640243","id":"2220a598-7165-4a5b-9d4d-d51c9e640243","name":"Letters","type":"folder"}},"urlObject":{"path":["v1","letters"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[]}},"response":[{"id":"d8470e9b-619f-41dd-b0fe-7a7fb43d7799","name":"Create Letter","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"to[firstName]","value":"Kevin","type":"text"},{"key":"to[companyName]","value":"PostGrid","type":"text"},{"key":"to[addressLine1]","value":"20-20 bay st","type":"text"},{"key":"to[addressLine2]","value":"floor 11","type":"text"},{"key":"to[city]","value":"Toronto","type":"text"},{"key":"from[firstName]","value":"Apaar","type":"text"},{"key":"from[companyName]","value":"PostGrid","type":"text"},{"key":"from[addressLine1]","value":"20-20 bay st","type":"text"},{"key":"from[addressLine2]","value":"floor 11","type":"text"},{"key":"from[city]","value":"toronto","type":"text"},{"key":"html","value":"<b>Hello</b>, {{to.firstName}}!","type":"text"}],"options":{"raw":{"language":"json"}}},"url":"https://api.postgrid.com/print-mail/v1/letters"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"862"},{"key":"ETag","value":"W/\"35e-5XCVr+H+jN6ZQi4Gdg6L0kKU4cw\""},{"key":"Date","value":"Thu, 12 Nov 2020 23:30:12 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"letter_b2friz2FYMzHAUmDuZfy1F\",\n    \"object\": \"letter\",\n    \"live\": false,\n    \"addressPlacement\": \"top_first_page\",\n    \"from\": {\n        \"id\": \"contact_dk6G7aFruyzTfAMzDstUBp\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"20-20 BAY ST FLOOR 11\",\n        \"addressLine2\": \"\",\n        \"addressStatus\": \"corrected\",\n        \"city\": \"TORONTO\",\n        \"companyName\": \"PostGrid\",\n        \"country\": \"CANADA\",\n        \"countryCode\": \"CA\",\n        \"firstName\": \"Apaar\",\n        \"postalOrZip\": \"M5J2N8\",\n        \"provinceOrState\": \"ON\"\n    },\n    \"html\": \"<b>Hello</b>, {{to.firstName}}!\",\n    \"sendDate\": \"Thu Nov 12 2020\",\n    \"status\": \"ready\",\n    \"to\": {\n        \"id\": \"contact_qCpdmxgNV37pCoENhoCrPH\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"20-20 BAY ST FLOOR 11\",\n        \"addressLine2\": \"\",\n        \"addressStatus\": \"corrected\",\n        \"city\": \"TORONTO\",\n        \"companyName\": \"PostGrid\",\n        \"country\": \"CANADA\",\n        \"countryCode\": \"CA\",\n        \"firstName\": \"Kevin\",\n        \"postalOrZip\": \"M5J2N8\",\n        \"provinceOrState\": \"ON\"\n    },\n    \"createdAt\": \"2020-11-12T23:30:12.581Z\",\n    \"updatedAt\": \"2020-11-12T23:30:12.581Z\"\n}"}],"_postman_id":"18751301-01b1-4403-bf35-75baeda37c15"},{"name":"Create Letter with Template","id":"c007d7ee-9df0-4368-b690-a4a1a28d6eec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"to","value":"contact_pxd7wnnD1xY6H6etKNvjb4","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the receiver. You can either pass a contact <code>object</code> or a contact's <code>id</code>.</p>\n<p><code>required</code></p>\n","type":"text"},{"key":"from","value":"contact_pxd7wnnD1xY6H6etKNvjb4","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the sender. You can either pass a contact <code>object</code> or a contact's <code>id</code>.</p>\n<p><code>required</code></p>\n","type":"text"},{"key":"template","value":"template_tBnVEzz878mXLbHQaz86j8","type":"text","description":"<p>The template's <code>id</code> to be used for the letter.</p>\n<p><code>required</code></p>\n"},{"key":"addressPlacement","value":"top_first_page","description":"<p>The location where the address will be placed. Must be either <code>top_first_page</code> or <code>insert_blank_page</code>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"doubleSided","value":"true","description":"<p>Indicates if the letter is double sided or not.\n<code>optional</code>\nDefault: <code>false</code></p>\n","type":"text"},{"key":"color","value":"false","description":"<p>Indicates whether the letter will be printed in color or not.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"perforatedPage","value":"1","description":"<p>Indicates if the page is to be perforated (holes). <code>1</code> denotes <code>true</code>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"extraService","value":"certified","description":"<p>Indicates extra services for the letter. See <a href=\"#certified-and-registered-mail\">certified and registered mail</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"envelope","value":"custom_envelope_fb8ExqX7fbAsdbJTNZgQxU","description":"<p>The ID of the custom envelope your organization has, if applicable.If you are interested in using custom envelopes but do not yet have one, please contact PostGrid support for assistance.</p>\n<p>If this parameter is not provided, the default standard envelope (standard double window) will be used.\n<code>optional</code></p>\n","type":"text","disabled":true},{"key":"returnEnvelope","value":"return_envelope_97Tcv1LxhWWLPUvn58CuVJ","description":"<p>The <code>id</code> of the <a href=\"#return-envelope\">return envelope</a> to be used.</p>\n<p><code>optional</code></p>\n","type":"text","disabled":true},{"key":"sendDate","value":"2023-02-16T15:40:35.873Z","description":"<p>The desired date for the letter to be sent out.</p>\n<p><code>optional</code></p>\n","type":"text","disabled":true},{"key":"express","value":"false","description":"<p>See <a href=\"#express-shipping\">express shipping</a>.</p>\n","type":"text"},{"key":"description","value":"My template letter","description":"<p>A description for the letter.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"mailingClass","value":"first_class","description":"<p>Defaults to <code>first_class</code>. See <a href=\"#mailing-class\">mailing class</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"mergeVariables[language]","value":"english","description":"<p>See <a href=\"#merge-variables\">merge variables</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"metadata[company]","value":"PostGrid","description":"<p>See <a href=\"#metadata\">metadata</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"size","value":"us_letter","description":"<p>Default size will be chosen based on the destination country, if not provided. Indicates the letter size for the letter being created. See <a href=\"#letter-size\">letter size</a>\n<code>optional</code></p>\n","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/letters","description":"<p>Create a letter order using a preexisting template.</p>\n","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"2220a598-7165-4a5b-9d4d-d51c9e640243","id":"2220a598-7165-4a5b-9d4d-d51c9e640243","name":"Letters","type":"folder"}},"urlObject":{"path":["v1","letters"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[]}},"response":[{"id":"d0bb9e87-3d84-4354-bc61-3f50317ee9a0","name":"Create Letter with Template","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"to[firstName]","value":"Kevin","type":"text"},{"key":"to[companyName]","value":"PostGrid","type":"text"},{"key":"to[addressLine1]","value":"20-20 bay st","type":"text"},{"key":"to[addressLine2]","value":"floor 11","type":"text"},{"key":"to[city]","value":"Toronto","type":"text"},{"key":"from[firstName]","value":"Apaar","type":"text"},{"key":"from[companyName]","value":"PostGrid","type":"text"},{"key":"from[addressLine1]","value":"20-20 bay st","type":"text"},{"key":"from[addressLine2]","value":"floor 11","type":"text"},{"key":"from[city]","value":"toronto","type":"text"},{"key":"template","value":"template_tBnVEzz878mXLbHQaz86j8","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/letters"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"content-length","value":"866"},{"key":"content-type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"letter_qVtvoLzZ4qurmUSDNAShTj\",\n    \"object\": \"letter\",\n    \"live\": false,\n    \"addressPlacement\": \"top_first_page\",\n    \"from\": {\n        \"id\": \"contact_dk6G7aFruyzTfAMzDstUBp\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"20-20 BAY ST FLOOR 11\",\n        \"addressLine2\": \"\",\n        \"addressStatus\": \"corrected\",\n        \"city\": \"TORONTO\",\n        \"companyName\": \"PostGrid\",\n        \"country\": \"CANADA\",\n        \"countryCode\": \"CA\",\n        \"firstName\": \"Apaar\",\n        \"postalOrZip\": \"M5J2N8\",\n        \"provinceOrState\": \"ON\"\n    },\n    \"sendDate\": \"Thu Nov 12 2020\",\n    \"status\": \"ready\",\n    \"template\": \"template_tBnVEzz878mXLbHQaz86j8\",\n    \"to\": {\n        \"id\": \"contact_qCpdmxgNV37pCoENhoCrPH\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"20-20 BAY ST FLOOR 11\",\n        \"addressLine2\": \"\",\n        \"addressStatus\": \"corrected\",\n        \"city\": \"TORONTO\",\n        \"companyName\": \"PostGrid\",\n        \"country\": \"CANADA\",\n        \"countryCode\": \"CA\",\n        \"firstName\": \"Kevin\",\n        \"postalOrZip\": \"M5J2N8\",\n        \"provinceOrState\": \"ON\"\n    },\n    \"createdAt\": \"2020-11-13T01:34:44.117Z\",\n    \"updatedAt\": \"2020-11-13T01:34:44.117Z\"\n}"}],"_postman_id":"c007d7ee-9df0-4368-b690-a4a1a28d6eec"},{"name":"Create Letter with Template and Attached PDF","id":"1322c154-70c6-41b8-9ad3-13180600aafa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"to","value":"contact_8v1mibdKkpK8Si6vz7xBVi","type":"text","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the receiver. You can either pass a contact <code>object</code> or a contact's <code>id</code>.\n<code>required</code></p>\n"},{"key":"from","value":"contact_8v1mibdKkpK8Si6vz7xBVi","type":"text","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the sender. You can either pass a contact <code>object</code> or a contact's <code>id</code>.\n<code>required</code></p>\n"},{"key":"template","value":"template_5n7fprLVnDDsULzhguWBaZ","type":"text","description":"<p>The template's <code>id</code> to be used for the letter.\n<code>required</code></p>\n"},{"key":"addressPlacement","value":"top_first_page","type":"text","description":"<p>The location where the address will be placed. Must be either <code>top_first_page</code> or <code>insert_blank_page</code>.\n<code>optional</code></p>\n"},{"key":"doubleSided","value":"true","type":"text","description":"<p>Indicates if the letter is double sided or not.\n<code>optional</code>\nDefault: <code>false</code></p>\n"},{"key":"color","value":"false","type":"text","description":"<p>Indicates whether the letter will be printed in color or not.\n<code>optional</code></p>\n"},{"key":"perforatedPage","value":"1","type":"text","description":"<p>Indicates which page should be perforated. If supplied, the value must be <code>1</code> meaning perforate the first page.</p>\n<p><code>optional</code></p>\n","disabled":true},{"key":"extraService","value":"certified","type":"text","description":"<p>Indicates extra services for the letter. See <a href=\"#certified-and-registered-mail\">certified and registered mail</a>.\n<code>optional</code></p>\n"},{"key":"envelope","value":"custom_envelope_fb8ExqX7fbAsdbJTNZgQxU","type":"text","description":"<p>The ID of the custom envelope your organization has, if applicable.If you are interested in using custom envelopes but do not yet have one, please contact PostGrid support for assistance.</p>\n<p>If this parameter is not provided, the default standard envelope (standard double window) will be used.\n<code>optional</code></p>\n","disabled":true},{"key":"returnEnvelope","value":"return_envelope_97Tcv1LxhWWLPUvn58CuVJ","type":"text","description":"<p>The <code>id</code> of the <a href=\"#return-envelope\">return envelope</a> to be used.\n<code>optional</code></p>\n","disabled":true},{"key":"sendDate","value":"2023-02-16T15:40:35.873Z","type":"text","description":"<p>The desired date for the letter to be sent out.</p>\n<p><code>optional</code></p>\n","disabled":true},{"key":"express","value":"false","type":"text","description":"<p>See <a href=\"#express-shipping\">express shipping</a>.</p>\n"},{"key":"description","value":"Template with attached PDF","type":"text","description":"<p>A description for the letter.</p>\n<p><code>optional</code></p>\n"},{"key":"mailingClass","value":"first_class","type":"text","description":"<p>Defaults to <code>first_class</code>. See <a href=\"#mailing-class\">mailing class</a>.\n<code>optional</code></p>\n","disabled":true},{"key":"mergeVariables[language]","value":"english","type":"text"},{"key":"metadata[company]","value":"PostGrid","type":"text"},{"key":"size","value":"us_letter","type":"text","description":"<p>Default size will be chosen based on the destination country, if not provided. Indicates the letter size for the letter being created. See <a href=\"#letter-size\">letter size</a></p>\n<p><code>optional</code></p>\n"},{"key":"attachedPDF[placement]","value":"after_template","type":"text","description":"<p>One of either <code>before_template</code> (the attached PDF will be placed before the template) or <code>after_template</code> (the attached PDF will be placed after the template).</p>\n"},{"key":"attachedPDF[file]","type":"text","description":"<p>The PDF file you would like to attach. Can be supplied via form data upload, a publically accessible link to a peformant file host (e.g. AWS S3), or a base64-encoded data URL.</p>\n","value":"https://www.africau.edu/images/default/sample.pdf"}]},"url":"https://api.postgrid.com/print-mail/v1/letters","description":"<p>Create a letter order with an HTML template and attach a PDF file before/after the template.</p>\n","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"2220a598-7165-4a5b-9d4d-d51c9e640243","id":"2220a598-7165-4a5b-9d4d-d51c9e640243","name":"Letters","type":"folder"}},"urlObject":{"path":["v1","letters"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[]}},"response":[{"id":"1e13e2c2-1aab-4bbb-9718-020e07c5716c","name":"Create Letter with Template and Attached PDF","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"to","value":"contact_8v1mibdKkpK8Si6vz7xBVi","type":"text","description":"The `id` or [contact](#contact) `object` of the receiver. You can either pass a contact `object` or a contact's `id`.\n`required`"},{"key":"from","value":"contact_8v1mibdKkpK8Si6vz7xBVi","type":"text","description":"The `id` or [contact](#contact) `object` of the sender. You can either pass a contact `object` or a contact's `id`.\n`required`"},{"key":"template","value":"template_5n7fprLVnDDsULzhguWBaZ","type":"text","description":"The template's `id` to be used for the letter.\n`required`"},{"key":"addressPlacement","value":"top_first_page","type":"text","description":"The location where the address will be placed. Must be either `top_first_page` or `insert_blank_page`.\n`optional`"},{"key":"doubleSided","value":"true","type":"text","description":"Indicates if the letter is double sided or not.\n`optional`"},{"key":"color","value":"false","type":"text","description":"Indicates whether the letter will be printed in color or not.\n`optional`"},{"key":"perforatedPage","value":"1","type":"text","description":"Indicates which page should be perforated. If supplied, the value must be `1` meaning perforate the first page.\n\n`optional`","disabled":true},{"key":"extraService","value":"certified","type":"text","description":"Indicates extra services for the letter. See [certified and registered mail](#certified-and-registered-mail).\n`optional`"},{"key":"envelopeType","value":"flat","type":"text","description":"Indicates the envelope type for the letter. Must be either `standard_double_window` or `flat`.\n`optional`","disabled":true},{"key":"returnEnvelope","value":"return_envelope_97Tcv1LxhWWLPUvn58CuVJ","type":"text","description":"The `id` of the [return envelope](#return-envelope) to be used.\n`optional`","disabled":true},{"key":"sendDate","value":"2023-02-16T15:40:35.873Z","type":"text","description":"The desired date for the letter to be sent out.\n\n`optional`","disabled":true},{"key":"express","value":"false","type":"text","description":"See [express shipping](#express-shipping)."},{"key":"description","value":"Template with attached PDF","type":"text","description":"A description for the letter.\n\n`optional`"},{"key":"mailingClass","value":"first_class","type":"text","description":"Defaults to `first_class`. See [mailing class](#mailing-class).\n`optional`","disabled":true},{"key":"mergeVariables[language]","value":"english","type":"text"},{"key":"metadata[company]","value":"PostGrid","type":"text"},{"key":"size","value":"us_letter","type":"text","description":"Default size will be chosen based on the destination country, if not provided. Indicates the letter size for the letter being created. See [letter size](#letter-size)\n\n`optional`"},{"key":"attachedPDF[placement]","value":"after_template","type":"text","description":"One of either `before_template` (the attached PDF will be placed before the template) or `after_template` (the attached PDF will be placed after the template)."},{"key":"attachedPDF[file]","type":"text","description":"The PDF file you would like to attach. Can be supplied via form data upload, a publically accessible link to a peformant file host (e.g. AWS S3), or a base64-encoded data URL.","value":"https://www.africau.edu/images/default/sample.pdf"}]},"url":"https://api.postgrid.com/print-mail/v1/letters"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 16 Oct 2023 20:40:24 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1328"},{"key":"Connection","value":"keep-alive"},{"key":"x-powered-by","value":"Express"},{"key":"vary","value":"Origin"},{"key":"access-control-allow-credentials","value":"true"},{"key":"etag","value":"W/\"530-ju5yXOAI7/dj5y9/fmNmlfIxv4s\""},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=%2FthUxNkSDZr61czKjbGy9hC0mRRUJ4brseEmIL7gD4vh3LCFBLyjHpl5jQf%2BcsMRqW6%2FoT0bwlTePDcpLkkRRfFDb52d3XJ9DKKVHaUThMCNDC21eolnFPNrwuTqtEHBt73F\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"81731ddc6ad85728-IAD"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"letter_3yFTNyNbETh7uomTWmVjn5\",\n    \"object\": \"letter\",\n    \"live\": false,\n    \"addressPlacement\": \"top_first_page\",\n    \"attachedPDF\": {\n        \"file\": \"https://pg-prod-bucket-1.s3.amazonaws.com/test/pdf_9FHvwkDfFSJa2yWQXfzDtP?AWSAccessKeyId=AKIA5GFUILSULWTWCR64&Expires=1697489724&Signature=Dt3iFFPY9K0P01jxedNZIpupQ8E%3D\",\n        \"placement\": \"after_template\"\n    },\n    \"color\": false,\n    \"description\": \"Template with attached PDF\",\n    \"doubleSided\": true,\n    \"envelopeType\": \"standard_double_window\",\n    \"express\": false,\n    \"extraService\": \"certified\",\n    \"from\": {\n        \"id\": \"contact_8v1mibdKkpK8Si6vz7xBVi\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"20 MASS AVE\",\n        \"addressLine2\": null,\n        \"addressStatus\": \"verified\",\n        \"city\": \"CAMBRIDGE\",\n        \"country\": \"UNITED STATES\",\n        \"countryCode\": \"US\",\n        \"firstName\": \"Brian\",\n        \"postalOrZip\": \"10013\",\n        \"provinceOrState\": \"MA\"\n    },\n    \"mailingClass\": \"first_class\",\n    \"mergeVariables\": {\n        \"language\": \"english\"\n    },\n    \"metadata\": {\n        \"company\": \"PostGrid\"\n    },\n    \"sendDate\": \"2023-10-16T20:40:24.136Z\",\n    \"size\": \"us_letter\",\n    \"status\": \"ready\",\n    \"template\": \"template_5n7fprLVnDDsULzhguWBaZ\",\n    \"to\": {\n        \"id\": \"contact_8v1mibdKkpK8Si6vz7xBVi\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"20 MASS AVE\",\n        \"addressLine2\": null,\n        \"addressStatus\": \"verified\",\n        \"city\": \"CAMBRIDGE\",\n        \"country\": \"UNITED STATES\",\n        \"countryCode\": \"US\",\n        \"firstName\": \"Brian\",\n        \"postalOrZip\": \"10013\",\n        \"provinceOrState\": \"MA\"\n    },\n    \"createdAt\": \"2023-10-16T20:40:24.139Z\",\n    \"updatedAt\": \"2023-10-16T20:40:24.139Z\"\n}"}],"_postman_id":"1322c154-70c6-41b8-9ad3-13180600aafa"},{"name":"Create Letter with PDF","id":"8492c5cc-d013-49f5-abd1-dbaf7386a1c7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"to","value":"contact_pxd7wnnD1xY6H6etKNvjb4","type":"text","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the receiver. You can either pass a contact <code>object</code> or a contact's <code>id</code>.</p>\n<p><code>required</code></p>\n"},{"key":"from","value":"contact_pxd7wnnD1xY6H6etKNvjb4","type":"text","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the sender. You can either pass a contact <code>object</code> or a contact's <code>id</code>.</p>\n<p><code>required</code></p>\n"},{"key":"pdf","type":"file","description":"<p>The PDF file to be used for the letter.</p>\n<p><code>required</code></p>\n","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["XxLHEBk89/blank.pdf"],"src":"XxLHEBk89/blank.pdf"},{"key":"addressPlacement","value":"top_first_page","description":"<p>The location where the address will be placed. Must be either <code>top_first_page</code> or <code>insert_blank_page</code>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"doubleSided","value":"true","description":"<p>Indicates if the letter is double sided or not.\n<code>optional</code>\nDefault: <code>false</code></p>\n","type":"text"},{"key":"color","value":"false","description":"<p>Indicates whether the letter will be printed in color or not.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"perforatedPage","value":"1","description":"<p>Indicates if the page is to be perforated (holes). <code>1</code> denotes <code>true</code>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"extraService","value":"certified","description":"<p>Indicates extra services for the letter. See <a href=\"#certified-and-registered-mail\">certified and registered mail</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"envelope","value":"custom_envelope_fb8ExqX7fbAsdbJTNZgQxU","description":"<p>The ID of the custom envelope your organization has, if applicable.If you are interested in using custom envelopes but do not yet have one, please contact PostGrid support for assistance.</p>\n<p>If this parameter is not provided, the default standard envelope (standard double window) will be used.\n<code>optional</code></p>\n","type":"text","disabled":true},{"key":"returnEnvelope","value":"return_envelope_97Tcv1LxhWWLPUvn58CuVJ","description":"<p>The <code>id</code> of the <a href=\"#return-envelope\">return envelope</a> to be used.</p>\n<p><code>optional</code></p>\n","type":"text","disabled":true},{"key":"sendDate","value":"2023-02-16T15:40:35.873Z","description":"<p>The desired date for the letter to be sent out.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"express","value":"false","description":"<p>See <a href=\"#express-shipping\">express shipping</a>.</p>\n","type":"text"},{"key":"description","value":"My PDF file letter","description":"<p>A description for the letter.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"mailingClass","value":"standard_class","description":"<p>Defaults to <code>first_class</code>. See <a href=\"#mailing-class\">mailing class</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"mergeVariables[language]","value":"english","description":"<p>see <a href=\"#merge-variables\">merge variables</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"metadata[company]","value":"PostGrid","description":"<p>See <a href=\"#metadata\">metadata</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"size","value":"us_letter","description":"<p>Default size will be chosen based on the destination country, if not provided. Indicates the letter size for the letter being created. See <a href=\"#letter-size\">letter size</a>\n<code>optional</code></p>\n","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/letters","description":"<p>Directly upload a PDF to be stamped and sent out.</p>\n","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"2220a598-7165-4a5b-9d4d-d51c9e640243","id":"2220a598-7165-4a5b-9d4d-d51c9e640243","name":"Letters","type":"folder"}},"urlObject":{"path":["v1","letters"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[]}},"response":[{"id":"a797d3f8-ee85-4fc3-853f-d62b3817751c","name":"Create Letter with PDF","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"to","value":"contact_dk6G7aFruyzTfAMzDstUBp","type":"text"},{"key":"pdf","type":"file","src":"/home/apaar/Downloads/Invoice-21391B62-0001.pdf"},{"key":"from","value":"contact_dk6G7aFruyzTfAMzDstUBp","type":"text"},{"key":"metadata[test]","value":"test","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/letters"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"848"},{"key":"ETag","value":"W/\"350-7OB/PBEgqXWmKs5RzM3wjuNq5vM\""},{"key":"Date","value":"Thu, 12 Nov 2020 23:32:24 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"letter_8xPhRN4MpUbQ6d5tj2ve6R\",\n    \"object\": \"letter\",\n    \"live\": false,\n    \"addressPlacement\": \"top_first_page\",\n    \"from\": {\n        \"id\": \"contact_dk6G7aFruyzTfAMzDstUBp\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"20-20 BAY ST FLOOR 11\",\n        \"addressLine2\": \"\",\n        \"addressStatus\": \"corrected\",\n        \"city\": \"TORONTO\",\n        \"companyName\": \"PostGrid\",\n        \"country\": \"CANADA\",\n        \"countryCode\": \"CA\",\n        \"firstName\": \"Apaar\",\n        \"postalOrZip\": \"M5J2N8\",\n        \"provinceOrState\": \"ON\"\n    },\n    \"mailingClass\": \"standard_class\",\n    \"metadata\": {\n        \"test\": \"test\"\n    },\n    \"sendDate\": \"Thu Nov 12 2020\",\n    \"status\": \"ready\",\n    \"to\": {\n        \"id\": \"contact_dk6G7aFruyzTfAMzDstUBp\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"20-20 BAY ST FLOOR 11\",\n        \"addressLine2\": \"\",\n        \"addressStatus\": \"corrected\",\n        \"city\": \"TORONTO\",\n        \"companyName\": \"PostGrid\",\n        \"country\": \"CANADA\",\n        \"countryCode\": \"CA\",\n        \"firstName\": \"Apaar\",\n        \"postalOrZip\": \"M5J2N8\",\n        \"provinceOrState\": \"ON\"\n    },\n    \"createdAt\": \"2020-11-12T23:32:24.256Z\",\n    \"updatedAt\": \"2020-11-12T23:32:24.256Z\"\n}"}],"_postman_id":"8492c5cc-d013-49f5-abd1-dbaf7386a1c7"},{"name":"Create Letter with PDF Link","id":"4ef1276a-94e0-4b70-b0db-41246b42606c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"to","value":"contact_pxd7wnnD1xY6H6etKNvjb4","type":"text","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the receiver. You can either pass a contact <code>object</code> or a contact's <code>id</code>.</p>\n<p><code>required</code></p>\n"},{"key":"from","value":"contact_pxd7wnnD1xY6H6etKNvjb4","type":"text","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the sender. You can either pass a contact <code>object</code> or a contact's <code>id</code>.</p>\n<p><code>required</code></p>\n"},{"key":"pdf","value":"https://pg-prod-bucket-1.s3.amazonaws.com/live/usr_9m6FVmm78VxXhtkKjARXnE/ltr_6YgdBFHXL2axmqzKY8EEu8.pdf","type":"text","description":"<p>A publicly accessible URL of a PDF to be used for the letter.</p>\n<p><code>required</code></p>\n"},{"key":"addressPlacement","value":"insert_blank_page","type":"text","description":"<p>The location where the address will be placed. Must be either <code>top_first_page</code> or <code>insert_blank_page</code>.</p>\n<p><code>optional</code></p>\n"},{"key":"doubleSided","value":"true","description":"<p>Indicates if the letter is double sided or not.\n<code>optional</code>\nDefault: <code>false</code></p>\n","type":"text"},{"key":"color","value":"false","description":"<p>Indicates whether the letter will be printed in color or not.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"perforatedPage","value":"1","description":"<p>Indicates if the page is to be perforated (holes). <code>1</code> denotes <code>true</code>.</p>\n<p><code>optional</code></p>\n","type":"text","disabled":true},{"key":"extraService","value":"certified","description":"<p>Indicates extra services for the letter. See <a href=\"#certified-and-registered-mail\">certified and registered mail</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"envelope","value":"custom_envelope_fb8ExqX7fbAsdbJTNZgQxU","description":"<p>The ID of the custom envelope your organization has, if applicable.If you are interested in using custom envelopes but do not yet have one, please contact PostGrid support for assistance.</p>\n<p>If this parameter is not provided, the default standard envelope (standard double window) will be used.\n<code>optional</code></p>\n","type":"text","disabled":true},{"key":"returnEnvelope","value":"return_envelope_97Tcv1LxhWWLPUvn58CuVJ","description":"<p>The <code>id</code> of the <a href=\"#return-envelope\">return envelope</a> to be used.</p>\n<p><code>optional</code></p>\n","type":"text","disabled":true},{"key":"sendDate","value":"2023-02-16T15:40:35.873Z","description":"<p>The desired date for the letter to be sent out.</p>\n<p><code>optional</code></p>\n","type":"text","disabled":true},{"key":"description","value":"My PDF link letter","description":"<p>A description for the letter.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"express","value":"false","description":"<p>See <a href=\"#express-shipping\">express shipping</a>.</p>\n","type":"text"},{"key":"mailingClass","value":"first_class","description":"<p>Defaults to <code>first_class</code>. See <a href=\"#mailing-class\">mailing class</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"mergeVariables[language]","value":"english","description":"<p>See <a href=\"#merge-variables\">merge variables</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"metadata[company]","value":"PostGrid","description":"<p>See <a href=\"#metadata\">metadata</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"size","value":"us_letter","description":"<p>Default size will be chosen based on the destination country, if not provided. Indicates the letter size for the letter being created. See <a href=\"#letter-size\">letter size</a>\n<code>optional</code></p>\n","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/letters","description":"<p>Create a letter with a link to a PDF hosted somewhere publicly accessible.</p>\n","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"2220a598-7165-4a5b-9d4d-d51c9e640243","id":"2220a598-7165-4a5b-9d4d-d51c9e640243","name":"Letters","type":"folder"}},"urlObject":{"path":["v1","letters"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[]}},"response":[{"id":"cddf0f60-e804-46d3-b21c-397ed5f2d951","name":"Create Letter with PDF Link","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"to","value":"contact_dk6G7aFruyzTfAMzDstUBp","type":"text"},{"key":"from","value":"contact_dk6G7aFruyzTfAMzDstUBp","type":"text"},{"key":"pdf","value":"https://pg-prod-bucket-1.s3.amazonaws.com/live/usr_9m6FVmm78VxXhtkKjARXnE/ltr_6YgdBFHXL2axmqzKY8EEu8.pdf","type":"text"},{"key":"addressPlacement","value":"insert_blank_page","type":"text"}],"options":{"raw":{"language":"json"}}},"url":"https://api.postgrid.com/print-mail/v1/letters"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"824"},{"key":"ETag","value":"W/\"338-f7lLns0SOgbtF1F+yRK74/Zzr+M\""},{"key":"Date","value":"Thu, 12 Nov 2020 23:36:00 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"letter_n8xDr8B87eK8CG8216KD4f\",\n    \"object\": \"letter\",\n    \"live\": false,\n    \"addressPlacement\": \"insert_blank_page\",\n    \"from\": {\n        \"id\": \"contact_dk6G7aFruyzTfAMzDstUBp\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"20-20 BAY ST FLOOR 11\",\n        \"addressLine2\": \"\",\n        \"addressStatus\": \"corrected\",\n        \"city\": \"TORONTO\",\n        \"companyName\": \"PostGrid\",\n        \"country\": \"CANADA\",\n        \"countryCode\": \"CA\",\n        \"firstName\": \"Apaar\",\n        \"postalOrZip\": \"M5J2N8\",\n        \"provinceOrState\": \"ON\"\n    },\n    \"sendDate\": \"Thu Nov 12 2020\",\n    \"status\": \"ready\",\n    \"to\": {\n        \"id\": \"contact_dk6G7aFruyzTfAMzDstUBp\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"20-20 BAY ST FLOOR 11\",\n        \"addressLine2\": \"\",\n        \"addressStatus\": \"corrected\",\n        \"city\": \"TORONTO\",\n        \"companyName\": \"PostGrid\",\n        \"country\": \"CANADA\",\n        \"countryCode\": \"CA\",\n        \"firstName\": \"Apaar\",\n        \"postalOrZip\": \"M5J2N8\",\n        \"provinceOrState\": \"ON\"\n    },\n    \"createdAt\": \"2020-11-12T23:36:00.306Z\",\n    \"updatedAt\": \"2020-11-12T23:36:00.306Z\"\n}"}],"_postman_id":"4ef1276a-94e0-4b70-b0db-41246b42606c"},{"name":"Get Letter","id":"ab066af8-1a0d-483a-889b-2263f1c6c0a4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.postgrid.com/print-mail/v1/letters/:id?expand[]=template","description":"<p>Gets the specified letter by <code>id</code>. This should be a unique identifying string starting with <code>letter_</code>.</p>\n","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"2220a598-7165-4a5b-9d4d-d51c9e640243","id":"2220a598-7165-4a5b-9d4d-d51c9e640243","name":"Letters","type":"folder"}},"urlObject":{"path":["v1","letters",":id"],"host":["https://api.postgrid.com/print-mail"],"query":[{"description":{"content":"<p>Must be either <code>template</code> or <code>returnEnvelope</code>. See <a href=\"#expansions\">expansions</a>.</p>\n<p><code>optional</code></p>\n","type":"text/plain"},"key":"expand[]","value":"template"}],"variable":[{"description":{"content":"<p>The <code>id</code> of the desired letter.</p>\n<p><code>required</code></p>\n","type":"text/plain"},"type":"any","value":"letter_2fVzC5t1jbRoiUCMoHjCko","key":"id"}]}},"response":[{"id":"9b289f46-77ff-4ecf-962f-1e4bc273ec21","name":"Get Letter","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.postgrid.com/print-mail/v1/letters/:id?expand[]=template","host":["https://api.postgrid.com/print-mail"],"path":["v1","letters",":id"],"query":[{"key":"expand[]","value":"template"}],"variable":[{"key":"id","value":"letter_s3x64gpEQaU5Jj3hFkMTWQ"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1265"},{"key":"ETag","value":"W/\"4f1-NjRmUD94Ip7RsFVwLtRusXbFzcM\""},{"key":"Date","value":"Fri, 13 Nov 2020 01:23:06 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"letter_s3x64gpEQaU5Jj3hFkMTWQ\",\n    \"object\": \"letter\",\n    \"live\": false,\n    \"addressPlacement\": \"top_first_page\",\n    \"from\": {\n        \"id\": \"contact_cZb84jmqSmL27ZS2abBrnD\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"212-3075 14TH AVE\",\n        \"addressLine2\": \"\",\n        \"addressStatus\": \"corrected\",\n        \"city\": \"MARKHAM\",\n        \"companyName\": \"PostGrid\",\n        \"country\": \"CANADA\",\n        \"countryCode\": \"CA\",\n        \"firstName\": \"Apaar\",\n        \"postalOrZip\": \"L3R0G9\",\n        \"provinceOrState\": \"ON\"\n    },\n    \"html\": \"<b>Hello</b> updated world!\",\n    \"pageCount\": 1,\n    \"sendDate\": \"Thu Nov 12 2020\",\n    \"status\": \"ready\",\n    \"template\": {\n        \"id\": \"template_tBnVEzz878mXLbHQaz86j8\",\n        \"object\": \"template\",\n        \"live\": false,\n        \"description\": \"Test\",\n        \"html\": \"<b>Hello</b> updated world!\",\n        \"createdAt\": \"2020-11-12T23:23:47.974Z\",\n        \"updatedAt\": \"2020-11-13T01:06:42.336Z\"\n    },\n    \"to\": {\n        \"id\": \"contact_cqyde5u6FDJggQ8nj9q7s9\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"212-3075 14TH AVE\",\n        \"addressLine2\": \"\",\n        \"addressStatus\": \"corrected\",\n        \"city\": \"MARKHAM\",\n        \"companyName\": \"PostGrid\",\n        \"country\": \"CANADA\",\n        \"countryCode\": \"CA\",\n        \"firstName\": \"Kevin\",\n        \"postalOrZip\": \"L3R0G9\",\n        \"provinceOrState\": \"ON\"\n    },\n    \"url\": \"https://eksandbox.s3.amazonaws.com/test/letter_s3x64gpEQaU5Jj3hFkMTWQ.pdf?AWSAccessKeyId=AKIA5GFUILSUDYW4YKAG&Expires=1605231486&Signature=LrJoyyULx0lDU6iC%2BAq845P0Rac%3D\",\n    \"createdAt\": \"2020-11-13T01:22:53.266Z\",\n    \"updatedAt\": \"2020-11-13T01:22:56.495Z\"\n}"}],"_postman_id":"ab066af8-1a0d-483a-889b-2263f1c6c0a4"},{"name":"List Letters","id":"f1e2d679-90fd-482e-af04-ee0264955ec4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.postgrid.com/print-mail/v1/letters?skip=5&limit=2&search=PostGrid","description":"<p>Get all the letter orders you've created.</p>\n","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"2220a598-7165-4a5b-9d4d-d51c9e640243","id":"2220a598-7165-4a5b-9d4d-d51c9e640243","name":"Letters","type":"folder"}},"urlObject":{"path":["v1","letters"],"host":["https://api.postgrid.com/print-mail"],"query":[{"description":{"content":"<p>Used for traversing pages. See <a href=\"#lists-and-pagination\">lists and pagination</a>.</p>\n<p><code>optional</code></p>\n","type":"text/plain"},"key":"skip","value":"5"},{"description":{"content":"<p>Limits the number of resources returned. \n See <a href=\"#lists-and-pagination\">lists and pagination</a>.</p>\n<p><code>optional</code></p>\n","type":"text/plain"},"key":"limit","value":"2"},{"description":{"content":"<p>Searches the data for the given input. See <a href=\"#search\">search</a>.</p>\n<p><code>optional</code></p>\n","type":"text/plain"},"key":"search","value":"PostGrid"}],"variable":[]}},"response":[{"id":"27a99c09-eba0-48c7-bad9-35d462d8226a","name":"List Letters","originalRequest":{"method":"GET","header":[],"url":"https://api.postgrid.com/print-mail/v1/letters"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"2243"},{"key":"ETag","value":"W/\"8c3-v5Z3f1hXT8TtinDsqRvt4i2Afak\""},{"key":"Date","value":"Fri, 13 Nov 2020 01:39:08 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"object\": \"list\",\n    \"limit\": 10,\n    \"skip\": 0,\n    \"totalCount\": 2,\n    \"data\": [\n        {\n            \"id\": \"letter_qVtvoLzZ4qurmUSDNAShTj\",\n            \"object\": \"letter\",\n            \"live\": false,\n            \"addressPlacement\": \"top_first_page\",\n            \"from\": {\n                \"id\": \"contact_dk6G7aFruyzTfAMzDstUBp\",\n                \"object\": \"contact\",\n                \"addressLine1\": \"20-20 BAY ST FLOOR 11\",\n                \"addressLine2\": \"\",\n                \"addressStatus\": \"corrected\",\n                \"city\": \"TORONTO\",\n                \"companyName\": \"PostGrid\",\n                \"country\": \"CANADA\",\n                \"countryCode\": \"CA\",\n                \"firstName\": \"Apaar\",\n                \"postalOrZip\": \"M5J2N8\",\n                \"provinceOrState\": \"ON\"\n            },\n            \"html\": \"<b>Hello</b> updated world!\",\n            \"pageCount\": 1,\n            \"sendDate\": \"2020-11-12\",\n            \"status\": \"ready\",\n            \"template\": \"template_tBnVEzz878mXLbHQaz86j8\",\n            \"to\": {\n                \"id\": \"contact_qCpdmxgNV37pCoENhoCrPH\",\n                \"object\": \"contact\",\n                \"addressLine1\": \"20-20 BAY ST FLOOR 11\",\n                \"addressLine2\": \"\",\n                \"addressStatus\": \"corrected\",\n                \"city\": \"TORONTO\",\n                \"companyName\": \"PostGrid\",\n                \"country\": \"CANADA\",\n                \"countryCode\": \"CA\",\n                \"firstName\": \"Kevin\",\n                \"postalOrZip\": \"M5J2N8\",\n                \"provinceOrState\": \"ON\"\n            },\n            \"url\": \"https://eksandbox.s3.amazonaws.com/test/letter_qVtvoLzZ4qurmUSDNAShTj.pdf?AWSAccessKeyId=AKIA5GFUILSUDYW4YKAG&Expires=1605232448&Signature=n2MOJ2gBClJRPj7Iu2LOhMzuNBk%3D\",\n            \"createdAt\": \"2020-11-13T01:34:44.117Z\",\n            \"updatedAt\": \"2020-11-13T01:34:47.052Z\"\n        },\n        {\n            \"id\": \"letter_vnGxdhMA8G8dpmPdF3jhhW\",\n            \"object\": \"letter\",\n            \"live\": false,\n            \"addressPlacement\": \"top_first_page\",\n            \"from\": {\n                \"id\": \"contact_dk6G7aFruyzTfAMzDstUBp\",\n                \"object\": \"contact\",\n                \"addressLine1\": \"20-20 BAY ST FLOOR 11\",\n                \"addressLine2\": \"\",\n                \"addressStatus\": \"corrected\",\n                \"city\": \"TORONTO\",\n                \"companyName\": \"PostGrid\",\n                \"country\": \"CANADA\",\n                \"countryCode\": \"CA\",\n                \"firstName\": \"Apaar\",\n                \"postalOrZip\": \"M5J2N8\",\n                \"provinceOrState\": \"ON\"\n            },\n            \"html\": \"<b>Hello</b> updated world!\",\n            \"pageCount\": 1,\n            \"sendDate\": \"2020-11-12\",\n            \"status\": \"ready\",\n            \"template\": \"template_tBnVEzz878mXLbHQaz86j8\",\n            \"to\": {\n                \"id\": \"contact_qCpdmxgNV37pCoENhoCrPH\",\n                \"object\": \"contact\",\n                \"addressLine1\": \"20-20 BAY ST FLOOR 11\",\n                \"addressLine2\": \"\",\n                \"addressStatus\": \"corrected\",\n                \"city\": \"TORONTO\",\n                \"companyName\": \"PostGrid\",\n                \"country\": \"CANADA\",\n                \"countryCode\": \"CA\",\n                \"firstName\": \"Kevin\",\n                \"postalOrZip\": \"M5J2N8\",\n                \"provinceOrState\": \"ON\"\n            },\n            \"url\": \"https://eksandbox.s3.amazonaws.com/test/letter_vnGxdhMA8G8dpmPdF3jhhW.pdf?AWSAccessKeyId=AKIA5GFUILSUDYW4YKAG&Expires=1605232448&Signature=mo8xweBN410C9WSOSR1sytfFJmo%3D\",\n            \"createdAt\": \"2020-11-13T01:30:41.989Z\",\n            \"updatedAt\": \"2020-11-13T01:30:44.979Z\"\n        }\n    ]\n}"}],"_postman_id":"f1e2d679-90fd-482e-af04-ee0264955ec4"},{"name":"Cancel Letter","id":"6bfd8a33-0cbd-48e7-b028-67e974ed9f6d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://api.postgrid.com/print-mail/v1/letters/:id","description":"<p>Cancels the specified letter by <code>id</code>. This should be a unique identifying string starting with <code>letter_</code>.</p>\n","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"2220a598-7165-4a5b-9d4d-d51c9e640243","id":"2220a598-7165-4a5b-9d4d-d51c9e640243","name":"Letters","type":"folder"}},"urlObject":{"path":["v1","letters",":id"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[{"description":{"content":"<p>The <code>id</code> of the letter to be deleted.</p>\n<p><code>required</code></p>\n","type":"text/plain"},"type":"any","value":"letter_qVtvoLzZ4qurmUSDNAShTj","key":"id"}]}},"response":[{"id":"71a08e64-e105-4b9d-bf70-5a277b560617","name":"Cancel Letter","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"https://api.postgrid.com/print-mail/v1/letters/:id","host":["https://api.postgrid.com/print-mail"],"path":["v1","letters",":id"],"variable":[{"key":"id","value":"letter_qVtvoLzZ4qurmUSDNAShTj"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1094"},{"key":"ETag","value":"W/\"446-Ie6oFqmRiDPwTYOPKbFL2H6Y5EA\""},{"key":"Date","value":"Fri, 13 Nov 2020 01:40:07 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"letter_qVtvoLzZ4qurmUSDNAShTj\",\n    \"object\": \"letter\",\n    \"live\": false,\n    \"addressPlacement\": \"top_first_page\",\n    \"from\": {\n        \"id\": \"contact_dk6G7aFruyzTfAMzDstUBp\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"20-20 BAY ST FLOOR 11\",\n        \"addressLine2\": \"\",\n        \"addressStatus\": \"corrected\",\n        \"city\": \"TORONTO\",\n        \"companyName\": \"PostGrid\",\n        \"country\": \"CANADA\",\n        \"countryCode\": \"CA\",\n        \"firstName\": \"Apaar\",\n        \"postalOrZip\": \"M5J2N8\",\n        \"provinceOrState\": \"ON\"\n    },\n    \"html\": \"<b>Hello</b> updated world!\",\n    \"pageCount\": 1,\n    \"sendDate\": \"2020-11-12\",\n    \"status\": \"cancelled\",\n    \"template\": \"template_tBnVEzz878mXLbHQaz86j8\",\n    \"to\": {\n        \"id\": \"contact_qCpdmxgNV37pCoENhoCrPH\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"20-20 BAY ST FLOOR 11\",\n        \"addressLine2\": \"\",\n        \"addressStatus\": \"corrected\",\n        \"city\": \"TORONTO\",\n        \"companyName\": \"PostGrid\",\n        \"country\": \"CANADA\",\n        \"countryCode\": \"CA\",\n        \"firstName\": \"Kevin\",\n        \"postalOrZip\": \"M5J2N8\",\n        \"provinceOrState\": \"ON\"\n    },\n    \"url\": \"https://eksandbox.s3.amazonaws.com/test/letter_qVtvoLzZ4qurmUSDNAShTj.pdf?AWSAccessKeyId=AKIA5GFUILSUDYW4YKAG&Expires=1605232507&Signature=cZKORZAxInNuTtLvWLdzvARSAoc%3D\",\n    \"createdAt\": \"2020-11-13T01:34:44.117Z\",\n    \"updatedAt\": \"2020-11-13T01:40:07.370Z\"\n}"}],"_postman_id":"6bfd8a33-0cbd-48e7-b028-67e974ed9f6d"},{"name":"Cancel Letter With Note","id":"e1f4caa4-d89d-4533-8231-776cc74f5e8f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"note","value":"Cancelled due to template changes","description":"<p>A <code>note</code> for the cancellation of the letter.\n<code>required</code></p>\n","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/letters/:id/cancellation","description":"<p>Cancels the specified letter by <code>id</code> with a <code>note</code> describing the reason for cancellation. The <code>id</code> should be a unique identifying string starting with <code>letter_</code>. The <code>note</code> should be a string.</p>\n","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"2220a598-7165-4a5b-9d4d-d51c9e640243","id":"2220a598-7165-4a5b-9d4d-d51c9e640243","name":"Letters","type":"folder"}},"urlObject":{"path":["v1","letters",":id","cancellation"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[{"id":"b9bc3d40-67f5-41ae-84f4-887f30056bfa","description":{"content":"<p>The <code>id</code> of the letter to be deleted.</p>\n<p><code>required</code></p>\n","type":"text/plain"},"type":"any","value":"letter_cS61RTPrSvBKVyT7kenpjn","key":"id"}]}},"response":[{"id":"3baf5381-3225-425d-88a5-eec5a5ceedd0","name":"Cancel Letter With Note","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"note","value":"Cancelled due to template changes","description":"A `note` for the cancellation of the letter.\n`required`","type":"text"}]},"url":{"raw":"https://api.postgrid.com/print-mail/v1/letters/:id/cancellation","protocol":"https","host":["api","postgrid","com"],"path":["print-mail","v1","letters",":id","cancellation"],"variable":[{"key":"id","value":"letter_cS61RTPrSvBKVyT7kenpjn","description":"The `id` of the letter to be deleted.\n\n`required`"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 25 Jan 2024 15:49:30 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"x-content-type-options","value":"nosniff"},{"key":"content-security-policy","value":"default-src 'none'"},{"key":"vary","value":"Origin"},{"key":"access-control-allow-credentials","value":"true"},{"key":"etag","value":"W/\"6f5-nhH8aYC8XM1xBK38mT9sNpVMY0k\""},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=uKxw7heGUGDMtUs3TB%2FEL%2F7lMUMvYJTz1xeU8MW2hhk5ve9elyKVke4uKXSfnfwNGgkpBj8V8aZPgmG8h82qxW%2FOafSzSrg7Y7qfkIBIO%2B3iXUGQR%2BrE%2Br5UKgeOCshfF5A%2B\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"84b1aaa04a71827a-IAD"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"letter_cS61RTPrSvBKVyT7kenpjn\",\n    \"object\": \"letter\",\n    \"live\": false,\n    \"addressPlacement\": \"top_first_page\",\n    \"attachedPDF\": null,\n    \"cancellation\": {\n        \"cancelledByUser\": \"user_epXvQvRpfsx5rWQnQu7YSA\",\n        \"note\": \"Cancelled due to template changes\",\n        \"reason\": \"user_initiated\"\n    },\n    \"carrierTracking\": null,\n    \"color\": false,\n    \"description\": \"cancelled with note 6\",\n    \"doubleSided\": false,\n    \"envelopeType\": \"standard_double_window\",\n    \"express\": false,\n    \"from\": {\n        \"id\": \"contact_tYToZ4NoWZw59PfxLMUpsf\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"145 MULBERRY ST\",\n        \"addressLine2\": \"APT PH D\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"NEW YORK\",\n        \"companyName\": \"\",\n        \"country\": \"UNITED STATES\",\n        \"countryCode\": \"US\",\n        \"description\": \"This is a contact with no last name\",\n        \"email\": \"John@postgrid.com\",\n        \"firstName\": \"John\",\n        \"jobTitle\": \"\",\n        \"lastName\": \"Smith\",\n        \"metadata\": {\n            \"Account Number\": \"1112\",\n            \"code\": \"12345\",\n            \"dateCreated\": \"20-Sep-21\",\n            \"dateDue\": \"20-Sep-21\",\n            \"days\": \"40\",\n            \"invoiceNumber\": \"1000\"\n        },\n        \"phoneNumber\": \"\",\n        \"postalOrZip\": \"10013\",\n        \"provinceOrState\": \"NY\"\n    },\n    \"mailingClass\": \"first_class\",\n    \"mergeVariables\": {\n        \"date\": \"\",\n        \"QR_code\": \"\",\n        \"to\": {\n            \"firstName\": \"\"\n        }\n    },\n    \"metadata\": {\n        \"postgrid_dashboard\": \"\"\n    },\n    \"pageCount\": 1,\n    \"sendDate\": \"2024-01-25T15:49:18.572Z\",\n    \"size\": \"us_letter\",\n    \"status\": \"cancelled\",\n    \"template\": \"template_fcxb4FEkwMiYYWTveqmmjr\",\n    \"to\": {\n        \"id\": \"contact_6cHJXmpSnAjQC4vgXvTQV2\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"750 NORTH SAINT PAUL STREET\",\n        \"addressLine2\": \"\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"DALLAS\",\n        \"companyName\": \"JANE DOE\",\n        \"country\": \"UNITED STATES\",\n        \"countryCode\": \"US\",\n        \"postalOrZip\": \"75201\",\n        \"provinceOrState\": \"TX\"\n    },\n    \"url\": \"https://pg-prod-bucket-1.s3.amazonaws.com/test/letter_cS61RTPrSvBKVyT7kenpjn?AWSAccessKeyId=AKIA5GFUILSULWTWCR64&Expires=1706198670&Signature=qM2netdP1U1BQ8A5Kgmg94WMIkU%3D\",\n    \"createdAt\": \"2024-01-25T15:49:18.575Z\",\n    \"updatedAt\": \"2024-01-25T15:49:30.319Z\"\n}"}],"_postman_id":"e1f4caa4-d89d-4533-8231-776cc74f5e8f"},{"name":"Progress Test Letter","id":"819c25b9-e795-4d0a-9d59-42b8220f9036","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"https://api.postgrid.com/print-mail/v1/letters/:id/progressions","description":"<p>Progress the desired test letter by <code>id</code> to the next status. This should be a unique identifying string starting with <code>letter_</code>. This can be used to test webhooks.</p>\n<p><em>Note: that this will fail with an</em> <code>invalid_progression_error</code> <em>if the status is one of</em> <code>completed</code> <em>or</em> <code>cancelled</code><em>.</em></p>\n","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"2220a598-7165-4a5b-9d4d-d51c9e640243","id":"2220a598-7165-4a5b-9d4d-d51c9e640243","name":"Letters","type":"folder"}},"urlObject":{"path":["v1","letters",":id","progressions"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[{"description":{"content":"<p>The <code>id</code> of the letter to be progressed.</p>\n<p><code>required</code></p>\n","type":"text/plain"},"type":"any","value":"letter_wn7hPABuHVqi8FZapo2uMS","key":"id"}]}},"response":[{"id":"16de98be-ba85-424c-8bd6-85bff8a007dd","name":"Progress Test Letter","originalRequest":{"method":"POST","header":[],"url":{"raw":"https://api.postgrid.com/print-mail/v1/letters/:id/progressions","host":["https://api.postgrid.com/print-mail"],"path":["v1","letters",":id","progressions"],"variable":[{"key":"id","value":"letter_oNrxnVvpyKwbcHtJinF5cm"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"895"},{"key":"ETag","value":"W/\"37f-Cd0jCxaFA5g6egMme9pXeL4GIsw\""},{"key":"Date","value":"Mon, 03 May 2021 14:42:27 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"letter_oNrxnVvpyKwbcHtJinF5cm\",\n    \"object\": \"letter\",\n    \"live\": false,\n    \"addressPlacement\": \"top_first_page\",\n    \"color\": false,\n    \"doubleSided\": true,\n    \"from\": {\n        \"id\": \"contact_nt4MYqiigmt4EWdKXARwDk\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"20-20 BAY ST\",\n        \"addressLine2\": \"FLOOR 11\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"TORONTO\",\n        \"companyName\": \"PostGrid\",\n        \"country\": \"CANADA\",\n        \"countryCode\": \"CA\",\n        \"firstName\": \"Apaar\",\n        \"postalOrZip\": null,\n        \"provinceOrState\": null\n    },\n    \"html\": \"<b>Hello</b>, {{to.firstName}}!\",\n    \"sendDate\": \"2021-05-03T14:42:20.785Z\",\n    \"status\": \"printing\",\n    \"to\": {\n        \"id\": \"contact_b37JnxAZGimr61jHu4yMsZ\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"20-20 BAY ST\",\n        \"addressLine2\": \"FLOOR 11\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"TORONTO\",\n        \"companyName\": \"PostGrid\",\n        \"country\": \"CANADA\",\n        \"countryCode\": \"CA\",\n        \"firstName\": \"Kevin\",\n        \"postalOrZip\": null,\n        \"provinceOrState\": null\n    },\n    \"createdAt\": \"2021-05-03T14:42:20.796Z\",\n    \"updatedAt\": \"2021-05-03T14:42:27.880Z\"\n}"}],"_postman_id":"819c25b9-e795-4d0a-9d59-42b8220f9036"}],"id":"2220a598-7165-4a5b-9d4d-d51c9e640243","description":"<p>Create and manage letter orders.</p>\n<h1 id=\"letter-response\">Letter Response</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>A unique ID prefixed with <code>letter_</code></td>\n</tr>\n<tr>\n<td>object</td>\n<td>string</td>\n<td>Always <code>letter</code></td>\n</tr>\n<tr>\n<td>status</td>\n<td>string</td>\n<td>See <a href=\"#tracking\">Tracking</a></td>\n</tr>\n<tr>\n<td>imbStatus</td>\n<td>string or null</td>\n<td>See <a href=\"#intelligent-mail-tracking\">Intelligent-Mail Tracking</a></td>\n</tr>\n<tr>\n<td>live</td>\n<td>boolean</td>\n<td><code>true</code> if this is a live mode letter else <code>false</code></td>\n</tr>\n<tr>\n<td>description</td>\n<td>string or null</td>\n<td>Optional line describing this letter</td>\n</tr>\n<tr>\n<td>sendDate</td>\n<td>Date</td>\n<td>Date when the letter will be sent</td>\n</tr>\n<tr>\n<td>to</td>\n<td><a href=\"#contact-response\">Contact</a></td>\n<td>The recipient of this letter</td>\n</tr>\n<tr>\n<td>from</td>\n<td><a href=\"#contact-response\">Contact</a></td>\n<td>The sender of this letter</td>\n</tr>\n<tr>\n<td>html</td>\n<td>string or null</td>\n<td>The raw html provided for this letter, if any</td>\n</tr>\n<tr>\n<td>template</td>\n<td>string or null</td>\n<td>A <a href=\"#template\">Template</a> ID, if any</td>\n</tr>\n<tr>\n<td>uploadedPDF</td>\n<td>string or null</td>\n<td>A signed link to the original PDF uploaded for this letter, if any</td>\n</tr>\n<tr>\n<td>attachedPDF</td>\n<td>object or null</td>\n<td>An object containing the <code>placement</code> of the attached PDF as well as a signed link to the pdf <code>file</code> that was uploaded.</td>\n</tr>\n<tr>\n<td>addressPlacement</td>\n<td>string</td>\n<td>One of <code>top_first_page</code> or <code>insert_blank_page</code></td>\n</tr>\n<tr>\n<td>color</td>\n<td>boolean</td>\n<td>Whether the letter will be printed in color</td>\n</tr>\n<tr>\n<td>doubleSided</td>\n<td>boolean</td>\n<td>Whether the letter will be printed double-sided</td>\n</tr>\n<tr>\n<td>envelopeType</td>\n<td>string</td>\n<td>One of <code>standard_double_window</code> or <code>flat</code></td>\n</tr>\n<tr>\n<td>url</td>\n<td>string or null</td>\n<td>Signed link to a preview of this letter order</td>\n</tr>\n<tr>\n<td>pageCount</td>\n<td>number or null</td>\n<td>Number of pages produced for this letter</td>\n</tr>\n<tr>\n<td>mailingClass</td>\n<td><code>first_class</code> or <code>standard_class</code></td>\n<td>Defaults to <code>first_class</code>. See <a href=\"#mailing-class\">mailing class</a>.</td>\n</tr>\n<tr>\n<td>mergeVariables</td>\n<td>object or null</td>\n<td>See <a href=\"#merge-variables\">Merge Variables</a></td>\n</tr>\n<tr>\n<td>metadata</td>\n<td>object or null</td>\n<td>See <a href=\"#metadata\">Metadata</a></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"861a0bd6-84d3-4342-917e-8d175b6dd3eb","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"c4cd5bc9-b04b-4404-af0d-735dd261e224","type":"text/javascript","exec":[""]}}],"_postman_id":"2220a598-7165-4a5b-9d4d-d51c9e640243"},{"name":"Boxes","item":[{"name":"Create Box With Cheques","id":"0076d839-6447-41e3-a7dd-00bff7242a6d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"description\": \"My box with cheques\",\r\n    \"to\": {\r\n        \"firstName\": \"Test\",\r\n        \"addressLine1\": \"20-20 bay st toronto on m9v 4g5\",\r\n        \"countryCode\": \"US\"\r\n    },\r\n    \"from\": {\r\n        \"firstName\": \"Test\",\r\n        \"addressLine1\": \"20-20 bay st toronto on m9v 4g5\",\r\n        \"countryCode\": \"US\"\r\n    },\r\n    \"cheques\": [\r\n        {\r\n            \"description\": \"box cheque description 1\",\r\n            \"to\": {\r\n                \"firstName\": \"Test\",\r\n                \"addressLine1\": \"20-20 bay st toronto on m9v 4g5\",\r\n                \"countryCode\": \"US\"\r\n            },\r\n            \"from\": {\r\n                \"firstName\": \"Test\",\r\n                \"addressLine1\": \"20-20 bay st toronto on m9v 4g5\",\r\n                \"countryCode\": \"US\"\r\n            },\r\n            \"amount\": 12345,\r\n            \"bankAccount\": \"account\",\r\n            \"number\": 1234\r\n        },\r\n        {\r\n            \"description\": \"box cheque description 2\",\r\n            \"from\": {\r\n                \"addressLine1\": \"145 Mulberry St, New York, NY, United States\",\r\n                \"countryCode\": \"US\",\r\n                \"firstName\": \"Test\"\r\n            },\r\n            \"to\": {\r\n                \"addressLine1\": \"145 Mulberry St, New York, NY, United States\",\r\n                \"city\": \"New York\",\r\n                \"provinceOrState\": \"NY\",\r\n                \"postalOrZip\": \"10013\",\r\n                \"countryCode\": \"US\",\r\n                \"firstName\": \"Test\"\r\n            },\r\n            \"amount\": 67890,\r\n            \"bankAccount\": \"account\",\r\n            \"number\": 1234\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.postgrid.com/print-mail/v1/boxes","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"ba13dbcd-1bca-427c-9478-d7b07064debd","id":"ba13dbcd-1bca-427c-9478-d7b07064debd","name":"Boxes","type":"folder"}},"urlObject":{"path":["v1","boxes"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[]}},"response":[{"id":"7b1249e5-c7e8-4794-b667-d4b46e0a6a75","name":"Create Box with cheques","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"description\": \"My box with cheques\",\r\n    \"from\": \"contact_mzWia3zmvAgFJhTFCpDzui\",\r\n    \"to\": \"contact_mzWia3zmvAgFJhTFCpDzui\",\r\n    \"cheques\": [\r\n            {\r\n                \"description\": \"box cheque description 1\",\r\n                \"from\": \"contact_3tfuzRh8GNXrEMkRsMbGCL\",\r\n                \"to\": \"contact_3tfuzRh8GNXrEMkRsMbGCL\",\r\n                \"amount\": 12345,\r\n                \"bankAccount\": \"bank_sbTsVdtZRyy9fmsjmAmELd\",\r\n                \"number\": 4242424242424242,\r\n                \"messageTemplate\": \"template_8ynwKmRcPregbz1EP9tu5B\",\r\n                \"mergeVariables\": {\r\n                    \"customVariable\": \"Value\"\r\n                }\r\n            },\r\n            {\r\n                \"description\": \"box cheque description 2\",\r\n                \"from\": {\r\n                    \"addressLine1\": \"145 Mulberry St, New York, NY, United States\",\r\n                    \"countryCode\": \"US\",\r\n                    \"firstName\": \"Test\"\r\n                },\r\n                \"to\": {\r\n                    \"addressLine1\": \"145 Mulberry St, New York, NY, United States\",\r\n                    \"city\": \"New York\",\r\n                    \"provinceOrState\": \"NY\",\r\n                    \"postalOrZip\": \"10013\",\r\n                    \"countryCode\": \"US\",\r\n                    \"firstName\": \"Test\"\r\n                },\r\n                \"amount\": 67890,\r\n                \"bankAccount\": \"bank_sbTsVdtZRyy9fmsjmAmELd\",\r\n                \"number\": 4242424242424242,\r\n                \"messageTemplate\": \"template_8ynwKmRcPregbz1EP9tu5B\",\r\n                \"mergeVariables\": {\r\n                    \"customVariable\": \"Value\"\r\n                }\r\n            }\r\n        ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.postgrid.com/print-mail/v1/boxes"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"box_mjFNit9txpU93m3mS2D6qS\",\n    \"object\": \"box\",\n    \"live\": false,\n    \"carrierTracking\": null,\n    \"cheques\": [\n        {\n            \"amount\": 12345,\n            \"bankAccount\": \"bank_sbTsVdtZRyy9fmsjmAmELd\",\n            \"currencyCode\": \"USD\",\n            \"description\": \"box cheque description 1\",\n            \"from\": {\n                \"id\": \"contact_3tfuzRh8GNXrEMkRsMbGCL\",\n                \"object\": \"contact\",\n                \"live\": false,\n                \"addressLine1\": \"20-20 BAY ST FLOOR 11\",\n                \"addressLine2\": \"\",\n                \"addressStatus\": \"verified\",\n                \"city\": \"TORONTO\",\n                \"country\": \"CANADA\",\n                \"countryCode\": \"CA\",\n                \"firstName\": \"Test\",\n                \"mailingLists\": [],\n                \"postalOrZip\": \"M5J2N8\",\n                \"provinceOrState\": \"ON\",\n                \"createdAt\": \"2025-01-10T00:28:37.049Z\",\n                \"updatedAt\": \"2025-01-15T19:24:31.602Z\"\n            },\n            \"mergeVariables\": {\n                \"customVariable\": \"Value\"\n            },\n            \"messageTemplate\": \"template_8ynwKmRcPregbz1EP9tu5B\",\n            \"number\": 4242424242424242,\n            \"size\": \"us_letter\",\n            \"to\": {\n                \"id\": \"contact_3tfuzRh8GNXrEMkRsMbGCL\",\n                \"object\": \"contact\",\n                \"live\": false,\n                \"addressLine1\": \"20-20 BAY ST FLOOR 11\",\n                \"addressLine2\": \"\",\n                \"addressStatus\": \"verified\",\n                \"city\": \"TORONTO\",\n                \"country\": \"CANADA\",\n                \"countryCode\": \"CA\",\n                \"firstName\": \"Test\",\n                \"mailingLists\": [],\n                \"postalOrZip\": \"M5J2N8\",\n                \"provinceOrState\": \"ON\",\n                \"createdAt\": \"2025-01-10T00:28:37.049Z\",\n                \"updatedAt\": \"2025-01-15T19:24:31.602Z\"\n            }\n        },\n        {\n            \"amount\": 67890,\n            \"bankAccount\": \"bank_sbTsVdtZRyy9fmsjmAmELd\",\n            \"currencyCode\": \"USD\",\n            \"description\": \"box cheque description 2\",\n            \"from\": {\n                \"id\": \"contact_mzWia3zmvAgFJhTFCpDzui\",\n                \"object\": \"contact\",\n                \"live\": false,\n                \"addressLine1\": \"145 MULBERRY ST\",\n                \"addressLine2\": \"\",\n                \"addressStatus\": \"verified\",\n                \"city\": \"NEW YORK\",\n                \"country\": \"UNITED STATES\",\n                \"countryCode\": \"US\",\n                \"firstName\": \"Test\",\n                \"mailingLists\": [],\n                \"postalOrZip\": \"\",\n                \"provinceOrState\": \"NY\",\n                \"createdAt\": \"2025-01-10T00:28:37.159Z\",\n                \"updatedAt\": \"2025-03-05T21:15:26.890Z\"\n            },\n            \"mergeVariables\": {\n                \"customVariable\": \"Value\"\n            },\n            \"messageTemplate\": \"template_8ynwKmRcPregbz1EP9tu5B\",\n            \"number\": 4242424242424242,\n            \"size\": \"us_letter\",\n            \"to\": {\n                \"id\": \"contact_gXSzeFtL541pAYVy7ZjiXU\",\n                \"object\": \"contact\",\n                \"live\": false,\n                \"addressLine1\": \"145 MULBERRY ST, NEW YORK, NY, UNITED STATES\",\n                \"addressStatus\": \"verified\",\n                \"city\": \"NEW YORK\",\n                \"country\": \"UNITED STATES\",\n                \"countryCode\": \"US\",\n                \"firstName\": \"Test\",\n                \"mailingLists\": [],\n                \"postalOrZip\": \"10013\",\n                \"provinceOrState\": \"NY\",\n                \"createdAt\": \"2025-02-28T22:10:42.649Z\",\n                \"updatedAt\": \"2025-03-05T21:15:26.793Z\"\n            }\n        }\n    ],\n    \"description\": \"My box with cheques\",\n    \"from\": {\n        \"id\": \"contact_mzWia3zmvAgFJhTFCpDzui\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"145 MULBERRY ST\",\n        \"addressLine2\": \"\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"NEW YORK\",\n        \"country\": \"UNITED STATES\",\n        \"countryCode\": \"US\",\n        \"firstName\": \"Test\",\n        \"postalOrZip\": \"\",\n        \"provinceOrState\": \"NY\"\n    },\n    \"mailingClass\": \"first_class\",\n    \"sendDate\": \"2025-03-05T21:15:26.921Z\",\n    \"status\": \"ready\",\n    \"to\": {\n        \"id\": \"contact_mzWia3zmvAgFJhTFCpDzui\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"145 MULBERRY ST\",\n        \"addressLine2\": \"\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"NEW YORK\",\n        \"country\": \"UNITED STATES\",\n        \"countryCode\": \"US\",\n        \"firstName\": \"Test\",\n        \"postalOrZip\": \"\",\n        \"provinceOrState\": \"NY\"\n    },\n    \"createdAt\": \"2025-03-05T21:15:26.925Z\",\n    \"updatedAt\": \"2025-03-05T21:15:26.925Z\"\n}"}],"_postman_id":"0076d839-6447-41e3-a7dd-00bff7242a6d"},{"name":"Get Box","id":"3586a972-e742-4e91-b39d-325ab6ea5a38","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.postgrid.com/print-mail/v1/boxes/:id","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"ba13dbcd-1bca-427c-9478-d7b07064debd","id":"ba13dbcd-1bca-427c-9478-d7b07064debd","name":"Boxes","type":"folder"}},"urlObject":{"path":["v1","boxes",":id"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[{"id":"15b56168-df4e-425e-997b-099bce58b5ed","type":"any","value":"box_sdBY5BY9ziqtJXqeTArUsq","key":"id"}]}},"response":[{"id":"284a6a5a-0e6a-4efe-823e-9490425704cd","name":"Get Box","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.postgrid.com/print-mail/v1/boxes/:id","host":["https://api.postgrid.com/print-mail"],"path":["v1","boxes",":id"],"variable":[{"key":"id","value":"box_sdBY5BY9ziqtJXqeTArUsq"}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"box_sdBY5BY9ziqtJXqeTArUsq\",\n    \"object\": \"box\",\n    \"live\": false,\n    \"carrierTracking\": null,\n    \"cheques\": [\n        {\n            \"amount\": 12345,\n            \"bankAccount\": \"bank_sbTsVdtZRyy9fmsjmAmELd\",\n            \"currencyCode\": \"USD\",\n            \"description\": \"description\",\n            \"from\": {\n                \"id\": \"contact_3tfuzRh8GNXrEMkRsMbGCL\",\n                \"object\": \"contact\",\n                \"live\": false,\n                \"addressLine1\": \"20-20 BAY ST FLOOR 11\",\n                \"addressLine2\": \"\",\n                \"addressStatus\": \"verified\",\n                \"city\": \"TORONTO\",\n                \"country\": \"CANADA\",\n                \"countryCode\": \"CA\",\n                \"firstName\": \"Test\",\n                \"mailingLists\": [],\n                \"postalOrZip\": \"M5J2N8\",\n                \"provinceOrState\": \"ON\",\n                \"createdAt\": \"2025-01-10T00:28:37.049Z\",\n                \"updatedAt\": \"2025-01-15T19:24:31.602Z\"\n            },\n            \"number\": 4242424242424242,\n            \"size\": \"us_letter\",\n            \"to\": {\n                \"id\": \"contact_3tfuzRh8GNXrEMkRsMbGCL\",\n                \"object\": \"contact\",\n                \"live\": false,\n                \"addressLine1\": \"20-20 BAY ST FLOOR 11\",\n                \"addressLine2\": \"\",\n                \"addressStatus\": \"verified\",\n                \"city\": \"TORONTO\",\n                \"country\": \"CANADA\",\n                \"countryCode\": \"CA\",\n                \"firstName\": \"Test\",\n                \"mailingLists\": [],\n                \"postalOrZip\": \"M5J2N8\",\n                \"provinceOrState\": \"ON\",\n                \"createdAt\": \"2025-01-10T00:28:37.049Z\",\n                \"updatedAt\": \"2025-01-15T19:24:31.602Z\"\n            }\n        },\n        {\n            \"amount\": 67890,\n            \"bankAccount\": \"bank_sbTsVdtZRyy9fmsjmAmELd\",\n            \"currencyCode\": \"USD\",\n            \"from\": {\n                \"id\": \"contact_mzWia3zmvAgFJhTFCpDzui\",\n                \"object\": \"contact\",\n                \"live\": false,\n                \"addressLine1\": \"145 MULBERRY ST\",\n                \"addressLine2\": \"\",\n                \"addressStatus\": \"verified\",\n                \"city\": \"NEW YORK\",\n                \"country\": \"UNITED STATES\",\n                \"countryCode\": \"US\",\n                \"firstName\": \"Test\",\n                \"mailingLists\": [],\n                \"postalOrZip\": \"\",\n                \"provinceOrState\": \"NY\",\n                \"createdAt\": \"2025-01-10T00:28:37.159Z\",\n                \"updatedAt\": \"2025-02-28T01:06:14.663Z\"\n            },\n            \"number\": 4242424242424242,\n            \"size\": \"us_letter\",\n            \"to\": {\n                \"id\": \"contact_mzWia3zmvAgFJhTFCpDzui\",\n                \"object\": \"contact\",\n                \"live\": false,\n                \"addressLine1\": \"145 MULBERRY ST\",\n                \"addressLine2\": \"\",\n                \"addressStatus\": \"verified\",\n                \"city\": \"NEW YORK\",\n                \"country\": \"UNITED STATES\",\n                \"countryCode\": \"US\",\n                \"firstName\": \"Test\",\n                \"mailingLists\": [],\n                \"postalOrZip\": \"\",\n                \"provinceOrState\": \"NY\",\n                \"createdAt\": \"2025-01-10T00:28:37.159Z\",\n                \"updatedAt\": \"2025-02-28T01:06:14.653Z\"\n            }\n        }\n    ],\n    \"description\": \"Test\",\n    \"from\": {\n        \"id\": \"contact_mzWia3zmvAgFJhTFCpDzui\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"145 MULBERRY ST\",\n        \"addressLine2\": \"\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"NEW YORK\",\n        \"country\": \"UNITED STATES\",\n        \"countryCode\": \"US\",\n        \"firstName\": \"Test\",\n        \"postalOrZip\": \"\",\n        \"provinceOrState\": \"NY\"\n    },\n    \"mailingClass\": \"first_class\",\n    \"sendDate\": \"2025-02-28T01:06:14.676Z\",\n    \"status\": \"ready\",\n    \"to\": {\n        \"id\": \"contact_p5y9ZMhCZPcFvTnxZq6hKh\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"145 MULBERRY ST\",\n        \"addressLine2\": \"\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"NEW YORK\",\n        \"country\": \"CANADA\",\n        \"countryCode\": \"CA\",\n        \"firstName\": \"Test\",\n        \"postalOrZip\": \"\",\n        \"provinceOrState\": \"NY\"\n    },\n    \"url\": \"https://pg-prod-bucket-1.s3.amazonaws.com/test/box_sdBY5BY9ziqtJXqeTArUsq?AWSAccessKeyId=AKIA5GFUILSULWTWCR64&Expires=1741022262&Signature=m5I3%2Bv8zhMDoJ5ZHtkIBMigoRcs%3D\",\n    \"createdAt\": \"2025-02-28T01:06:14.684Z\",\n    \"updatedAt\": \"2025-02-28T01:06:14.684Z\"\n}"}],"_postman_id":"3586a972-e742-4e91-b39d-325ab6ea5a38"},{"name":"List Boxes","id":"c52d1ea7-d436-4f2a-8f5d-0785f26e7837","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.postgrid.com/print-mail/v1/boxes?skip=5&limit=2&search=PostGrid","description":"<p>Get all the letter orders you've created.</p>\n","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"ba13dbcd-1bca-427c-9478-d7b07064debd","id":"ba13dbcd-1bca-427c-9478-d7b07064debd","name":"Boxes","type":"folder"}},"urlObject":{"path":["v1","boxes"],"host":["https://api.postgrid.com/print-mail"],"query":[{"description":{"content":"<p>Used for traversing pages. See <a href=\"#lists-and-pagination\">lists and pagination</a>.</p>\n<p><code>optional</code></p>\n","type":"text/plain"},"key":"skip","value":"5"},{"description":{"content":"<p>Limits the number of resources returned. \n See <a href=\"#lists-and-pagination\">lists and pagination</a>.</p>\n<p><code>optional</code></p>\n","type":"text/plain"},"key":"limit","value":"2"},{"description":{"content":"<p>Searches the data for the given input. See <a href=\"#search\">search</a>.</p>\n<p><code>optional</code></p>\n","type":"text/plain"},"key":"search","value":"PostGrid"}],"variable":[]}},"response":[{"id":"66378560-a626-4fcc-be27-068226f23dfc","name":"List Boxes","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.postgrid.com/print-mail/v1/letters?skip=5&limit=2","host":["https://api.postgrid.com/print-mail"],"path":["v1","letters"],"query":[{"key":"skip","value":"5"},{"key":"limit","value":"2"},{"key":"search","value":"PostGrid","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"2243"},{"key":"ETag","value":"W/\"8c3-v5Z3f1hXT8TtinDsqRvt4i2Afak\""},{"key":"Date","value":"Fri, 13 Nov 2020 01:39:08 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"object\": \"list\",\n    \"limit\": 2,\n    \"skip\": 5,\n    \"totalCount\": 199,\n    \"data\": [\n        {\n            \"id\": \"box_fDtjMB2KoxU5ZY4CCTzyQn\",\n            \"object\": \"box\",\n            \"live\": false,\n            \"carrierTracking\": null,\n            \"cheques\": [\n                {\n                    \"amount\": 12345,\n                    \"bankAccount\": \"bank_sbTsVdtZRyy9fmsjmAmELd\",\n                    \"currencyCode\": \"USD\",\n                    \"description\": \"description\",\n                    \"from\": {\n                        \"id\": \"contact_3tfuzRh8GNXrEMkRsMbGCL\",\n                        \"object\": \"contact\",\n                        \"live\": false,\n                        \"addressLine1\": \"20-20 BAY ST FLOOR 11\",\n                        \"addressLine2\": \"\",\n                        \"addressStatus\": \"verified\",\n                        \"city\": \"TORONTO\",\n                        \"country\": \"CANADA\",\n                        \"countryCode\": \"CA\",\n                        \"firstName\": \"Test\",\n                        \"mailingLists\": [],\n                        \"postalOrZip\": \"M5J2N8\",\n                        \"provinceOrState\": \"ON\",\n                        \"createdAt\": \"2025-01-10T00:28:37.049Z\",\n                        \"updatedAt\": \"2025-01-15T19:24:31.602Z\"\n                    },\n                    \"number\": 4242424242424242,\n                    \"size\": \"us_letter\",\n                    \"to\": {\n                        \"id\": \"contact_3tfuzRh8GNXrEMkRsMbGCL\",\n                        \"object\": \"contact\",\n                        \"live\": false,\n                        \"addressLine1\": \"20-20 BAY ST FLOOR 11\",\n                        \"addressLine2\": \"\",\n                        \"addressStatus\": \"verified\",\n                        \"city\": \"TORONTO\",\n                        \"country\": \"CANADA\",\n                        \"countryCode\": \"CA\",\n                        \"firstName\": \"Test\",\n                        \"mailingLists\": [],\n                        \"postalOrZip\": \"M5J2N8\",\n                        \"provinceOrState\": \"ON\",\n                        \"createdAt\": \"2025-01-10T00:28:37.049Z\",\n                        \"updatedAt\": \"2025-01-15T19:24:31.602Z\"\n                    }\n                },\n                {\n                    \"amount\": 67890,\n                    \"bankAccount\": \"bank_sbTsVdtZRyy9fmsjmAmELd\",\n                    \"currencyCode\": \"USD\",\n                    \"from\": {\n                        \"id\": \"contact_mzWia3zmvAgFJhTFCpDzui\",\n                        \"object\": \"contact\",\n                        \"live\": false,\n                        \"addressLine1\": \"145 MULBERRY ST\",\n                        \"addressLine2\": \"\",\n                        \"addressStatus\": \"verified\",\n                        \"city\": \"NEW YORK\",\n                        \"country\": \"UNITED STATES\",\n                        \"countryCode\": \"US\",\n                        \"firstName\": \"Test\",\n                        \"mailingLists\": [],\n                        \"postalOrZip\": \"\",\n                        \"provinceOrState\": \"NY\",\n                        \"createdAt\": \"2025-01-10T00:28:37.159Z\",\n                        \"updatedAt\": \"2025-02-28T15:50:49.904Z\"\n                    },\n                    \"number\": 4242424242424242,\n                    \"size\": \"us_letter\",\n                    \"to\": {\n                        \"id\": \"contact_mzWia3zmvAgFJhTFCpDzui\",\n                        \"object\": \"contact\",\n                        \"live\": false,\n                        \"addressLine1\": \"145 MULBERRY ST\",\n                        \"addressLine2\": \"\",\n                        \"addressStatus\": \"verified\",\n                        \"city\": \"NEW YORK\",\n                        \"country\": \"UNITED STATES\",\n                        \"countryCode\": \"US\",\n                        \"firstName\": \"Test\",\n                        \"mailingLists\": [],\n                        \"postalOrZip\": \"\",\n                        \"provinceOrState\": \"NY\",\n                        \"createdAt\": \"2025-01-10T00:28:37.159Z\",\n                        \"updatedAt\": \"2025-02-28T15:50:49.931Z\"\n                    }\n                }\n            ],\n            \"description\": \"Test\",\n            \"from\": {\n                \"id\": \"contact_mzWia3zmvAgFJhTFCpDzui\",\n                \"object\": \"contact\",\n                \"addressLine1\": \"145 MULBERRY ST\",\n                \"addressLine2\": \"\",\n                \"addressStatus\": \"verified\",\n                \"city\": \"NEW YORK\",\n                \"country\": \"UNITED STATES\",\n                \"countryCode\": \"US\",\n                \"firstName\": \"Test\",\n                \"postalOrZip\": \"\",\n                \"provinceOrState\": \"NY\"\n            },\n            \"mailingClass\": \"first_class\",\n            \"sendDate\": \"2025-02-28T15:50:49.947Z\",\n            \"status\": \"ready\",\n            \"to\": {\n                \"id\": \"contact_p5y9ZMhCZPcFvTnxZq6hKh\",\n                \"object\": \"contact\",\n                \"addressLine1\": \"145 MULBERRY ST\",\n                \"addressLine2\": \"\",\n                \"addressStatus\": \"verified\",\n                \"city\": \"NEW YORK\",\n                \"country\": \"CANADA\",\n                \"countryCode\": \"CA\",\n                \"firstName\": \"Test\",\n                \"postalOrZip\": \"\",\n                \"provinceOrState\": \"NY\"\n            },\n            \"createdAt\": \"2025-02-28T15:50:49.955Z\",\n            \"updatedAt\": \"2025-02-28T15:50:49.955Z\"\n        },\n        {\n            \"id\": \"box_6icD93KXQsGRWN71F4G7nv\",\n            \"object\": \"box\",\n            \"live\": false,\n            \"carrierTracking\": null,\n            \"cheques\": [\n                {\n                    \"amount\": 12345,\n                    \"bankAccount\": \"bank_sbTsVdtZRyy9fmsjmAmELd\",\n                    \"currencyCode\": \"USD\",\n                    \"description\": \"description\",\n                    \"from\": {\n                        \"id\": \"contact_3tfuzRh8GNXrEMkRsMbGCL\",\n                        \"object\": \"contact\",\n                        \"live\": false,\n                        \"addressLine1\": \"20-20 BAY ST FLOOR 11\",\n                        \"addressLine2\": \"\",\n                        \"addressStatus\": \"verified\",\n                        \"city\": \"TORONTO\",\n                        \"country\": \"CANADA\",\n                        \"countryCode\": \"CA\",\n                        \"firstName\": \"Test\",\n                        \"mailingLists\": [],\n                        \"postalOrZip\": \"M5J2N8\",\n                        \"provinceOrState\": \"ON\",\n                        \"createdAt\": \"2025-01-10T00:28:37.049Z\",\n                        \"updatedAt\": \"2025-01-15T19:24:31.602Z\"\n                    },\n                    \"number\": 4242424242424242,\n                    \"size\": \"us_letter\",\n                    \"to\": {\n                        \"id\": \"contact_3tfuzRh8GNXrEMkRsMbGCL\",\n                        \"object\": \"contact\",\n                        \"live\": false,\n                        \"addressLine1\": \"20-20 BAY ST FLOOR 11\",\n                        \"addressLine2\": \"\",\n                        \"addressStatus\": \"verified\",\n                        \"city\": \"TORONTO\",\n                        \"country\": \"CANADA\",\n                        \"countryCode\": \"CA\",\n                        \"firstName\": \"Test\",\n                        \"mailingLists\": [],\n                        \"postalOrZip\": \"M5J2N8\",\n                        \"provinceOrState\": \"ON\",\n                        \"createdAt\": \"2025-01-10T00:28:37.049Z\",\n                        \"updatedAt\": \"2025-01-15T19:24:31.602Z\"\n                    }\n                },\n                {\n                    \"amount\": 67890,\n                    \"bankAccount\": \"bank_sbTsVdtZRyy9fmsjmAmELd\",\n                    \"currencyCode\": \"USD\",\n                    \"from\": {\n                        \"id\": \"contact_mzWia3zmvAgFJhTFCpDzui\",\n                        \"object\": \"contact\",\n                        \"live\": false,\n                        \"addressLine1\": \"145 MULBERRY ST\",\n                        \"addressLine2\": \"\",\n                        \"addressStatus\": \"verified\",\n                        \"city\": \"NEW YORK\",\n                        \"country\": \"UNITED STATES\",\n                        \"countryCode\": \"US\",\n                        \"firstName\": \"Test\",\n                        \"mailingLists\": [],\n                        \"postalOrZip\": \"\",\n                        \"provinceOrState\": \"NY\",\n                        \"createdAt\": \"2025-01-10T00:28:37.159Z\",\n                        \"updatedAt\": \"2025-02-28T14:47:23.517Z\"\n                    },\n                    \"number\": 4242424242424242,\n                    \"size\": \"us_letter\",\n                    \"to\": {\n                        \"id\": \"contact_mzWia3zmvAgFJhTFCpDzui\",\n                        \"object\": \"contact\",\n                        \"live\": false,\n                        \"addressLine1\": \"145 MULBERRY ST\",\n                        \"addressLine2\": \"\",\n                        \"addressStatus\": \"verified\",\n                        \"city\": \"NEW YORK\",\n                        \"country\": \"UNITED STATES\",\n                        \"countryCode\": \"US\",\n                        \"firstName\": \"Test\",\n                        \"mailingLists\": [],\n                        \"postalOrZip\": \"\",\n                        \"provinceOrState\": \"NY\",\n                        \"createdAt\": \"2025-01-10T00:28:37.159Z\",\n                        \"updatedAt\": \"2025-02-28T14:47:23.489Z\"\n                    }\n                }\n            ],\n            \"description\": \"Test\",\n            \"from\": {\n                \"id\": \"contact_mzWia3zmvAgFJhTFCpDzui\",\n                \"object\": \"contact\",\n                \"addressLine1\": \"145 MULBERRY ST\",\n                \"addressLine2\": \"\",\n                \"addressStatus\": \"verified\",\n                \"city\": \"NEW YORK\",\n                \"country\": \"UNITED STATES\",\n                \"countryCode\": \"US\",\n                \"firstName\": \"Test\",\n                \"postalOrZip\": \"\",\n                \"provinceOrState\": \"NY\"\n            },\n            \"mailingClass\": \"first_class\",\n            \"sendDate\": \"2025-02-28T14:47:23.533Z\",\n            \"status\": \"ready\",\n            \"to\": {\n                \"id\": \"contact_p5y9ZMhCZPcFvTnxZq6hKh\",\n                \"object\": \"contact\",\n                \"addressLine1\": \"145 MULBERRY ST\",\n                \"addressLine2\": \"\",\n                \"addressStatus\": \"verified\",\n                \"city\": \"NEW YORK\",\n                \"country\": \"CANADA\",\n                \"countryCode\": \"CA\",\n                \"firstName\": \"Test\",\n                \"postalOrZip\": \"\",\n                \"provinceOrState\": \"NY\"\n            },\n            \"createdAt\": \"2025-02-28T14:47:23.541Z\",\n            \"updatedAt\": \"2025-02-28T14:47:23.541Z\"\n        }\n    ]\n}"}],"_postman_id":"c52d1ea7-d436-4f2a-8f5d-0785f26e7837"},{"name":"Cancel Box","id":"53c1b9c2-384f-4e71-96b7-8487e70a0a60","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://api.postgrid.com/print-mail/v1/boxes/:id","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"ba13dbcd-1bca-427c-9478-d7b07064debd","id":"ba13dbcd-1bca-427c-9478-d7b07064debd","name":"Boxes","type":"folder"}},"urlObject":{"path":["v1","boxes",":id"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[{"id":"875baa32-6bf7-4e32-a858-fe719377ba97","type":"any","value":"box_ak8f7P2WSwCvtE1YW4pnLc","key":"id"}]}},"response":[{"id":"dfcc4760-f24b-468e-acfb-e447a81634c2","name":"Cancel Box","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"https://api.postgrid.com/print-mail/v1/boxes/:id","host":["https://api.postgrid.com/print-mail"],"path":["v1","boxes",":id"],"variable":[{"key":"id","value":"box_ak8f7P2WSwCvtE1YW4pnLc"}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"box_ak8f7P2WSwCvtE1YW4pnLc\",\n    \"object\": \"box\",\n    \"live\": false,\n    \"cancellation\": {\n        \"cancelledByUser\": \"user_rJGavqLeSsrYN2RkXZrb69\",\n        \"reason\": \"user_initiated\"\n    },\n    \"carrierTracking\": null,\n    \"cheques\": [\n        {\n            \"amount\": 12345,\n            \"bankAccount\": \"bank_sbTsVdtZRyy9fmsjmAmELd\",\n            \"currencyCode\": \"USD\",\n            \"description\": \"description\",\n            \"from\": {\n                \"id\": \"contact_3tfuzRh8GNXrEMkRsMbGCL\",\n                \"object\": \"contact\",\n                \"live\": false,\n                \"addressLine1\": \"20-20 BAY ST FLOOR 11\",\n                \"addressLine2\": \"\",\n                \"addressStatus\": \"verified\",\n                \"city\": \"TORONTO\",\n                \"country\": \"CANADA\",\n                \"countryCode\": \"CA\",\n                \"firstName\": \"Test\",\n                \"mailingLists\": [],\n                \"postalOrZip\": \"M5J2N8\",\n                \"provinceOrState\": \"ON\",\n                \"createdAt\": \"2025-01-10T00:28:37.049Z\",\n                \"updatedAt\": \"2025-01-15T19:24:31.602Z\"\n            },\n            \"number\": 4242424242424242,\n            \"size\": \"us_letter\",\n            \"to\": {\n                \"id\": \"contact_3tfuzRh8GNXrEMkRsMbGCL\",\n                \"object\": \"contact\",\n                \"live\": false,\n                \"addressLine1\": \"20-20 BAY ST FLOOR 11\",\n                \"addressLine2\": \"\",\n                \"addressStatus\": \"verified\",\n                \"city\": \"TORONTO\",\n                \"country\": \"CANADA\",\n                \"countryCode\": \"CA\",\n                \"firstName\": \"Test\",\n                \"mailingLists\": [],\n                \"postalOrZip\": \"M5J2N8\",\n                \"provinceOrState\": \"ON\",\n                \"createdAt\": \"2025-01-10T00:28:37.049Z\",\n                \"updatedAt\": \"2025-01-15T19:24:31.602Z\"\n            }\n        },\n        {\n            \"amount\": 67890,\n            \"bankAccount\": \"bank_sbTsVdtZRyy9fmsjmAmELd\",\n            \"currencyCode\": \"USD\",\n            \"from\": {\n                \"id\": \"contact_mzWia3zmvAgFJhTFCpDzui\",\n                \"object\": \"contact\",\n                \"live\": false,\n                \"addressLine1\": \"145 MULBERRY ST\",\n                \"addressLine2\": \"\",\n                \"addressStatus\": \"verified\",\n                \"city\": \"NEW YORK\",\n                \"country\": \"UNITED STATES\",\n                \"countryCode\": \"US\",\n                \"firstName\": \"Test\",\n                \"mailingLists\": [],\n                \"postalOrZip\": \"\",\n                \"provinceOrState\": \"NY\",\n                \"createdAt\": \"2025-01-10T00:28:37.159Z\",\n                \"updatedAt\": \"2025-02-13T07:09:13.722Z\"\n            },\n            \"number\": 4242424242424242,\n            \"size\": \"us_letter\",\n            \"to\": {\n                \"id\": \"contact_mzWia3zmvAgFJhTFCpDzui\",\n                \"object\": \"contact\",\n                \"live\": false,\n                \"addressLine1\": \"145 MULBERRY ST\",\n                \"addressLine2\": \"\",\n                \"addressStatus\": \"verified\",\n                \"city\": \"NEW YORK\",\n                \"country\": \"UNITED STATES\",\n                \"countryCode\": \"US\",\n                \"firstName\": \"Test\",\n                \"mailingLists\": [],\n                \"postalOrZip\": \"\",\n                \"provinceOrState\": \"NY\",\n                \"createdAt\": \"2025-01-10T00:28:37.159Z\",\n                \"updatedAt\": \"2025-02-13T07:09:13.712Z\"\n            }\n        }\n    ],\n    \"description\": \"Test\",\n    \"from\": {\n        \"id\": \"contact_mzWia3zmvAgFJhTFCpDzui\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"145 MULBERRY ST\",\n        \"addressLine2\": \"\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"NEW YORK\",\n        \"country\": \"UNITED STATES\",\n        \"countryCode\": \"US\",\n        \"firstName\": \"Test\",\n        \"postalOrZip\": \"\",\n        \"provinceOrState\": \"NY\"\n    },\n    \"mailingClass\": \"first_class\",\n    \"renderedPDFS3Key\": \"test/box_ak8f7P2WSwCvtE1YW4pnLc.pdf\",\n    \"sendDate\": \"2025-02-13T07:09:13.752Z\",\n    \"status\": \"cancelled\",\n    \"to\": {\n        \"id\": \"contact_p5y9ZMhCZPcFvTnxZq6hKh\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"145 MULBERRY ST\",\n        \"addressLine2\": \"\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"NEW YORK\",\n        \"country\": \"CANADA\",\n        \"countryCode\": \"CA\",\n        \"firstName\": \"Test\",\n        \"postalOrZip\": \"\",\n        \"provinceOrState\": \"NY\"\n    },\n    \"url\": \"https://eksandbox.s3.amazonaws.com/test/box_ak8f7P2WSwCvtE1YW4pnLc.pdf?AWSAccessKeyId=AKIA5GFUILSUDYW4YKAG&Expires=1741210094&Signature=nT70M1WZim01%2B%2Fl0bf9bK49AvOg%3D\",\n    \"createdAt\": \"2025-02-13T07:09:13.760Z\",\n    \"updatedAt\": \"2025-03-05T21:13:14.689Z\"\n}"}],"_postman_id":"53c1b9c2-384f-4e71-96b7-8487e70a0a60"},{"name":"Progress Test Box","id":"983bccad-a062-4118-a0e8-48127db6e80d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"https://api.postgrid.com/print-mail/v1/boxes/:id/progressions","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"ba13dbcd-1bca-427c-9478-d7b07064debd","id":"ba13dbcd-1bca-427c-9478-d7b07064debd","name":"Boxes","type":"folder"}},"urlObject":{"path":["v1","boxes",":id","progressions"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[{"id":"2532da24-a258-4653-b583-0fac2b0363a9","type":"any","value":"box_sdBY5BY9ziqtJXqeTArUsq","key":"id"}]}},"response":[{"id":"71e3048a-b88e-4473-aa9e-e5ee1471eba0","name":"Progress Test Box","originalRequest":{"method":"POST","header":[],"url":{"raw":"https://api.postgrid.com/print-mail/v1/boxes/:id/progressions","host":["https://api.postgrid.com/print-mail"],"path":["v1","boxes",":id","progressions"],"variable":[{"key":"id","value":"box_sdBY5BY9ziqtJXqeTArUsq"}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"box_sdBY5BY9ziqtJXqeTArUsq\",\n    \"object\": \"box\",\n    \"live\": false,\n    \"carrierTracking\": null,\n    \"cheques\": [\n        {\n            \"amount\": 12345,\n            \"bankAccount\": \"bank_sbTsVdtZRyy9fmsjmAmELd\",\n            \"currencyCode\": \"USD\",\n            \"description\": \"description\",\n            \"from\": {\n                \"id\": \"contact_3tfuzRh8GNXrEMkRsMbGCL\",\n                \"object\": \"contact\",\n                \"live\": false,\n                \"addressLine1\": \"20-20 BAY ST FLOOR 11\",\n                \"addressLine2\": \"\",\n                \"addressStatus\": \"verified\",\n                \"city\": \"TORONTO\",\n                \"country\": \"CANADA\",\n                \"countryCode\": \"CA\",\n                \"firstName\": \"Test\",\n                \"mailingLists\": [],\n                \"postalOrZip\": \"M5J2N8\",\n                \"provinceOrState\": \"ON\",\n                \"createdAt\": \"2025-01-10T00:28:37.049Z\",\n                \"updatedAt\": \"2025-01-15T19:24:31.602Z\"\n            },\n            \"number\": 4242424242424242,\n            \"size\": \"us_letter\",\n            \"to\": {\n                \"id\": \"contact_3tfuzRh8GNXrEMkRsMbGCL\",\n                \"object\": \"contact\",\n                \"live\": false,\n                \"addressLine1\": \"20-20 BAY ST FLOOR 11\",\n                \"addressLine2\": \"\",\n                \"addressStatus\": \"verified\",\n                \"city\": \"TORONTO\",\n                \"country\": \"CANADA\",\n                \"countryCode\": \"CA\",\n                \"firstName\": \"Test\",\n                \"mailingLists\": [],\n                \"postalOrZip\": \"M5J2N8\",\n                \"provinceOrState\": \"ON\",\n                \"createdAt\": \"2025-01-10T00:28:37.049Z\",\n                \"updatedAt\": \"2025-01-15T19:24:31.602Z\"\n            }\n        },\n        {\n            \"amount\": 67890,\n            \"bankAccount\": \"bank_sbTsVdtZRyy9fmsjmAmELd\",\n            \"currencyCode\": \"USD\",\n            \"from\": {\n                \"id\": \"contact_mzWia3zmvAgFJhTFCpDzui\",\n                \"object\": \"contact\",\n                \"live\": false,\n                \"addressLine1\": \"145 MULBERRY ST\",\n                \"addressLine2\": \"\",\n                \"addressStatus\": \"verified\",\n                \"city\": \"NEW YORK\",\n                \"country\": \"UNITED STATES\",\n                \"countryCode\": \"US\",\n                \"firstName\": \"Test\",\n                \"mailingLists\": [],\n                \"postalOrZip\": \"\",\n                \"provinceOrState\": \"NY\",\n                \"createdAt\": \"2025-01-10T00:28:37.159Z\",\n                \"updatedAt\": \"2025-02-28T01:06:14.663Z\"\n            },\n            \"number\": 4242424242424242,\n            \"size\": \"us_letter\",\n            \"to\": {\n                \"id\": \"contact_mzWia3zmvAgFJhTFCpDzui\",\n                \"object\": \"contact\",\n                \"live\": false,\n                \"addressLine1\": \"145 MULBERRY ST\",\n                \"addressLine2\": \"\",\n                \"addressStatus\": \"verified\",\n                \"city\": \"NEW YORK\",\n                \"country\": \"UNITED STATES\",\n                \"countryCode\": \"US\",\n                \"firstName\": \"Test\",\n                \"mailingLists\": [],\n                \"postalOrZip\": \"\",\n                \"provinceOrState\": \"NY\",\n                \"createdAt\": \"2025-01-10T00:28:37.159Z\",\n                \"updatedAt\": \"2025-02-28T01:06:14.653Z\"\n            }\n        }\n    ],\n    \"description\": \"Test\",\n    \"from\": {\n        \"id\": \"contact_mzWia3zmvAgFJhTFCpDzui\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"145 MULBERRY ST\",\n        \"addressLine2\": \"\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"NEW YORK\",\n        \"country\": \"UNITED STATES\",\n        \"countryCode\": \"US\",\n        \"firstName\": \"Test\",\n        \"postalOrZip\": \"\",\n        \"provinceOrState\": \"NY\"\n    },\n    \"mailingClass\": \"first_class\",\n    \"sendDate\": \"2025-02-28T01:06:14.676Z\",\n    \"status\": \"printing\",\n    \"to\": {\n        \"id\": \"contact_p5y9ZMhCZPcFvTnxZq6hKh\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"145 MULBERRY ST\",\n        \"addressLine2\": \"\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"NEW YORK\",\n        \"country\": \"CANADA\",\n        \"countryCode\": \"CA\",\n        \"firstName\": \"Test\",\n        \"postalOrZip\": \"\",\n        \"provinceOrState\": \"NY\"\n    },\n    \"createdAt\": \"2025-02-28T01:06:14.684Z\",\n    \"updatedAt\": \"2025-03-03T17:04:30.073Z\"\n}"}],"_postman_id":"983bccad-a062-4118-a0e8-48127db6e80d"}],"id":"ba13dbcd-1bca-427c-9478-d7b07064debd","description":"<p>Create and manage box orders.</p>\n<h1 id=\"box-response\">Box Response</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>A unique ID prefixed with box_</td>\n</tr>\n<tr>\n<td>object</td>\n<td>string</td>\n<td>Always <code>box</code></td>\n</tr>\n<tr>\n<td>status</td>\n<td>string</td>\n<td>See <a href=\"#tracking\">Tracking</a></td>\n</tr>\n<tr>\n<td>imbStatus</td>\n<td>string or null</td>\n<td>See <a href=\"#intelligent-mail-tracking\">Intelligent-Mail Tracking</a></td>\n</tr>\n<tr>\n<td>live</td>\n<td>boolean</td>\n<td><code>true</code> if this is a live mode letter else <code>false</code></td>\n</tr>\n<tr>\n<td>description</td>\n<td>string or null</td>\n<td>Optional line describing this letter</td>\n</tr>\n<tr>\n<td>sendDate</td>\n<td>Date</td>\n<td>Date when the box will be sent</td>\n</tr>\n<tr>\n<td>to</td>\n<td><a href=\"#contact-response\">Contact</a></td>\n<td>The recipient of this box</td>\n</tr>\n<tr>\n<td>from</td>\n<td><a href=\"#contact-response\">Contact</a></td>\n<td>The sender of this box</td>\n</tr>\n<tr>\n<td>url</td>\n<td>string or null</td>\n<td>Signed link to a preview of this box order</td>\n</tr>\n<tr>\n<td>mailingClass</td>\n<td><code>first_class</code> or <code>standard_class</code></td>\n<td>Defaults to <code>first_class</code>. See <a href=\"#mailing-class\">mailing class</a>.</td>\n</tr>\n<tr>\n<td>cheques</td>\n<td>array</td>\n<td>An array of <a href=\"#box-cheque\">Box Cheque</a></td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"box-cheque\">Box Cheque</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>to</td>\n<td><a href=\"#contact-response\">Contact</a></td>\n<td>The recipient of this cheque</td>\n</tr>\n<tr>\n<td>from</td>\n<td><a href=\"#contact-response\">Contact</a></td>\n<td>The issuer of this cheque</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string or null</td>\n<td>Optional line describing this cheque</td>\n</tr>\n<tr>\n<td>bankAccount</td>\n<td>string</td>\n<td>A <a href=\"#bank-account\">Bank Account</a> ID, the drawee</td>\n</tr>\n<tr>\n<td>currencyCode</td>\n<td>string</td>\n<td>3-letter code representing currency of <code>amount</code></td>\n</tr>\n<tr>\n<td>amount</td>\n<td>integer</td>\n<td>The cheque amount as an integer representing cents</td>\n</tr>\n<tr>\n<td>memo</td>\n<td>string or null</td>\n<td>An optional memo to be printed on the cheque (Max 40 characters long)</td>\n</tr>\n<tr>\n<td>logoURL</td>\n<td>string or null</td>\n<td>An optional logo image URL which will be printed on the cheque</td>\n</tr>\n<tr>\n<td>number</td>\n<td>integer</td>\n<td>The cheque number</td>\n</tr>\n<tr>\n<td>mergeVariables</td>\n<td>object or null</td>\n<td><a href=\"#merge-variables\">Merge Variables</a> for the message/attached letter</td>\n</tr>\n<tr>\n<td>messageTemplate</td>\n<td></td>\n<td>A <a href=\"#template\">Template</a> ID, if any</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":false},"_postman_id":"ba13dbcd-1bca-427c-9478-d7b07064debd"},{"name":"Letters with Plastic Cards","item":[{"name":"Create Letter with Single-Sided Plastic Card from PDF Link","id":"cf52f5bc-e22e-4d79-9455-bcfb04e5ac35","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"to","value":"contact_8v1mibdKkpK8Si6vz7xBVi","type":"text","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the receiver. You can either pass a contact <code>object</code> or a contact's <code>id</code>.\n<code>required</code></p>\n"},{"key":"from","value":"contact_8v1mibdKkpK8Si6vz7xBVi","type":"text","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the sender. You can either pass a contact <code>object</code> or a contact's <code>id</code>.\n<code>required</code></p>\n"},{"key":"template","value":"template_5n7fprLVnDDsULzhguWBaZ","type":"text","description":"<p>The template's <code>id</code> to be used for the letter.\n<code>required</code></p>\n"},{"key":"addressPlacement","value":"top_first_page","type":"text","description":"<p>The location where the address will be placed. Must be either <code>top_first_page</code> or <code>insert_blank_page</code>.\n<code>optional</code></p>\n"},{"key":"doubleSided","value":"true","type":"text","description":"<p>Indicates if the letter is double sided or not.\n<code>optional</code>\nDefault: <code>false</code></p>\n"},{"key":"color","value":"false","type":"text","description":"<p>Indicates whether the letter will be printed in color or not.\n<code>optional</code></p>\n"},{"key":"perforatedPage","value":"1","type":"text","description":"<p>Indicates which page should be perforated. If supplied, the value must be <code>1</code> meaning perforate the first page.</p>\n<p><code>optional</code></p>\n","disabled":true},{"key":"extraService","value":"certified","type":"text","description":"<p>Indicates extra services for the letter. See <a href=\"#certified-and-registered-mail\">certified and registered mail</a>.\n<code>optional</code></p>\n"},{"key":"envelopeType","value":"flat","type":"text","description":"<p>Indicates the envelope type for the letter. Must be either <code>standard_double_window</code> or <code>flat</code>.\n<code>optional</code></p>\n","disabled":true},{"key":"returnEnvelope","value":"return_envelope_97Tcv1LxhWWLPUvn58CuVJ","type":"text","description":"<p>The <code>id</code> of the <a href=\"#return-envelope\">return envelope</a> to be used.\n<code>optional</code></p>\n","disabled":true},{"key":"sendDate","value":"2023-02-16T15:40:35.873Z","type":"text","description":"<p>The desired date for the letter to be sent out.</p>\n<p><code>optional</code></p>\n","disabled":true},{"key":"express","value":"false","type":"text","description":"<p>See <a href=\"#express-shipping\">express shipping</a>.</p>\n"},{"key":"description","value":"Template with attached PDF","type":"text","description":"<p>A description for the letter.</p>\n<p><code>optional</code></p>\n"},{"key":"mailingClass","value":"first_class","type":"text","description":"<p>Defaults to <code>first_class</code>. See <a href=\"#mailing-class\">mailing class</a>.\n<code>optional</code></p>\n","disabled":true},{"key":"mergeVariables[language]","value":"english","type":"text"},{"key":"metadata[company]","value":"PostGrid","type":"text"},{"key":"size","value":"us_letter","type":"text","description":"<p>Default size will be chosen based on the destination country, if not provided. Indicates the letter size for the letter being created. See <a href=\"#letter-size\">letter size</a></p>\n<p><code>optional</code></p>\n"},{"key":"plasticCard[singleSided][pdf]","value":"https://eksandbox.s3.amazonaws.com/files/plastic_card_ex.pdf","description":"<p>The link to the PDF to be used for the plastic card.</p>\n<p><code>required</code></p>\n","type":"text"},{"key":"plasticCard[size]","value":"standard","description":"<p>Size of plastic card</p>\n<p><code>required</code></p>\n","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/letters","description":"<p>Create a letter order with an HTML template and attach a PDF file before/after the template.</p>\n","urlObject":{"path":["v1","letters"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[]}},"response":[{"id":"26684fe6-88b7-4140-8663-79a01e9d11dd","name":"Create Letter with Single-Sided Plastic Card from PDF Link","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"to","value":"contact_8v1mibdKkpK8Si6vz7xBVi","type":"text","description":"The `id` or [contact](#contact) `object` of the receiver. You can either pass a contact `object` or a contact's `id`.\n`required`"},{"key":"from","value":"contact_8v1mibdKkpK8Si6vz7xBVi","type":"text","description":"The `id` or [contact](#contact) `object` of the sender. You can either pass a contact `object` or a contact's `id`.\n`required`"},{"key":"template","value":"template_5n7fprLVnDDsULzhguWBaZ","type":"text","description":"The template's `id` to be used for the letter.\n`required`"},{"key":"addressPlacement","value":"top_first_page","type":"text","description":"The location where the address will be placed. Must be either `top_first_page` or `insert_blank_page`.\n`optional`"},{"key":"doubleSided","value":"true","type":"text","description":"Indicates if the letter is double sided or not.\n`optional`\nDefault: `false`"},{"key":"color","value":"false","type":"text","description":"Indicates whether the letter will be printed in color or not.\n`optional`"},{"key":"perforatedPage","value":"1","type":"text","description":"Indicates which page should be perforated. If supplied, the value must be `1` meaning perforate the first page.\n\n`optional`","disabled":true},{"key":"extraService","value":"certified","type":"text","description":"Indicates extra services for the letter. See [certified and registered mail](#certified-and-registered-mail).\n`optional`"},{"key":"envelopeType","value":"flat","type":"text","description":"Indicates the envelope type for the letter. Must be either `standard_double_window` or `flat`.\n`optional`","disabled":true},{"key":"returnEnvelope","value":"return_envelope_97Tcv1LxhWWLPUvn58CuVJ","type":"text","description":"The `id` of the [return envelope](#return-envelope) to be used.\n`optional`","disabled":true},{"key":"sendDate","value":"2023-02-16T15:40:35.873Z","type":"text","description":"The desired date for the letter to be sent out.\n\n`optional`","disabled":true},{"key":"express","value":"false","type":"text","description":"See [express shipping](#express-shipping)."},{"key":"description","value":"Template with attached PDF","type":"text","description":"A description for the letter.\n\n`optional`"},{"key":"mailingClass","value":"first_class","type":"text","description":"Defaults to `first_class`. See [mailing class](#mailing-class).\n`optional`","disabled":true},{"key":"mergeVariables[language]","value":"english","type":"text"},{"key":"metadata[company]","value":"PostGrid","type":"text"},{"key":"size","value":"us_letter","type":"text","description":"Default size will be chosen based on the destination country, if not provided. Indicates the letter size for the letter being created. See [letter size](#letter-size)\n\n`optional`"},{"key":"plasticCard[singleSided][pdf]","value":"https://eksandbox.s3.amazonaws.com/files/plastic_card_ex.pdf","description":"The link to the PDF to be used for the plastic card.\n\n`required`","type":"text"},{"key":"plasticCard[size]","value":"standard","description":"Size of plastic card\n\n`required`","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/letters"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 23 Aug 2024 15:25:02 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1404"},{"key":"Connection","value":"keep-alive"},{"key":"strict-transport-security","value":"max-age=63072000; preload"},{"key":"x-content-type-options","value":"nosniff"},{"key":"content-security-policy","value":"default-src 'none'"},{"key":"vary","value":"Origin"},{"key":"access-control-allow-credentials","value":"true"},{"key":"etag","value":"W/\"57c-8MHWRDNpycOszDV7XyF74DwYFpo\""},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=B%2B8P6Jwc17A9MFARSdd%2B2YFany0232%2FjZ1eQG0rKoQoRcjwXClUnURdqgtRE1YNg3slz4bsoDii6fE0NxL6i88667S0wA3LqZe0oHqgoxQpsSSBGW3coFg5532AUTgbIbIDL\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"8b7c1ce8fbdac946-IAD"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"letter_9Mg6kcUjjFzMxGjwa3tvYi\",\n    \"object\": \"letter\",\n    \"live\": false,\n    \"addressPlacement\": \"top_first_page\",\n    \"attachedPDF\": null,\n    \"carrierTracking\": null,\n    \"color\": false,\n    \"description\": \"Template with attached PDF\",\n    \"doubleSided\": true,\n    \"envelope\": \"standard\",\n    \"envelopeType\": \"standard_double_window\",\n    \"express\": false,\n    \"extraService\": \"certified\",\n    \"from\": {\n        \"id\": \"contact_8v1mibdKkpK8Si6vz7xBVi\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"20 MASS AVE\",\n        \"addressLine2\": null,\n        \"addressStatus\": \"verified\",\n        \"city\": \"CAMBRIDGE\",\n        \"country\": \"UNITED STATES\",\n        \"countryCode\": \"US\",\n        \"firstName\": \"Brian\",\n        \"postalOrZip\": \"10013\",\n        \"provinceOrState\": \"MA\"\n    },\n    \"mailingClass\": \"first_class\",\n    \"mergeVariables\": {\n        \"language\": \"english\"\n    },\n    \"metadata\": {\n        \"company\": \"PostGrid\"\n    },\n    \"plasticCard\": {\n        \"singleSided\": {\n            \"uploadedPDF\": \"https://pg-prod-bucket-1.s3.amazonaws.com/test/pdf_7WxY5LKM6k5g7zwLZAoLgD?AWSAccessKeyId=AKIA5GFUILSULWTWCR64&Expires=1724427602&Signature=LTGln466IoGpuSoNTnUKXLf1ge8%3D\"\n        },\n        \"size\": \"standard\"\n    },\n    \"sendDate\": \"2024-08-23T15:25:02.700Z\",\n    \"size\": \"us_letter\",\n    \"status\": \"ready\",\n    \"template\": \"template_5n7fprLVnDDsULzhguWBaZ\",\n    \"to\": {\n        \"id\": \"contact_8v1mibdKkpK8Si6vz7xBVi\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"20 MASS AVE\",\n        \"addressLine2\": null,\n        \"addressStatus\": \"verified\",\n        \"city\": \"CAMBRIDGE\",\n        \"country\": \"UNITED STATES\",\n        \"countryCode\": \"US\",\n        \"firstName\": \"Brian\",\n        \"postalOrZip\": \"10013\",\n        \"provinceOrState\": \"MA\"\n    },\n    \"createdAt\": \"2024-08-23T15:25:02.704Z\",\n    \"updatedAt\": \"2024-08-23T15:25:02.704Z\"\n}"}],"_postman_id":"cf52f5bc-e22e-4d79-9455-bcfb04e5ac35"},{"name":"Create Letter with Single-Sided Plastic Card from Uploaded PDF","id":"25d65a9e-b73e-417a-a4a5-4187a3b2ea0a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"to","value":"contact_8v1mibdKkpK8Si6vz7xBVi","type":"text","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the receiver. You can either pass a contact <code>object</code> or a contact's <code>id</code>.\n<code>required</code></p>\n"},{"key":"from","value":"contact_8v1mibdKkpK8Si6vz7xBVi","type":"text","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the sender. You can either pass a contact <code>object</code> or a contact's <code>id</code>.\n<code>required</code></p>\n"},{"key":"template","value":"template_5n7fprLVnDDsULzhguWBaZ","type":"text","description":"<p>The template's <code>id</code> to be used for the letter.\n<code>required</code></p>\n"},{"key":"addressPlacement","value":"top_first_page","type":"text","description":"<p>The location where the address will be placed. Must be either <code>top_first_page</code> or <code>insert_blank_page</code>.\n<code>optional</code></p>\n"},{"key":"doubleSided","value":"true","type":"text","description":"<p>Indicates if the letter is double sided or not.\n<code>optional</code>\nDefault: <code>false</code></p>\n"},{"key":"color","value":"false","type":"text","description":"<p>Indicates whether the letter will be printed in color or not.\n<code>optional</code></p>\n"},{"key":"perforatedPage","value":"1","type":"text","description":"<p>Indicates which page should be perforated. If supplied, the value must be <code>1</code> meaning perforate the first page.</p>\n<p><code>optional</code></p>\n","disabled":true},{"key":"extraService","value":"certified","type":"text","description":"<p>Indicates extra services for the letter. See <a href=\"#certified-and-registered-mail\">certified and registered mail</a>.\n<code>optional</code></p>\n"},{"key":"envelopeType","value":"flat","type":"text","description":"<p>Indicates the envelope type for the letter. Must be either <code>standard_double_window</code> or <code>flat</code>.\n<code>optional</code></p>\n","disabled":true},{"key":"returnEnvelope","value":"return_envelope_97Tcv1LxhWWLPUvn58CuVJ","type":"text","description":"<p>The <code>id</code> of the <a href=\"#return-envelope\">return envelope</a> to be used.\n<code>optional</code></p>\n","disabled":true},{"key":"sendDate","value":"2023-02-16T15:40:35.873Z","type":"text","description":"<p>The desired date for the letter to be sent out.</p>\n<p><code>optional</code></p>\n","disabled":true},{"key":"express","value":"false","type":"text","description":"<p>See <a href=\"#express-shipping\">express shipping</a>.</p>\n"},{"key":"description","value":"Template with attached PDF","type":"text","description":"<p>A description for the letter.</p>\n<p><code>optional</code></p>\n"},{"key":"mailingClass","value":"first_class","type":"text","description":"<p>Defaults to <code>first_class</code>. See <a href=\"#mailing-class\">mailing class</a>.\n<code>optional</code></p>\n","disabled":true},{"key":"mergeVariables[language]","value":"english","type":"text"},{"key":"metadata[company]","value":"PostGrid","type":"text"},{"key":"size","value":"us_letter","type":"text","description":"<p>Default size will be chosen based on the destination country, if not provided. Indicates the letter size for the letter being created. See <a href=\"#letter-size\">letter size</a></p>\n<p><code>optional</code></p>\n"},{"key":"plasticCard[singleSided][pdf]","description":"<p>The PDF to be used for the plastic card.</p>\n<p><code>required</code></p>\n","type":"file","src":"Mr_MiDa0X/plastic_card_ex.pdf"},{"key":"plasticCard[size]","description":"<p>Size of plastic card</p>\n<p><code>required</code></p>\n","type":"text","value":"standard"}]},"url":"https://api.postgrid.com/print-mail/v1/letters","description":"<p>Create a letter order with an HTML template and attach a PDF file before/after the template.</p>\n","urlObject":{"path":["v1","letters"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[]}},"response":[{"id":"33077edf-b31a-41ef-b25c-e78448328529","name":"Create Letter with Single-Sided Plastic Card from Uploaded PDF","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"to","value":"contact_8v1mibdKkpK8Si6vz7xBVi","type":"text","description":"The `id` or [contact](#contact) `object` of the receiver. You can either pass a contact `object` or a contact's `id`.\n`required`"},{"key":"from","value":"contact_8v1mibdKkpK8Si6vz7xBVi","type":"text","description":"The `id` or [contact](#contact) `object` of the sender. You can either pass a contact `object` or a contact's `id`.\n`required`"},{"key":"template","value":"template_5n7fprLVnDDsULzhguWBaZ","type":"text","description":"The template's `id` to be used for the letter.\n`required`"},{"key":"addressPlacement","value":"top_first_page","type":"text","description":"The location where the address will be placed. Must be either `top_first_page` or `insert_blank_page`.\n`optional`"},{"key":"doubleSided","value":"true","type":"text","description":"Indicates if the letter is double sided or not.\n`optional`\nDefault: `false`"},{"key":"color","value":"false","type":"text","description":"Indicates whether the letter will be printed in color or not.\n`optional`"},{"key":"perforatedPage","value":"1","type":"text","description":"Indicates which page should be perforated. If supplied, the value must be `1` meaning perforate the first page.\n\n`optional`","disabled":true},{"key":"extraService","value":"certified","type":"text","description":"Indicates extra services for the letter. See [certified and registered mail](#certified-and-registered-mail).\n`optional`"},{"key":"envelopeType","value":"flat","type":"text","description":"Indicates the envelope type for the letter. Must be either `standard_double_window` or `flat`.\n`optional`","disabled":true},{"key":"returnEnvelope","value":"return_envelope_97Tcv1LxhWWLPUvn58CuVJ","type":"text","description":"The `id` of the [return envelope](#return-envelope) to be used.\n`optional`","disabled":true},{"key":"sendDate","value":"2023-02-16T15:40:35.873Z","type":"text","description":"The desired date for the letter to be sent out.\n\n`optional`","disabled":true},{"key":"express","value":"false","type":"text","description":"See [express shipping](#express-shipping)."},{"key":"description","value":"Template with attached PDF","type":"text","description":"A description for the letter.\n\n`optional`"},{"key":"mailingClass","value":"first_class","type":"text","description":"Defaults to `first_class`. See [mailing class](#mailing-class).\n`optional`","disabled":true},{"key":"mergeVariables[language]","value":"english","type":"text"},{"key":"metadata[company]","value":"PostGrid","type":"text"},{"key":"size","value":"us_letter","type":"text","description":"Default size will be chosen based on the destination country, if not provided. Indicates the letter size for the letter being created. See [letter size](#letter-size)\n\n`optional`"},{"key":"plasticCard[singleSided][pdf]","description":"The PDF to be used for the plastic card.\n\n`required`","type":"file","src":"Mr_MiDa0X/plastic_card_ex.pdf"},{"key":"plasticCard[size]","description":"Size of plastic card\n\n`required`","type":"text","value":"standard"}]},"url":"https://api.postgrid.com/print-mail/v1/letters"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 23 Aug 2024 15:27:42 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1406"},{"key":"Connection","value":"keep-alive"},{"key":"strict-transport-security","value":"max-age=63072000; preload"},{"key":"x-content-type-options","value":"nosniff"},{"key":"content-security-policy","value":"default-src 'none'"},{"key":"vary","value":"Origin"},{"key":"access-control-allow-credentials","value":"true"},{"key":"etag","value":"W/\"57e-x1jze0xqrdDaWjFEesxBFXiOgHE\""},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=J3aUhuOIbiBPJI7XNZ84Y2JmXOYjgPVw%2BjNg1AVpjH46ZLJIM2dsdqth8EzYa%2FbRRzpGDXlanPNRMsaG6fCrXXfbhDgQHPKZMSO2f4JNwSfpKYVrAfACulMbbnpaYI2zddgp\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"8b7c20d37c7e8242-IAD"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"letter_j9NVwaX8nkVsgeqSdetXo1\",\n    \"object\": \"letter\",\n    \"live\": false,\n    \"addressPlacement\": \"top_first_page\",\n    \"attachedPDF\": null,\n    \"carrierTracking\": null,\n    \"color\": false,\n    \"description\": \"Template with attached PDF\",\n    \"doubleSided\": true,\n    \"envelope\": \"standard\",\n    \"envelopeType\": \"standard_double_window\",\n    \"express\": false,\n    \"extraService\": \"certified\",\n    \"from\": {\n        \"id\": \"contact_8v1mibdKkpK8Si6vz7xBVi\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"20 MASS AVE\",\n        \"addressLine2\": null,\n        \"addressStatus\": \"verified\",\n        \"city\": \"CAMBRIDGE\",\n        \"country\": \"UNITED STATES\",\n        \"countryCode\": \"US\",\n        \"firstName\": \"Brian\",\n        \"postalOrZip\": \"10013\",\n        \"provinceOrState\": \"MA\"\n    },\n    \"mailingClass\": \"first_class\",\n    \"mergeVariables\": {\n        \"language\": \"english\"\n    },\n    \"metadata\": {\n        \"company\": \"PostGrid\"\n    },\n    \"plasticCard\": {\n        \"singleSided\": {\n            \"uploadedPDF\": \"https://pg-prod-bucket-1.s3.amazonaws.com/test/pdf_7WxY5LKM6k5g7zwLZAoLgD?AWSAccessKeyId=AKIA5GFUILSULWTWCR64&Expires=1724427762&Signature=b5PgE3da3lXBgN2kfvYX%2BN68Xyk%3D\"\n        },\n        \"size\": \"standard\"\n    },\n    \"sendDate\": \"2024-08-23T15:27:42.670Z\",\n    \"size\": \"us_letter\",\n    \"status\": \"ready\",\n    \"template\": \"template_5n7fprLVnDDsULzhguWBaZ\",\n    \"to\": {\n        \"id\": \"contact_8v1mibdKkpK8Si6vz7xBVi\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"20 MASS AVE\",\n        \"addressLine2\": null,\n        \"addressStatus\": \"verified\",\n        \"city\": \"CAMBRIDGE\",\n        \"country\": \"UNITED STATES\",\n        \"countryCode\": \"US\",\n        \"firstName\": \"Brian\",\n        \"postalOrZip\": \"10013\",\n        \"provinceOrState\": \"MA\"\n    },\n    \"createdAt\": \"2024-08-23T15:27:42.672Z\",\n    \"updatedAt\": \"2024-08-23T15:27:42.672Z\"\n}"}],"_postman_id":"25d65a9e-b73e-417a-a4a5-4187a3b2ea0a"},{"name":"Create Letter with Double-Sided Plastic Card from Uploaded PDF","id":"096402da-59ad-4b75-803e-8490c60b25cc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"to","value":"contact_8v1mibdKkpK8Si6vz7xBVi","type":"text","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the receiver. You can either pass a contact <code>object</code> or a contact's <code>id</code>.\n<code>required</code></p>\n"},{"key":"from","value":"contact_8v1mibdKkpK8Si6vz7xBVi","type":"text","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the sender. You can either pass a contact <code>object</code> or a contact's <code>id</code>.\n<code>required</code></p>\n"},{"key":"template","value":"template_5n7fprLVnDDsULzhguWBaZ","type":"text","description":"<p>The template's <code>id</code> to be used for the letter.\n<code>required</code></p>\n"},{"key":"addressPlacement","value":"top_first_page","type":"text","description":"<p>The location where the address will be placed. Must be either <code>top_first_page</code> or <code>insert_blank_page</code>.\n<code>optional</code></p>\n"},{"key":"doubleSided","value":"true","type":"text","description":"<p>Indicates if the letter is double sided or not.\n<code>optional</code>\nDefault: <code>false</code></p>\n"},{"key":"color","value":"false","type":"text","description":"<p>Indicates whether the letter will be printed in color or not.\n<code>optional</code></p>\n"},{"key":"perforatedPage","value":"1","type":"text","description":"<p>Indicates which page should be perforated. If supplied, the value must be <code>1</code> meaning perforate the first page.</p>\n<p><code>optional</code></p>\n","disabled":true},{"key":"extraService","value":"certified","type":"text","description":"<p>Indicates extra services for the letter. See <a href=\"#certified-and-registered-mail\">certified and registered mail</a>.\n<code>optional</code></p>\n"},{"key":"envelopeType","value":"flat","type":"text","description":"<p>Indicates the envelope type for the letter. Must be either <code>standard_double_window</code> or <code>flat</code>.\n<code>optional</code></p>\n","disabled":true},{"key":"returnEnvelope","value":"return_envelope_97Tcv1LxhWWLPUvn58CuVJ","type":"text","description":"<p>The <code>id</code> of the <a href=\"#return-envelope\">return envelope</a> to be used.\n<code>optional</code></p>\n","disabled":true},{"key":"sendDate","value":"2023-02-16T15:40:35.873Z","type":"text","description":"<p>The desired date for the letter to be sent out.</p>\n<p><code>optional</code></p>\n","disabled":true},{"key":"express","value":"false","type":"text","description":"<p>See <a href=\"#express-shipping\">express shipping</a>.</p>\n"},{"key":"description","value":"Template with attached PDF","type":"text","description":"<p>A description for the letter.</p>\n<p><code>optional</code></p>\n"},{"key":"mailingClass","value":"first_class","type":"text","description":"<p>Defaults to <code>first_class</code>. See <a href=\"#mailing-class\">mailing class</a>.\n<code>optional</code></p>\n","disabled":true},{"key":"mergeVariables[language]","value":"english","type":"text"},{"key":"metadata[company]","value":"PostGrid","type":"text"},{"key":"size","value":"us_letter","type":"text","description":"<p>Default size will be chosen based on the destination country, if not provided. Indicates the letter size for the letter being created. See <a href=\"#letter-size\">letter size</a></p>\n<p><code>optional</code></p>\n"},{"key":"plasticCard[doubleSided][pdf]","description":"<p>The PDF to be used for the plastic card.</p>\n<p><code>required</code></p>\n","type":"file","src":"SWoWDlfuG/2_page_plastic_card_ex.pdf"},{"key":"plasticCard[size]","description":"<p>Size of plastic card</p>\n<p><code>required</code></p>\n","type":"text","value":"standard"}]},"url":"https://api.postgrid.com/print-mail/v1/letters","description":"<p>Create a letter order with an HTML template and attach a PDF file before/after the template.</p>\n","urlObject":{"path":["v1","letters"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[]}},"response":[{"id":"0fce6664-904d-4d71-87ba-d955ca0dbb65","name":"Create Letter with Double-Sided Plastic Card from Uploaded PDF","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"to","value":"contact_8v1mibdKkpK8Si6vz7xBVi","type":"text","description":"The `id` or [contact](#contact) `object` of the receiver. You can either pass a contact `object` or a contact's `id`.\n`required`"},{"key":"from","value":"contact_8v1mibdKkpK8Si6vz7xBVi","type":"text","description":"The `id` or [contact](#contact) `object` of the sender. You can either pass a contact `object` or a contact's `id`.\n`required`"},{"key":"template","value":"template_5n7fprLVnDDsULzhguWBaZ","type":"text","description":"The template's `id` to be used for the letter.\n`required`"},{"key":"addressPlacement","value":"top_first_page","type":"text","description":"The location where the address will be placed. Must be either `top_first_page` or `insert_blank_page`.\n`optional`"},{"key":"doubleSided","value":"true","type":"text","description":"Indicates if the letter is double sided or not.\n`optional`\nDefault: `false`"},{"key":"color","value":"false","type":"text","description":"Indicates whether the letter will be printed in color or not.\n`optional`"},{"key":"perforatedPage","value":"1","type":"text","description":"Indicates which page should be perforated. If supplied, the value must be `1` meaning perforate the first page.\n\n`optional`","disabled":true},{"key":"extraService","value":"certified","type":"text","description":"Indicates extra services for the letter. See [certified and registered mail](#certified-and-registered-mail).\n`optional`"},{"key":"envelopeType","value":"flat","type":"text","description":"Indicates the envelope type for the letter. Must be either `standard_double_window` or `flat`.\n`optional`","disabled":true},{"key":"returnEnvelope","value":"return_envelope_97Tcv1LxhWWLPUvn58CuVJ","type":"text","description":"The `id` of the [return envelope](#return-envelope) to be used.\n`optional`","disabled":true},{"key":"sendDate","value":"2023-02-16T15:40:35.873Z","type":"text","description":"The desired date for the letter to be sent out.\n\n`optional`","disabled":true},{"key":"express","value":"false","type":"text","description":"See [express shipping](#express-shipping)."},{"key":"description","value":"Template with attached PDF","type":"text","description":"A description for the letter.\n\n`optional`"},{"key":"mailingClass","value":"first_class","type":"text","description":"Defaults to `first_class`. See [mailing class](#mailing-class).\n`optional`","disabled":true},{"key":"mergeVariables[language]","value":"english","type":"text"},{"key":"metadata[company]","value":"PostGrid","type":"text"},{"key":"size","value":"us_letter","type":"text","description":"Default size will be chosen based on the destination country, if not provided. Indicates the letter size for the letter being created. See [letter size](#letter-size)\n\n`optional`"},{"key":"plasticCard[doubleSided][pdf]","description":"The PDF to be used for the plastic card.\n\n`required`","type":"file","src":"SWoWDlfuG/2_page_plastic_card_ex.pdf"},{"key":"plasticCard[size]","description":"Size of plastic card\n\n`required`","type":"text","value":"standard"}]},"url":"https://api.postgrid.com/print-mail/v1/letters"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 23 Aug 2024 15:28:13 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1408"},{"key":"Connection","value":"keep-alive"},{"key":"strict-transport-security","value":"max-age=63072000; preload"},{"key":"x-content-type-options","value":"nosniff"},{"key":"content-security-policy","value":"default-src 'none'"},{"key":"vary","value":"Origin"},{"key":"access-control-allow-credentials","value":"true"},{"key":"etag","value":"W/\"580-2BR7CmCvUmRZpqFD+Xz2odQtkfs\""},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=iMZSwjOFggjizIwv9rukmvzSa46qcJgEBYFFbYal3niP8JjN7H%2BtOY%2FdQHcGZErOQ0DW00lKOF9AZJkSc%2F7uoVLDQ8V4%2FtF6WlB2tgPboMb1O1leiL8%2BL5bdV3Ccm8hjgK43\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"8b7c21929abc82a5-IAD"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"letter_6Ae34maMXHJtaCYFxBjrYx\",\n    \"object\": \"letter\",\n    \"live\": false,\n    \"addressPlacement\": \"top_first_page\",\n    \"attachedPDF\": null,\n    \"carrierTracking\": null,\n    \"color\": false,\n    \"description\": \"Template with attached PDF\",\n    \"doubleSided\": true,\n    \"envelope\": \"standard\",\n    \"envelopeType\": \"standard_double_window\",\n    \"express\": false,\n    \"extraService\": \"certified\",\n    \"from\": {\n        \"id\": \"contact_8v1mibdKkpK8Si6vz7xBVi\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"20 MASS AVE\",\n        \"addressLine2\": null,\n        \"addressStatus\": \"verified\",\n        \"city\": \"CAMBRIDGE\",\n        \"country\": \"UNITED STATES\",\n        \"countryCode\": \"US\",\n        \"firstName\": \"Brian\",\n        \"postalOrZip\": \"10013\",\n        \"provinceOrState\": \"MA\"\n    },\n    \"mailingClass\": \"first_class\",\n    \"mergeVariables\": {\n        \"language\": \"english\"\n    },\n    \"metadata\": {\n        \"company\": \"PostGrid\"\n    },\n    \"plasticCard\": {\n        \"doubleSided\": {\n            \"uploadedPDF\": \"https://pg-prod-bucket-1.s3.amazonaws.com/test/pdf_vSf84UiX1eUp4aaQD42oep?AWSAccessKeyId=AKIA5GFUILSULWTWCR64&Expires=1724427793&Signature=%2B4L1S0NnKU7%2BKB5NRVyoW1IIf2w%3D\"\n        },\n        \"size\": \"standard\"\n    },\n    \"sendDate\": \"2024-08-23T15:28:13.303Z\",\n    \"size\": \"us_letter\",\n    \"status\": \"ready\",\n    \"template\": \"template_5n7fprLVnDDsULzhguWBaZ\",\n    \"to\": {\n        \"id\": \"contact_8v1mibdKkpK8Si6vz7xBVi\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"20 MASS AVE\",\n        \"addressLine2\": null,\n        \"addressStatus\": \"verified\",\n        \"city\": \"CAMBRIDGE\",\n        \"country\": \"UNITED STATES\",\n        \"countryCode\": \"US\",\n        \"firstName\": \"Brian\",\n        \"postalOrZip\": \"10013\",\n        \"provinceOrState\": \"MA\"\n    },\n    \"createdAt\": \"2024-08-23T15:28:13.305Z\",\n    \"updatedAt\": \"2024-08-23T15:28:13.305Z\"\n}"}],"_postman_id":"096402da-59ad-4b75-803e-8490c60b25cc"},{"name":"Create Letter with Double-Sided Plastic Card from PDF Link","id":"75c4c7b1-1228-414d-82af-0d8ffa9a866f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"to","value":"contact_8v1mibdKkpK8Si6vz7xBVi","type":"text","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the receiver. You can either pass a contact <code>object</code> or a contact's <code>id</code>.\n<code>required</code></p>\n"},{"key":"from","value":"contact_8v1mibdKkpK8Si6vz7xBVi","type":"text","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the sender. You can either pass a contact <code>object</code> or a contact's <code>id</code>.\n<code>required</code></p>\n"},{"key":"template","value":"template_5n7fprLVnDDsULzhguWBaZ","type":"text","description":"<p>The template's <code>id</code> to be used for the letter.\n<code>required</code></p>\n"},{"key":"addressPlacement","value":"top_first_page","type":"text","description":"<p>The location where the address will be placed. Must be either <code>top_first_page</code> or <code>insert_blank_page</code>.\n<code>optional</code></p>\n"},{"key":"doubleSided","value":"true","type":"text","description":"<p>Indicates if the letter is double sided or not.\n<code>optional</code>\nDefault: <code>false</code></p>\n"},{"key":"color","value":"false","type":"text","description":"<p>Indicates whether the letter will be printed in color or not.\n<code>optional</code></p>\n"},{"key":"perforatedPage","value":"1","type":"text","description":"<p>Indicates which page should be perforated. If supplied, the value must be <code>1</code> meaning perforate the first page.</p>\n<p><code>optional</code></p>\n","disabled":true},{"key":"extraService","value":"certified","type":"text","description":"<p>Indicates extra services for the letter. See <a href=\"#certified-and-registered-mail\">certified and registered mail</a>.\n<code>optional</code></p>\n"},{"key":"envelopeType","value":"flat","type":"text","description":"<p>Indicates the envelope type for the letter. Must be either <code>standard_double_window</code> or <code>flat</code>.\n<code>optional</code></p>\n","disabled":true},{"key":"returnEnvelope","value":"return_envelope_97Tcv1LxhWWLPUvn58CuVJ","type":"text","description":"<p>The <code>id</code> of the <a href=\"#return-envelope\">return envelope</a> to be used.\n<code>optional</code></p>\n","disabled":true},{"key":"sendDate","value":"2023-02-16T15:40:35.873Z","type":"text","description":"<p>The desired date for the letter to be sent out.</p>\n<p><code>optional</code></p>\n","disabled":true},{"key":"express","value":"false","type":"text","description":"<p>See <a href=\"#express-shipping\">express shipping</a>.</p>\n"},{"key":"description","value":"Template with attached PDF","type":"text","description":"<p>A description for the letter.</p>\n<p><code>optional</code></p>\n"},{"key":"mailingClass","value":"first_class","type":"text","description":"<p>Defaults to <code>first_class</code>. See <a href=\"#mailing-class\">mailing class</a>.\n<code>optional</code></p>\n","disabled":true},{"key":"mergeVariables[language]","value":"english","type":"text"},{"key":"metadata[company]","value":"PostGrid","type":"text"},{"key":"size","value":"us_letter","type":"text","description":"<p>Default size will be chosen based on the destination country, if not provided. Indicates the letter size for the letter being created. See <a href=\"#letter-size\">letter size</a></p>\n<p><code>optional</code></p>\n"},{"key":"plasticCard[singleSided][pdf]","description":"<p>The uploaded PDF to be used for the plastic card.</p>\n<p><code>required</code></p>\n","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["jUFcXcLQ3/plastic_card_ex.pdf"],"src":"jUFcXcLQ3/plastic_card_ex.pdf","disabled":true},{"key":"plasticCard[size]","value":"standard","description":"<p>Size of plastic card</p>\n<p><code>required</code></p>\n","type":"text"},{"key":"plasticCard[doubleSided][pdf]","value":"https://eksandbox.s3.amazonaws.com/files/2_page_plastic_card_ex.pdf","type":"text","description":"<p>The link to the PDF to be used for the plastic card.</p>\n<p><code>required</code></p>\n"}]},"url":"https://api.postgrid.com/print-mail/v1/letters","description":"<p>Create a letter order with an HTML template and attach a PDF file before/after the template.</p>\n","urlObject":{"path":["v1","letters"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[]}},"response":[{"id":"9a37be2b-84d2-4096-b78d-5ccc8a15e427","name":"Create Letter with Double-Sided Plastic Card from PDF Link","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"to","value":"contact_8v1mibdKkpK8Si6vz7xBVi","type":"text","description":"The `id` or [contact](#contact) `object` of the receiver. You can either pass a contact `object` or a contact's `id`.\n`required`"},{"key":"from","value":"contact_8v1mibdKkpK8Si6vz7xBVi","type":"text","description":"The `id` or [contact](#contact) `object` of the sender. You can either pass a contact `object` or a contact's `id`.\n`required`"},{"key":"template","value":"template_5n7fprLVnDDsULzhguWBaZ","type":"text","description":"The template's `id` to be used for the letter.\n`required`"},{"key":"addressPlacement","value":"top_first_page","type":"text","description":"The location where the address will be placed. Must be either `top_first_page` or `insert_blank_page`.\n`optional`"},{"key":"doubleSided","value":"true","type":"text","description":"Indicates if the letter is double sided or not.\n`optional`\nDefault: `false`"},{"key":"color","value":"false","type":"text","description":"Indicates whether the letter will be printed in color or not.\n`optional`"},{"key":"perforatedPage","value":"1","type":"text","description":"Indicates which page should be perforated. If supplied, the value must be `1` meaning perforate the first page.\n\n`optional`","disabled":true},{"key":"extraService","value":"certified","type":"text","description":"Indicates extra services for the letter. See [certified and registered mail](#certified-and-registered-mail).\n`optional`"},{"key":"envelopeType","value":"flat","type":"text","description":"Indicates the envelope type for the letter. Must be either `standard_double_window` or `flat`.\n`optional`","disabled":true},{"key":"returnEnvelope","value":"return_envelope_97Tcv1LxhWWLPUvn58CuVJ","type":"text","description":"The `id` of the [return envelope](#return-envelope) to be used.\n`optional`","disabled":true},{"key":"sendDate","value":"2023-02-16T15:40:35.873Z","type":"text","description":"The desired date for the letter to be sent out.\n\n`optional`","disabled":true},{"key":"express","value":"false","type":"text","description":"See [express shipping](#express-shipping)."},{"key":"description","value":"Template with attached PDF","type":"text","description":"A description for the letter.\n\n`optional`"},{"key":"mailingClass","value":"first_class","type":"text","description":"Defaults to `first_class`. See [mailing class](#mailing-class).\n`optional`","disabled":true},{"key":"mergeVariables[language]","value":"english","type":"text"},{"key":"metadata[company]","value":"PostGrid","type":"text"},{"key":"size","value":"us_letter","type":"text","description":"Default size will be chosen based on the destination country, if not provided. Indicates the letter size for the letter being created. See [letter size](#letter-size)\n\n`optional`"},{"key":"plasticCard[singleSided][pdf]","description":"The uploaded PDF to be used for the plastic card.\n\n`required`","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["jUFcXcLQ3/plastic_card_ex.pdf"],"src":"jUFcXcLQ3/plastic_card_ex.pdf","disabled":true},{"key":"plasticCard[size]","value":"standard","description":"Size of plastic card\n\n`required`","type":"text"},{"key":"plasticCard[doubleSided][pdf]","value":"https://eksandbox.s3.amazonaws.com/files/2_page_plastic_card_ex.pdf","type":"text","description":"The link to the PDF to be used for the plastic card.\n\n`required`"}]},"url":"https://api.postgrid.com/print-mail/v1/letters"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 23 Aug 2024 15:26:17 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1406"},{"key":"Connection","value":"keep-alive"},{"key":"strict-transport-security","value":"max-age=63072000; preload"},{"key":"x-content-type-options","value":"nosniff"},{"key":"content-security-policy","value":"default-src 'none'"},{"key":"vary","value":"Origin"},{"key":"access-control-allow-credentials","value":"true"},{"key":"etag","value":"W/\"57e-YZlSEDH/gKs13MWnnP1YDybnQjs\""},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=F8eBYdGiIrWUwi4DWwfDv0vkrcZyuIaMoUj%2FK6qmRVWwgM6re3COIMhI9Zctsku6QIEQ%2BKnJW65MS1RKpB%2BOmTOf3aVOLzveG%2BA279thSK0stfMr36aPWVx1ALw%2BJ9m98p3W\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"8b7c1ebcdf7b2090-IAD"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"letter_7uuieeMpRwX9fbGjGYSFSw\",\n    \"object\": \"letter\",\n    \"live\": false,\n    \"addressPlacement\": \"top_first_page\",\n    \"attachedPDF\": null,\n    \"carrierTracking\": null,\n    \"color\": false,\n    \"description\": \"Template with attached PDF\",\n    \"doubleSided\": true,\n    \"envelope\": \"standard\",\n    \"envelopeType\": \"standard_double_window\",\n    \"express\": false,\n    \"extraService\": \"certified\",\n    \"from\": {\n        \"id\": \"contact_8v1mibdKkpK8Si6vz7xBVi\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"20 MASS AVE\",\n        \"addressLine2\": null,\n        \"addressStatus\": \"verified\",\n        \"city\": \"CAMBRIDGE\",\n        \"country\": \"UNITED STATES\",\n        \"countryCode\": \"US\",\n        \"firstName\": \"Brian\",\n        \"postalOrZip\": \"10013\",\n        \"provinceOrState\": \"MA\"\n    },\n    \"mailingClass\": \"first_class\",\n    \"mergeVariables\": {\n        \"language\": \"english\"\n    },\n    \"metadata\": {\n        \"company\": \"PostGrid\"\n    },\n    \"plasticCard\": {\n        \"doubleSided\": {\n            \"uploadedPDF\": \"https://pg-prod-bucket-1.s3.amazonaws.com/test/pdf_vSf84UiX1eUp4aaQD42oep?AWSAccessKeyId=AKIA5GFUILSULWTWCR64&Expires=1724427677&Signature=W%2FrqtB64SRXAG0IQbIVubLxwUy0%3D\"\n        },\n        \"size\": \"standard\"\n    },\n    \"sendDate\": \"2024-08-23T15:26:17.416Z\",\n    \"size\": \"us_letter\",\n    \"status\": \"ready\",\n    \"template\": \"template_5n7fprLVnDDsULzhguWBaZ\",\n    \"to\": {\n        \"id\": \"contact_8v1mibdKkpK8Si6vz7xBVi\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"20 MASS AVE\",\n        \"addressLine2\": null,\n        \"addressStatus\": \"verified\",\n        \"city\": \"CAMBRIDGE\",\n        \"country\": \"UNITED STATES\",\n        \"countryCode\": \"US\",\n        \"firstName\": \"Brian\",\n        \"postalOrZip\": \"10013\",\n        \"provinceOrState\": \"MA\"\n    },\n    \"createdAt\": \"2024-08-23T15:26:17.421Z\",\n    \"updatedAt\": \"2024-08-23T15:26:17.421Z\"\n}"}],"_postman_id":"75c4c7b1-1228-414d-82af-0d8ffa9a866f"},{"name":"Create Letter with Single-Sided Plastic Card from Template ID","id":"16793ce8-b3e0-4868-bfd4-2ae606c00cb5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"to","value":"contact_fFh9tg3SgD8LRXxatVAWt2","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the receiver. You can either pass a contact <code>object</code> or a contact's <code>id</code>.</p>\n<p><code>required</code></p>\n","type":"text"},{"key":"from","value":"contact_fFh9tg3SgD8LRXxatVAWt2","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the sender. You can either pass a contact <code>object</code> or a contact's <code>id</code>.</p>\n<p><code>required</code></p>\n","type":"text"},{"key":"html","value":"<b>Hello</b>, {{to.firstName}}!","type":"text","description":"<p>The HTML content of the letter.</p>\n<p><code>required</code></p>\n"},{"key":"addressPlacement","value":"top_first_page","description":"<p>The location where the address will be placed.  Must be either <code>top_first_page</code> or <code>insert_blank_page</code>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"doubleSided","value":"true","type":"text","description":"<p>Indicates if the letter is double sided or not.</p>\n<p><code>optional</code>\nDefault: <code>false</code></p>\n"},{"key":"color","value":"false","type":"text","description":"<p>Indicates whether the letter will be printed in color or not.</p>\n<p><code>optional</code>\nDefault: <code>false</code></p>\n"},{"key":"perforatedPage","value":"1","description":"<p>Indicates which page is to be perforated. Currently the only valid value is <code>1</code> (the first page).</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"extraService","value":"certified","description":"<p>Indicates extra services for the letter.  See <a href=\"#certified-and-registered-mail\">certified and registered mail</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"envelopeType","value":"flat","description":"<p>Indicates the envelope type for the letter. Must be either <code>standard_double_window</code> or <code>flat</code>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"returnEnvelope","value":"return_envelope_97Tcv1LxhWWLPUvn58CuVJ","description":"<p>The <code>id</code> of the <a href=\"#return-envelope\">return envelope</a> to be used.</p>\n<p><code>optional</code></p>\n","type":"text","disabled":true},{"key":"sendDate","value":"2023-02-16T15:40:35.873Z","description":"<p>The desired date for the letter to be sent out.</p>\n<p><code>optional</code></p>\n","type":"text","disabled":true},{"key":"description","value":"My HTML letter","description":"<p>A description for the letter.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"express","value":"false","description":"<p>See <a href=\"#express-shipping\">express shipping</a>.</p>\n","type":"text"},{"key":"mergeVariables[language]","value":"english","description":"<p>See <a href=\"#merge-variables\">merge variables</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"metadata[company]","value":"PostGrid","description":"<p>See <a href=\"#metadata\">metadata</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"mailingClass","value":"first_class","description":"<p>Defaults to <code>first_class</code>. See <a href=\"#mailing-class\">mailing class</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"size","value":"us_letter","description":"<p>Default size will be chosen based on the destination country, if not provided. Indicates the letter size for the letter being created. See <a href=\"#letter-size\">letter size</a></p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"plasticCard[singleSided][template]","value":"template_nYuXaSsEKGKcCAT9ZM4Cz6","description":"<p>The template's <code>id</code> to be used for the plastic card.</p>\n<p><code>required</code></p>\n","type":"text"},{"key":"plasticCard[size]","value":"standard","description":"<p>Size of plastic card</p>\n<p><code>required</code></p>\n","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/letters","description":"<p>Create a letter order using HTML.</p>\n","urlObject":{"path":["v1","letters"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[]}},"response":[{"id":"409b4bdb-dd8f-49cd-90d6-0b5ebf34b1c5","name":"Create Letter with Single-Sided Plastic Card from Template ID","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"to","value":"contact_fFh9tg3SgD8LRXxatVAWt2","description":"The `id` or [contact](#contact) `object` of the receiver. You can either pass a contact `object` or a contact's `id`.\n\n`required`","type":"text"},{"key":"from","value":"contact_fFh9tg3SgD8LRXxatVAWt2","description":"The `id` or [contact](#contact) `object` of the sender. You can either pass a contact `object` or a contact's `id`.\n\n`required`","type":"text"},{"key":"html","value":"<b>Hello</b>, {{to.firstName}}!","type":"text","description":"The HTML content of the letter.\n\n`required`"},{"key":"addressPlacement","value":"top_first_page","description":"The location where the address will be placed.  Must be either `top_first_page` or `insert_blank_page`.\n\n`optional`","type":"text"},{"key":"doubleSided","value":"true","type":"text","description":"Indicates if the letter is double sided or not.\n\n`optional`\nDefault: `false`"},{"key":"color","value":"false","type":"text","description":"Indicates whether the letter will be printed in color or not.\n\n`optional`\nDefault: `false`"},{"key":"perforatedPage","value":"1","description":"Indicates which page is to be perforated. Currently the only valid value is `1` (the first page).\n\n`optional`","type":"text"},{"key":"extraService","value":"certified","description":"Indicates extra services for the letter.  See [certified and registered mail](#certified-and-registered-mail).\n\n`optional`","type":"text"},{"key":"envelopeType","value":"flat","description":"Indicates the envelope type for the letter. Must be either `standard_double_window` or `flat`.\n\n`optional`","type":"text"},{"key":"returnEnvelope","value":"return_envelope_97Tcv1LxhWWLPUvn58CuVJ","description":"The `id` of the [return envelope](#return-envelope) to be used.\n\n`optional`","type":"text","disabled":true},{"key":"sendDate","value":"2023-02-16T15:40:35.873Z","description":"The desired date for the letter to be sent out.\n\n`optional`","type":"text","disabled":true},{"key":"description","value":"My HTML letter","description":"A description for the letter.\n\n`optional`","type":"text"},{"key":"express","value":"false","description":"See [express shipping](#express-shipping).","type":"text"},{"key":"mergeVariables[language]","value":"english","description":"See [merge variables](#merge-variables).\n\n`optional`","type":"text"},{"key":"metadata[company]","value":"PostGrid","description":"See [metadata](#metadata).\n\n`optional`","type":"text"},{"key":"mailingClass","value":"first_class","description":"Defaults to `first_class`. See [mailing class](#mailing-class).\n\n`optional`","type":"text"},{"key":"size","value":"us_letter","description":"Default size will be chosen based on the destination country, if not provided. Indicates the letter size for the letter being created. See [letter size](#letter-size)\n\n`optional`","type":"text"},{"key":"plasticCard[singleSided][template]","value":"template_nYuXaSsEKGKcCAT9ZM4Cz6","description":"The template's `id` to be used for the plastic card.\n\n`required`","type":"text"},{"key":"plasticCard[size]","value":"standard","description":"Size of plastic card\n\n`required`","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/letters"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 19 Aug 2024 22:41:46 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1139"},{"key":"Connection","value":"keep-alive"},{"key":"strict-transport-security","value":"max-age=63072000; preload"},{"key":"x-content-type-options","value":"nosniff"},{"key":"content-security-policy","value":"default-src 'none'"},{"key":"vary","value":"Origin"},{"key":"access-control-allow-credentials","value":"true"},{"key":"etag","value":"W/\"473-eQ+d6HvgX01Mzg32O5ceRkyWWWw\""},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=bAZbXT%2FLvzdFX7AsVleQcg1A%2FfxsPSIM81B8DvAHjb04hzjJN9LaKbW2s%2Bh2IJeaHQQhQF1POhrxeTOGR%2FRxhSm9RoT3Xt7CqtnCjxQQP%2B15TioYp6S44qS%2F%2FMLzMFSw8IgA\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"8b5da72b09f381be-IAD"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"letter_cogptyy9GhMC8jHviJ4PVa\",\n    \"object\": \"letter\",\n    \"live\": false,\n    \"addressPlacement\": \"top_first_page\",\n    \"attachedPDF\": null,\n    \"carrierTracking\": null,\n    \"color\": false,\n    \"description\": \"My HTML letter\",\n    \"doubleSided\": true,\n    \"envelope\": \"standard\",\n    \"envelopeType\": \"flat\",\n    \"express\": false,\n    \"extraService\": \"certified\",\n    \"from\": {\n        \"id\": \"contact_fFh9tg3SgD8LRXxatVAWt2\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"145 MULBERRY ST\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"NEW YORK\",\n        \"country\": \"UNITED STATES\",\n        \"countryCode\": \"US\",\n        \"firstName\": \"Alexander Great\",\n        \"postalOrZip\": \"10013\",\n        \"provinceOrState\": \"NY\"\n    },\n    \"html\": \"<b>Hello</b>, {{to.firstName}}!\",\n    \"mailingClass\": \"first_class\",\n    \"mergeVariables\": {\n        \"language\": \"english\"\n    },\n    \"metadata\": {\n        \"company\": \"PostGrid\"\n    },\n    \"plasticCard\": {\n        \"singleSided\": {\n            \"template\": \"template_nYuXaSsEKGKcCAT9ZM4Cz6\"\n        },\n        \"size\": \"standard\"\n    },\n    \"perforatedPage\": 1,\n    \"sendDate\": \"2024-08-19T22:41:46.753Z\",\n    \"size\": \"us_letter\",\n    \"status\": \"ready\",\n    \"to\": {\n        \"id\": \"contact_fFh9tg3SgD8LRXxatVAWt2\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"145 MULBERRY ST\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"NEW YORK\",\n        \"country\": \"UNITED STATES\",\n        \"countryCode\": \"US\",\n        \"firstName\": \"Alexander Great\",\n        \"postalOrZip\": \"10013\",\n        \"provinceOrState\": \"NY\"\n    },\n    \"createdAt\": \"2024-08-19T22:41:46.755Z\",\n    \"updatedAt\": \"2024-08-19T22:41:46.755Z\"\n}"}],"_postman_id":"16793ce8-b3e0-4868-bfd4-2ae606c00cb5"},{"name":"Create Letter with Double-Sided Plastic Card from Template ID","id":"90f68824-03af-4a8c-83bf-48f77b83f6c1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"to","value":"contact_fFh9tg3SgD8LRXxatVAWt2","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the receiver. You can either pass a contact <code>object</code> or a contact's <code>id</code>.</p>\n<p><code>required</code></p>\n","type":"text"},{"key":"from","value":"contact_fFh9tg3SgD8LRXxatVAWt2","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the sender. You can either pass a contact <code>object</code> or a contact's <code>id</code>.</p>\n<p><code>required</code></p>\n","type":"text"},{"key":"html","value":"<b>Hello</b>, {{to.firstName}}!","type":"text","description":"<p>The HTML content of the letter.</p>\n<p><code>required</code></p>\n"},{"key":"addressPlacement","value":"top_first_page","description":"<p>The location where the address will be placed.  Must be either <code>top_first_page</code> or <code>insert_blank_page</code>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"doubleSided","value":"true","type":"text","description":"<p>Indicates if the letter is double sided or not.</p>\n<p><code>optional</code>\nDefault: <code>false</code></p>\n"},{"key":"color","value":"false","type":"text","description":"<p>Indicates whether the letter will be printed in color or not.</p>\n<p><code>optional</code>\nDefault: <code>false</code></p>\n"},{"key":"perforatedPage","value":"1","description":"<p>Indicates which page is to be perforated. Currently the only valid value is <code>1</code> (the first page).</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"extraService","value":"certified","description":"<p>Indicates extra services for the letter.  See <a href=\"#certified-and-registered-mail\">certified and registered mail</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"envelopeType","value":"flat","description":"<p>Indicates the envelope type for the letter. Must be either <code>standard_double_window</code> or <code>flat</code>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"returnEnvelope","value":"return_envelope_97Tcv1LxhWWLPUvn58CuVJ","description":"<p>The <code>id</code> of the <a href=\"#return-envelope\">return envelope</a> to be used.</p>\n<p><code>optional</code></p>\n","type":"text","disabled":true},{"key":"sendDate","value":"2023-02-16T15:40:35.873Z","description":"<p>The desired date for the letter to be sent out.</p>\n<p><code>optional</code></p>\n","type":"text","disabled":true},{"key":"description","value":"My HTML letter","description":"<p>A description for the letter.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"express","value":"false","description":"<p>See <a href=\"#express-shipping\">express shipping</a>.</p>\n","type":"text"},{"key":"mergeVariables[language]","value":"english","description":"<p>See <a href=\"#merge-variables\">merge variables</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"metadata[company]","value":"PostGrid","description":"<p>See <a href=\"#metadata\">metadata</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"mailingClass","value":"first_class","description":"<p>Defaults to <code>first_class</code>. See <a href=\"#mailing-class\">mailing class</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"size","value":"us_letter","description":"<p>Default size will be chosen based on the destination country, if not provided. Indicates the letter size for the letter being created. See <a href=\"#letter-size\">letter size</a></p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"plasticCard[doubleSided][frontTemplate]","value":"template_nYuXaSsEKGKcCAT9ZM4Cz6","description":"<p>The template's <code>id</code> to be used for the front of the plastic card.</p>\n<p><code>required</code></p>\n","type":"text"},{"key":"plasticCard[doubleSided][backTemplate]","value":"template_nYuXaSsEKGKcCAT9ZM4Cz6","description":"<p>The template's <code>id</code> to be used for the back of the plastic card.</p>\n<p><code>required</code></p>\n","type":"text"},{"key":"plasticCard[size]","value":"standard","description":"<p>Size of plastic card</p>\n<p><code>required</code></p>\n","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/letters","description":"<p>Create a letter order using HTML.</p>\n","urlObject":{"path":["v1","letters"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[]}},"response":[{"id":"5ba6e628-39ff-4ed0-a769-56aae2a3cb49","name":"Create Letter with Double-Sided Plastic Card from Template ID","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"to","value":"contact_fFh9tg3SgD8LRXxatVAWt2","description":"The `id` or [contact](#contact) `object` of the receiver. You can either pass a contact `object` or a contact's `id`.\n\n`required`","type":"text"},{"key":"from","value":"contact_fFh9tg3SgD8LRXxatVAWt2","description":"The `id` or [contact](#contact) `object` of the sender. You can either pass a contact `object` or a contact's `id`.\n\n`required`","type":"text"},{"key":"html","value":"<b>Hello</b>, {{to.firstName}}!","type":"text","description":"The HTML content of the letter.\n\n`required`"},{"key":"addressPlacement","value":"top_first_page","description":"The location where the address will be placed.  Must be either `top_first_page` or `insert_blank_page`.\n\n`optional`","type":"text"},{"key":"doubleSided","value":"true","type":"text","description":"Indicates if the letter is double sided or not.\n\n`optional`\nDefault: `false`"},{"key":"color","value":"false","type":"text","description":"Indicates whether the letter will be printed in color or not.\n\n`optional`\nDefault: `false`"},{"key":"perforatedPage","value":"1","description":"Indicates which page is to be perforated. Currently the only valid value is `1` (the first page).\n\n`optional`","type":"text"},{"key":"extraService","value":"certified","description":"Indicates extra services for the letter.  See [certified and registered mail](#certified-and-registered-mail).\n\n`optional`","type":"text"},{"key":"envelopeType","value":"flat","description":"Indicates the envelope type for the letter. Must be either `standard_double_window` or `flat`.\n\n`optional`","type":"text"},{"key":"returnEnvelope","value":"return_envelope_97Tcv1LxhWWLPUvn58CuVJ","description":"The `id` of the [return envelope](#return-envelope) to be used.\n\n`optional`","type":"text","disabled":true},{"key":"sendDate","value":"2023-02-16T15:40:35.873Z","description":"The desired date for the letter to be sent out.\n\n`optional`","type":"text","disabled":true},{"key":"description","value":"My HTML letter","description":"A description for the letter.\n\n`optional`","type":"text"},{"key":"express","value":"false","description":"See [express shipping](#express-shipping).","type":"text"},{"key":"mergeVariables[language]","value":"english","description":"See [merge variables](#merge-variables).\n\n`optional`","type":"text"},{"key":"metadata[company]","value":"PostGrid","description":"See [metadata](#metadata).\n\n`optional`","type":"text"},{"key":"mailingClass","value":"first_class","description":"Defaults to `first_class`. See [mailing class](#mailing-class).\n\n`optional`","type":"text"},{"key":"size","value":"us_letter","description":"Default size will be chosen based on the destination country, if not provided. Indicates the letter size for the letter being created. See [letter size](#letter-size)\n\n`optional`","type":"text"},{"key":"plasticCard[doubleSided][frontTemplate]","value":"template_nYuXaSsEKGKcCAT9ZM4Cz6","description":"The template's `id` to be used for the front of the plastic card.\n\n`required`","type":"text"},{"key":"plasticCard[doubleSided][backTemplate]","value":"template_nYuXaSsEKGKcCAT9ZM4Cz6","description":"The template's `id` to be used for the back of the plastic card.\n\n`required`","type":"text"},{"key":"plasticCard[size]","value":"standard","description":"Size of plastic card\n\n`required`","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/letters"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 19 Aug 2024 22:43:14 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1139"},{"key":"Connection","value":"keep-alive"},{"key":"strict-transport-security","value":"max-age=63072000; preload"},{"key":"x-content-type-options","value":"nosniff"},{"key":"content-security-policy","value":"default-src 'none'"},{"key":"vary","value":"Origin"},{"key":"access-control-allow-credentials","value":"true"},{"key":"etag","value":"W/\"473-4kQcvdReqI65EoJX3EMUv7v7cfg\""},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=eK3DVGyZoJ4i%2BlN6bZbT3xjY7uvX%2B35NWkgJm5%2BNqnrxyZ9I3wk8iDC9wIra9dhkp%2FQR5%2FLBzD4UCMbRB7r0rCnspYE7xzdg6sUtbeaxlb3uGXMGnQiI8C4CG9gMnFH4lvMV\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"8b5da951fd978236-IAD"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"letter_gBgGWPo35AmwYztJ84AeRW\",\n    \"object\": \"letter\",\n    \"live\": false,\n    \"addressPlacement\": \"top_first_page\",\n    \"attachedPDF\": null,\n    \"carrierTracking\": null,\n    \"color\": false,\n    \"description\": \"My HTML letter\",\n    \"doubleSided\": true,\n    \"envelope\": \"standard\",\n    \"envelopeType\": \"flat\",\n    \"express\": false,\n    \"extraService\": \"certified\",\n    \"from\": {\n        \"id\": \"contact_fFh9tg3SgD8LRXxatVAWt2\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"145 MULBERRY ST\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"NEW YORK\",\n        \"country\": \"UNITED STATES\",\n        \"countryCode\": \"US\",\n        \"firstName\": \"Alexander Great\",\n        \"postalOrZip\": \"10013\",\n        \"provinceOrState\": \"NY\"\n    },\n    \"html\": \"<b>Hello</b>, {{to.firstName}}!\",\n    \"mailingClass\": \"first_class\",\n    \"mergeVariables\": {\n        \"language\": \"english\"\n    },\n    \"metadata\": {\n        \"company\": \"PostGrid\"\n    },\n    \"plasticCard\": {\n        \"doubleSided\": {\n            \"frontTemplate\": \"template_nYuXaSsEKGKcCAT9ZM4Cz6\",\n            \"backTemplate\": \"template_nYuXaSsEKGKcCAT9ZM4Cz6\"\n        },\n        \"size\": \"standard\"\n    },\n    \"perforatedPage\": 1,\n    \"sendDate\": \"2024-08-19T22:43:14.893Z\",\n    \"size\": \"us_letter\",\n    \"status\": \"ready\",\n    \"to\": {\n        \"id\": \"contact_fFh9tg3SgD8LRXxatVAWt2\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"145 MULBERRY ST\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"NEW YORK\",\n        \"country\": \"UNITED STATES\",\n        \"countryCode\": \"US\",\n        \"firstName\": \"Alexander Great\",\n        \"postalOrZip\": \"10013\",\n        \"provinceOrState\": \"NY\"\n    },\n    \"createdAt\": \"2024-08-19T22:43:14.895Z\",\n    \"updatedAt\": \"2024-08-19T22:43:14.895Z\"\n}"}],"_postman_id":"90f68824-03af-4a8c-83bf-48f77b83f6c1"},{"name":"Create Letter with Single-Sided Plastic Card from HTML","id":"b8b66d1b-c59a-448a-8ea3-7364c8451c2a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"to","value":"contact_fFh9tg3SgD8LRXxatVAWt2","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the receiver. You can either pass a contact <code>object</code> or a contact's <code>id</code>.</p>\n<p><code>required</code></p>\n","type":"text"},{"key":"from","value":"contact_fFh9tg3SgD8LRXxatVAWt2","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the sender. You can either pass a contact <code>object</code> or a contact's <code>id</code>.</p>\n<p><code>required</code></p>\n","type":"text"},{"key":"html","value":"<b>Hello</b>, {{to.firstName}}!","type":"text","description":"<p>The HTML content of the letter.</p>\n<p><code>required</code></p>\n"},{"key":"addressPlacement","value":"top_first_page","description":"<p>The location where the address will be placed.  Must be either <code>top_first_page</code> or <code>insert_blank_page</code>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"doubleSided","value":"true","type":"text","description":"<p>Indicates if the letter is double sided or not.</p>\n<p><code>optional</code>\nDefault: <code>false</code></p>\n"},{"key":"color","value":"false","type":"text","description":"<p>Indicates whether the letter will be printed in color or not.</p>\n<p><code>optional</code>\nDefault: <code>false</code></p>\n"},{"key":"perforatedPage","value":"1","description":"<p>Indicates which page is to be perforated. Currently the only valid value is <code>1</code> (the first page).</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"extraService","value":"certified","description":"<p>Indicates extra services for the letter.  See <a href=\"#certified-and-registered-mail\">certified and registered mail</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"envelopeType","value":"flat","description":"<p>Indicates the envelope type for the letter. Must be either <code>standard_double_window</code> or <code>flat</code>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"returnEnvelope","value":"return_envelope_97Tcv1LxhWWLPUvn58CuVJ","description":"<p>The <code>id</code> of the <a href=\"#return-envelope\">return envelope</a> to be used.</p>\n<p><code>optional</code></p>\n","type":"text","disabled":true},{"key":"sendDate","value":"2023-02-16T15:40:35.873Z","description":"<p>The desired date for the letter to be sent out.</p>\n<p><code>optional</code></p>\n","type":"text","disabled":true},{"key":"description","value":"My HTML letter","description":"<p>A description for the letter.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"express","value":"false","description":"<p>See <a href=\"#express-shipping\">express shipping</a>.</p>\n","type":"text"},{"key":"mergeVariables[language]","value":"english","description":"<p>See <a href=\"#merge-variables\">merge variables</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"metadata[company]","value":"PostGrid","description":"<p>See <a href=\"#metadata\">metadata</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"mailingClass","value":"first_class","description":"<p>Defaults to <code>first_class</code>. See <a href=\"#mailing-class\">mailing class</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"size","value":"us_letter","description":"<p>Default size will be chosen based on the destination country, if not provided. Indicates the letter size for the letter being created. See <a href=\"#letter-size\">letter size</a></p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"plasticCard[singleSided][html]","value":"<h1>Example Plastic Card</h1>","description":"<p>The HTML content of the plastic card.</p>\n<p><code>required</code></p>\n","type":"text"},{"key":"plasticCard[size]","value":"standard","description":"<p>Size of plastic card</p>\n<p><code>required</code></p>\n","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/letters","description":"<p>Create a letter order using HTML.</p>\n","urlObject":{"path":["v1","letters"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[]}},"response":[{"id":"43d13741-19c2-473e-8c0f-1e2af5fa9bbd","name":"Create Letter with Single-Sided Plastic Card from HTML","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"to","value":"contact_fFh9tg3SgD8LRXxatVAWt2","description":"The `id` or [contact](#contact) `object` of the receiver. You can either pass a contact `object` or a contact's `id`.\n\n`required`","type":"text"},{"key":"from","value":"contact_fFh9tg3SgD8LRXxatVAWt2","description":"The `id` or [contact](#contact) `object` of the sender. You can either pass a contact `object` or a contact's `id`.\n\n`required`","type":"text"},{"key":"html","value":"<b>Hello</b>, {{to.firstName}}!","type":"text","description":"The HTML content of the letter.\n\n`required`"},{"key":"addressPlacement","value":"top_first_page","description":"The location where the address will be placed.  Must be either `top_first_page` or `insert_blank_page`.\n\n`optional`","type":"text"},{"key":"doubleSided","value":"true","type":"text","description":"Indicates if the letter is double sided or not.\n\n`optional`\nDefault: `false`"},{"key":"color","value":"false","type":"text","description":"Indicates whether the letter will be printed in color or not.\n\n`optional`\nDefault: `false`"},{"key":"perforatedPage","value":"1","description":"Indicates which page is to be perforated. Currently the only valid value is `1` (the first page).\n\n`optional`","type":"text"},{"key":"extraService","value":"certified","description":"Indicates extra services for the letter.  See [certified and registered mail](#certified-and-registered-mail).\n\n`optional`","type":"text"},{"key":"envelopeType","value":"flat","description":"Indicates the envelope type for the letter. Must be either `standard_double_window` or `flat`.\n\n`optional`","type":"text"},{"key":"returnEnvelope","value":"return_envelope_97Tcv1LxhWWLPUvn58CuVJ","description":"The `id` of the [return envelope](#return-envelope) to be used.\n\n`optional`","type":"text","disabled":true},{"key":"sendDate","value":"2023-02-16T15:40:35.873Z","description":"The desired date for the letter to be sent out.\n\n`optional`","type":"text","disabled":true},{"key":"description","value":"My HTML letter","description":"A description for the letter.\n\n`optional`","type":"text"},{"key":"express","value":"false","description":"See [express shipping](#express-shipping).","type":"text"},{"key":"mergeVariables[language]","value":"english","description":"See [merge variables](#merge-variables).\n\n`optional`","type":"text"},{"key":"metadata[company]","value":"PostGrid","description":"See [metadata](#metadata).\n\n`optional`","type":"text"},{"key":"mailingClass","value":"first_class","description":"Defaults to `first_class`. See [mailing class](#mailing-class).\n\n`optional`","type":"text"},{"key":"size","value":"us_letter","description":"Default size will be chosen based on the destination country, if not provided. Indicates the letter size for the letter being created. See [letter size](#letter-size)\n\n`optional`","type":"text"},{"key":"plasticCard[singleSided][html]","value":"<h1>Example Plastic Card</h1>","description":"<h1>Example Plastic Card</h1>","type":"text"},{"key":"plasticCard[size]","value":"standard","description":"Size of plastic card","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/letters"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 19 Aug 2024 22:12:43 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1139"},{"key":"Connection","value":"keep-alive"},{"key":"strict-transport-security","value":"max-age=63072000; preload"},{"key":"x-content-type-options","value":"nosniff"},{"key":"content-security-policy","value":"default-src 'none'"},{"key":"vary","value":"Origin"},{"key":"access-control-allow-credentials","value":"true"},{"key":"etag","value":"W/\"473-IXAJOP1mSJUF7Z5gW0PjQWRnaS8\""},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=jTiNkbRKrvEkoMZCYG%2B6%2Bi%2Fnp9Sn3B12KitptEY35kja5Med4nm%2FPIjG2BsZCrjkzJg9o18tveRFEYAszWUc3dZ%2FDL%2FyGUOjslbAp7ZBfOsIwb%2BSx6lKG2AAZFSLHpWRN4RA\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"8b5d7c9bfc013b59-IAD"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"letter_6WnCTCQpBTe4DGAmRsdWW3\",\n    \"object\": \"letter\",\n    \"live\": false,\n    \"addressPlacement\": \"top_first_page\",\n    \"attachedPDF\": null,\n    \"carrierTracking\": null,\n    \"color\": false,\n    \"description\": \"My HTML letter\",\n    \"doubleSided\": true,\n    \"envelope\": \"standard\",\n    \"envelopeType\": \"flat\",\n    \"express\": false,\n    \"extraService\": \"certified\",\n    \"from\": {\n        \"id\": \"contact_fFh9tg3SgD8LRXxatVAWt2\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"145 MULBERRY ST\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"NEW YORK\",\n        \"country\": \"UNITED STATES\",\n        \"countryCode\": \"US\",\n        \"firstName\": \"Alexander Great\",\n        \"postalOrZip\": \"10013\",\n        \"provinceOrState\": \"NY\"\n    },\n    \"html\": \"<b>Hello</b>, {{to.firstName}}!\",\n    \"mailingClass\": \"first_class\",\n    \"mergeVariables\": {\n        \"language\": \"english\"\n    },\n    \"metadata\": {\n        \"company\": \"PostGrid\"\n    },\n    \"perforatedPage\": 1,\n    \"plasticCard\": {\n        \"singleSided\": {\n            \"html\": \"<h1>Example Plastic Card</h1>\"\n        },\n        \"size\": \"standard\"\n    },\n    \"sendDate\": \"2024-08-19T22:12:43.562Z\",\n    \"size\": \"us_letter\",\n    \"status\": \"ready\",\n    \"to\": {\n        \"id\": \"contact_fFh9tg3SgD8LRXxatVAWt2\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"145 MULBERRY ST\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"NEW YORK\",\n        \"country\": \"UNITED STATES\",\n        \"countryCode\": \"US\",\n        \"firstName\": \"Alexander Great\",\n        \"postalOrZip\": \"10013\",\n        \"provinceOrState\": \"NY\"\n    },\n    \"createdAt\": \"2024-08-19T22:12:43.565Z\",\n    \"updatedAt\": \"2024-08-19T22:12:43.565Z\"\n}"}],"_postman_id":"b8b66d1b-c59a-448a-8ea3-7364c8451c2a"},{"name":"Create Letter with Double-Sided Plastic Card from HTML","id":"0bab3b5f-d721-4a29-94b2-ec397225e51a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"to","value":"contact_fFh9tg3SgD8LRXxatVAWt2","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the receiver. You can either pass a contact <code>object</code> or a contact's <code>id</code>.</p>\n<p><code>required</code></p>\n","type":"text"},{"key":"from","value":"contact_fFh9tg3SgD8LRXxatVAWt2","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the sender. You can either pass a contact <code>object</code> or a contact's <code>id</code>.</p>\n<p><code>required</code></p>\n","type":"text"},{"key":"html","value":"<b>Hello</b>, {{to.firstName}}!","type":"text","description":"<p>The HTML content of the letter.</p>\n<p><code>required</code></p>\n"},{"key":"addressPlacement","value":"top_first_page","description":"<p>The location where the address will be placed.  Must be either <code>top_first_page</code> or <code>insert_blank_page</code>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"doubleSided","value":"true","type":"text","description":"<p>Indicates if the letter is double sided or not.</p>\n<p><code>optional</code>\nDefault: <code>false</code></p>\n"},{"key":"color","value":"false","type":"text","description":"<p>Indicates whether the letter will be printed in color or not.</p>\n<p><code>optional</code>\nDefault: <code>false</code></p>\n"},{"key":"perforatedPage","value":"1","description":"<p>Indicates which page is to be perforated. Currently the only valid value is <code>1</code> (the first page).</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"extraService","value":"certified","description":"<p>Indicates extra services for the letter.  See <a href=\"#certified-and-registered-mail\">certified and registered mail</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"envelopeType","value":"flat","description":"<p>Indicates the envelope type for the letter. Must be either <code>standard_double_window</code> or <code>flat</code>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"returnEnvelope","value":"return_envelope_97Tcv1LxhWWLPUvn58CuVJ","description":"<p>The <code>id</code> of the <a href=\"#return-envelope\">return envelope</a> to be used.</p>\n<p><code>optional</code></p>\n","type":"text","disabled":true},{"key":"sendDate","value":"2023-02-16T15:40:35.873Z","description":"<p>The desired date for the letter to be sent out.</p>\n<p><code>optional</code></p>\n","type":"text","disabled":true},{"key":"description","value":"My HTML letter","description":"<p>A description for the letter.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"express","value":"false","description":"<p>See <a href=\"#express-shipping\">express shipping</a>.</p>\n","type":"text"},{"key":"mergeVariables[language]","value":"english","description":"<p>See <a href=\"#merge-variables\">merge variables</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"metadata[company]","value":"PostGrid","description":"<p>See <a href=\"#metadata\">metadata</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"mailingClass","value":"first_class","description":"<p>Defaults to <code>first_class</code>. See <a href=\"#mailing-class\">mailing class</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"size","value":"us_letter","description":"<p>Default size will be chosen based on the destination country, if not provided. Indicates the letter size for the letter being created. See <a href=\"#letter-size\">letter size</a></p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"plasticCard[doubleSided][frontHTML]","value":"<h1>Example Plastic Card</h1>","description":"<p>The HTML content of the front of the plastic card.</p>\n","type":"text"},{"key":"plasticCard[doubleSided][backHTML]","value":"<h1>Example Plastic Card Back</h1>","description":"<p>The HTML content of the back of the plastic card.</p>\n","type":"text"},{"key":"plasticCard[size]","value":"standard","description":"<p>Size of plastic card</p>\n","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/letters","description":"<p>Create a letter order using HTML.</p>\n","urlObject":{"path":["v1","letters"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[]}},"response":[{"id":"010c74e7-bd69-4268-89a1-8da244b85cec","name":"Create Letter with Double-Sided Plastic Card from HTML","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"to","value":"contact_fFh9tg3SgD8LRXxatVAWt2","description":"The `id` or [contact](#contact) `object` of the receiver. You can either pass a contact `object` or a contact's `id`.\n\n`required`","type":"text"},{"key":"from","value":"contact_fFh9tg3SgD8LRXxatVAWt2","description":"The `id` or [contact](#contact) `object` of the sender. You can either pass a contact `object` or a contact's `id`.\n\n`required`","type":"text"},{"key":"html","value":"<b>Hello</b>, {{to.firstName}}!","type":"text","description":"The HTML content of the letter.\n\n`required`"},{"key":"addressPlacement","value":"top_first_page","description":"The location where the address will be placed.  Must be either `top_first_page` or `insert_blank_page`.\n\n`optional`","type":"text"},{"key":"doubleSided","value":"true","type":"text","description":"Indicates if the letter is double sided or not.\n\n`optional`\nDefault: `false`"},{"key":"color","value":"false","type":"text","description":"Indicates whether the letter will be printed in color or not.\n\n`optional`\nDefault: `false`"},{"key":"perforatedPage","value":"1","description":"Indicates which page is to be perforated. Currently the only valid value is `1` (the first page).\n\n`optional`","type":"text"},{"key":"extraService","value":"certified","description":"Indicates extra services for the letter.  See [certified and registered mail](#certified-and-registered-mail).\n\n`optional`","type":"text"},{"key":"envelopeType","value":"flat","description":"Indicates the envelope type for the letter. Must be either `standard_double_window` or `flat`.\n\n`optional`","type":"text"},{"key":"returnEnvelope","value":"return_envelope_97Tcv1LxhWWLPUvn58CuVJ","description":"The `id` of the [return envelope](#return-envelope) to be used.\n\n`optional`","type":"text","disabled":true},{"key":"sendDate","value":"2023-02-16T15:40:35.873Z","description":"The desired date for the letter to be sent out.\n\n`optional`","type":"text","disabled":true},{"key":"description","value":"My HTML letter","description":"A description for the letter.\n\n`optional`","type":"text"},{"key":"express","value":"false","description":"See [express shipping](#express-shipping).","type":"text"},{"key":"mergeVariables[language]","value":"english","description":"See [merge variables](#merge-variables).\n\n`optional`","type":"text"},{"key":"metadata[company]","value":"PostGrid","description":"See [metadata](#metadata).\n\n`optional`","type":"text"},{"key":"mailingClass","value":"first_class","description":"Defaults to `first_class`. See [mailing class](#mailing-class).\n\n`optional`","type":"text"},{"key":"size","value":"us_letter","description":"Default size will be chosen based on the destination country, if not provided. Indicates the letter size for the letter being created. See [letter size](#letter-size)\n\n`optional`","type":"text"},{"key":"plasticCard[doubleSided][frontHTML]","value":"<h1>Example Plastic Card</h1>","description":"The HTML content of the front of the plastic card.","type":"text"},{"key":"plasticCard[doubleSided][backHTML]","value":"<h1>Example Plastic Card Back</h1>","description":"The HTML content of the back of the plastic card.","type":"text"},{"key":"plasticCard[size]","value":"standard","description":"Size of plastic card","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/letters"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 19 Aug 2024 22:15:52 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1139"},{"key":"Connection","value":"keep-alive"},{"key":"strict-transport-security","value":"max-age=63072000; preload"},{"key":"x-content-type-options","value":"nosniff"},{"key":"content-security-policy","value":"default-src 'none'"},{"key":"vary","value":"Origin"},{"key":"access-control-allow-credentials","value":"true"},{"key":"etag","value":"W/\"473-ydCLk5YzMprBb2GaU26VpQiQeIU\""},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=%2F90CzX5rYE%2BU1SIOlbBU8w6dGliEQoLSTI8qHpiFtb2BFwMa3W5SgU73kZ14EX4lYrwzA%2FTfvGgvPG%2B8GhzU3ExvNi%2BBP2y9WWUXdf6VWRrbLCEvID6noyr%2B7KJgzqFViqux\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"8b5d8138bff7241b-IAD"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"letter_ug6NvcKAFzyqHxmn8dqMPP\",\n    \"object\": \"letter\",\n    \"live\": false,\n    \"addressPlacement\": \"top_first_page\",\n    \"attachedPDF\": null,\n    \"carrierTracking\": null,\n    \"color\": false,\n    \"description\": \"My HTML letter\",\n    \"doubleSided\": true,\n    \"envelope\": \"standard\",\n    \"envelopeType\": \"flat\",\n    \"express\": false,\n    \"extraService\": \"certified\",\n    \"from\": {\n        \"id\": \"contact_fFh9tg3SgD8LRXxatVAWt2\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"145 MULBERRY ST\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"NEW YORK\",\n        \"country\": \"UNITED STATES\",\n        \"countryCode\": \"US\",\n        \"firstName\": \"Alexander Great\",\n        \"postalOrZip\": \"10013\",\n        \"provinceOrState\": \"NY\"\n    },\n    \"html\": \"<b>Hello</b>, {{to.firstName}}!\",\n    \"mailingClass\": \"first_class\",\n    \"mergeVariables\": {\n        \"language\": \"english\"\n    },\n    \"metadata\": {\n        \"company\": \"PostGrid\"\n    },\n    \"perforatedPage\": 1,\n    \"plasticCard\": {\n        \"doubleSided\": {\n            \"frontHTML\": \"<h1>Example Plastic Card</h1>\",\n            \"backHTML\": \"<h1>Example Plastic Card Back</h1>\"\n        },\n        \"size\": \"standard\"\n    },\n    \"sendDate\": \"2024-08-19T22:15:52.468Z\",\n    \"size\": \"us_letter\",\n    \"status\": \"ready\",\n    \"to\": {\n        \"id\": \"contact_fFh9tg3SgD8LRXxatVAWt2\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"145 MULBERRY ST\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"NEW YORK\",\n        \"country\": \"UNITED STATES\",\n        \"countryCode\": \"US\",\n        \"firstName\": \"Alexander Great\",\n        \"postalOrZip\": \"10013\",\n        \"provinceOrState\": \"NY\"\n    },\n    \"createdAt\": \"2024-08-19T22:15:52.470Z\",\n    \"updatedAt\": \"2024-08-19T22:15:52.470Z\"\n}"}],"_postman_id":"0bab3b5f-d721-4a29-94b2-ec397225e51a"}],"id":"5f492bec-004e-4d59-9ff2-975a2d19d46b","_postman_id":"5f492bec-004e-4d59-9ff2-975a2d19d46b","description":""},{"name":"Postcards","item":[{"name":"Create Postcard","id":"fe8c4cd6-7617-4023-9437-669fa847ccc1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"to","value":"contact_pxd7wnnD1xY6H6etKNvjb4","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the receiver. You can either pass a contact <code>object</code> or a contact's <code>id</code>.</p>\n<p><code>required</code></p>\n","type":"text"},{"key":"from","value":"contact_pxd7wnnD1xY6H6etKNvjb4","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the sender. You can either pass a contact <code>object</code> or a contact's <code>id</code>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"frontHTML","value":"Hello, {{to.firstName}}","type":"text","description":"<p>The HTML content for the front of the postcard.</p>\n<p><code>required</code></p>\n"},{"key":"backHTML","value":"Hello again, {{to.firstName}}","type":"text","description":"<p>The HTML content for the back of the postcard.</p>\n<p><code>required</code></p>\n"},{"key":"size","value":"6x4","type":"text","description":"<p>A string denoting the size of the postcard.  Must be one of either <code>6x4</code>, <code>9x6</code> or <code>11x6</code>.</p>\n<p><code>required</code></p>\n"},{"key":"sendDate","value":"2023-02-16T15:40:35.873Z","description":"<p>The desired date for the letter to be sent out.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"express","value":"false","description":"<p>See <a href=\"#express-shipping\">express shipping</a>.</p>\n","type":"text"},{"key":"description","value":"My HTML postcard","description":"<p>A description for the postcard.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"mailingClass","value":"first_class","description":"<p>Defaults to <code>first_class</code>. See <a href=\"#mailing-class\">mailing class</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"mergeVariables[language]","value":"english","description":"<p>See <a href=\"#merge-variables\">merge variables</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"metadata[company]","value":"PostGrid","description":"<p>See <a href=\"#metadata\">metadata</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"size","value":"6x4","description":"<p>Indicates the postcard size for the postcard being created.\n<code>optional</code></p>\n","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/postcards","description":"<p>Creates a new postcard order with HTML content.</p>\n","auth":{"type":"apikey","apikey":{"key":"<key>","value":"{{example-api-key}}"},"isInherited":true,"source":{"_postman_id":"3e9d41c1-cd48-41cc-ac8b-4918d0991afb","id":"3e9d41c1-cd48-41cc-ac8b-4918d0991afb","name":"Postcards","type":"folder"}},"urlObject":{"path":["v1","postcards"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[]}},"response":[{"id":"35174871-21a2-491e-83bb-082d55b5a8ab","name":"Create Postcard","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"to[addressLine1]","value":"22-20 bay st","type":"text"},{"key":"frontHTML","value":"Hello, {{to.firstName}}","type":"text"},{"key":"backHTML","value":"Hello again, {{to.firstName}}","type":"text"},{"key":"size","value":"6x4","type":"text"},{"key":"to[firstName]","value":"Kevin","type":"text"},{"key":"to[city]","value":"Toronto","type":"text"},{"key":"to[provinceOrState]","value":"ON","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/postcards"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"561"},{"key":"ETag","value":"W/\"231-BZwPW6GwaUP4ejaHAQUv41m65Vs\""},{"key":"Date","value":"Wed, 23 Dec 2020 07:06:57 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"postcard_mWZGkpb16fcdGKnZUk2WQv\",\n    \"object\": \"postcard\",\n    \"live\": true,\n    \"backHTML\": \"Hello again, {{to.firstName}}\",\n    \"frontHTML\": \"Hello, {{to.firstName}}\",\n    \"sendDate\": \"2020-12-23T07:06:57.519Z\",\n    \"size\": \"6x4\",\n    \"status\": \"ready\",\n    \"to\": {\n        \"id\": \"contact_6vMttLnCDjFEBYZ77KjGPP\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"22-20 BAY ST\",\n        \"addressLine2\": \"\",\n        \"addressStatus\": \"corrected\",\n        \"city\": \"TORONTO\",\n        \"country\": \"CANADA\",\n        \"countryCode\": \"CA\",\n        \"firstName\": \"Kevin\",\n        \"postalOrZip\": \"M5J 2N8\",\n        \"provinceOrState\": \"ON\"\n    },\n    \"createdAt\": \"2020-12-23T07:06:57.549Z\",\n    \"updatedAt\": \"2020-12-23T07:06:57.549Z\"\n}"}],"_postman_id":"fe8c4cd6-7617-4023-9437-669fa847ccc1"},{"name":"Create Postcard with Templates","id":"a1a37bed-2c2a-4fa7-80a7-8b70d47a6eae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"to","value":"contact_pxd7wnnD1xY6H6etKNvjb4","type":"text","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the receiver. You can either pass a contact <code>object</code> or a contact's <code>id</code>.</p>\n<p><code>required</code></p>\n"},{"key":"from","value":"contact_pxd7wnnD1xY6H6etKNvjb4","type":"text","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the sender. You can either pass a contact <code>object</code> or a contact's <code>id</code>.</p>\n<p><code>optional</code></p>\n"},{"key":"frontTemplate","value":"template_5zLiV9HwwN93keu2gUNjrm","type":"text","description":"<p>The <code>id</code> of the <a href=\"#template\">template</a> to be used for the front of the postcard.</p>\n<p><code>required</code></p>\n"},{"key":"backTemplate","value":"template_5zLiV9HwwN93keu2gUNjrm","type":"text","description":"<p>The <code>id</code> of the <a href=\"#template\">template</a> to be used for the back of the postcard.</p>\n<p><code>required</code></p>\n"},{"key":"size","value":"6x4","type":"text","description":"<p>A string denoting the size of the postcard. Must be one of either <code>6x4</code>, <code>9x6</code> or <code>11x6</code>.</p>\n<p><code>required</code></p>\n"},{"key":"sendDate","value":"2023-02-16T15:40:35.873Z","description":"<p>The desired date for the letter to be sent out.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"express","value":"false","description":"<p>See <a href=\"#express-shipping\">express shipping</a>.</p>\n","type":"text"},{"key":"description","value":"My template postcard!","description":"<p>A description for the postcard.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"mailingClass","value":"first_class","description":"<p>Defaults to <code>first_class</code>. See <a href=\"#mailing-class\">mailing class</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"mergeVariables[language]","value":"english","description":"<p>See <a href=\"#merge-variables\">merge variables</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"metedata[company]","value":"PostGrid","description":"<p>See <a href=\"#metadata\">metadata</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"size","value":"6x4","description":"<p>Indicates the postcard size for the postcard being created.\n<code>optional</code></p>\n","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/postcards?expand[]=frontTemplate&expand[]=backTemplate","description":"<p>Creates a new postcard from a pre-existing template.</p>\n","auth":{"type":"apikey","apikey":{"key":"<key>","value":"{{example-api-key}}"},"isInherited":true,"source":{"_postman_id":"3e9d41c1-cd48-41cc-ac8b-4918d0991afb","id":"3e9d41c1-cd48-41cc-ac8b-4918d0991afb","name":"Postcards","type":"folder"}},"urlObject":{"path":["v1","postcards"],"host":["https://api.postgrid.com/print-mail"],"query":[{"description":{"content":"<p>See <a href=\"#expansions\">expansions</a>.</p>\n<p><code>optional</code></p>\n","type":"text/plain"},"key":"expand[]","value":"frontTemplate"},{"description":{"content":"<p>See <a href=\"#expansions\">expansions</a>.</p>\n<p><code>optional</code></p>\n","type":"text/plain"},"key":"expand[]","value":"backTemplate"}],"variable":[]}},"response":[{"id":"25b7ec7c-3a69-4dcb-94cc-c13382810abb","name":"Create Postcard with Templates","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"to[firstName]","value":"Kevin","type":"text"},{"key":"to[addressLine1]","value":"20-20 bay st","type":"text"},{"key":"size","value":"6x4","type":"text"},{"key":"frontTemplate","value":"template_gGF4jRzHBNogJrju2JHC2T","type":"text"},{"key":"backTemplate","value":"template_gGF4jRzHBNogJrju2JHC2T","type":"text"},{"key":"to[city]","value":"Toronto","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/postcards"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"579"},{"key":"ETag","value":"W/\"243-UTkmu2laM+CfrZy7Si1xO712aTk\""},{"key":"Date","value":"Wed, 23 Dec 2020 07:08:17 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"postcard_xnSK1RPcqbYY7y6z8qoy7j\",\n    \"object\": \"postcard\",\n    \"live\": true,\n    \"backTemplate\": \"template_gGF4jRzHBNogJrju2JHC2T\",\n    \"frontTemplate\": \"template_gGF4jRzHBNogJrju2JHC2T\",\n    \"sendDate\": \"2020-12-23T07:08:17.172Z\",\n    \"size\": \"6x4\",\n    \"status\": \"ready\",\n    \"to\": {\n        \"id\": \"contact_6fMMFdvk7YSSKVgaKyJaQS\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"20-20 BAY ST\",\n        \"addressLine2\": \"\",\n        \"addressStatus\": \"corrected\",\n        \"city\": \"TORONTO\",\n        \"country\": \"CANADA\",\n        \"countryCode\": \"CA\",\n        \"firstName\": \"Kevin\",\n        \"postalOrZip\": \"M5J 2N8\",\n        \"provinceOrState\": \"ON\"\n    },\n    \"createdAt\": \"2020-12-23T07:08:17.178Z\",\n    \"updatedAt\": \"2020-12-23T07:08:17.178Z\"\n}"}],"_postman_id":"a1a37bed-2c2a-4fa7-80a7-8b70d47a6eae"},{"name":"Create Postcard with PDF","id":"e50e5e43-a8ad-4a25-9cf1-bff90c8675d4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"value":"<value>","key":"<key>"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"to","value":"contact_kULDrEtmkykTqVS56Vk9hH","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the receiver. You can either pass a contact <code>object</code> or a contact's <code>id</code>.</p>\n<p><code>required</code></p>\n","type":"text"},{"key":"from","value":"contact_nFtdUuFLzKKXYbMfj6Ry1F","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the sender. You can either pass a contact <code>object</code> or a contact's <code>id</code>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"pdf","type":"file","description":"<p>A PDF to be uploaded and used for the postcard.</p>\n<p><code>requried</code></p>\n","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/C:/Users/samir/OneDrive/Documents/SamplePostcard_9x6_reduced.pdf"],"src":"/C:/Users/samir/OneDrive/Documents/SamplePostcard_9x6_reduced.pdf"},{"key":"size","value":"9x6_reduced","description":"<p>A string denoting the size of the postcard. Must be one of either <code>6x4</code>, <code>9x6</code> or <code>11x6</code>.</p>\n<p><code>required</code></p>\n","type":"text"},{"key":"sendDate","value":"2023-02-16T15:40:35.873Z","description":"<p>The desired date for the letter to be sent out.</p>\n<p><code>optional</code></p>\n","type":"text","disabled":true},{"key":"express","value":"false","description":"<p>See <a href=\"#express-shipping\">express shipping</a>.</p>\n","type":"text"},{"key":"description","value":"9x6 reduced Samples","description":"<p>A description for the postcard.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"mailingClass","value":"first_class","description":"<p>Defaults to <code>first_class</code>. See <a href=\"#mailing-class\">mailing class</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"mergeVariables[language]","value":"english","description":"<p>See <a href=\"#merge-variables\">merge variables</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"metadata[company]","value":"PostGrid","description":"<p>See <a href=\"#metadata\">metadata</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"size","value":"6x4","description":"<p>Indicates the postcard size for the postcard being created.\n<code>optional</code></p>\n","type":"text","disabled":true}]},"url":"https://api.postgrid.com/print-mail/v1/postcards","description":"<p>Creates a new postcard from an uploaded PDF.</p>\n","urlObject":{"path":["v1","postcards"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[]}},"response":[{"id":"a2814bef-339e-45b5-8e43-5d3a3ee698aa","name":"Create Postcard with PDF","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"to[firstName]","value":"Kevin","type":"text"},{"key":"to[addressLine1]","value":"20-20 bay st","type":"text"},{"key":"size","value":"9x6","type":"text"},{"key":"pdf","type":"file","src":"/home/apaar/Downloads/Postcard_Test_9x6.pdf"},{"key":"to[city]","value":"Toronto","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/postcards"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"663"},{"key":"ETag","value":"W/\"297-MHOjwd9Nffw61+Dy1gLNzhefJoY\""},{"key":"Date","value":"Wed, 23 Dec 2020 07:10:08 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"postcard_rCbN9Tp1GndociRVmbXcfn\",\n    \"object\": \"postcard\",\n    \"live\": true,\n    \"sendDate\": \"2020-12-23T07:10:08.413Z\",\n    \"size\": \"9x6\",\n    \"status\": \"ready\",\n    \"to\": {\n        \"id\": \"contact_6fMMFdvk7YSSKVgaKyJaQS\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"20-20 BAY ST\",\n        \"addressLine2\": \"\",\n        \"addressStatus\": \"corrected\",\n        \"city\": \"TORONTO\",\n        \"country\": \"CANADA\",\n        \"countryCode\": \"CA\",\n        \"firstName\": \"Kevin\",\n        \"postalOrZip\": \"M5J 2N8\",\n        \"provinceOrState\": \"ON\"\n    },\n    \"uploadedPDF\": \"https://pg-prod-bucket-1.s3.amazonaws.com/live/pdf_bsdhXXsrpPFtmnWsbkPBwp?AWSAccessKeyId=AKIA5GFUILSUDYW4YKAG&Expires=1608708308&Signature=sgqfUr4yMxa1Th%2FDD4%2B7IiQRiZo%3D\",\n    \"createdAt\": \"2020-12-23T07:10:08.442Z\",\n    \"updatedAt\": \"2020-12-23T07:10:08.442Z\"\n}"}],"_postman_id":"e50e5e43-a8ad-4a25-9cf1-bff90c8675d4"},{"name":"Create Postcard with PDF Link","id":"0ba4240b-9764-4ffc-8d48-6f422fba6f3c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"to","value":"contact_pxd7wnnD1xY6H6etKNvjb4","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the receiver. You can either pass a contact <code>object</code> or a contact's <code>id</code>.</p>\n<p><code>required</code></p>\n","type":"text"},{"key":"from","value":"contact_pxd7wnnD1xY6H6etKNvjb4","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the sender. You can either pass a contact <code>object</code> or a contact's <code>id</code>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"pdf","value":"https://pg-prod-bucket-1.s3.amazonaws.com/Postcard_Test_9x6.pdf","type":"text","description":"<p>A publicly accessible URL to a PDF to be used for the postcard.</p>\n<p><code>required</code></p>\n"},{"key":"size","value":"9x6","description":"<p>A string denoting the size of the postcard. Must be one of either <code>6x4</code>, <code>9x6</code> or <code>11x6</code>.</p>\n<p><code>required</code></p>\n","type":"text"},{"key":"sendDate","value":"2023-02-16T15:40:35.873Z","description":"<p>The desired date for the letter to be sent out.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"express","value":"false","description":"<p>See <a href=\"#express-shipping\">express shipping</a>.</p>\n","type":"text"},{"key":"description","value":"My URL PDF postcard","description":"<p>A description for the postcard.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"mailingClass","value":"standard_class","description":"<p>Defaults to <code>first_class</code>. See <a href=\"#mailing-class\">mailing class</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"mergeVariables[language]","value":"english","description":"<p>See <a href=\"#merge-variables\">merge variables</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"metadata[company]","value":"PostGrid","description":"<p>See <a href=\"#metadata\">metadata</a>.</p>\n<p><code>optional</code></p>\n","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/postcards","description":"<p>Creates a new postcard from a publicly accessible PDF link.</p>\n","auth":{"type":"apikey","apikey":{"key":"<key>","value":"{{example-api-key}}"},"isInherited":true,"source":{"_postman_id":"3e9d41c1-cd48-41cc-ac8b-4918d0991afb","id":"3e9d41c1-cd48-41cc-ac8b-4918d0991afb","name":"Postcards","type":"folder"}},"urlObject":{"path":["v1","postcards"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[]}},"response":[{"id":"4169be79-d530-4b8e-a9e5-1c438a2ebfae","name":"Create Postcard with PDF Link","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"to[firstName]","type":"text","value":"Kevin"},{"key":"to[addressLine1]","type":"text","value":"20-20 bay st"},{"key":"size","type":"text","value":"9x6"},{"key":"pdf","value":"https://pg-prod-bucket-1.s3.amazonaws.com/Postcard_Test_9x6.pdf","type":"text"},{"key":"to[city]","value":"Toronto","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/postcards"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"661"},{"key":"ETag","value":"W/\"295-2U42ry68OzCobCApYOZ47LNLc2U\""},{"key":"Date","value":"Wed, 23 Dec 2020 07:13:12 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"postcard_wwjVvf1epKSnC4vL1nyFSn\",\n    \"object\": \"postcard\",\n    \"live\": true,\n    \"sendDate\": \"2020-12-23T07:13:12.180Z\",\n    \"size\": \"9x6\",\n    \"status\": \"ready\",\n    \"to\": {\n        \"id\": \"contact_6fMMFdvk7YSSKVgaKyJaQS\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"20-20 BAY ST\",\n        \"addressLine2\": \"\",\n        \"addressStatus\": \"corrected\",\n        \"city\": \"TORONTO\",\n        \"country\": \"CANADA\",\n        \"countryCode\": \"CA\",\n        \"firstName\": \"Kevin\",\n        \"postalOrZip\": \"M5J 2N8\",\n        \"provinceOrState\": \"ON\"\n    },\n    \"uploadedPDF\": \"https://pg-prod-bucket-1.s3.amazonaws.com/live/pdf_teWMLA4XQjs4KHocpE8kEA?AWSAccessKeyId=AKIA5GFUILSUDYW4YKAG&Expires=1608708492&Signature=hnkqz8zN0BMPmYD7dXu%2FUnLxuyI%3D\",\n    \"createdAt\": \"2020-12-23T07:13:12.208Z\",\n    \"updatedAt\": \"2020-12-23T07:13:12.208Z\"\n}"}],"_postman_id":"0ba4240b-9764-4ffc-8d48-6f422fba6f3c"},{"name":"Get Postcard","id":"129cb639-8ea7-48be-bd99-bd171dc7af44","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.postgrid.com/print-mail/v1/postcards/:id?expand[]=frontTemplate&expand[]=backTemplate","description":"<p>Gets a specific postcard based on the passed <code>id</code>. This should be a unique identifying string starting with <code>postcard_</code>.</p>\n","auth":{"type":"apikey","apikey":{"key":"<key>","value":"{{example-api-key}}"},"isInherited":true,"source":{"_postman_id":"3e9d41c1-cd48-41cc-ac8b-4918d0991afb","id":"3e9d41c1-cd48-41cc-ac8b-4918d0991afb","name":"Postcards","type":"folder"}},"urlObject":{"path":["v1","postcards",":id"],"host":["https://api.postgrid.com/print-mail"],"query":[{"description":{"content":"<p>Must be either <code>frontTemplate</code> or <code>backTempalte</code>. See <a href=\"#expansions\">expansions</a>.  If the postcard was created with a template, it will return the templates nested information.</p>\n<p><code>optional</code></p>\n","type":"text/plain"},"key":"expand[]","value":"frontTemplate"},{"description":{"content":"<p>Must be either <code>frontTemplate</code> or <code>backTempalte</code>. See <a href=\"#expansions\">expansions</a>.  If the postcard was created with a template, it will return the templates nested information.\n<code>optional</code></p>\n","type":"text/plain"},"key":"expand[]","value":"backTemplate"}],"variable":[{"type":"any","value":"postcard_oRTeciBFBWFTPU5n2u4HFY","key":"id"}]}},"response":[{"id":"b3fef595-94ee-4811-a9d8-c8198b5722ad","name":"Get Postcard","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.postgrid.com/print-mail/v1/postcards/:id","host":["https://api.postgrid.com/print-mail"],"path":["v1","postcards",":id"],"variable":[{"key":"id","value":"postcard_mWZGkpb16fcdGKnZUk2WQv"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"755"},{"key":"ETag","value":"W/\"2f3-SRv0QYwZhN3KZw85uxaXo2wIIW8\""},{"key":"Date","value":"Wed, 23 Dec 2020 07:14:59 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"postcard_mWZGkpb16fcdGKnZUk2WQv\",\n    \"object\": \"postcard\",\n    \"live\": true,\n    \"backHTML\": \"Hello again, {{to.firstName}}\",\n    \"frontHTML\": \"Hello, {{to.firstName}}\",\n    \"pageCount\": 2,\n    \"sendDate\": \"2020-12-23T07:06:57.519Z\",\n    \"size\": \"6x4\",\n    \"status\": \"ready\",\n    \"to\": {\n        \"id\": \"contact_6vMttLnCDjFEBYZ77KjGPP\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"22-20 BAY ST\",\n        \"addressLine2\": \"\",\n        \"addressStatus\": \"corrected\",\n        \"city\": \"TORONTO\",\n        \"country\": \"CANADA\",\n        \"countryCode\": \"CA\",\n        \"firstName\": \"Kevin\",\n        \"postalOrZip\": \"M5J 2N8\",\n        \"provinceOrState\": \"ON\"\n    },\n    \"url\": \"https://pg-prod-bucket-1.s3.amazonaws.com/live/postcard_mWZGkpb16fcdGKnZUk2WQv.pdf?AWSAccessKeyId=AKIA5GFUILSUDYW4YKAG&Expires=1608708599&Signature=sHND9sHNLadfwjMkmmCrxucNzTw%3D\",\n    \"createdAt\": \"2020-12-23T07:06:57.549Z\",\n    \"updatedAt\": \"2020-12-23T07:07:00.476Z\"\n}"}],"_postman_id":"129cb639-8ea7-48be-bd99-bd171dc7af44"},{"name":"List Postcards","id":"75286cd9-eb6f-41f4-98fb-bafc822157a6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.postgrid.com/print-mail/v1/postcards?skip=1&limit=2&search=PostGrid","description":"<p>Gets all postcards for the user.</p>\n","auth":{"type":"apikey","apikey":{"key":"<key>","value":"{{example-api-key}}"},"isInherited":true,"source":{"_postman_id":"3e9d41c1-cd48-41cc-ac8b-4918d0991afb","id":"3e9d41c1-cd48-41cc-ac8b-4918d0991afb","name":"Postcards","type":"folder"}},"urlObject":{"path":["v1","postcards"],"host":["https://api.postgrid.com/print-mail"],"query":[{"description":{"content":"<p>Used for traversing pages. See <a href=\"#lists-and-pagination\">lists and pagination</a>.</p>\n<p><code>optional</code></p>\n","type":"text/plain"},"key":"skip","value":"1"},{"description":{"content":"<p>Limits the number of resources returned. See <a href=\"#lists-and-pagination\">lists and pagination</a>.</p>\n<p><code>optional</code></p>\n","type":"text/plain"},"key":"limit","value":"2"},{"description":{"content":"<p>Searches the data for the given input.  See <a href=\"#search\">search</a>.</p>\n<p><code>optional</code></p>\n","type":"text/plain"},"key":"search","value":"PostGrid"}],"variable":[]}},"response":[{"id":"1e92a0f8-b9ea-446a-9b1c-1333172f853c","name":"List Postcards","originalRequest":{"method":"GET","header":[],"url":"https://api.postgrid.com/print-mail/v1/postcards"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"3358"},{"key":"ETag","value":"W/\"d1e-qPSbYJrVWcJ2G79QnR5uVy1Aa2I\""},{"key":"Date","value":"Wed, 23 Dec 2020 07:15:27 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"object\": \"list\",\n    \"limit\": 10,\n    \"skip\": 0,\n    \"totalCount\": 4,\n    \"data\": [\n        {\n            \"id\": \"postcard_wwjVvf1epKSnC4vL1nyFSn\",\n            \"object\": \"postcard\",\n            \"live\": true,\n            \"pageCount\": 2,\n            \"sendDate\": \"2020-12-23T07:13:12.180Z\",\n            \"size\": \"9x6\",\n            \"status\": \"ready\",\n            \"to\": {\n                \"id\": \"contact_6fMMFdvk7YSSKVgaKyJaQS\",\n                \"object\": \"contact\",\n                \"addressLine1\": \"20-20 BAY ST\",\n                \"addressLine2\": \"\",\n                \"addressStatus\": \"corrected\",\n                \"city\": \"TORONTO\",\n                \"country\": \"CANADA\",\n                \"countryCode\": \"CA\",\n                \"firstName\": \"Kevin\",\n                \"postalOrZip\": \"M5J 2N8\",\n                \"provinceOrState\": \"ON\"\n            },\n            \"uploadedPDF\": \"https://pg-prod-bucket-1.s3.amazonaws.com/live/pdf_teWMLA4XQjs4KHocpE8kEA?AWSAccessKeyId=AKIA5GFUILSUDYW4YKAG&Expires=1608708627&Signature=3HhXdlkk1meHmfGaDmY0GlxcWCE%3D\",\n            \"url\": \"https://pg-prod-bucket-1.s3.amazonaws.com/live/postcard_wwjVvf1epKSnC4vL1nyFSn.pdf?AWSAccessKeyId=AKIA5GFUILSUDYW4YKAG&Expires=1608708627&Signature=OMhDcaCiAxMeMi0f5gNmHoUzsro%3D\",\n            \"createdAt\": \"2020-12-23T07:13:12.208Z\",\n            \"updatedAt\": \"2020-12-23T07:13:15.195Z\"\n        },\n        {\n            \"id\": \"postcard_rCbN9Tp1GndociRVmbXcfn\",\n            \"object\": \"postcard\",\n            \"live\": true,\n            \"pageCount\": 2,\n            \"sendDate\": \"2020-12-23T07:10:08.413Z\",\n            \"size\": \"9x6\",\n            \"status\": \"ready\",\n            \"to\": {\n                \"id\": \"contact_6fMMFdvk7YSSKVgaKyJaQS\",\n                \"object\": \"contact\",\n                \"addressLine1\": \"20-20 BAY ST\",\n                \"addressLine2\": \"\",\n                \"addressStatus\": \"corrected\",\n                \"city\": \"TORONTO\",\n                \"country\": \"CANADA\",\n                \"countryCode\": \"CA\",\n                \"firstName\": \"Kevin\",\n                \"postalOrZip\": \"M5J 2N8\",\n                \"provinceOrState\": \"ON\"\n            },\n            \"uploadedPDF\": \"https://pg-prod-bucket-1.s3.amazonaws.com/live/pdf_bsdhXXsrpPFtmnWsbkPBwp?AWSAccessKeyId=AKIA5GFUILSUDYW4YKAG&Expires=1608708627&Signature=AwaniGGCv6OPlCzmgw4E3KIdZH8%3D\",\n            \"url\": \"https://pg-prod-bucket-1.s3.amazonaws.com/live/postcard_rCbN9Tp1GndociRVmbXcfn.pdf?AWSAccessKeyId=AKIA5GFUILSUDYW4YKAG&Expires=1608708627&Signature=ZMFVyJN2DtMUx9ArUN3c%2BtJj3gQ%3D\",\n            \"createdAt\": \"2020-12-23T07:10:08.442Z\",\n            \"updatedAt\": \"2020-12-23T07:10:12.028Z\"\n        },\n        {\n            \"id\": \"postcard_xnSK1RPcqbYY7y6z8qoy7j\",\n            \"object\": \"postcard\",\n            \"live\": true,\n            \"backHTML\": \"Hello, world!\",\n            \"backTemplate\": \"template_gGF4jRzHBNogJrju2JHC2T\",\n            \"frontHTML\": \"Hello, world!\",\n            \"frontTemplate\": \"template_gGF4jRzHBNogJrju2JHC2T\",\n            \"pageCount\": 2,\n            \"sendDate\": \"2020-12-23T07:08:17.172Z\",\n            \"size\": \"6x4\",\n            \"status\": \"ready\",\n            \"to\": {\n                \"id\": \"contact_6fMMFdvk7YSSKVgaKyJaQS\",\n                \"object\": \"contact\",\n                \"addressLine1\": \"20-20 BAY ST\",\n                \"addressLine2\": \"\",\n                \"addressStatus\": \"corrected\",\n                \"city\": \"TORONTO\",\n                \"country\": \"CANADA\",\n                \"countryCode\": \"CA\",\n                \"firstName\": \"Kevin\",\n                \"postalOrZip\": \"M5J 2N8\",\n                \"provinceOrState\": \"ON\"\n            },\n            \"url\": \"https://pg-prod-bucket-1.s3.amazonaws.com/live/postcard_xnSK1RPcqbYY7y6z8qoy7j.pdf?AWSAccessKeyId=AKIA5GFUILSUDYW4YKAG&Expires=1608708627&Signature=25vnQUZ02Nj8vr%2B8tvmWoxyAM04%3D\",\n            \"createdAt\": \"2020-12-23T07:08:17.178Z\",\n            \"updatedAt\": \"2020-12-23T07:08:19.800Z\"\n        },\n        {\n            \"id\": \"postcard_mWZGkpb16fcdGKnZUk2WQv\",\n            \"object\": \"postcard\",\n            \"live\": true,\n            \"backHTML\": \"Hello again, {{to.firstName}}\",\n            \"frontHTML\": \"Hello, {{to.firstName}}\",\n            \"pageCount\": 2,\n            \"sendDate\": \"2020-12-23T07:06:57.519Z\",\n            \"size\": \"6x4\",\n            \"status\": \"ready\",\n            \"to\": {\n                \"id\": \"contact_6vMttLnCDjFEBYZ77KjGPP\",\n                \"object\": \"contact\",\n                \"addressLine1\": \"22-20 BAY ST\",\n                \"addressLine2\": \"\",\n                \"addressStatus\": \"corrected\",\n                \"city\": \"TORONTO\",\n                \"country\": \"CANADA\",\n                \"countryCode\": \"CA\",\n                \"firstName\": \"Kevin\",\n                \"postalOrZip\": \"M5J 2N8\",\n                \"provinceOrState\": \"ON\"\n            },\n            \"url\": \"https://pg-prod-bucket-1.s3.amazonaws.com/live/postcard_mWZGkpb16fcdGKnZUk2WQv.pdf?AWSAccessKeyId=AKIA5GFUILSUDYW4YKAG&Expires=1608708627&Signature=O9VJ5y2qXJuiTg6H2UgJAPSdHcE%3D\",\n            \"createdAt\": \"2020-12-23T07:06:57.549Z\",\n            \"updatedAt\": \"2020-12-23T07:07:00.476Z\"\n        }\n    ]\n}"}],"_postman_id":"75286cd9-eb6f-41f4-98fb-bafc822157a6"},{"name":"Cancel Postcard","id":"3b082253-b4eb-4e1f-aecc-cd20261ee767","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://api.postgrid.com/print-mail/v1/postcards/:id","description":"<p>Cancels a postcard by the specified <code>id</code>. This should be a unique identifying string starting with <code>postcard_</code>.</p>\n","auth":{"type":"apikey","apikey":{"key":"<key>","value":"{{example-api-key}}"},"isInherited":true,"source":{"_postman_id":"3e9d41c1-cd48-41cc-ac8b-4918d0991afb","id":"3e9d41c1-cd48-41cc-ac8b-4918d0991afb","name":"Postcards","type":"folder"}},"urlObject":{"path":["v1","postcards",":id"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[{"id":"2c643e5e-5982-421d-9915-4f1bddc8ea6e","type":"any","value":"postcard_mWZGkpb16fcdGKnZUk2WQv","key":"id"}]}},"response":[{"id":"88b8903b-f607-42d3-9c2f-f8988a407fd2","name":"Cancel Postcard","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"https://api.postgrid.com/print-mail/v1/postcards/:id","host":["https://api.postgrid.com/print-mail"],"path":["v1","postcards",":id"],"variable":[{"key":"id","value":"postcard_mWZGkpb16fcdGKnZUk2WQv"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"761"},{"key":"ETag","value":"W/\"2f9-oteqesBPx7ISmxVVdfIrkE9FxDI\""},{"key":"Date","value":"Wed, 23 Dec 2020 07:16:30 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"postcard_mWZGkpb16fcdGKnZUk2WQv\",\n    \"object\": \"postcard\",\n    \"live\": true,\n    \"backHTML\": \"Hello again, {{to.firstName}}\",\n    \"frontHTML\": \"Hello, {{to.firstName}}\",\n    \"pageCount\": 2,\n    \"sendDate\": \"2020-12-23T07:06:57.519Z\",\n    \"size\": \"6x4\",\n    \"status\": \"cancelled\",\n    \"to\": {\n        \"id\": \"contact_6vMttLnCDjFEBYZ77KjGPP\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"22-20 BAY ST\",\n        \"addressLine2\": \"\",\n        \"addressStatus\": \"corrected\",\n        \"city\": \"TORONTO\",\n        \"country\": \"CANADA\",\n        \"countryCode\": \"CA\",\n        \"firstName\": \"Kevin\",\n        \"postalOrZip\": \"M5J 2N8\",\n        \"provinceOrState\": \"ON\"\n    },\n    \"url\": \"https://pg-prod-bucket-1.s3.amazonaws.com/live/postcard_mWZGkpb16fcdGKnZUk2WQv.pdf?AWSAccessKeyId=AKIA5GFUILSUDYW4YKAG&Expires=1608708690&Signature=h7L7M9JI0A4VqUs7Fhk83Wfb%2B7Q%3D\",\n    \"createdAt\": \"2020-12-23T07:06:57.549Z\",\n    \"updatedAt\": \"2020-12-23T07:16:30.679Z\"\n}"}],"_postman_id":"3b082253-b4eb-4e1f-aecc-cd20261ee767"},{"name":"Cancel  Postcard With Note","id":"be63dfa3-6a0c-4f39-b981-0592713f917d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"note","value":"Cancelled due to template changes","description":"<p>A <code>note</code> for the cancellation of the postcard.\n<code>required</code></p>\n","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/postcards/:id/cancellation","description":"<p>Cancels the specified postcard by <code>id</code> with a <code>note</code> describing the reason for cancellation. The <code>id</code> should be a unique identifying string starting with <code>postcard_</code>. The <code>note</code> should be a string.</p>\n","auth":{"type":"apikey","apikey":{"key":"<key>","value":"{{example-api-key}}"},"isInherited":true,"source":{"_postman_id":"3e9d41c1-cd48-41cc-ac8b-4918d0991afb","id":"3e9d41c1-cd48-41cc-ac8b-4918d0991afb","name":"Postcards","type":"folder"}},"urlObject":{"path":["v1","postcards",":id","cancellation"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[{"id":"52b0e1fd-48a0-4349-bf67-2164143271fd","description":{"content":"<p>The <code>id</code> of the postcard to be deleted.\n<code>required</code></p>\n","type":"text/plain"},"type":"any","value":"postcard_rm2q6jJsFkPHm9VBq8MwV8","key":"id"}]}},"response":[{"id":"7b97f64a-2263-4889-ae16-00e89abff4c5","name":"Cancel  Postcard With Note","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"note","value":"Cancelled due to template changes","description":"A `note` for the cancellation of the postcard.\n`required`","type":"text"}]},"url":{"raw":"https://api.postgrid.com/print-mail/v1/postcards/:id/cancellation","protocol":"https","host":["api","postgrid","com"],"path":["print-mail","v1","postcards",":id","cancellation"],"variable":[{"key":"id","value":"postcard_55yTG9Hjt7mg9UtkRDRNNz","description":"The `id` of the postcard to be deleted.\n`required`"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 25 Jan 2024 15:46:09 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"x-content-type-options","value":"nosniff"},{"key":"content-security-policy","value":"default-src 'none'"},{"key":"vary","value":"Origin"},{"key":"access-control-allow-credentials","value":"true"},{"key":"etag","value":"W/\"7a3-3bt8UAOXXQyKVS4Y8pUj/96Li+g\""},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=3fpwl0lMiorzQYsBbYYCZhWgTxK4u%2FTQKJBOw%2F4QfdKpzUHM%2Ba%2BYhW%2FqyOZiyXm9az%2BhWnXPFT1wBaoKm0XUYOGKMPK5P00PQcruVMk%2BxLQYlQRFA861dCQNtLE9W9AAN%2B7%2B\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"84b1a5b79dc681a5-IAD"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"postcard_55yTG9Hjt7mg9UtkRDRNNz\",\n    \"object\": \"postcard\",\n    \"live\": false,\n    \"backTemplate\": \"template_39JBwJzymaqAx4RieG5XdG\",\n    \"cancellation\": {\n        \"cancelledByUser\": \"user_epXvQvRpfsx5rWQnQu7YSA\",\n        \"note\": \"Cancelled due to template changes\",\n        \"reason\": \"user_initiated\"\n    },\n    \"carrierTracking\": null,\n    \"description\": \"cancellation test 3\",\n    \"express\": false,\n    \"from\": {\n        \"id\": \"contact_85MdVnizzQpDaV5LCBMrzY\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"145 MULBERRY ST\",\n        \"addressLine2\": \"FLOOR 11\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"TORONTO\",\n        \"companyName\": \"PostGrid\",\n        \"country\": \"UNITED STATES\",\n        \"countryCode\": \"US\",\n        \"description\": \"This is a recipient with metadata/merge variables added\",\n        \"email\": \"jane@postgrid.com\",\n        \"firstName\": \"Jane\",\n        \"jobTitle\": \"Software Engineer\",\n        \"lastName\": \"Doe\",\n        \"metadata\": {\n            \"Account Number\": \"2114\",\n            \"code\": \"78910\",\n            \"dateCreated\": \"20-Sep-21\",\n            \"dateDue\": \"20-Sep-21\",\n            \"days\": \"90\",\n            \"invoiceNumber\": \"1002\"\n        },\n        \"phoneNumber\": \"\",\n        \"postalOrZip\": \"\",\n        \"provinceOrState\": \"ON\"\n    },\n    \"frontTemplate\": \"template_vae2fc9kEc5wmfBVKuEYE1\",\n    \"mailingClass\": \"first_class\",\n    \"metadata\": {\n        \"postgrid_dashboard\": \"\"\n    },\n    \"pageCount\": 2,\n    \"sendDate\": \"2024-01-25T15:45:42.458Z\",\n    \"size\": \"9x6\",\n    \"status\": \"cancelled\",\n    \"to\": {\n        \"id\": \"contact_tYToZ4NoWZw59PfxLMUpsf\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"145 MULBERRY ST\",\n        \"addressLine2\": \"APT PH D\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"NEW YORK\",\n        \"companyName\": \"\",\n        \"country\": \"UNITED STATES\",\n        \"countryCode\": \"US\",\n        \"description\": \"This is a contact with no last name\",\n        \"email\": \"John@postgrid.com\",\n        \"firstName\": \"John\",\n        \"jobTitle\": \"\",\n        \"lastName\": \"Smith\",\n        \"metadata\": {\n            \"Account Number\": \"1112\",\n            \"code\": \"12345\",\n            \"dateCreated\": \"20-Sep-21\",\n            \"dateDue\": \"20-Sep-21\",\n            \"days\": \"40\",\n            \"invoiceNumber\": \"1000\"\n        },\n        \"phoneNumber\": \"\",\n        \"postalOrZip\": \"10013\",\n        \"provinceOrState\": \"NY\"\n    },\n    \"url\": \"https://pg-prod-bucket-1.s3.amazonaws.com/test/postcard_55yTG9Hjt7mg9UtkRDRNNz?AWSAccessKeyId=AKIA5GFUILSULWTWCR64&Expires=1706198469&Signature=A7Irt4Uz%2FgT58MHSun5KS9C%2BTEc%3D\",\n    \"createdAt\": \"2024-01-25T15:45:42.470Z\",\n    \"updatedAt\": \"2024-01-25T15:46:09.244Z\"\n}"}],"_postman_id":"be63dfa3-6a0c-4f39-b981-0592713f917d"},{"name":"Progress Test Postcard","id":"c53970c0-6828-4568-856b-81d2a1c78ed7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"https://api.postgrid.com/print-mail/v1/postcards/:id/progressions","description":"<p>Progress the desired test postcard by <code>id</code> to the next status. This can be used to test webhooks. The <code>id</code> should be a unique identifying string that starts with <code>postcard_</code>.</p>\n<p><em>Note: that this will fail with an</em> <code>invalid_progression_error</code> <em>if the status is one of</em> <code>completed</code> <em>or</em> <code>cancelled</code><em>.</em></p>\n","auth":{"type":"apikey","apikey":{"key":"<key>","value":"{{example-api-key}}"},"isInherited":true,"source":{"_postman_id":"3e9d41c1-cd48-41cc-ac8b-4918d0991afb","id":"3e9d41c1-cd48-41cc-ac8b-4918d0991afb","name":"Postcards","type":"folder"}},"urlObject":{"path":["v1","postcards",":id","progressions"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[{"description":{"content":"<p>The <code>id</code> of the postcard you want to progress.</p>\n<p><code>required</code></p>\n","type":"text/plain"},"type":"any","value":"postcard_sq5jDrpui44ikUbAFmDy9q","key":"id"}]}},"response":[{"id":"13528687-3f39-447f-b2f1-6fc699c00a30","name":"Progress Test Postcard","originalRequest":{"method":"POST","header":[],"url":{"raw":"https://api.postgrid.com/print-mail/v1/postcards/:id/progressions","host":["https://api.postgrid.com/print-mail"],"path":["v1","postcards",":id","progressions"],"variable":[{"key":"id","value":"postcard_sq5jDrpui44ikUbAFmDy9q"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"561"},{"key":"ETag","value":"W/\"231-ik8bvEOyMA2WaAZBrz1/vFb2E8Q\""},{"key":"Date","value":"Mon, 03 May 2021 14:44:37 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"postcard_sq5jDrpui44ikUbAFmDy9q\",\n    \"object\": \"postcard\",\n    \"live\": false,\n    \"backHTML\": \"Hello again, {{to.firstName}}\",\n    \"frontHTML\": \"Hello, {{to.firstName}}\",\n    \"sendDate\": \"2021-05-03T14:44:19.822Z\",\n    \"size\": \"6x4\",\n    \"status\": \"printing\",\n    \"to\": {\n        \"id\": \"contact_juQr1pWXFncdPKMy4LE52N\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"22-20 BAY ST\",\n        \"addressLine2\": null,\n        \"addressStatus\": \"verified\",\n        \"city\": \"TORONTO\",\n        \"country\": \"CANADA\",\n        \"countryCode\": \"CA\",\n        \"firstName\": \"Kevin\",\n        \"postalOrZip\": null,\n        \"provinceOrState\": \"ON\"\n    },\n    \"createdAt\": \"2021-05-03T14:44:19.826Z\",\n    \"updatedAt\": \"2021-05-03T14:44:37.013Z\"\n}"}],"_postman_id":"c53970c0-6828-4568-856b-81d2a1c78ed7"}],"id":"3e9d41c1-cd48-41cc-ac8b-4918d0991afb","description":"<p>Create and manage postcard mailings.</p>\n<h1 id=\"postcard-response\">Postcard Response</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>A unique ID prefixed with <code>postcard_</code></td>\n</tr>\n<tr>\n<td>object</td>\n<td>string</td>\n<td>Always <code>postcard</code></td>\n</tr>\n<tr>\n<td>status</td>\n<td>string</td>\n<td>See <a href=\"#tracking\">Tracking</a></td>\n</tr>\n<tr>\n<td>imbStatus</td>\n<td>string or null</td>\n<td>See <a href=\"#intelligent-mail-tracking\">Intelligent-Mail Tracking</a></td>\n</tr>\n<tr>\n<td>live</td>\n<td>boolean</td>\n<td><code>true</code> if this is a live mode postcard else <code>false</code></td>\n</tr>\n<tr>\n<td>description</td>\n<td>string or null</td>\n<td>Optional line describing this letter</td>\n</tr>\n<tr>\n<td>sendDate</td>\n<td>Date</td>\n<td>Date when the postcard will be printed</td>\n</tr>\n<tr>\n<td>size</td>\n<td>string</td>\n<td>One of <code>6x4</code>, <code>9x6</code>, <code>11x6</code></td>\n</tr>\n<tr>\n<td>to</td>\n<td><a href=\"#contact-response\">Contact</a></td>\n<td>The recipient of this postcard</td>\n</tr>\n<tr>\n<td>from</td>\n<td><a href=\"#contact-response\">Contact</a> or null</td>\n<td>Optional sender of this postcard</td>\n</tr>\n<tr>\n<td>frontHTML</td>\n<td>string or null</td>\n<td>The raw html provided for the front of this postcard, if any</td>\n</tr>\n<tr>\n<td>backHTML</td>\n<td>string or null</td>\n<td>The raw html provided for the back of this postcard, if any</td>\n</tr>\n<tr>\n<td>frontTemplate</td>\n<td>string or null</td>\n<td>A <a href=\"#template\">Template</a> ID for the front, if any</td>\n</tr>\n<tr>\n<td>backTemplate</td>\n<td>string or null</td>\n<td>A <a href=\"#template\">Template</a> ID for the back, if any</td>\n</tr>\n<tr>\n<td>uploadedPDF</td>\n<td>string or null</td>\n<td>A signed URL to the PDF that was uploaded for this postcard, if any</td>\n</tr>\n<tr>\n<td>url</td>\n<td>string or null</td>\n<td>Signed link to a preview of this letter order</td>\n</tr>\n<tr>\n<td>mailingClass</td>\n<td><code>first_class</code> or <code>standard_class</code></td>\n<td>Defaults to <code>first_class</code>. See <a href=\"#mailing-class\">mailing class</a>.</td>\n</tr>\n<tr>\n<td>mergeVariables</td>\n<td>object or null</td>\n<td>See <a href=\"#merge-variables\">Merge Variables</a></td>\n</tr>\n<tr>\n<td>metadata</td>\n<td>object or null</td>\n<td>See <a href=\"#metadata\">Metadata</a></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"key":"<key>","value":"{{example-api-key}}"},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"76ce5c14-4135-4bd1-a761-1a64a2fb3ffb","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"017e873b-0a7e-4e03-931a-d273b036efd3","type":"text/javascript","exec":[""]}}],"_postman_id":"3e9d41c1-cd48-41cc-ac8b-4918d0991afb"},{"name":"Self Mailers","item":[{"name":"Create Self Mailer","id":"12c73172-83cf-4e86-945c-8621528c02d2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"to","value":"contact_ajjGFyDSwYPDcf2h7Cww98","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the receiver. You can either pass a contact <code>object</code> or a contact's <code>id</code>.</p>\n<p><code>required</code></p>\n","type":"text"},{"key":"from","value":"contact_ajjGFyDSwYPDcf2h7Cww98","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the sender. You can either pass a contact <code>object</code> or a contact's <code>id</code>.</p>\n<p><code>required</code></p>\n","type":"text"},{"key":"insideHTML","value":"Hello, {{to.firstName}}","type":"text","description":"<p>The HTML content for the inside of the self mailer.</p>\n<p><code>required</code></p>\n"},{"key":"outsideHTML","value":"Hello again, {{to.firstName}}","type":"text","description":"<p>The HTML content for the outside of the self mailer.</p>\n<p><code>required</code></p>\n"},{"key":"size","value":"8.5x11_bifold","type":"text","description":"<p>A string denoting the size of the self mailer.  Must be <code>8.5x11_bifold</code> or <code>8.5x11_trifold</code>.</p>\n<p><code>required</code></p>\n"},{"key":"sendDate","value":"2023-02-16T15:40:35.873Z","description":"<p>The desired date for the self mailer to be sent out.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"express","value":"false","description":"<p>See <a href=\"#express-shipping\">express shipping</a>.</p>\n","type":"text"},{"key":"description","value":"My HTML self mailer","description":"<p>A description for the self mailer.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"mailingClass","value":"first_class","description":"<p>Defaults to <code>first_class</code>. See <a href=\"#mailing-class\">mailing class</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"mergeVariables[language]","value":"english","description":"<p>See <a href=\"#merge-variables\">merge variables</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"metadata[company]","value":"PostGrid","description":"<p>See <a href=\"#metadata\">metadata</a>.</p>\n<p><code>optional</code></p>\n","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/self_mailers","description":"<p>Creates a new self mailer order with HTML content.</p>\n","auth":{"type":"apikey","apikey":{"key":"<key>","value":"{{example-api-key}}"},"isInherited":true,"source":{"_postman_id":"97ad9e97-34db-46b2-b80a-26ff2da3f544","id":"97ad9e97-34db-46b2-b80a-26ff2da3f544","name":"Self Mailers","type":"folder"}},"urlObject":{"path":["v1","self_mailers"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[]}},"response":[{"id":"5df616ce-4d22-4cbc-bf3b-7ad32f8d68f9","name":"Create Self Mailer","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"to[firstName]","value":"Kevin","type":"text"},{"key":"to[addressLine1]","value":"22-20 bay st","type":"text"},{"key":"to[city]","value":"New York","type":"text"},{"key":"to[provinceOrState]","value":"NY","type":"text"},{"key":"to[countryCode]","value":"US","type":"text"},{"key":"insideHTML","value":"Hello, {{to.firstName}}","type":"text"},{"key":"outsideHTML","value":"Hello again, {{to.firstName}}","type":"text"},{"key":"size","value":"8.5x11_bifold","type":"text"},{"key":"from","value":"contact_ajjGFyDSwYPDcf2h7Cww98","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/self_mailers"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"561"},{"key":"ETag","value":"W/\"231-BZwPW6GwaUP4ejaHAQUv41m65Vs\""},{"key":"Date","value":"Wed, 23 Dec 2020 07:06:57 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"self_mailer_6XS5cDqkUZdNmQ2tAcqGnA\",\n    \"object\": \"self_mailer\",\n    \"live\": false,\n    \"from\": {\n        \"id\": \"contact_ajjGFyDSwYPDcf2h7Cww98\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"145 MULBERRY ST\",\n        \"addressLine2\": \"APT PH D\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"NEW YORK\",\n        \"companyName\": \"\",\n        \"country\": \"UNITED STATES\",\n        \"countryCode\": \"US\",\n        \"description\": \"Contact with no last name\",\n        \"email\": \"\",\n        \"firstName\": \"Anna Marie\",\n        \"jobTitle\": \"\",\n        \"lastName\": \"\",\n        \"metadata\": {\n            \"data\": \"Hello from CSV!\"\n        },\n        \"phoneNumber\": \"(718) 567-0845\",\n        \"postalOrZip\": \"10013\",\n        \"provinceOrState\": \"NY\"\n    },\n    \"insideHTML\": \"Hello, {{to.firstName}}\",\n    \"mailingClass\": \"first_class\",\n    \"outsideHTML\": \"Hello again, {{to.firstName}}\",\n    \"sendDate\": \"2023-07-06T15:10:09.761Z\",\n    \"size\": \"8.5x11_bifold\",\n    \"status\": \"ready\",\n    \"to\": {\n        \"id\": \"contact_j2aCvBWzVuPM77LZwU6eEw\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"22-20 BAY ST\",\n        \"addressLine2\": null,\n        \"addressStatus\": \"verified\",\n        \"city\": \"NEW YORK\",\n        \"country\": \"UNITED STATES\",\n        \"countryCode\": \"US\",\n        \"firstName\": \"Kevin\",\n        \"postalOrZip\": null,\n        \"provinceOrState\": \"NY\"\n    },\n    \"createdAt\": \"2023-07-06T15:10:09.769Z\",\n    \"updatedAt\": \"2023-07-06T15:10:09.769Z\"\n}"}],"_postman_id":"12c73172-83cf-4e86-945c-8621528c02d2"},{"name":"Create Self Mailer with Templates","id":"629d9b2a-bb67-45ef-b56a-a3d8c82af74a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"to","value":"contact_ajjGFyDSwYPDcf2h7Cww98","type":"text","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the receiver. You can either pass a contact <code>object</code> or a contact's <code>id</code>.</p>\n<p><code>required</code></p>\n"},{"key":"from","value":"contact_ajjGFyDSwYPDcf2h7Cww98","type":"text","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the sender. You can either pass a contact <code>object</code> or a contact's <code>id</code>.</p>\n<p><code>required</code></p>\n"},{"key":"insideTemplate","value":"template_5zLiV9HwwN93keu2gUNjrm","type":"text","description":"<p>The <code>id</code> of the <a href=\"#template\">template</a> to be used for the inside of the self mailer.</p>\n<p><code>required</code></p>\n"},{"key":"outsideTemplate","value":"template_5zLiV9HwwN93keu2gUNjrm","type":"text","description":"<p>The <code>id</code> of the <a href=\"#template\">template</a> to be used for the outside of the self mailer.</p>\n<p><code>required</code></p>\n"},{"key":"size","value":"8.5x11_bifold","type":"text","description":"<p>A string denoting the size of the self mailer.  Must be <code>8.5x11_bifold</code> or <code>8.5x11_trifold</code>.</p>\n<p><code>required</code></p>\n"},{"key":"sendDate","value":"2023-02-16T15:40:35.873Z","description":"<p>The desired date for the letter to be sent out.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"express","value":"false","description":"<p>See <a href=\"#express-shipping\">express shipping</a>.</p>\n","type":"text"},{"key":"description","value":"My template self mailer!","description":"<p>A description for the postcard.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"mailingClass","value":"first_class","description":"<p>Defaults to <code>first_class</code>. See <a href=\"#mailing-class\">mailing class</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"mergeVariables[language]","value":"english","description":"<p>See <a href=\"#merge-variables\">merge variables</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"metedata[company]","value":"PostGrid","description":"<p>See <a href=\"#metadata\">metadata</a>.</p>\n<p><code>optional</code></p>\n","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/self_mailers?expand[]=insideTemplate&expand[]=outsideTemplate","description":"<p>Creates a new self mailer from a pre-existing template.</p>\n","auth":{"type":"apikey","apikey":{"key":"<key>","value":"{{example-api-key}}"},"isInherited":true,"source":{"_postman_id":"97ad9e97-34db-46b2-b80a-26ff2da3f544","id":"97ad9e97-34db-46b2-b80a-26ff2da3f544","name":"Self Mailers","type":"folder"}},"urlObject":{"path":["v1","self_mailers"],"host":["https://api.postgrid.com/print-mail"],"query":[{"description":{"content":"<p>See <a href=\"#expansions\">expansions</a>.</p>\n<p><code>optional</code></p>\n","type":"text/plain"},"key":"expand[]","value":"insideTemplate"},{"description":{"content":"<p>See <a href=\"#expansions\">expansions</a>.</p>\n<p><code>optional</code></p>\n","type":"text/plain"},"key":"expand[]","value":"outsideTemplate"}],"variable":[]}},"response":[{"id":"55598d16-f6e3-4354-a7a2-b696ba032094","name":"Create Self Mailer with Templates","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"to[firstName]","value":"Kevin","type":"text"},{"key":"to[addressLine1]","value":"22-20 bay st","type":"text"},{"key":"to[city]","value":"New York","type":"text"},{"key":"to[provinceOrState]","value":"NY","type":"text"},{"key":"to[countryCode]","value":"US","type":"text"},{"key":"insideTemplate","value":"template_6biMkm1TwghYFHaRwyoXmS","type":"text"},{"key":"outsideTemplate","value":"template_8CHnHN1yhkSCynA1dsZaGc","type":"text"},{"key":"size","value":"8.5x11_bifold","type":"text"},{"key":"from","value":"contact_ajjGFyDSwYPDcf2h7Cww98","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/self_mailers"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"561"},{"key":"ETag","value":"W/\"231-BZwPW6GwaUP4ejaHAQUv41m65Vs\""},{"key":"Date","value":"Wed, 23 Dec 2020 07:06:57 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"self_mailer_xBmpqgPXEfwUGy7fWJBT74\",\n    \"object\": \"self_mailer\",\n    \"live\": false,\n    \"from\": {\n        \"id\": \"contact_ajjGFyDSwYPDcf2h7Cww98\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"145 MULBERRY ST\",\n        \"addressLine2\": \"APT PH D\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"NEW YORK\",\n        \"companyName\": \"\",\n        \"country\": \"UNITED STATES\",\n        \"countryCode\": \"US\",\n        \"description\": \"Contact with no last name\",\n        \"email\": \"\",\n        \"firstName\": \"Anna Marie\",\n        \"jobTitle\": \"\",\n        \"lastName\": \"\",\n        \"metadata\": {\n            \"data\": \"Hello from CSV!\"\n        },\n        \"phoneNumber\": \"(718) 567-0845\",\n        \"postalOrZip\": \"10013\",\n        \"provinceOrState\": \"NY\"\n    },\n    \"insideTemplate\": \"template_6biMkm1TwghYFHaRwyoXmS\",\n    \"mailingClass\": \"first_class\",\n    \"outsideTemplate\": \"template_8CHnHN1yhkSCynA1dsZaGc\",\n    \"sendDate\": \"2023-07-06T15:12:33.561Z\",\n    \"size\": \"8.5x11_bifold\",\n    \"status\": \"ready\",\n    \"to\": {\n        \"id\": \"contact_j2aCvBWzVuPM77LZwU6eEw\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"22-20 BAY ST\",\n        \"addressLine2\": null,\n        \"addressStatus\": \"verified\",\n        \"city\": \"NEW YORK\",\n        \"country\": \"UNITED STATES\",\n        \"countryCode\": \"US\",\n        \"firstName\": \"Kevin\",\n        \"postalOrZip\": null,\n        \"provinceOrState\": \"NY\"\n    },\n    \"createdAt\": \"2023-07-06T15:12:33.564Z\",\n    \"updatedAt\": \"2023-07-06T15:12:33.564Z\"\n}"}],"_postman_id":"629d9b2a-bb67-45ef-b56a-a3d8c82af74a"},{"name":"Create Self Mailer with PDF","id":"069c7207-51e6-449c-b141-7263bdb6fee6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"to","value":"contact_ajjGFyDSwYPDcf2h7Cww98","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the receiver. You can either pass a contact <code>object</code> or a contact's <code>id</code>.</p>\n<p><code>required</code></p>\n","type":"text"},{"key":"from","value":"contact_ajjGFyDSwYPDcf2h7Cww98","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the sender. You can either pass a contact <code>object</code> or a contact's <code>id</code>.</p>\n<p><code>required</code></p>\n","type":"text"},{"key":"pdf","type":"file","description":"<p>A PDF to be uploaded and used for the self mailer.</p>\n<p><code>requried</code></p>\n","src":"/C:/Users/Nolan/Documents/self_mailer_example.pdf"},{"key":"size","value":"8.5x11_bifold","description":"<p>A string denoting the size of the self mailer.  Must be <code>8.5x11_bifold</code> or <code>8.5x11_trifold</code>.</p>\n<p><code>required</code></p>\n","type":"text"},{"key":"sendDate","value":"2023-02-16T15:40:35.873Z","description":"<p>The desired date for the self mailer to be sent out.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"express","value":"false","description":"<p>See <a href=\"#express-shipping\">express shipping</a>.</p>\n","type":"text"},{"key":"description","value":"My uploaded PDF self mailer","description":"<p>A description for the self mailer.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"mailingClass","value":"first_class","description":"<p>Defaults to <code>first_class</code>. See <a href=\"#mailing-class\">mailing class</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"mergeVariables[language]","value":"english","description":"<p>See <a href=\"#merge-variables\">merge variables</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"metadata[company]","value":"PostGrid","description":"<p>See <a href=\"#metadata\">metadata</a>.</p>\n<p><code>optional</code></p>\n","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/self_mailers","description":"<p>Creates a new self mailer from an uploaded PDF.</p>\n","auth":{"type":"apikey","apikey":{"key":"<key>","value":"{{example-api-key}}"},"isInherited":true,"source":{"_postman_id":"97ad9e97-34db-46b2-b80a-26ff2da3f544","id":"97ad9e97-34db-46b2-b80a-26ff2da3f544","name":"Self Mailers","type":"folder"}},"urlObject":{"path":["v1","self_mailers"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[]}},"response":[{"id":"3ef3454b-ba84-44ec-ae11-fee98740cc32","name":"Create Self Mailer with PDF","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"to[firstName]","value":"Kevin","type":"text"},{"key":"to[city]","value":"Toronto","type":"text"},{"key":"to[addressLine1]","value":"20-20 bay st","type":"text"},{"key":"size","value":"8.5x11_bifold","type":"text"},{"key":"pdf","type":"file","src":"/C:/Users/Nolan/Documents/self_mailer_example.pdf"},{"key":"from[firstName]","value":"Ricky","type":"text"},{"key":"from[addressLine1]","value":"145 Mulberry St","type":"text"},{"key":"from[city]","value":"New York","type":"text"},{"key":"from[provinceOrState]","value":"NY","type":"text"},{"key":"from[countryCode]","value":"US","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/self_mailers"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"663"},{"key":"ETag","value":"W/\"297-MHOjwd9Nffw61+Dy1gLNzhefJoY\""},{"key":"Date","value":"Wed, 23 Dec 2020 07:10:08 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"self_mailer_2ksTAeJnvk4TXzw4kuJrPZ\",\n    \"object\": \"self_mailer\",\n    \"live\": false,\n    \"from\": {\n        \"id\": \"contact_tydRUvrZsw39Nc6guEccid\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"145 MULBERRY ST\",\n        \"addressLine2\": null,\n        \"addressStatus\": \"verified\",\n        \"city\": \"NEW YORK\",\n        \"country\": \"UNITED STATES\",\n        \"countryCode\": \"US\",\n        \"firstName\": \"Ricky\",\n        \"postalOrZip\": null,\n        \"provinceOrState\": \"NY\"\n    },\n    \"mailingClass\": \"first_class\",\n    \"sendDate\": \"2023-07-06T15:26:18.201Z\",\n    \"size\": \"8.5x11_bifold\",\n    \"status\": \"ready\",\n    \"to\": {\n        \"id\": \"contact_3BQJWhUfKQFGKLQF42YM5T\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"20-20 BAY ST\",\n        \"addressLine2\": null,\n        \"addressStatus\": \"verified\",\n        \"city\": \"TORONTO\",\n        \"country\": \"CANADA\",\n        \"countryCode\": \"CA\",\n        \"firstName\": \"Kevin\",\n        \"postalOrZip\": null,\n        \"provinceOrState\": null\n    },\n    \"uploadedPDF\": \"https://pg-prod-bucket-1.s3.amazonaws.com/test/pdf_95cRWVX23pXyTKHBYDaoQi?AWSAccessKeyId=AKIA5GFUILSULWTWCR64&Expires=1688658078&Signature=2RkvE86LbBet%2F9DTZ7NxWMSGxEU%3D\",\n    \"createdAt\": \"2023-07-06T15:26:18.205Z\",\n    \"updatedAt\": \"2023-07-06T15:26:18.205Z\"\n}"}],"_postman_id":"069c7207-51e6-449c-b141-7263bdb6fee6"},{"name":"Create Self Mailer with PDF Link","id":"2a203a3a-a1ca-44a0-91a1-6c2358ddd1f5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"to","value":"contact_ajjGFyDSwYPDcf2h7Cww98","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the receiver. You can either pass a contact <code>object</code> or a contact's <code>id</code>.</p>\n<p><code>required</code></p>\n","type":"text"},{"key":"from","value":"contact_ajjGFyDSwYPDcf2h7Cww98","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the sender. You can either pass a contact <code>object</code> or a contact's <code>id</code>.</p>\n<p><code>required</code></p>\n","type":"text"},{"key":"pdf","value":"https://pg-prod-bucket-1.s3.amazonaws.com/Postcard_Test_9x6.pdf","type":"text","description":"<p>A publicly accessible URL to a PDF to be used for the self mailer.</p>\n<p><code>required</code></p>\n"},{"key":"size","value":"8.5x11_bifold","description":"<p>A string denoting the size of the self mailer.  Must be <code>8.5x11_bifold</code> or <code>8.5x11_trifold</code>.</p>\n<p><code>required</code></p>\n","type":"text"},{"key":"sendDate","value":"2023-02-16T15:40:35.873Z","description":"<p>The desired date for the self mailer to be sent out.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"express","value":"false","description":"<p>See <a href=\"#express-shipping\">express shipping</a>.</p>\n","type":"text"},{"key":"description","value":"My URL PDF self mailer","description":"<p>A description for the self mailer.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"mailingClass","value":"standard_class","description":"<p>Defaults to <code>first_class</code>. See <a href=\"#mailing-class\">mailing class</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"mergeVariables[language]","value":"english","description":"<p>See <a href=\"#merge-variables\">merge variables</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"metadata[company]","value":"PostGrid","description":"<p>See <a href=\"#metadata\">metadata</a>.</p>\n<p><code>optional</code></p>\n","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/self_mailers","description":"<p>Creates a new self mailer from a publicly accessible PDF link.</p>\n","auth":{"type":"apikey","apikey":{"key":"<key>","value":"{{example-api-key}}"},"isInherited":true,"source":{"_postman_id":"97ad9e97-34db-46b2-b80a-26ff2da3f544","id":"97ad9e97-34db-46b2-b80a-26ff2da3f544","name":"Self Mailers","type":"folder"}},"urlObject":{"path":["v1","self_mailers"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[]}},"response":[{"id":"ffa4a971-0415-46b2-968e-6e5b40db2ea6","name":"Create Self Mailer with PDF Copy","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"to[firstName]","value":"Kevin","type":"text"},{"key":"to[city]","value":"Toronto","type":"text"},{"key":"to[addressLine1]","value":"20-20 bay st","type":"text"},{"key":"size","value":"8.5x11_bifold","type":"text"},{"key":"from[firstName]","value":"Ricky","type":"text"},{"key":"from[addressLine1]","value":"145 Mulberry St","type":"text"},{"key":"from[city]","value":"New York","type":"text"},{"key":"from[provinceOrState]","value":"NY","type":"text"},{"key":"from[countryCode]","value":"US","type":"text"},{"key":"pdf","value":"https://pg-prod-bucket-1.s3.amazonaws.com/self_mailer_example_85x11_bifold.pdf","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/self_mailers"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"663"},{"key":"ETag","value":"W/\"297-MHOjwd9Nffw61+Dy1gLNzhefJoY\""},{"key":"Date","value":"Wed, 23 Dec 2020 07:10:08 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"self_mailer_5gQmDVDUMpQEYTuSxSf645\",\n    \"object\": \"self_mailer\",\n    \"live\": false,\n    \"from\": {\n        \"id\": \"contact_tydRUvrZsw39Nc6guEccid\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"145 MULBERRY ST\",\n        \"addressLine2\": null,\n        \"addressStatus\": \"verified\",\n        \"city\": \"NEW YORK\",\n        \"country\": \"UNITED STATES\",\n        \"countryCode\": \"US\",\n        \"firstName\": \"Ricky\",\n        \"postalOrZip\": null,\n        \"provinceOrState\": \"NY\"\n    },\n    \"mailingClass\": \"first_class\",\n    \"sendDate\": \"2023-07-06T15:31:04.543Z\",\n    \"size\": \"8.5x11_bifold\",\n    \"status\": \"ready\",\n    \"to\": {\n        \"id\": \"contact_3BQJWhUfKQFGKLQF42YM5T\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"20-20 BAY ST\",\n        \"addressLine2\": null,\n        \"addressStatus\": \"verified\",\n        \"city\": \"TORONTO\",\n        \"country\": \"CANADA\",\n        \"countryCode\": \"CA\",\n        \"firstName\": \"Kevin\",\n        \"postalOrZip\": null,\n        \"provinceOrState\": null\n    },\n    \"uploadedPDF\": \"https://pg-prod-bucket-1.s3.amazonaws.com/test/pdf_nCZAkLeiS7x3vYZsSWkRc7?AWSAccessKeyId=AKIA5GFUILSULWTWCR64&Expires=1688658364&Signature=NLNQWwD53VjTJPc0jm5yY%2BBzNPo%3D\",\n    \"createdAt\": \"2023-07-06T15:31:04.560Z\",\n    \"updatedAt\": \"2023-07-06T15:31:04.560Z\"\n}"}],"_postman_id":"2a203a3a-a1ca-44a0-91a1-6c2358ddd1f5"},{"name":"Get Self Mailer","id":"4e03d12f-b860-4c4b-b655-9e39cb9c380c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.postgrid.com/print-mail/v1/self_mailers/:id?expand[]=insideTemplate&expand[]=outsideTemplate","description":"<p>Gets a specific self mailer based on the passed <code>id</code>. This should be a unique identifying string starting with <code>self_mailer_</code>.</p>\n","auth":{"type":"apikey","apikey":{"key":"<key>","value":"{{example-api-key}}"},"isInherited":true,"source":{"_postman_id":"97ad9e97-34db-46b2-b80a-26ff2da3f544","id":"97ad9e97-34db-46b2-b80a-26ff2da3f544","name":"Self Mailers","type":"folder"}},"urlObject":{"path":["v1","self_mailers",":id"],"host":["https://api.postgrid.com/print-mail"],"query":[{"description":{"content":"<p>Must be either <code>insideTemplate</code> or <code>outsideTemplate</code>. See <a href=\"#expansions\">expansions</a>.  If the self mailer was created with a template, it will return the templates nested information.</p>\n<p><code>optional</code></p>\n","type":"text/plain"},"key":"expand[]","value":"insideTemplate"},{"description":{"content":"<p>Must be either <code>insideTemplate</code> or <code>outsideTemplate</code>. See <a href=\"#expansions\">expansions</a>.  If the self mailer was created with a template, it will return the templates nested information.</p>\n<p><code>optional</code></p>\n","type":"text/plain"},"key":"expand[]","value":"outsideTemplate"}],"variable":[{"id":"0db32558-cdd7-482c-bf98-b6abd3ce824b","type":"any","value":"self_mailer_wx97UGTC7H3UaSfhunWLjt","key":"id"}]}},"response":[{"id":"728cad94-33a3-4738-80ca-aafe7111c322","name":"Get Self Mailer","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.postgrid.com/print-mail/v1/self_mailers/:id","protocol":"https","host":["api","postgrid","com"],"path":["print-mail","v1","self_mailers",":id"],"variable":[{"key":"id","value":"self_mailer_wx97UGTC7H3UaSfhunWLjt"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"755"},{"key":"ETag","value":"W/\"2f3-SRv0QYwZhN3KZw85uxaXo2wIIW8\""},{"key":"Date","value":"Wed, 23 Dec 2020 07:14:59 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"self_mailer_wx97UGTC7H3UaSfhunWLjt\",\n    \"object\": \"self_mailer\",\n    \"live\": false,\n    \"description\": \"My HTML self mailer\",\n    \"from\": {\n        \"id\": \"contact_iNaKXaRVN5FjWobxV1SXe7\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"18380 FUCHSIA RD\",\n        \"addressLine2\": \"\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"FORT MYERS\",\n        \"country\": \"UNITED STATES\",\n        \"countryCode\": \"US\",\n        \"firstName\": \"Arturo\",\n        \"lastName\": \"Moralez\",\n        \"metadata\": {\n            \"County\": \"Charlotte\",\n            \"PropertyAddress\": \"3381 Maple Ter\",\n            \"PropertyCity\": \"Port Charlotte\",\n            \"PropertyState\": \"FL\",\n            \"Zip\": \"33952\"\n        },\n        \"postalOrZip\": \"33967\",\n        \"provinceOrState\": \"FL\"\n    },\n    \"insideHTML\": \"Hello, {{to.firstName}}\",\n    \"mailingClass\": \"first_class\",\n    \"outsideHTML\": \"Hello again, {{to.firstName}}\",\n    \"pageCount\": 2,\n    \"sendDate\": \"2023-06-28T18:20:56.430Z\",\n    \"size\": \"8.5x11_bifold\",\n    \"status\": \"ready\",\n    \"to\": {\n        \"id\": \"contact_iNaKXaRVN5FjWobxV1SXe7\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"18380 FUCHSIA RD\",\n        \"addressLine2\": \"\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"FORT MYERS\",\n        \"country\": \"UNITED STATES\",\n        \"countryCode\": \"US\",\n        \"firstName\": \"Arturo\",\n        \"lastName\": \"Moralez\",\n        \"metadata\": {\n            \"County\": \"Charlotte\",\n            \"PropertyAddress\": \"3381 Maple Ter\",\n            \"PropertyCity\": \"Port Charlotte\",\n            \"PropertyState\": \"FL\",\n            \"Zip\": \"33952\"\n        },\n        \"postalOrZip\": \"33967\",\n        \"provinceOrState\": \"FL\"\n    },\n    \"url\": \"https://pg-prod-bucket-1.s3.amazonaws.com/test/self_mailer_wx97UGTC7H3UaSfhunWLjt?AWSAccessKeyId=AKIA5GFUILSULWTWCR64&Expires=1688658382&Signature=X4WzIFywkneT0mtim5pXU%2BsUSUQ%3D\",\n    \"createdAt\": \"2023-06-28T18:20:56.435Z\",\n    \"updatedAt\": \"2023-06-28T18:21:00.979Z\"\n}"}],"_postman_id":"4e03d12f-b860-4c4b-b655-9e39cb9c380c"},{"name":"List Self Mailers","id":"0ffcb49f-9c3b-4888-9f91-489cd121cb43","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.postgrid.com/print-mail/v1/self_mailers?skip=1&limit=2&search=PostGrid","description":"<p>Gets all self mailers for the user.</p>\n","auth":{"type":"apikey","apikey":{"key":"<key>","value":"{{example-api-key}}"},"isInherited":true,"source":{"_postman_id":"97ad9e97-34db-46b2-b80a-26ff2da3f544","id":"97ad9e97-34db-46b2-b80a-26ff2da3f544","name":"Self Mailers","type":"folder"}},"urlObject":{"path":["v1","self_mailers"],"host":["https://api.postgrid.com/print-mail"],"query":[{"description":{"content":"<p>Used for traversing pages. See <a href=\"#lists-and-pagination\">lists and pagination</a>.</p>\n<p><code>optional</code></p>\n","type":"text/plain"},"key":"skip","value":"1"},{"description":{"content":"<p>Limits the number of resources returned. See <a href=\"#lists-and-pagination\">lists and pagination</a>.</p>\n<p><code>optional</code></p>\n","type":"text/plain"},"key":"limit","value":"2"},{"description":{"content":"<p>Searches the data for the given input.  See <a href=\"#search\">search</a>.</p>\n<p><code>optional</code></p>\n","type":"text/plain"},"key":"search","value":"PostGrid"}],"variable":[]}},"response":[{"id":"bdc2d9b5-afa5-4723-9dca-7d4a0609bd42","name":"List Self Mailers","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.postgrid.com/print-mail/v1/self_mailers?skip=0&limit=1","host":["https://api.postgrid.com/print-mail"],"path":["v1","self_mailers"],"query":[{"key":"skip","value":"0"},{"key":"limit","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"3358"},{"key":"ETag","value":"W/\"d1e-qPSbYJrVWcJ2G79QnR5uVy1Aa2I\""},{"key":"Date","value":"Wed, 23 Dec 2020 07:15:27 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"object\": \"list\",\n    \"limit\": 1,\n    \"skip\": 0,\n    \"totalCount\": 7,\n    \"data\": [\n        {\n            \"id\": \"self_mailer_5gQmDVDUMpQEYTuSxSf645\",\n            \"object\": \"self_mailer\",\n            \"live\": false,\n            \"from\": {\n                \"id\": \"contact_tydRUvrZsw39Nc6guEccid\",\n                \"object\": \"contact\",\n                \"addressLine1\": \"145 MULBERRY ST\",\n                \"addressLine2\": null,\n                \"addressStatus\": \"verified\",\n                \"city\": \"NEW YORK\",\n                \"country\": \"UNITED STATES\",\n                \"countryCode\": \"US\",\n                \"firstName\": \"Ricky\",\n                \"postalOrZip\": null,\n                \"provinceOrState\": \"NY\"\n            },\n            \"mailingClass\": \"first_class\",\n            \"pageCount\": 2,\n            \"sendDate\": \"2023-07-06T15:31:04.543Z\",\n            \"size\": \"8.5x11_bifold\",\n            \"status\": \"ready\",\n            \"to\": {\n                \"id\": \"contact_3BQJWhUfKQFGKLQF42YM5T\",\n                \"object\": \"contact\",\n                \"addressLine1\": \"20-20 BAY ST\",\n                \"addressLine2\": null,\n                \"addressStatus\": \"verified\",\n                \"city\": \"TORONTO\",\n                \"country\": \"CANADA\",\n                \"countryCode\": \"CA\",\n                \"firstName\": \"Kevin\",\n                \"postalOrZip\": null,\n                \"provinceOrState\": null\n            },\n            \"uploadedPDF\": \"https://pg-prod-bucket-1.s3.amazonaws.com/test/pdf_nCZAkLeiS7x3vYZsSWkRc7?AWSAccessKeyId=AKIA5GFUILSULWTWCR64&Expires=1688658729&Signature=FdO0S8ozliUMQqKCooTXXHKC%2BX4%3D\",\n            \"url\": \"https://pg-prod-bucket-1.s3.amazonaws.com/test/self_mailer_5gQmDVDUMpQEYTuSxSf645?AWSAccessKeyId=AKIA5GFUILSULWTWCR64&Expires=1688658729&Signature=rRzAXFtbk1UvE7lUTcgSjo9zMW8%3D\",\n            \"createdAt\": \"2023-07-06T15:31:04.560Z\",\n            \"updatedAt\": \"2023-07-06T15:31:07.651Z\"\n        }\n    ]\n}"}],"_postman_id":"0ffcb49f-9c3b-4888-9f91-489cd121cb43"},{"name":"Cancel Self Mailers","id":"0eae046c-ae73-4d06-9732-478c38aaed87","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://api.postgrid.com/print-mail/v1/self_mailers/:id","description":"<p>Cancels a self mailer by the specified <code>id</code>. This should be a unique identifying string starting with <code>self_mailer_</code>.</p>\n","auth":{"type":"apikey","apikey":{"key":"<key>","value":"{{example-api-key}}"},"isInherited":true,"source":{"_postman_id":"97ad9e97-34db-46b2-b80a-26ff2da3f544","id":"97ad9e97-34db-46b2-b80a-26ff2da3f544","name":"Self Mailers","type":"folder"}},"urlObject":{"path":["v1","self_mailers",":id"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[{"id":"e4c3f55b-8c50-44fd-ab01-3fcb21b13e8e","type":"any","value":"self_mailer_wx97UGTC7H3UaSfhunWLjt","key":"id"}]}},"response":[{"id":"65fff279-c56b-4b34-b006-9e564d000ef2","name":"Cancel Self Mailer","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"https://api.postgrid.com/print-mail/v1/self_mailers/:id","host":["https://api.postgrid.com/print-mail"],"path":["v1","self_mailers",":id"],"variable":[{"key":"id","value":"self_mailer_5gQmDVDUMpQEYTuSxSf645"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"761"},{"key":"ETag","value":"W/\"2f9-oteqesBPx7ISmxVVdfIrkE9FxDI\""},{"key":"Date","value":"Wed, 23 Dec 2020 07:16:30 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"self_mailer_5gQmDVDUMpQEYTuSxSf645\",\n    \"object\": \"self_mailer\",\n    \"live\": false,\n    \"cancellation\": {\n        \"cancelledByUser\": \"user_jtkAM4WYuYc7L8Xmsh35Ed\",\n        \"reason\": \"user_initiated\"\n    },\n    \"from\": {\n        \"id\": \"contact_tydRUvrZsw39Nc6guEccid\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"145 MULBERRY ST\",\n        \"addressLine2\": null,\n        \"addressStatus\": \"verified\",\n        \"city\": \"NEW YORK\",\n        \"country\": \"UNITED STATES\",\n        \"countryCode\": \"US\",\n        \"firstName\": \"Ricky\",\n        \"postalOrZip\": null,\n        \"provinceOrState\": \"NY\"\n    },\n    \"mailingClass\": \"first_class\",\n    \"pageCount\": 2,\n    \"sendDate\": \"2023-07-06T15:31:04.543Z\",\n    \"size\": \"8.5x11_bifold\",\n    \"status\": \"cancelled\",\n    \"to\": {\n        \"id\": \"contact_3BQJWhUfKQFGKLQF42YM5T\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"20-20 BAY ST\",\n        \"addressLine2\": null,\n        \"addressStatus\": \"verified\",\n        \"city\": \"TORONTO\",\n        \"country\": \"CANADA\",\n        \"countryCode\": \"CA\",\n        \"firstName\": \"Kevin\",\n        \"postalOrZip\": null,\n        \"provinceOrState\": null\n    },\n    \"uploadedPDF\": \"https://pg-prod-bucket-1.s3.amazonaws.com/test/pdf_nCZAkLeiS7x3vYZsSWkRc7?AWSAccessKeyId=AKIA5GFUILSULWTWCR64&Expires=1688662253&Signature=6reGm5FHQBn8ih4i%2BB1zS%2Bg8%2B%2FM%3D\",\n    \"url\": \"https://pg-prod-bucket-1.s3.amazonaws.com/test/self_mailer_5gQmDVDUMpQEYTuSxSf645?AWSAccessKeyId=AKIA5GFUILSULWTWCR64&Expires=1688662253&Signature=8Un4TRW0kRipeU0SwHP3TfLVFok%3D\",\n    \"createdAt\": \"2023-07-06T15:31:04.560Z\",\n    \"updatedAt\": \"2023-07-06T16:35:53.946Z\"\n}"}],"_postman_id":"0eae046c-ae73-4d06-9732-478c38aaed87"},{"name":"Progress Test Self Mailer","id":"a1e1ffc0-f0b7-4fe0-a7c8-0588609a3a99","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"https://api.postgrid.com/print-mail/v1/self_mailers/:id/progressions","description":"<p>Progress the desired test self mailer by <code>id</code> to the next status. This can be used to test webhooks. The <code>id</code> should be a unique identifying string that starts with <code>self_mailer_</code>.</p>\n<p><em>Note: that this will fail with an</em> <code>invalid_progression_error</code> <em>if the status is one of</em> <code>completed</code> <em>or</em> <code>cancelled</code><em>.</em></p>\n","auth":{"type":"apikey","apikey":{"key":"<key>","value":"{{example-api-key}}"},"isInherited":true,"source":{"_postman_id":"97ad9e97-34db-46b2-b80a-26ff2da3f544","id":"97ad9e97-34db-46b2-b80a-26ff2da3f544","name":"Self Mailers","type":"folder"}},"urlObject":{"path":["v1","self_mailers",":id","progressions"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[{"id":"020f5ac0-c3ff-49d5-abe8-e6ec26f7fafc","description":{"content":"<p>The <code>id</code> of the postcard you want to progress.</p>\n<p><code>required</code></p>\n","type":"text/plain"},"type":"any","value":"self_mailer_wx97UGTC7H3UaSfhunWLjt","key":"id"}]}},"response":[{"id":"892cde92-b90f-40f0-8d6b-f8729f68f9fb","name":"Progress Test Self Mailer","originalRequest":{"method":"POST","header":[],"url":{"raw":"https://api.postgrid.com/print-mail/v1/self_mailers/:id/progressions","host":["https://api.postgrid.com/print-mail"],"path":["v1","self_mailers",":id","progressions"],"variable":[{"key":"id","value":"self_mailer_wx97UGTC7H3UaSfhunWLjt"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"561"},{"key":"ETag","value":"W/\"231-ik8bvEOyMA2WaAZBrz1/vFb2E8Q\""},{"key":"Date","value":"Mon, 03 May 2021 14:44:37 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"self_mailer_wx97UGTC7H3UaSfhunWLjt\",\n    \"object\": \"self_mailer\",\n    \"live\": false,\n    \"description\": \"My HTML self mailer\",\n    \"from\": {\n        \"id\": \"contact_iNaKXaRVN5FjWobxV1SXe7\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"490 OLD SANTA FE TRAIL\",\n        \"addressLine2\": \"\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"SANTA FE\",\n        \"country\": \"UNITED STATES\",\n        \"countryCode\": \"US\",\n        \"firstName\": \"Steve\",\n        \"lastName\": \"Moralez\",\n        \"postalOrZip\": \"87501\",\n        \"provinceOrState\": \"NM\"\n    },\n    \"insideHTML\": \"Hello, {{to.firstName}}\",\n    \"mailingClass\": \"first_class\",\n    \"outsideHTML\": \"Hello again, {{to.firstName}}\",\n    \"pageCount\": 2,\n    \"sendDate\": \"2023-06-28T18:20:56.430Z\",\n    \"size\": \"8.5x11_bifold\",\n    \"status\": \"printing\",\n    \"to\": {\n        \"id\": \"contact_iNaKXaRVN5FjWobxV1SXe7\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"490 OLD SANTA FE TRAIL\",\n        \"addressLine2\": \"\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"SANTA FE\",\n        \"country\": \"UNITED STATES\",\n        \"countryCode\": \"US\",\n        \"firstName\": \"Steve\",\n        \"lastName\": \"Moralez\",\n        \"postalOrZip\": \"87501\",\n        \"provinceOrState\": \"NM\"\n    },\n    \"url\": \"https://pg-prod-bucket-1.s3.amazonaws.com/test/self_mailer_wx97UGTC7H3UaSfhunWLjt?AWSAccessKeyId=AKIA5GFUILSULWTWCR64&Expires=1688662287&Signature=ne6IZ45j2gvnHFVtFbb44VYdqu0%3D\",\n    \"createdAt\": \"2023-06-28T18:20:56.435Z\",\n    \"updatedAt\": \"2023-07-06T16:36:27.559Z\"\n}"}],"_postman_id":"a1e1ffc0-f0b7-4fe0-a7c8-0588609a3a99"}],"id":"97ad9e97-34db-46b2-b80a-26ff2da3f544","description":"<p>Create and manage self mailers.</p>\n<h1 id=\"self-mailer-response\">Self Mailer Response</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>A unique ID prefixed with <code>self_mailer_</code></td>\n</tr>\n<tr>\n<td>object</td>\n<td>string</td>\n<td>Always <code>self_mailer</code></td>\n</tr>\n<tr>\n<td>status</td>\n<td>string</td>\n<td>See <a href=\"#tracking\">Tracking</a></td>\n</tr>\n<tr>\n<td>imbStatus</td>\n<td>string or null</td>\n<td>See <a href=\"#intelligent-mail-tracking\">Intelligent-Mail Tracking</a></td>\n</tr>\n<tr>\n<td>live</td>\n<td>boolean</td>\n<td><code>true</code> if this is a live mode self mailer else <code>false</code></td>\n</tr>\n<tr>\n<td>description</td>\n<td>string or null</td>\n<td>Optional line describing this self mailer</td>\n</tr>\n<tr>\n<td>sendDate</td>\n<td>Date</td>\n<td>Date when the self mailer will be printed</td>\n</tr>\n<tr>\n<td>size</td>\n<td>string</td>\n<td>One of <code>8.5x11_bifold</code>  <br />or <code>8.5x11_trifold</code></td>\n</tr>\n<tr>\n<td>to</td>\n<td><a href=\"#contact-response\">Contact</a></td>\n<td>The recipient of this self mailer</td>\n</tr>\n<tr>\n<td>from</td>\n<td><a href=\"#contact-response\">Contact</a></td>\n<td>The sender of this self mailer</td>\n</tr>\n<tr>\n<td>insideHTML</td>\n<td>string or null</td>\n<td>The raw html provided for the inside of this self mailer, if any</td>\n</tr>\n<tr>\n<td>outsideHTML</td>\n<td>string or null</td>\n<td>The raw html provided for the outside of this self mailer, if any</td>\n</tr>\n<tr>\n<td>insideTemplate</td>\n<td>string or null</td>\n<td>A <a href=\"#template\">Template</a> ID for the inside, if any</td>\n</tr>\n<tr>\n<td>outsideTemplate</td>\n<td>string or null</td>\n<td>A <a href=\"#template\">Template</a> ID for the outside, if any</td>\n</tr>\n<tr>\n<td>uploadedPDF</td>\n<td>string or null</td>\n<td>A signed URL to the PDF that was uploaded for this self mailer, if any</td>\n</tr>\n<tr>\n<td>url</td>\n<td>string or null</td>\n<td>Signed link to a preview of this self mailer order</td>\n</tr>\n<tr>\n<td>mailingClass</td>\n<td><code>first_class</code> or <code>standard_class</code></td>\n<td>Defaults to <code>first_class</code>. See <a href=\"#mailing-class\">mailing class</a>.</td>\n</tr>\n<tr>\n<td>mergeVariables</td>\n<td>object or null</td>\n<td>See <a href=\"#merge-variables\">Merge Variables</a></td>\n</tr>\n<tr>\n<td>metadata</td>\n<td>object or null</td>\n<td>See <a href=\"#metadata\">Metadata</a></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"key":"<key>","value":"{{example-api-key}}"},"isInherited":false},"_postman_id":"97ad9e97-34db-46b2-b80a-26ff2da3f544"},{"name":"Bank Accounts","item":[{"name":"Create Canadian Bank Account","id":"1ab9a92b-ec9f-409e-972b-d09d9749f286","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"bankName","value":"Example Bank","type":"text","description":"<p>The name of the bank.</p>\n<p><code>required</code></p>\n"},{"key":"accountNumber","value":"9876543211","type":"text","description":"<p>The account number, only used when creating the account.</p>\n<p><code>required</code></p>\n"},{"key":"transitNumber","value":"12345","type":"text","description":"<p>Transit number for cheques associated with this account.</p>\n<p><code>required</code></p>\n"},{"key":"routeNumber","value":"678","type":"text","description":"<p>Also referred to as the <code>Financial Institution Number</code>.</p>\n<p><code>required</code></p>\n"},{"key":"bankCountryCode","value":"CA","type":"text","description":"<p>The corresponding country code for the bank.  Must be either <code>CA</code> or <code>US</code>.</p>\n<p><code>required</code></p>\n"},{"key":"signatureImage","type":"file","description":"<p>An image containing a signature.</p>\n<p><code>required</code></p>\n","src":"DuMWFvZ-l/postgrid_logo.png"},{"key":"bankPrimaryLine","value":"100 Garden Street","type":"text","description":"<p>First line of the bank's address.</p>\n<p><code>optional</code></p>\n"},{"key":"bankSecondaryLine","value":"Gananoque, ON K7G 1H9","type":"text","description":"<p>Second line of the bank's address.</p>\n<p><code>optional</code></p>\n"},{"key":"description","value":"My canadian bank with a signature image","description":"<p>A description for the bank account</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"metadata[country]","value":"Canada","description":"<p>See <a href=\"#metadata\">metadata</a>.</p>\n<p><code>optional</code></p>\n","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/bank_accounts","description":"<p>Creates a Canadian bank account with all the information necessary to produce a cheque. Note that the body of this request is provided as <code>multipart/form-data</code>. This is because we must upload a signature image with the request.</p>\n","auth":{"type":"apikey","apikey":{"key":"<key>","value":"{{example-api-key}}"},"isInherited":true,"source":{"_postman_id":"4e91d899-fac2-44e4-84eb-7d0c9965fbda","id":"4e91d899-fac2-44e4-84eb-7d0c9965fbda","name":"Bank Accounts","type":"folder"}},"urlObject":{"path":["v1","bank_accounts"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[]}},"response":[{"id":"f2b959a6-9110-4d02-8b5c-51eaf4cc21a8","name":"Create Canadian Bank Account","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"bankName","value":"Example Bank","type":"text"},{"key":"bankPrimaryLine","value":"100 Garden Street","type":"text"},{"key":"bankSecondaryLine","value":"Gananoque, ON K7G 1H9","type":"text"},{"key":"bankCountryCode","value":"CA","type":"text"},{"key":"transitNumber","value":"12345","type":"text"},{"key":"routeNumber","value":"678","type":"text"},{"key":"accountNumber","value":"9876543211","type":"text"},{"key":"signatureImage","type":"file","src":"/home/apaar/Pictures/Example Signature.png"}]},"url":"https://api.postgrid.com/print-mail/v1/bank_accounts"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"354"},{"key":"ETag","value":"W/\"162-RKBVnz1s9SHy/uMeSe3ofttcx18\""},{"key":"Date","value":"Thu, 12 Nov 2020 09:28:50 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"bank_fVgozkqb1omutdnZWzpLer\",\n    \"object\": \"bank_account\",\n    \"live\": false,\n    \"accountNumberLast4\": \"3211\",\n    \"bankCountryCode\": \"CA\",\n    \"bankName\": \"Example Bank\",\n    \"bankPrimaryLine\": \"100 Garden Street\",\n    \"bankSecondaryLine\": \"Gananoque, ON K7G 1H9\",\n    \"description\": \"My canadian bank with a signature image\",\n    \"metadata\": {\n        \"country\": \"Canada\"\n    },\n    \"routeNumber\": \"678\",\n    \"signatureImage\": \"https://pg-prod-bucket-1.s3.amazonaws.com/test/sign_iRiipTpwrDro5n5Td9srGF?AWSAccessKeyId=AKIA5GFUILSULWTWCR64&Expires=1645037201&Signature=feBEyT93YIEw2ju0Y4eWwa7%2FsEQ%3D\",\n    \"transitNumber\": \"12345\",\n    \"createdAt\": \"2022-02-16T18:31:41.849Z\",\n    \"updatedAt\": \"2022-02-16T18:31:41.849Z\"\n}"}],"_postman_id":"1ab9a92b-ec9f-409e-972b-d09d9749f286"},{"name":"Create Canadian Bank Account With Designation Number","id":"ec6c8244-4bfd-42df-b3f2-b2b46d05b61d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"bankName","value":"Example Bank","type":"text","description":"<p>The name of the bank.</p>\n<p><code>required</code></p>\n"},{"key":"accountNumber","value":"9876543211","type":"text","description":"<p>The account number, only used when creating the account.</p>\n<p><code>required</code></p>\n"},{"key":"transitNumber","value":"12345","type":"text","description":"<p>Transit number for cheques associated with this account.</p>\n<p><code>required</code></p>\n"},{"key":"routeNumber","value":"678","type":"text","description":"<p>Also referred to as the <code>Financial Institution Number</code>.</p>\n<p><code>required</code></p>\n"},{"key":"caDesignationNumber","value":"9012","description":"<p>Designation number for cheques assosicated with this account.</p>\n","type":"text","uuid":"4fb46ebf-ee53-4618-9bf0-1a2d67fb027c"},{"key":"bankCountryCode","value":"CA","type":"text","description":"<p>The corresponding country code for the bank.  Must be either <code>CA</code> or <code>US</code>.</p>\n<p><code>required</code></p>\n"},{"key":"signatureImage","type":"file","description":"<p>An image containing a signature.</p>\n<p><code>required</code></p>\n","src":"DuMWFvZ-l/postgrid_logo.png"},{"key":"bankPrimaryLine","value":"100 Garden Street","type":"text","description":"<p>First line of the bank's address.</p>\n<p><code>optional</code></p>\n"},{"key":"bankSecondaryLine","value":"Gananoque, ON K7G 1H9","type":"text","description":"<p>Second line of the bank's address.</p>\n<p><code>optional</code></p>\n"},{"key":"description","value":"My canadian bank with a signature image","description":"<p>A description for the bank account</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"metadata[country]","value":"Canada","description":"<p>See <a href=\"#metadata\">metadata</a>.</p>\n<p><code>optional</code></p>\n","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/bank_accounts","description":"<p>Creates a Canadian bank account with all the information necessary to produce a cheque. Note that the body of this request is provided as <code>multipart/form-data</code>. This is because we must upload a signature image with the request.</p>\n","auth":{"type":"apikey","apikey":{"key":"<key>","value":"{{example-api-key}}"},"isInherited":true,"source":{"_postman_id":"4e91d899-fac2-44e4-84eb-7d0c9965fbda","id":"4e91d899-fac2-44e4-84eb-7d0c9965fbda","name":"Bank Accounts","type":"folder"}},"urlObject":{"path":["v1","bank_accounts"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[]}},"response":[{"id":"588886e0-65ed-4b89-b1a7-b68f34b3be83","name":"Create Canadian Bank Account With Designation Number","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"bankName","value":"Example Bank","type":"text"},{"key":"bankPrimaryLine","value":"100 Garden Street","type":"text"},{"key":"bankSecondaryLine","value":"Gananoque, ON K7G 1H9","type":"text"},{"key":"bankCountryCode","value":"CA","type":"text"},{"key":"transitNumber","value":"12345","type":"text"},{"key":"caDesignationNumber","value":"9012","type":"text","uuid":"d86b2161-7764-4f11-a6ea-d16e7887a3fc"},{"key":"routeNumber","value":"678","type":"text"},{"key":"accountNumber","value":"9876543211","type":"text"},{"key":"signatureImage","type":"file","src":"/home/apaar/Pictures/Example Signature.png"}]},"url":"https://api.postgrid.com/print-mail/v1/bank_accounts"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"354"},{"key":"ETag","value":"W/\"162-RKBVnz1s9SHy/uMeSe3ofttcx18\""},{"key":"Date","value":"Thu, 12 Nov 2020 09:28:50 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"bank_fVgozkqb1omutdnZWzpLer\",\n    \"object\": \"bank_account\",\n    \"live\": false,\n    \"accountNumberLast4\": \"3211\",\n    \"bankCountryCode\": \"CA\",\n    \"bankName\": \"Example Bank\",\n    \"bankPrimaryLine\": \"100 Garden Street\",\n    \"bankSecondaryLine\": \"Gananoque, ON K7G 1H9\",\n    \"caDesignationNumber\": \"9012\",\n    \"description\": \"My canadian bank with a signature image\",\n    \"metadata\": {\n        \"country\": \"Canada\"\n    },\n    \"routeNumber\": \"678\",\n    \"signatureImage\": \"https://pg-prod-bucket-1.s3.amazonaws.com/test/sign_iRiipTpwrDro5n5Td9srGF?AWSAccessKeyId=AKIA5GFUILSULWTWCR64&Expires=1645037201&Signature=feBEyT93YIEw2ju0Y4eWwa7%2FsEQ%3D\",\n    \"transitNumber\": \"12345\",\n    \"createdAt\": \"2022-02-16T18:31:41.849Z\",\n    \"updatedAt\": \"2022-02-16T18:31:41.849Z\"\n}"}],"_postman_id":"ec6c8244-4bfd-42df-b3f2-b2b46d05b61d"},{"name":"Create Canadian Bank Account With Signature Image URL","id":"18135574-2dc9-4585-a62c-3f5b88d0f085","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"bankName","value":"Example Bank","type":"text","description":"<p>The name of the bank.</p>\n<p><code>required</code></p>\n"},{"key":"accountNumber","value":"9876543211","type":"text","description":"<p>The account number, only used when creating the account.</p>\n<p><code>required</code></p>\n"},{"key":"transitNumber","value":"12345","type":"text","description":"<p>Transit number for cheques associated with this account.</p>\n<p><code>required</code></p>\n"},{"key":"routeNumber","value":"678","type":"text","description":"<p>Also referred to as the <code>Financial Institution Number</code>.</p>\n<p><code>required</code></p>\n"},{"key":"bankCountryCode","value":"CA","type":"text","description":"<p>The corresponding country code for the bank.  Must be either <code>CA</code> or <code>US</code>.</p>\n<p><code>required</code></p>\n"},{"key":"signatureImage","type":"text","description":"<p>A publically accessible URL or Base64 encoded data URL of the signature image.</p>\n<p><code>required</code></p>\n","value":"https://pg-prod-bucket-1.s3.amazonaws.com/assets/example-signature.png"},{"key":"bankPrimaryLine","value":"100 Garden Street","type":"text","description":"<p>First line of the bank's address.</p>\n<p><code>optional</code></p>\n"},{"key":"bankSecondaryLine","value":"Gananoque, ON K7G 1H9","type":"text","description":"<p>Second line of the bank's address.</p>\n<p><code>optional</code></p>\n"},{"key":"description","value":"My canadian bank with a signature image","description":"<p>A description for the bank account</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"metadata[country]","value":"Canada","description":"<p>See <a href=\"#metadata\">metadata</a>.</p>\n<p><code>optional</code></p>\n","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/bank_accounts","description":"<p>Creates a Canadian bank account with all the information necessary to produce a cheque. Note that the body of this request is provided as <code>multipart/form-data</code>. This is because we must upload a signature image with the request.</p>\n","auth":{"type":"apikey","apikey":{"key":"<key>","value":"{{example-api-key}}"},"isInherited":true,"source":{"_postman_id":"4e91d899-fac2-44e4-84eb-7d0c9965fbda","id":"4e91d899-fac2-44e4-84eb-7d0c9965fbda","name":"Bank Accounts","type":"folder"}},"urlObject":{"path":["v1","bank_accounts"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[]}},"response":[{"id":"145b48c7-ee68-4de4-97ea-be47af569842","name":"Create Canadian Bank Account","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"bankName","value":"Example Bank","type":"text"},{"key":"bankPrimaryLine","value":"100 Garden Street","type":"text"},{"key":"bankSecondaryLine","value":"Gananoque, ON K7G 1H9","type":"text"},{"key":"bankCountryCode","value":"CA","type":"text"},{"key":"transitNumber","value":"12345","type":"text"},{"key":"routeNumber","value":"678","type":"text"},{"key":"accountNumber","value":"9876543211","type":"text"},{"key":"signatureImage","type":"file","src":"/home/apaar/Pictures/Example Signature.png"}]},"url":"https://api.postgrid.com/print-mail/v1/bank_accounts"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"354"},{"key":"ETag","value":"W/\"162-RKBVnz1s9SHy/uMeSe3ofttcx18\""},{"key":"Date","value":"Thu, 12 Nov 2020 09:28:50 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"bank_fVgozkqb1omutdnZWzpLer\",\n    \"object\": \"bank_account\",\n    \"live\": false,\n    \"accountNumberLast4\": \"3211\",\n    \"bankCountryCode\": \"CA\",\n    \"bankName\": \"Example Bank\",\n    \"bankPrimaryLine\": \"100 Garden Street\",\n    \"bankSecondaryLine\": \"Gananoque, ON K7G 1H9\",\n    \"description\": \"My canadian bank with a signature image\",\n    \"metadata\": {\n        \"country\": \"Canada\"\n    },\n    \"routeNumber\": \"678\",\n    \"signatureImage\": \"https://pg-prod-bucket-1.s3.amazonaws.com/test/sign_iRiipTpwrDro5n5Td9srGF?AWSAccessKeyId=AKIA5GFUILSULWTWCR64&Expires=1645037201&Signature=feBEyT93YIEw2ju0Y4eWwa7%2FsEQ%3D\",\n    \"transitNumber\": \"12345\",\n    \"createdAt\": \"2022-02-16T18:31:41.849Z\",\n    \"updatedAt\": \"2022-02-16T18:31:41.849Z\"\n}"}],"_postman_id":"18135574-2dc9-4585-a62c-3f5b88d0f085"},{"name":"Create Canadian Bank Account With Signature Text","id":"8ce40cf7-4cae-4134-8f1d-cc268af10396","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"bankName","value":"Example Bank","type":"text","description":"<p>The name of the bank.</p>\n<p><code>required</code></p>\n"},{"key":"accountNumber","value":"9876543211","type":"text","description":"<p>The account number, only used when creating the account.</p>\n<p><code>required</code></p>\n"},{"key":"transitNumber","value":"12345","type":"text","description":"<p>Transit number for cheques associated with this account.</p>\n<p><code>required</code></p>\n"},{"key":"routeNumber","value":"678","type":"text","description":"<p>Also referred to as the <code>Financial Institution Number</code>.</p>\n<p><code>required</code></p>\n"},{"key":"bankCountryCode","value":"CA","type":"text","description":"<p>The corresponding country code for the bank.  Must be either <code>CA</code> or <code>US</code>.</p>\n<p><code>required</code></p>\n"},{"key":"signatureText","type":"text","description":"<p>A string which will be used to create a signature for documents.</p>\n<p><code>required</code></p>\n","value":"Kevin Smith"},{"key":"bankPrimaryLine","value":"100 Garden Street","type":"text","description":"<p>First line of the bank's address.</p>\n<p><code>optional</code></p>\n"},{"key":"bankSecondaryLine","value":"Gananoque, ON K7G 1H9","type":"text","description":"<p>Second line of the bank's address.</p>\n<p><code>optional</code></p>\n"},{"key":"description","value":"My canadian bank with a signature text","description":"<p>A description for the bank account</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"metadata[country]","value":"Canada","description":"<p>See <a href=\"#metadata\">metadata</a>.</p>\n<p><code>optional</code></p>\n","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/bank_accounts","description":"<p>Creates a Canadian bank account with all the information necessary to produce a cheque. This request supplies a <code>signatureText</code> value which is used to create a default signature.</p>\n<p><strong>Signature Text Note</strong>: the reasonable character limit to enter for the signatureText is 6 capital letters OR 20 lowercase letters, anything exceeding that will likely overflow onto a new line. If you need to use a large signature, it would be best to insert an image instead (<a href=\"https://go.postman.co/workspace/edcb4596-ff81-46fe-8e83-de661418d65d/documentation/17206988-30d9da4f-15c3-4b6a-aae1-d3a329dc6b13?entity=request-18135574-2dc9-4585-a62c-3f5b88d0f085\">See this endpoint</a>)</p>\n","auth":{"type":"apikey","apikey":{"key":"<key>","value":"{{example-api-key}}"},"isInherited":true,"source":{"_postman_id":"4e91d899-fac2-44e4-84eb-7d0c9965fbda","id":"4e91d899-fac2-44e4-84eb-7d0c9965fbda","name":"Bank Accounts","type":"folder"}},"urlObject":{"path":["v1","bank_accounts"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[]}},"response":[{"id":"953a3303-fb8c-40da-b3b4-835a1c5f44d4","name":"Create Canadian Bank Account","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"bankName","value":"Example Bank","type":"text"},{"key":"bankPrimaryLine","value":"100 Garden Street","type":"text"},{"key":"bankSecondaryLine","value":"Gananoque, ON K7G 1H9","type":"text"},{"key":"bankCountryCode","value":"CA","type":"text"},{"key":"transitNumber","value":"12345","type":"text"},{"key":"routeNumber","value":"678","type":"text"},{"key":"accountNumber","value":"9876543211","type":"text"},{"key":"signatureImage","type":"file","src":"/home/apaar/Pictures/Example Signature.png"}]},"url":"https://api.postgrid.com/print-mail/v1/bank_accounts"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"354"},{"key":"ETag","value":"W/\"162-RKBVnz1s9SHy/uMeSe3ofttcx18\""},{"key":"Date","value":"Thu, 12 Nov 2020 09:28:50 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"bank_vagYswWcKKAsZzqsokEQcu\",\n    \"object\": \"bank_account\",\n    \"live\": false,\n    \"accountNumberLast4\": \"3211\",\n    \"bankCountryCode\": \"CA\",\n    \"bankName\": \"Example Bank\",\n    \"bankPrimaryLine\": \"100 Garden Street\",\n    \"bankSecondaryLine\": \"Gananoque, ON K7G 1H9\",\n    \"description\": \"My canadian bank with a signature text\",\n    \"metadata\": {\n        \"country\": \"Canada\"\n    },\n    \"routeNumber\": \"678\",\n    \"signatureText\": \"Kevin Smith\",\n    \"transitNumber\": \"12345\",\n    \"createdAt\": \"2022-02-16T18:31:14.080Z\",\n    \"updatedAt\": \"2022-02-16T18:31:14.080Z\"\n}"}],"_postman_id":"8ce40cf7-4cae-4134-8f1d-cc268af10396"},{"name":"Create US Bank Account","id":"543b02e9-e92f-4644-905e-556fa60f261a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"bankName","value":"Example Bank","type":"text","description":"<p>The name of the bank.</p>\n<p><code>required</code></p>\n"},{"key":"accountNumber","value":"9876543211","type":"text","description":"<p>The account number, only used when creating the account.</p>\n<p><code>required</code></p>\n"},{"key":"routingNumber","value":"123456789","description":"<p>The bank account's routing number.</p>\n<p><code>required</code></p>\n","type":"text"},{"key":"bankCountryCode","value":"US","type":"text","description":"<p>The corresponding country code for the bank.  Must be either <code>CA</code> or <code>US</code>.</p>\n<p><code>required</code></p>\n"},{"key":"signatureImage","type":"file","description":"<p>An image containing a signature.</p>\n<p><code>required</code></p>\n","src":"DuMWFvZ-l/postgrid_logo.png"},{"key":"bankPrimaryLine","value":"27 Park Ave","type":"text","description":"<p>First line of the bank's address.</p>\n<p><code>optional</code></p>\n"},{"key":"bankSecondaryLine","value":"New York, NY 10013","type":"text","description":"<p>Second line of the bank's address.</p>\n<p><code>optional</code></p>\n"},{"key":"description","value":"My american bank with a signature image","description":"<p>A description for the bank account</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"metadata[owner_id]","value":"20313","description":"<p>See <a href=\"#metadata\">metadata</a>.</p>\n<p><code>optional</code></p>\n","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/bank_accounts","description":"<p>Creates an American bank account with all the information necessary to produce a cheque. Note that the body of this request is provided as <code>multipart/form-data</code>. This is because we must upload a signature image with the request.</p>\n","auth":{"type":"apikey","apikey":{"key":"<key>","value":"{{example-api-key}}"},"isInherited":true,"source":{"_postman_id":"4e91d899-fac2-44e4-84eb-7d0c9965fbda","id":"4e91d899-fac2-44e4-84eb-7d0c9965fbda","name":"Bank Accounts","type":"folder"}},"urlObject":{"path":["v1","bank_accounts"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[]}},"response":[{"id":"78d2e656-bc95-4e5f-9b69-e46a08694bde","name":"Create US Bank Account","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"bankName","value":"Example Bank","type":"text"},{"key":"bankPrimaryLine","value":"100 Garden Street","type":"text"},{"key":"bankSecondaryLine","value":"Gananoque, ON K7G 1H9","type":"text"},{"key":"bankCountryCode","value":"CA","type":"text"},{"key":"transitNumber","value":"12345","type":"text"},{"key":"routeNumber","value":"678","type":"text"},{"key":"accountNumber","value":"9876543211","type":"text"},{"key":"signatureImage","type":"file","src":"/home/apaar/Pictures/Example Signature.png"}]},"url":"https://api.postgrid.com/print-mail/v1/bank_accounts"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"354"},{"key":"ETag","value":"W/\"162-RKBVnz1s9SHy/uMeSe3ofttcx18\""},{"key":"Date","value":"Thu, 12 Nov 2020 09:28:50 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"bank_swqQgSx2cMeZvmNjPCG4z6\",\n    \"object\": \"bank_account\",\n    \"live\": false,\n    \"accountNumberLast4\": \"3211\",\n    \"bankCountryCode\": \"US\",\n    \"bankName\": \"Example Bank\",\n    \"bankPrimaryLine\": \"27 Park Ave\",\n    \"bankSecondaryLine\": \"New York, NY 10013\",\n    \"description\": \"My american bank with a signature image\",\n    \"metadata\": {\n        \"country\": \"America\"\n    },\n    \"routingNumber\": \"123456789\",\n    \"signatureImage\": \"https://pg-prod-bucket-1.s3.amazonaws.com/test/sign_oBn66iHag6MUnEat2R3NAv?AWSAccessKeyId=AKIA5GFUILSULWTWCR64&Expires=1645037268&Signature=ywtUzrYbtu2eL%2FrsbryUpVavjKc%3D\",\n    \"createdAt\": \"2022-02-16T18:32:48.675Z\",\n    \"updatedAt\": \"2022-02-16T18:32:48.675Z\"\n}"}],"_postman_id":"543b02e9-e92f-4644-905e-556fa60f261a"},{"name":"Create US Bank Account With Signature Image URL","id":"f9657079-5bb8-43a4-adcc-d45cdbd66ce9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"bankName","value":"Example Bank","type":"text","description":"<p>The name of the bank.</p>\n<p><code>required</code></p>\n"},{"key":"accountNumber","value":"9876543211","type":"text","description":"<p>The account number, only used when creating the account.</p>\n<p><code>required</code></p>\n"},{"key":"routingNumber","value":"123456789","description":"<p>The bank account's routing number.</p>\n<p><code>required</code></p>\n","type":"text"},{"key":"bankCountryCode","value":"US","type":"text","description":"<p>The corresponding country code for the bank.  Must be either <code>CA</code> or <code>US</code>.</p>\n<p><code>required</code></p>\n"},{"key":"signatureImage","type":"text","description":"<p>A publically accessible URL or Base64 encoded data URL of the signature image.</p>\n<p><code>required</code></p>\n","value":"https://pg-prod-bucket-1.s3.amazonaws.com/assets/example-signature.png"},{"key":"bankPrimaryLine","value":"27 Park Ave","type":"text","description":"<p>First line of the bank's address.</p>\n<p><code>optional</code></p>\n"},{"key":"bankSecondaryLine","value":"New York, NY 10013","type":"text","description":"<p>Second line of the bank's address.</p>\n<p><code>optional</code></p>\n"},{"key":"description","value":"My american bank with a signature image","description":"<p>A description for the bank account</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"metadata[owner_id]","value":"20313","description":"<p>See <a href=\"#metadata\">metadata</a>.</p>\n<p><code>optional</code></p>\n","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/bank_accounts","description":"<p>Creates an American bank account with all the information necessary to produce a cheque. Note that the body of this request is provided as <code>multipart/form-data</code>. This is because we must upload a signature image with the request.</p>\n","auth":{"type":"apikey","apikey":{"key":"<key>","value":"{{example-api-key}}"},"isInherited":true,"source":{"_postman_id":"4e91d899-fac2-44e4-84eb-7d0c9965fbda","id":"4e91d899-fac2-44e4-84eb-7d0c9965fbda","name":"Bank Accounts","type":"folder"}},"urlObject":{"path":["v1","bank_accounts"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[]}},"response":[{"id":"ffa4b78e-adc4-40a2-93a2-37aae43faae7","name":"Create US Bank Account","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"bankName","value":"Example Bank","type":"text"},{"key":"bankPrimaryLine","value":"100 Garden Street","type":"text"},{"key":"bankSecondaryLine","value":"Gananoque, ON K7G 1H9","type":"text"},{"key":"bankCountryCode","value":"CA","type":"text"},{"key":"transitNumber","value":"12345","type":"text"},{"key":"routeNumber","value":"678","type":"text"},{"key":"accountNumber","value":"9876543211","type":"text"},{"key":"signatureImage","type":"file","src":"/home/apaar/Pictures/Example Signature.png"}]},"url":"https://api.postgrid.com/print-mail/v1/bank_accounts"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"354"},{"key":"ETag","value":"W/\"162-RKBVnz1s9SHy/uMeSe3ofttcx18\""},{"key":"Date","value":"Thu, 12 Nov 2020 09:28:50 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"bank_swqQgSx2cMeZvmNjPCG4z6\",\n    \"object\": \"bank_account\",\n    \"live\": false,\n    \"accountNumberLast4\": \"3211\",\n    \"bankCountryCode\": \"US\",\n    \"bankName\": \"Example Bank\",\n    \"bankPrimaryLine\": \"27 Park Ave\",\n    \"bankSecondaryLine\": \"New York, NY 10013\",\n    \"description\": \"My american bank with a signature image\",\n    \"metadata\": {\n        \"country\": \"America\"\n    },\n    \"routingNumber\": \"123456789\",\n    \"signatureImage\": \"https://pg-prod-bucket-1.s3.amazonaws.com/test/sign_oBn66iHag6MUnEat2R3NAv?AWSAccessKeyId=AKIA5GFUILSULWTWCR64&Expires=1645037268&Signature=ywtUzrYbtu2eL%2FrsbryUpVavjKc%3D\",\n    \"createdAt\": \"2022-02-16T18:32:48.675Z\",\n    \"updatedAt\": \"2022-02-16T18:32:48.675Z\"\n}"}],"_postman_id":"f9657079-5bb8-43a4-adcc-d45cdbd66ce9"},{"name":"Create US Bank Account With Signature Text","id":"f900da59-3f15-4c7c-b663-758b45a25569","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"bankName","value":"Example Bank","type":"text","description":"<p>The name of the bank.</p>\n<p><code>required</code></p>\n"},{"key":"accountNumber","value":"9876543211","type":"text","description":"<p>The account number, only used when creating the account.</p>\n<p><code>required</code></p>\n"},{"key":"routingNumber","value":"123456789","type":"text","description":"<p>The bank account's routing number.</p>\n<p><code>required</code></p>\n"},{"key":"bankCountryCode","value":"US","type":"text","description":"<p>The corresponding country code for the bank.  Must be either <code>CA</code> or <code>US</code>.</p>\n<p><code>required</code></p>\n"},{"key":"signatureText","type":"text","description":"<p>A string which will be used to create a signature for documents.</p>\n<p><code>required</code></p>\n","value":"Kevin Smith"},{"key":"bankPrimaryLine","value":"27 Park Ave","type":"text","description":"<p>First line of the bank's address.</p>\n<p><code>optional</code></p>\n"},{"key":"bankSecondaryLine","value":"New York, NY 10013","type":"text","description":"<p>Second line of the bank's address.</p>\n<p><code>optional</code></p>\n"},{"key":"description","value":"My american bank with a signature image","description":"<p>A description for the bank account</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"metadata[owner_id]","value":"20313","description":"<p>See <a href=\"#metadata\">metadata</a>.</p>\n<p><code>optional</code></p>\n","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/bank_accounts","description":"<p>Creates an American bank account with all the information necessary to produce a cheque. This request supplies a <code>signatureText</code> value which is used to create a default signature.</p>\n<p><strong>Signature Text Note</strong>: the reasonable character limit to enter for the signatureText is 6 capital letters OR 20 lowercase letters, anything exceeding that will likely overflow onto a new line. If you need to use a large signature, it would be best to insert an image instead (<a href=\"https://go.postman.co/workspace/edcb4596-ff81-46fe-8e83-de661418d65d/documentation/17206988-30d9da4f-15c3-4b6a-aae1-d3a329dc6b13?entity=request-18135574-2dc9-4585-a62c-3f5b88d0f085\">See this endpoint</a>)</p>\n","auth":{"type":"apikey","apikey":{"key":"<key>","value":"{{example-api-key}}"},"isInherited":true,"source":{"_postman_id":"4e91d899-fac2-44e4-84eb-7d0c9965fbda","id":"4e91d899-fac2-44e4-84eb-7d0c9965fbda","name":"Bank Accounts","type":"folder"}},"urlObject":{"path":["v1","bank_accounts"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[]}},"response":[{"id":"f3a41410-c332-42af-8f69-8d001f0561ba","name":"Create US Bank Account","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"bankName","value":"Example Bank","type":"text"},{"key":"bankPrimaryLine","value":"100 Garden Street","type":"text"},{"key":"bankSecondaryLine","value":"Gananoque, ON K7G 1H9","type":"text"},{"key":"bankCountryCode","value":"CA","type":"text"},{"key":"transitNumber","value":"12345","type":"text"},{"key":"routeNumber","value":"678","type":"text"},{"key":"accountNumber","value":"9876543211","type":"text"},{"key":"signatureImage","type":"file","src":"/home/apaar/Pictures/Example Signature.png"}]},"url":"https://api.postgrid.com/print-mail/v1/bank_accounts"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"354"},{"key":"ETag","value":"W/\"162-RKBVnz1s9SHy/uMeSe3ofttcx18\""},{"key":"Date","value":"Thu, 12 Nov 2020 09:28:50 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"bank_wUYGmLKWAAT5PYzoi23Z64\",\n    \"object\": \"bank_account\",\n    \"live\": false,\n    \"accountNumberLast4\": \"3211\",\n    \"bankCountryCode\": \"US\",\n    \"bankName\": \"Example Bank\",\n    \"bankPrimaryLine\": \"27 Park Ave\",\n    \"bankSecondaryLine\": \"New York, NY 10013\",\n    \"routingNumber\": \"123456789\",\n    \"createdAt\": \"2020-11-12T09:28:50.108Z\",\n    \"updatedAt\": \"2020-11-12T09:28:50.108Z\"\n}"}],"_postman_id":"f900da59-3f15-4c7c-b663-758b45a25569"},{"name":"Get Bank Account","id":"3c50831c-c448-4d8f-b8e6-54647a3c2de2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.postgrid.com/print-mail/v1/bank_accounts/:id","description":"<p>Retrieve a previously created bank account by <code>id</code>. This should be a unique identifying string starting with <code>bank_</code>.</p>\n<p><em>Note: that we do not return the complete account number or the signature image for security reasons.</em></p>\n","auth":{"type":"apikey","apikey":{"key":"<key>","value":"{{example-api-key}}"},"isInherited":true,"source":{"_postman_id":"4e91d899-fac2-44e4-84eb-7d0c9965fbda","id":"4e91d899-fac2-44e4-84eb-7d0c9965fbda","name":"Bank Accounts","type":"folder"}},"urlObject":{"path":["v1","bank_accounts",":id"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[{"id":"97ee7662-27d6-4548-b93e-b63b7e9205c8","type":"any","value":"bank_mycTFJcd2d5SHifVHidiwc","key":"id"}]}},"response":[{"id":"22ccd57e-b471-4cf5-8d81-a7767e13bf98","name":"Get Bank Account","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.postgrid.com/print-mail/v1/bank_accounts/:id","host":["https://api.postgrid.com/print-mail"],"path":["v1","bank_accounts",":id"],"variable":[{"key":"id","value":"bank_mycTFJcd2d5SHifVHidiwc"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"354"},{"key":"ETag","value":"W/\"162-gjhNlVjjNaxuEkZYKHMVh93oqk0\""},{"key":"Date","value":"Thu, 12 Nov 2020 08:47:28 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"bank_mycTFJcd2d5SHifVHidiwc\",\n    \"object\": \"bank_account\",\n    \"live\": false,\n    \"accountNumberLast4\": \"3211\",\n    \"bankCountryCode\": \"CA\",\n    \"bankName\": \"Example Bank\",\n    \"bankPrimaryLine\": \"100 Garden Street\",\n    \"bankSecondaryLine\": \"Gananoque, ON K7G 1H9\",\n    \"routeNumber\": \"678\",\n    \"transitNumber\": \"12345\",\n    \"createdAt\": \"2020-11-12T08:47:01.880Z\",\n    \"updatedAt\": \"2020-11-12T08:47:01.880Z\"\n}"}],"_postman_id":"3c50831c-c448-4d8f-b8e6-54647a3c2de2"},{"name":"List Bank Accounts","id":"15f7f764-1c7d-48eb-b96e-ce74317d1464","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.postgrid.com/print-mail/v1/bank_accounts?skip=2&limit=5&search=Canada","description":"<p>Retrieves all bank accounts and their information for the current user.</p>\n<p><em>Note: that we do not return the complete account number or the signature image for security reasons.</em></p>\n","auth":{"type":"apikey","apikey":{"key":"<key>","value":"{{example-api-key}}"},"isInherited":true,"source":{"_postman_id":"4e91d899-fac2-44e4-84eb-7d0c9965fbda","id":"4e91d899-fac2-44e4-84eb-7d0c9965fbda","name":"Bank Accounts","type":"folder"}},"urlObject":{"path":["v1","bank_accounts"],"host":["https://api.postgrid.com/print-mail"],"query":[{"description":{"content":"<p>Used for traversing pages. See <a href=\"#lists-and-pagination\">lists and pagination</a>.</p>\n<p><code>optional</code></p>\n","type":"text/plain"},"key":"skip","value":"2"},{"description":{"content":"<p>Limits the number of resources returned. See <a href=\"#lists-and-pagination\">lists and pagination</a>.</p>\n<p><code>optional</code></p>\n","type":"text/plain"},"key":"limit","value":"5"},{"description":{"content":"<p>Searches the data for the given input. See <a href=\"#search\">search</a>.</p>\n<p><code>optional</code></p>\n","type":"text/plain"},"key":"search","value":"Canada"}],"variable":[]}},"response":[{"id":"a5405e85-9ec9-4b28-a314-52e04cf689ca","name":"List Bank Accounts","originalRequest":{"method":"GET","header":[],"url":"https://api.postgrid.com/print-mail/v1/bank_accounts"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"416"},{"key":"ETag","value":"W/\"1a0-Cqmpjkp7QfWyUEmwWWFPD42zp9o\""},{"key":"Date","value":"Thu, 12 Nov 2020 08:47:42 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"object\": \"list\",\n    \"limit\": 10,\n    \"skip\": 0,\n    \"totalCount\": 1,\n    \"data\": [\n        {\n            \"id\": \"bank_mycTFJcd2d5SHifVHidiwc\",\n            \"object\": \"bank_account\",\n            \"live\": false,\n            \"accountNumberLast4\": \"3211\",\n            \"bankCountryCode\": \"CA\",\n            \"bankName\": \"Example Bank\",\n            \"bankPrimaryLine\": \"100 Garden Street\",\n            \"bankSecondaryLine\": \"Gananoque, ON K7G 1H9\",\n            \"routeNumber\": \"678\",\n            \"transitNumber\": \"12345\",\n            \"createdAt\": \"2020-11-12T08:47:01.880Z\",\n            \"updatedAt\": \"2020-11-12T08:47:01.880Z\"\n        }\n    ]\n}"}],"_postman_id":"15f7f764-1c7d-48eb-b96e-ce74317d1464"},{"name":"Delete Bank Account","id":"7b5587eb-d556-459d-a826-cf8d9dcbbba3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://api.postgrid.com/print-mail/v1/bank_accounts/:id","description":"<p>Removes a bank account by <code>id</code>. This should be a unique identifying string starting with <code>bank_</code>.</p>\n","auth":{"type":"apikey","apikey":{"key":"<key>","value":"{{example-api-key}}"},"isInherited":true,"source":{"_postman_id":"4e91d899-fac2-44e4-84eb-7d0c9965fbda","id":"4e91d899-fac2-44e4-84eb-7d0c9965fbda","name":"Bank Accounts","type":"folder"}},"urlObject":{"path":["v1","bank_accounts",":id"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[{"id":"f41f7a87-90df-4ffe-9718-0ddd08618f18","type":"any","value":"bank_mycTFJcd2d5SHifVHidiwc","key":"id"}]}},"response":[{"id":"26529b27-dd7b-469e-b6ec-6aa00bef4307","name":"Delete Bank Account","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"https://api.postgrid.com/print-mail/v1/bank_accounts/:id","host":["https://api.postgrid.com/print-mail"],"path":["v1","bank_accounts",":id"],"variable":[{"key":"id","value":"bank_mycTFJcd2d5SHifVHidiwc"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"75"},{"key":"ETag","value":"W/\"4b-i8H3C63HmBTA54yiiPrtkJ6fbg4\""},{"key":"Date","value":"Thu, 12 Nov 2020 08:47:57 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"bank_mycTFJcd2d5SHifVHidiwc\",\n    \"object\": \"bank_account\",\n    \"deleted\": true\n}"}],"_postman_id":"7b5587eb-d556-459d-a826-cf8d9dcbbba3"}],"id":"4e91d899-fac2-44e4-84eb-7d0c9965fbda","description":"<p>Manage bank accounts that will be used for mailing cheques.</p>\n<h1 id=\"bank-account-response\">Bank Account Response</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>A unique ID prefixed with <code>bank_</code></td>\n</tr>\n<tr>\n<td>object</td>\n<td>string</td>\n<td>Always <code>bank_account</code></td>\n</tr>\n<tr>\n<td>live</td>\n<td>boolean</td>\n<td><code>true</code> if this is a live mode bank account else <code>false</code></td>\n</tr>\n<tr>\n<td>description</td>\n<td>string or null</td>\n<td>Optional line describing this bank account</td>\n</tr>\n<tr>\n<td>bankName</td>\n<td>string</td>\n<td>The name of the bank which provides this account</td>\n</tr>\n<tr>\n<td>bankPrimaryLine</td>\n<td>string or null</td>\n<td>First line of the bank's address, e.g. <code>100 Garden Street</code></td>\n</tr>\n<tr>\n<td>bankSecondaryLine</td>\n<td>string or null</td>\n<td>Second line of the bank's address, e.g. <code>Toronto, ON M5V 4G9</code></td>\n</tr>\n<tr>\n<td>bankCountryCode</td>\n<td>string</td>\n<td>Either <code>CA</code> or <code>US</code></td>\n</tr>\n<tr>\n<td>transitNumber</td>\n<td>string</td>\n<td>Transit number for cheques associated with this account (<code>CA</code> only)</td>\n</tr>\n<tr>\n<td>routeNumber</td>\n<td>string</td>\n<td>Also referred to as the <code>Financial Institution Number</code> (<code>CA</code> only)</td>\n</tr>\n<tr>\n<td>caDesignationNumber</td>\n<td>string</td>\n<td>Optional designation number for cheques associated with this account (<code>CA</code> only)</td>\n</tr>\n<tr>\n<td>routingNumber</td>\n<td>string</td>\n<td>The bank account routing number (<code>US</code> only)</td>\n</tr>\n<tr>\n<td>accountNumber</td>\n<td>string</td>\n<td>The account number, only used when creating the account</td>\n</tr>\n<tr>\n<td>accountNumberLast4</td>\n<td>string</td>\n<td>Returned in GET requests in place of <code>accountNumber</code></td>\n</tr>\n<tr>\n<td>accountNumberAndIDSHA256</td>\n<td>string</td>\n<td>A base64-encoded SHA256 hash of accountNumber + bank account ID</td>\n</tr>\n<tr>\n<td>signatureImage</td>\n<td>File or null</td>\n<td>To be supplied when account is created (instead of <code>signatureText</code>)</td>\n</tr>\n<tr>\n<td>signatureText</td>\n<td>string or null</td>\n<td>To be supplied when account is created (instead of <code>signatureImage</code>)</td>\n</tr>\n<tr>\n<td>metadata</td>\n<td>object or null</td>\n<td>See <a href=\"#metadata\">Metadata</a></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"key":"<key>","value":"{{example-api-key}}"},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"bacd54a7-4b40-4549-ba61-8201c6820cc7","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"ee0af661-221f-4fa0-9fa2-2e0a7b21f2eb","type":"text/javascript","exec":[""]}}],"_postman_id":"4e91d899-fac2-44e4-84eb-7d0c9965fbda"},{"name":"Cheques","item":[{"name":"Create Cheque","id":"ca589be6-1611-414b-9dd9-cbbda752e12c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"to","value":"contact_pxd7wnnD1xY6H6etKNvjb4","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the receiver. You can either pass a contact <code>object</code> or a contact's <code>id</code>.</p>\n<p><code>required</code></p>\n","type":"text"},{"key":"from","value":"contact_pxd7wnnD1xY6H6etKNvjb4","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the sender. You can either pass a contact <code>object</code> or a contact's <code>id</code>.\n<code>required</code></p>\n","type":"text"},{"key":"bankAccount","value":"bank_hkjpU68ThBBiXWLu7e9S5Q","type":"text","description":"<p>The <code>id</code> for which bank account will be used for the cheque.</p>\n<p><code>required</code></p>\n"},{"key":"amount","value":"10000","type":"text","description":"<p>The amount for which the cheque is issued for. <strong>Must be specified in cents.</strong></p>\n<p><code>required</code></p>\n"},{"key":"memo","value":"A short memo.","type":"text","description":"<p>A memo to be included on the cheque</p>\n<p><code>optional</code></p>\n"},{"key":"message","value":"<strong>Here is some money</strong>","description":"<p>An HTML message to print on the same page as the cheque.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"number","value":"5049","type":"text","description":"<p>The cheque number.</p>\n<p><code>optional</code></p>\n"},{"key":"logo","value":"https://gdm-catalog-fmapi-prod.imgix.net/ProductLogo/35cc11eb-39a9-4dac-948a-24670781c557.png?auto=format&ixlib=react-9.0.3&h=auto&w=auto","description":"<p>A publicly accessible image URL to be printed on the cheque.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"extraService","value":"certified","description":"<p>Indicates extra services for the letter.  See <a href=\"#certified-and-registered-mail\">certified and registered mail</a>.\n<code>optional</code></p>\n","type":"text"},{"key":"currencyCode","value":"USD","description":"<p>A 3-letter code representing the currency of <code>amount</code>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"express","value":"false","description":"<p>See <a href=\"#express-shipping\">express shipping</a>.</p>\n","type":"text"},{"key":"sendDate","value":"2023-02-16T15:40:35.873Z","description":"<p>The desired date for the letter to be sent out.</p>\n<p><code>optional</code></p>\n","type":"text","disabled":true},{"key":"mailingClass","value":"first_class","description":"<p>Defaults to <code>first_class</code>. See <a href=\"#mailing-class\">mailing class</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"description","value":"My basic cheque","description":"<p>A description for the cheque.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"mergeVariables[currency]","value":"USD","description":"<p>See <a href=\"#merge-variables\">merge variables</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"metadata[amount]","value":"10000","description":"<p>See <a href=\"#metadata\">metadata</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"size","value":"us_letter","description":"<p>Default size will be chosen based on the destination country, if not provided. Indicates the cheque size for the cheque being created. See <a href=\"#cheque-size\">cheque size</a></p>\n<p><code>optional</code></p>\n","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/cheques?expand[]=bankAccount","description":"<p>Create a cheque order. Note that the <code>number</code> field is optional when creating a cheque. We will automatically generate sequential values for cheques where it is missing.</p>\n<p>Also keep in mind that <code>amount</code> <strong>must be specified in cents</strong>.</p>\n<p>The <code>currencyCode</code> of the cheque will be set automatically based on the given bank account's <code>bankCountryCode</code>. If the bank account is a US bank account, then the currency will automatically be <code>USD</code>, and likewise for Canada.</p>\n<p>You can also supply a <code>logo</code> parameter which must be a publicly accessible URL to an image. We recommend this image is at least 280px x 280px to be 300 DPI.</p>\n","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"46a2bc3a-42b9-4701-bef8-2a753a0497d9","id":"46a2bc3a-42b9-4701-bef8-2a753a0497d9","name":"Cheques","type":"folder"}},"urlObject":{"path":["v1","cheques"],"host":["https://api.postgrid.com/print-mail"],"query":[{"description":{"content":"<p>See <a href=\"#expansions\">expansions</a>.</p>\n<p><code>optional</code></p>\n","type":"text/plain"},"key":"expand[]","value":"bankAccount"}],"variable":[]}},"response":[{"id":"c40906e2-58b6-4953-b86b-f486078a622e","name":"Create Cheque","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"from[companyName]","value":"PostGrid","type":"text"},{"key":"from[addressLine1]","value":"20-20 bay st","type":"text"},{"key":"from[addressLine2]","value":"floor 11","type":"text"},{"key":"from[city]","value":"toronto","type":"text"},{"key":"from[provinceOrState]","value":"on","type":"text"},{"key":"from[postalOrZip]","value":"M5V 4G9","type":"text"},{"key":"to[companyName]","value":"PostGrid","type":"text"},{"key":"to[addressLine1]","value":"20-20 bay st","type":"text"},{"key":"to[addressLine2]","value":"floor 11","type":"text"},{"key":"to[city]","value":"toronto","type":"text"},{"key":"to[provinceOrState]","value":"on","type":"text"},{"key":"to[postalOrZip]","value":"M5V 4G9","type":"text"},{"key":"description","value":"Test","type":"text"},{"key":"bankAccount","value":"bank_mycTFJcd2d5SHifVHidiwc","type":"text"},{"key":"amount","value":"10000","type":"text"},{"key":"memo","value":"A short memo.","type":"text"},{"key":"number","value":"5049","type":"text"}],"options":{"raw":{"language":"json"}}},"url":"https://api.postgrid.com/print-mail/v1/cheques"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"862"},{"key":"ETag","value":"W/\"35e-mV0OYTg3GRzwwbTNZRTKa7nqdTs\""},{"key":"Date","value":"Thu, 12 Nov 2020 23:51:16 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"cheque_sxyrnx6taqwoEBHzxEzsUE\",\n    \"object\": \"cheque\",\n    \"live\": false,\n    \"amount\": 10000,\n    \"bankAccount\": {\n        \"id\": \"bank_hkjpU68ThBBiXWLu7e9S5Q\",\n        \"object\": \"bank_account\",\n        \"live\": false,\n        \"accountNumberLast4\": \"6789\",\n        \"bankCountryCode\": \"US\",\n        \"bankName\": \"Chase Bank 2\",\n        \"bankPrimaryLine\": \"\",\n        \"bankSecondaryLine\": \"\",\n        \"description\": \"\",\n        \"routingNumber\": \"123456789\",\n        \"signatureText\": \"Apaar\",\n        \"createdAt\": \"2021-06-28T17:46:54.646Z\",\n        \"updatedAt\": \"2021-06-28T17:46:54.646Z\"\n    },\n    \"currencyCode\": \"USD\",\n    \"description\": \"My basic cheque\",\n    \"extraService\": \"certified\",\n    \"from\": {\n        \"id\": \"contact_pxd7wnnD1xY6H6etKNvjb4\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"20-20 BAY ST\",\n        \"addressLine2\": \"FLOOR 11\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"TORONTO\",\n        \"companyName\": \"PostGrid\",\n        \"country\": \"CANADA\",\n        \"countryCode\": \"CA\",\n        \"description\": \"Kevin Smith's contact information \",\n        \"email\": \"kevinsmith@postgrid.com\",\n        \"firstName\": \"Kevin\",\n        \"jobTitle\": \"Manager\",\n        \"lastName\": \"Smith\",\n        \"metadata\": {\n            \"friend\": \"no\"\n        },\n        \"phoneNumber\": \"9059059059\",\n        \"postalOrZip\": \"M5J 2N8\",\n        \"provinceOrState\": \"ON\"\n    },\n    \"logo\": \"https://gdm-catalog-fmapi-prod.imgix.net/ProductLogo/35cc11eb-39a9-4dac-948a-24670781c557.png?auto=format&ixlib=react-9.0.3&h=auto&w=auto\",\n    \"memo\": \"A short memo.\",\n    \"mergeVariables\": {\n        \"currency\": \"USD\"\n    },\n    \"message\": \"<strong>Here is some money</strong>\",\n    \"metadata\": {\n        \"amount\": \"10000\"\n    },\n    \"number\": 5049,\n    \"redirectTo\": {\n        \"id\": \"contact_sUqCrMDWcX21Jn8kDaE77g\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"145 MULBERRY ST\",\n        \"addressLine2\": \"APT PH D\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"NEW YORK\",\n        \"companyName\": \"\",\n        \"country\": \"UNITED STATES\",\n        \"countryCode\": \"US\",\n        \"description\": \"Contact with no last name\",\n        \"email\": \"\",\n        \"firstName\": \"Anna Marie\",\n        \"jobTitle\": \"\",\n        \"lastName\": \"\",\n        \"metadata\": {\n            \"var\": \"Here is the variable\"\n        },\n        \"phoneNumber\": \"\",\n        \"postalOrZip\": \"10013\",\n        \"provinceOrState\": \"NY\"\n    },\n    \"sendDate\": \"2023-02-16T15:40:35.873Z\",\n    \"status\": \"ready\",\n    \"to\": {\n        \"id\": \"contact_pxd7wnnD1xY6H6etKNvjb4\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"20-20 BAY ST\",\n        \"addressLine2\": \"FLOOR 11\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"TORONTO\",\n        \"companyName\": \"PostGrid\",\n        \"country\": \"CANADA\",\n        \"countryCode\": \"CA\",\n        \"description\": \"Kevin Smith's contact information \",\n        \"email\": \"kevinsmith@postgrid.com\",\n        \"firstName\": \"Kevin\",\n        \"jobTitle\": \"Manager\",\n        \"lastName\": \"Smith\",\n        \"metadata\": {\n            \"friend\": \"no\"\n        },\n        \"phoneNumber\": \"9059059059\",\n        \"postalOrZip\": \"M5J 2N8\",\n        \"provinceOrState\": \"ON\"\n    },\n    \"createdAt\": \"2022-02-16T18:35:29.424Z\",\n    \"updatedAt\": \"2022-02-16T18:35:29.424Z\"\n}"}],"_postman_id":"ca589be6-1611-414b-9dd9-cbbda752e12c"},{"name":"Create Cheque with Letter HTML","id":"0945a8ec-dfad-4343-a6ba-e8de265f2a98","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"to","value":"contact_pxd7wnnD1xY6H6etKNvjb4","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the receiver. You can either pass a contact <code>object</code> or a contact's <code>id</code>.</p>\n<p><code>required</code></p>\n","type":"text"},{"key":"from","value":"contact_pxd7wnnD1xY6H6etKNvjb4","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the sender. You can either pass a contact <code>object</code> or a contact's <code>id</code>.\n<code>required</code></p>\n","type":"text"},{"key":"bankAccount","value":"bank_hkjpU68ThBBiXWLu7e9S5Q","type":"text","description":"<p>The <code>id</code> for which bank account will be used for the cheque.</p>\n<p><code>required</code></p>\n"},{"key":"amount","value":"10000","type":"text","description":"<p>The amount for which the cheque is issued for. <strong>Must be specified in cents.</strong></p>\n<p><code>required</code></p>\n"},{"key":"letterHTML","value":"<body>Hello</body>","description":"<p>The HTML content to be used for the cheque.</p>\n<p><code>required</code></p>\n","type":"text"},{"key":"memo","value":"A short memo.","type":"text","description":"<p>A memo to be included on the cheque</p>\n<p><code>optional</code></p>\n"},{"key":"message","value":"<strong>Here is some money</strong>","description":"<p>An HTML message to print on the same page as the cheque.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"number","value":"5049","type":"text","description":"<p>The cheque number.</p>\n<p><code>optional</code></p>\n"},{"key":"logo","value":"https://gdm-catalog-fmapi-prod.imgix.net/ProductLogo/35cc11eb-39a9-4dac-948a-24670781c557.png?auto=format&ixlib=react-9.0.3&h=auto&w=auto","description":"<p>A publicly accessible image URL to be printed on the cheque.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"extraService","value":"certified","description":"<p>Indicates extra services for the letter.  See <a href=\"#certified-and-registered-mail\">certified and registered mail</a>.\n<code>optional</code></p>\n","type":"text"},{"key":"currencyCode","value":"USD","description":"<p>A 3-letter code representing the currency of <code>amount</code>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"express","value":"false","description":"<p>See <a href=\"#express-shipping\">express shipping</a>.</p>\n","type":"text"},{"key":"sendDate","value":"2023-02-16T15:40:35.873Z","description":"<p>The desired date for the letter to be sent out.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"mailingClass","value":"first_class","description":"<p>Defaults to <code>first_class</code>. See <a href=\"#mailing-class\">mailing class</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"description","value":"My basic cheque","description":"<p>A description for the cheque.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"mergeVariables[currency]","value":"USD","description":"<p>See <a href=\"#merge-variables\">merge variables</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"metadata[amount]","value":"10000","description":"<p>See <a href=\"#metadata\">metadata</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"size","value":"us_letter","description":"<p>Default size will be chosen based on the destination country, if not provided. Indicates the cheque size for the cheque being created. See <a href=\"#cheque-size\">cheque size</a></p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"letterSettings[color]","value":"false","description":"<p>Indicates whether the letter will be printed in color or not.\n<code>optional</code> Default: <code>false</code></p>\n","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/cheques?expand[]=bankAccount","description":"<p>Create a cheque with an attached letter. In this case, the letter is specified via raw HTML.<br />This letter will be black-and-white and will be inserted into the same envelope as the cheque.</p>\n","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"46a2bc3a-42b9-4701-bef8-2a753a0497d9","id":"46a2bc3a-42b9-4701-bef8-2a753a0497d9","name":"Cheques","type":"folder"}},"urlObject":{"path":["v1","cheques"],"host":["https://api.postgrid.com/print-mail"],"query":[{"description":{"content":"<p>See <a href=\"#expansions\">expansions</a>.</p>\n<p><code>optional</code></p>\n","type":"text/plain"},"key":"expand[]","value":"bankAccount"}],"variable":[]}},"response":[{"id":"dee8ca17-a0dd-443a-bd19-83efca659f9b","name":"Create Cheque","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"from[companyName]","value":"PostGrid","type":"text"},{"key":"from[addressLine1]","value":"20-20 bay st","type":"text"},{"key":"from[addressLine2]","value":"floor 11","type":"text"},{"key":"from[city]","value":"toronto","type":"text"},{"key":"from[provinceOrState]","value":"on","type":"text"},{"key":"from[postalOrZip]","value":"M5V 4G9","type":"text"},{"key":"to[companyName]","value":"PostGrid","type":"text"},{"key":"to[addressLine1]","value":"20-20 bay st","type":"text"},{"key":"to[addressLine2]","value":"floor 11","type":"text"},{"key":"to[city]","value":"toronto","type":"text"},{"key":"to[provinceOrState]","value":"on","type":"text"},{"key":"to[postalOrZip]","value":"M5V 4G9","type":"text"},{"key":"description","value":"Test","type":"text"},{"key":"bankAccount","value":"bank_mycTFJcd2d5SHifVHidiwc","type":"text"},{"key":"amount","value":"10000","type":"text"},{"key":"memo","value":"A short memo.","type":"text"},{"key":"number","value":"5049","type":"text"}],"options":{"raw":{"language":"json"}}},"url":"https://api.postgrid.com/print-mail/v1/cheques"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"862"},{"key":"ETag","value":"W/\"35e-mV0OYTg3GRzwwbTNZRTKa7nqdTs\""},{"key":"Date","value":"Thu, 12 Nov 2020 23:51:16 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"cheque_kxBN6iA7uunswJ4d6aseAx\",\n    \"object\": \"cheque\",\n    \"live\": false,\n    \"amount\": 10000,\n    \"bankAccount\": {\n        \"id\": \"bank_hkjpU68ThBBiXWLu7e9S5Q\",\n        \"object\": \"bank_account\",\n        \"live\": false,\n        \"accountNumberLast4\": \"6789\",\n        \"bankCountryCode\": \"US\",\n        \"bankName\": \"Chase Bank 2\",\n        \"bankPrimaryLine\": \"\",\n        \"bankSecondaryLine\": \"\",\n        \"description\": \"\",\n        \"routingNumber\": \"123456789\",\n        \"signatureText\": \"Apaar\",\n        \"createdAt\": \"2021-06-28T17:46:54.646Z\",\n        \"updatedAt\": \"2021-06-28T17:46:54.646Z\"\n    },\n    \"currencyCode\": \"USD\",\n    \"description\": \"My basic cheque\",\n    \"extraService\": \"certified\",\n    \"from\": {\n        \"id\": \"contact_pxd7wnnD1xY6H6etKNvjb4\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"20-20 BAY ST\",\n        \"addressLine2\": \"FLOOR 11\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"TORONTO\",\n        \"companyName\": \"PostGrid\",\n        \"country\": \"CANADA\",\n        \"countryCode\": \"CA\",\n        \"description\": \"Kevin Smith's contact information \",\n        \"email\": \"kevinsmith@postgrid.com\",\n        \"firstName\": \"Kevin\",\n        \"jobTitle\": \"Manager\",\n        \"lastName\": \"Smith\",\n        \"metadata\": {\n            \"friend\": \"no\"\n        },\n        \"phoneNumber\": \"9059059059\",\n        \"postalOrZip\": \"M5J 2N8\",\n        \"provinceOrState\": \"ON\"\n    },\n    \"letterHTML\": \"<body>Hello</body>\",\n    \"logo\": \"https://gdm-catalog-fmapi-prod.imgix.net/ProductLogo/35cc11eb-39a9-4dac-948a-24670781c557.png?auto=format&ixlib=react-9.0.3&h=auto&w=auto\",\n    \"memo\": \"A short memo.\",\n    \"mergeVariables\": {\n        \"currency\": \"USD\"\n    },\n    \"message\": \"<strong>Here is some money</strong>\",\n    \"metadata\": {\n        \"amount\": \"10000\"\n    },\n    \"number\": 5049,\n    \"redirectTo\": {\n        \"id\": \"contact_sUqCrMDWcX21Jn8kDaE77g\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"145 MULBERRY ST\",\n        \"addressLine2\": \"APT PH D\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"NEW YORK\",\n        \"companyName\": \"\",\n        \"country\": \"UNITED STATES\",\n        \"countryCode\": \"US\",\n        \"description\": \"Contact with no last name\",\n        \"email\": \"\",\n        \"firstName\": \"Anna Marie\",\n        \"jobTitle\": \"\",\n        \"lastName\": \"\",\n        \"metadata\": {\n            \"var\": \"Here is the variable\"\n        },\n        \"phoneNumber\": \"\",\n        \"postalOrZip\": \"10013\",\n        \"provinceOrState\": \"NY\"\n    },\n    \"sendDate\": \"2023-02-16T15:40:35.873Z\",\n    \"status\": \"ready\",\n    \"to\": {\n        \"id\": \"contact_pxd7wnnD1xY6H6etKNvjb4\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"20-20 BAY ST\",\n        \"addressLine2\": \"FLOOR 11\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"TORONTO\",\n        \"companyName\": \"PostGrid\",\n        \"country\": \"CANADA\",\n        \"countryCode\": \"CA\",\n        \"description\": \"Kevin Smith's contact information \",\n        \"email\": \"kevinsmith@postgrid.com\",\n        \"firstName\": \"Kevin\",\n        \"jobTitle\": \"Manager\",\n        \"lastName\": \"Smith\",\n        \"metadata\": {\n            \"friend\": \"no\"\n        },\n        \"phoneNumber\": \"9059059059\",\n        \"postalOrZip\": \"M5J 2N8\",\n        \"provinceOrState\": \"ON\"\n    },\n    \"createdAt\": \"2022-02-16T18:35:15.510Z\",\n    \"updatedAt\": \"2022-02-16T18:35:15.510Z\"\n}"}],"_postman_id":"0945a8ec-dfad-4343-a6ba-e8de265f2a98"},{"name":"Create Cheque with Letter Template","id":"7a5fcd67-175b-487b-bd1c-edc139c41f71","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"to","value":"contact_pxd7wnnD1xY6H6etKNvjb4","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the receiver. You can either pass a contact <code>object</code> or a contact's <code>id</code>.</p>\n<p><code>required</code></p>\n","type":"text"},{"key":"from","value":"contact_pxd7wnnD1xY6H6etKNvjb4","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the sender. You can either pass a contact <code>object</code> or a contact's <code>id</code>.\n<code>required</code></p>\n","type":"text"},{"key":"bankAccount","value":"bank_hkjpU68ThBBiXWLu7e9S5Q","type":"text","description":"<p>The <code>id</code> for which bank account will be used for the cheque.</p>\n<p><code>required</code></p>\n"},{"key":"amount","value":"10000","type":"text","description":"<p>The amount for which the cheque is issued for. <strong>Must be specified in cents.</strong></p>\n<p><code>required</code></p>\n"},{"key":"letterTemplate","value":"template_5zLiV9HwwN93keu2gUNjrm","description":"<p>The <code>id</code> for the template which will be used for the attached letter.</p>\n<p><code>required</code></p>\n","type":"text"},{"key":"memo","value":"A short memo.","type":"text","description":"<p>A memo to be included on the cheque</p>\n<p><code>optional</code></p>\n"},{"key":"message","value":"<strong>Here is some money</strong>","description":"<p>An HTML message to print on the same page as the cheque.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"number","value":"5049","type":"text","description":"<p>The cheque number.</p>\n<p><code>optional</code></p>\n"},{"key":"logo","value":"https://gdm-catalog-fmapi-prod.imgix.net/ProductLogo/35cc11eb-39a9-4dac-948a-24670781c557.png?auto=format&ixlib=react-9.0.3&h=auto&w=auto","description":"<p>A publicly accessible image URL to be printed on the cheque.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"extraService","value":"certified","description":"<p>Indicates extra services for the letter.  See <a href=\"#certified-and-registered-mail\">certified and registered mail</a>.\n<code>optional</code></p>\n","type":"text"},{"key":"currencyCode","value":"USD","description":"<p>A 3-letter code representing the currency of <code>amount</code>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"express","value":"true","description":"<p>See <a href=\"#express-shipping\">express shipping</a>.</p>\n","type":"text"},{"key":"sendDate","value":"2023-02-16T15:40:35.873Z","description":"<p>The desired date for the letter to be sent out.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"mailingClass","value":"first_class","description":"<p>Defaults to <code>first_class</code>. See <a href=\"#mailing-class\">mailing class</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"description","value":"My basic cheque","description":"<p>A description for the cheque.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"mergeVariables[currency]","value":"USD","description":"<p>See <a href=\"#merge-variables\">merge variables</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"metadata[amount]","value":"10000","description":"<p>See <a href=\"#metadata\">metadata</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"size","value":"us_letter","description":"<p>Default size will be chosen based on the destination country, if not provided. Indicates the cheque size for the cheque being created. See <a href=\"#cheque-size\">cheque size</a></p>\n<p><code>optional</code></p>\n","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/cheques?expand[]=bankAccount&expand=letterTemplate&letterSettings[color]=false","description":"<p>Create a cheque with an attached letter. In this case, the letter is specified via a template <code>id</code>.<br />This letter will be black-and-white and will be inserted into the same envelope as the cheque.</p>\n","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"46a2bc3a-42b9-4701-bef8-2a753a0497d9","id":"46a2bc3a-42b9-4701-bef8-2a753a0497d9","name":"Cheques","type":"folder"}},"urlObject":{"path":["v1","cheques"],"host":["https://api.postgrid.com/print-mail"],"query":[{"description":{"content":"<p>See <a href=\"#expansions\">expansions</a>.</p>\n<p><code>optional</code></p>\n","type":"text/plain"},"key":"expand[]","value":"bankAccount"},{"description":{"content":"<p>See <a href=\"#expansions\">expansions</a>.</p>\n<p><code>optional</code></p>\n","type":"text/plain"},"key":"expand","value":"letterTemplate"},{"description":{"content":"<p>Indicates whether the letter will be printed in color or not.\n<code>optional</code> Default: <code>false</code></p>\n","type":"text/plain"},"key":"letterSettings[color]","value":"false"}],"variable":[]}},"response":[{"id":"369f5316-be37-497b-87a7-540a45747649","name":"Create Cheque","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"from[companyName]","value":"PostGrid","type":"text"},{"key":"from[addressLine1]","value":"20-20 bay st","type":"text"},{"key":"from[addressLine2]","value":"floor 11","type":"text"},{"key":"from[city]","value":"toronto","type":"text"},{"key":"from[provinceOrState]","value":"on","type":"text"},{"key":"from[postalOrZip]","value":"M5V 4G9","type":"text"},{"key":"to[companyName]","value":"PostGrid","type":"text"},{"key":"to[addressLine1]","value":"20-20 bay st","type":"text"},{"key":"to[addressLine2]","value":"floor 11","type":"text"},{"key":"to[city]","value":"toronto","type":"text"},{"key":"to[provinceOrState]","value":"on","type":"text"},{"key":"to[postalOrZip]","value":"M5V 4G9","type":"text"},{"key":"description","value":"Test","type":"text"},{"key":"bankAccount","value":"bank_mycTFJcd2d5SHifVHidiwc","type":"text"},{"key":"amount","value":"10000","type":"text"},{"key":"memo","value":"A short memo.","type":"text"},{"key":"number","value":"5049","type":"text"}],"options":{"raw":{"language":"json"}}},"url":"https://api.postgrid.com/print-mail/v1/cheques"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"862"},{"key":"ETag","value":"W/\"35e-mV0OYTg3GRzwwbTNZRTKa7nqdTs\""},{"key":"Date","value":"Thu, 12 Nov 2020 23:51:16 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"cheque_ijeKHJ9MkBoCiiAP29wNc1\",\n    \"object\": \"cheque\",\n    \"live\": false,\n    \"amount\": 10000,\n    \"bankAccount\": {\n        \"id\": \"bank_hkjpU68ThBBiXWLu7e9S5Q\",\n        \"object\": \"bank_account\",\n        \"live\": false,\n        \"accountNumberLast4\": \"6789\",\n        \"bankCountryCode\": \"US\",\n        \"bankName\": \"Chase Bank 2\",\n        \"bankPrimaryLine\": \"\",\n        \"bankSecondaryLine\": \"\",\n        \"description\": \"\",\n        \"routingNumber\": \"123456789\",\n        \"signatureText\": \"Apaar\",\n        \"createdAt\": \"2021-06-28T17:46:54.646Z\",\n        \"updatedAt\": \"2021-06-28T17:46:54.646Z\"\n    },\n    \"currencyCode\": \"USD\",\n    \"description\": \"My basic cheque\",\n    \"extraService\": \"certified\",\n    \"from\": {\n        \"id\": \"contact_pxd7wnnD1xY6H6etKNvjb4\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"20-20 BAY ST\",\n        \"addressLine2\": \"FLOOR 11\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"TORONTO\",\n        \"companyName\": \"PostGrid\",\n        \"country\": \"CANADA\",\n        \"countryCode\": \"CA\",\n        \"description\": \"Kevin Smith's contact information \",\n        \"email\": \"kevinsmith@postgrid.com\",\n        \"firstName\": \"Kevin\",\n        \"jobTitle\": \"Manager\",\n        \"lastName\": \"Smith\",\n        \"metadata\": {\n            \"friend\": \"no\"\n        },\n        \"phoneNumber\": \"9059059059\",\n        \"postalOrZip\": \"M5J 2N8\",\n        \"provinceOrState\": \"ON\"\n    },\n    \"letterTemplate\": {\n        \"id\": \"template_5zLiV9HwwN93keu2gUNjrm\",\n        \"object\": \"template\",\n        \"live\": false,\n        \"description\": \"My first template!\",\n        \"html\": \"<b>Hello</b> {{to.firstName}}!\",\n        \"metadata\": {\n            \"to\": \"Jimmy\"\n        },\n        \"createdAt\": \"2022-02-16T15:15:20.670Z\",\n        \"updatedAt\": \"2022-02-16T15:15:20.670Z\"\n    },\n    \"logo\": \"https://gdm-catalog-fmapi-prod.imgix.net/ProductLogo/35cc11eb-39a9-4dac-948a-24670781c557.png?auto=format&ixlib=react-9.0.3&h=auto&w=auto\",\n    \"memo\": \"A short memo.\",\n    \"mergeVariables\": {\n        \"currency\": \"USD\"\n    },\n    \"message\": \"<strong>Here is some money</strong>\",\n    \"metadata\": {\n        \"amount\": \"10000\"\n    },\n    \"number\": 5049,\n    \"redirectTo\": {\n        \"id\": \"contact_sUqCrMDWcX21Jn8kDaE77g\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"145 MULBERRY ST\",\n        \"addressLine2\": \"APT PH D\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"NEW YORK\",\n        \"companyName\": \"\",\n        \"country\": \"UNITED STATES\",\n        \"countryCode\": \"US\",\n        \"description\": \"Contact with no last name\",\n        \"email\": \"\",\n        \"firstName\": \"Anna Marie\",\n        \"jobTitle\": \"\",\n        \"lastName\": \"\",\n        \"metadata\": {\n            \"var\": \"Here is the variable\"\n        },\n        \"phoneNumber\": \"\",\n        \"postalOrZip\": \"10013\",\n        \"provinceOrState\": \"NY\"\n    },\n    \"sendDate\": \"2023-02-16T15:40:35.873Z\",\n    \"status\": \"ready\",\n    \"to\": {\n        \"id\": \"contact_pxd7wnnD1xY6H6etKNvjb4\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"20-20 BAY ST\",\n        \"addressLine2\": \"FLOOR 11\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"TORONTO\",\n        \"companyName\": \"PostGrid\",\n        \"country\": \"CANADA\",\n        \"countryCode\": \"CA\",\n        \"description\": \"Kevin Smith's contact information \",\n        \"email\": \"kevinsmith@postgrid.com\",\n        \"firstName\": \"Kevin\",\n        \"jobTitle\": \"Manager\",\n        \"lastName\": \"Smith\",\n        \"metadata\": {\n            \"friend\": \"no\"\n        },\n        \"phoneNumber\": \"9059059059\",\n        \"postalOrZip\": \"M5J 2N8\",\n        \"provinceOrState\": \"ON\"\n    },\n    \"createdAt\": \"2022-02-16T18:35:49.201Z\",\n    \"updatedAt\": \"2022-02-16T18:35:49.201Z\"\n}"}],"_postman_id":"7a5fcd67-175b-487b-bd1c-edc139c41f71"},{"name":"Create Cheque with Letter PDF","id":"9edf6f7d-3c80-4f88-beb8-e3522acc6699","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"to","value":"contact_pxd7wnnD1xY6H6etKNvjb4","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the receiver. You can either pass a contact <code>object</code> or a contact's <code>id</code>.</p>\n<p><code>required</code></p>\n","type":"text"},{"key":"from","value":"contact_pxd7wnnD1xY6H6etKNvjb4","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the sender. You can either pass a contact <code>object</code> or a contact's <code>id</code>.</p>\n<p><code>required</code></p>\n","type":"text"},{"key":"bankAccount","value":"bank_hkjpU68ThBBiXWLu7e9S5Q","description":"<p>The <code>id</code> for which bank account will be used for the cheque.</p>\n<p><code>required</code></p>\n","type":"text"},{"key":"amount","value":"10000","description":"<p>The amount for which the cheque is issued for. <strong>Must be specified in cents.</strong></p>\n<p><code>required</code></p>\n","type":"text"},{"key":"letterPDF","description":"<p>An uploaded PDF to be used for the attached letter.</p>\n<p><code>required</code></p>\n","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["xAmoceLip/blank.pdf"],"src":"xAmoceLip/blank.pdf"},{"key":"memo","value":"A short memo","description":"<p>A memo to be included on the cheque</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"message","value":"<strong>Here is some money</strong>","description":"<p>An HTML message to print on the same page as the cheque.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"number","value":"5049","description":"<p>The cheque number.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"logo","value":"https://www.postgrid.ca/wp-content/uploads/2021/01/PostGrid-Logo.png","description":"<p>A publicly accessible image URL to be printed on the cheque.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"extraService","value":"certified","description":"<p>Indicates extra services for the letter.  See <a href=\"#certified-and-registered-mail\">certified and registered mail</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"currencyCode","value":"USD","description":"<p>A 3-letter code representing the currency of <code>amount</code>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"express","value":"false","description":"<p>See <a href=\"#express-shipping\">express shipping</a>.</p>\n","type":"text"},{"key":"sendDate","value":"2023-02-16T15:40:35.873Z","description":"<p>The desired date for the letter to be sent out.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"mailingClass","value":"standard_class","description":"<p>Defaults to <code>first_class</code>. See <a href=\"#mailing-class\">mailing class</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"description","value":"My cheque with uplaoded pdf","description":"<p>A description for the cheque.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"mergeVariables[currency]","value":"USD","description":"<p>See <a href=\"#merge-variables\">merge variables</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"metadata[amount]","value":"10000","description":"<p>See <a href=\"#metadata\">metadata</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"size","value":"us_letter","description":"<p>Default size will be chosen based on the destination country, if not provided. Indicates the cheque size for the cheque being created. See <a href=\"#cheque-size\">cheque size</a></p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"letterSettings[color]","value":"false","description":"<p>Indicates whether the letter will be printed in color or not.\n<code>optional</code> Default: <code>false</code></p>\n","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/cheques?expand[]=bankAccount","description":"<p>Create a cheque with an attached letter. In this case, the letter is created from an uploaded PDF.<br />This letter will be black-and-white and will be inserted into the same envelope as the cheque.</p>\n","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"46a2bc3a-42b9-4701-bef8-2a753a0497d9","id":"46a2bc3a-42b9-4701-bef8-2a753a0497d9","name":"Cheques","type":"folder"}},"urlObject":{"path":["v1","cheques"],"host":["https://api.postgrid.com/print-mail"],"query":[{"description":{"content":"<p>See <a href=\"#expansions\">expansions</a>.</p>\n<p><code>optional</code></p>\n","type":"text/plain"},"key":"expand[]","value":"bankAccount"}],"variable":[]}},"response":[{"id":"1c40e542-ddf0-4db5-b450-3b992f49bc48","name":"Create Cheque","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"from[companyName]","value":"PostGrid","type":"text"},{"key":"from[addressLine1]","value":"20-20 bay st","type":"text"},{"key":"from[addressLine2]","value":"floor 11","type":"text"},{"key":"from[city]","value":"toronto","type":"text"},{"key":"from[provinceOrState]","value":"on","type":"text"},{"key":"from[postalOrZip]","value":"M5V 4G9","type":"text"},{"key":"to[companyName]","value":"PostGrid","type":"text"},{"key":"to[addressLine1]","value":"20-20 bay st","type":"text"},{"key":"to[addressLine2]","value":"floor 11","type":"text"},{"key":"to[city]","value":"toronto","type":"text"},{"key":"to[provinceOrState]","value":"on","type":"text"},{"key":"to[postalOrZip]","value":"M5V 4G9","type":"text"},{"key":"description","value":"Test","type":"text"},{"key":"bankAccount","value":"bank_mycTFJcd2d5SHifVHidiwc","type":"text"},{"key":"amount","value":"10000","type":"text"},{"key":"memo","value":"A short memo.","type":"text"},{"key":"number","value":"5049","type":"text"}],"options":{"raw":{"language":"json"}}},"url":"https://api.postgrid.com/print-mail/v1/cheques"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"862"},{"key":"ETag","value":"W/\"35e-mV0OYTg3GRzwwbTNZRTKa7nqdTs\""},{"key":"Date","value":"Thu, 12 Nov 2020 23:51:16 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"cheque_9vgzLQure3WBXg9yhNcUfv\",\n    \"object\": \"cheque\",\n    \"live\": false,\n    \"amount\": 10000,\n    \"bankAccount\": {\n        \"id\": \"bank_hkjpU68ThBBiXWLu7e9S5Q\",\n        \"object\": \"bank_account\",\n        \"live\": false,\n        \"accountNumberLast4\": \"6789\",\n        \"bankCountryCode\": \"US\",\n        \"bankName\": \"Chase Bank 2\",\n        \"bankPrimaryLine\": \"\",\n        \"bankSecondaryLine\": \"\",\n        \"description\": \"\",\n        \"routingNumber\": \"123456789\",\n        \"signatureText\": \"Apaar\",\n        \"createdAt\": \"2021-06-28T17:46:54.646Z\",\n        \"updatedAt\": \"2021-06-28T17:46:54.646Z\"\n    },\n    \"currencyCode\": \"USD\",\n    \"description\": \"My cheque with uplaoded pdf\",\n    \"extraService\": \"certified\",\n    \"from\": {\n        \"id\": \"contact_pxd7wnnD1xY6H6etKNvjb4\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"20-20 BAY ST\",\n        \"addressLine2\": \"FLOOR 11\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"TORONTO\",\n        \"companyName\": \"PostGrid\",\n        \"country\": \"CANADA\",\n        \"countryCode\": \"CA\",\n        \"description\": \"Kevin Smith's contact information \",\n        \"email\": \"kevinsmith@postgrid.com\",\n        \"firstName\": \"Kevin\",\n        \"jobTitle\": \"Manager\",\n        \"lastName\": \"Smith\",\n        \"metadata\": {\n            \"friend\": \"no\"\n        },\n        \"phoneNumber\": \"9059059059\",\n        \"postalOrZip\": \"M5J 2N8\",\n        \"provinceOrState\": \"ON\"\n    },\n    \"logo\": \"https://www.postgrid.ca/wp-content/uploads/2021/01/PostGrid-Logo.png\",\n    \"memo\": \"A short memo\",\n    \"mergeVariables\": {\n        \"currency\": \"USD\"\n    },\n    \"message\": \"<strong>Here is some money</strong>\",\n    \"metadata\": {\n        \"amount\": \"10000\"\n    },\n    \"number\": 5049,\n    \"redirectTo\": {\n        \"id\": \"contact_sUqCrMDWcX21Jn8kDaE77g\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"145 MULBERRY ST\",\n        \"addressLine2\": \"APT PH D\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"NEW YORK\",\n        \"companyName\": \"\",\n        \"country\": \"UNITED STATES\",\n        \"countryCode\": \"US\",\n        \"description\": \"Contact with no last name\",\n        \"email\": \"\",\n        \"firstName\": \"Anna Marie\",\n        \"jobTitle\": \"\",\n        \"lastName\": \"\",\n        \"metadata\": {\n            \"var\": \"Here is the variable\"\n        },\n        \"phoneNumber\": \"\",\n        \"postalOrZip\": \"10013\",\n        \"provinceOrState\": \"NY\"\n    },\n    \"sendDate\": \"2023-02-16T15:40:35.873Z\",\n    \"status\": \"ready\",\n    \"to\": {\n        \"id\": \"contact_pxd7wnnD1xY6H6etKNvjb4\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"20-20 BAY ST\",\n        \"addressLine2\": \"FLOOR 11\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"TORONTO\",\n        \"companyName\": \"PostGrid\",\n        \"country\": \"CANADA\",\n        \"countryCode\": \"CA\",\n        \"description\": \"Kevin Smith's contact information \",\n        \"email\": \"kevinsmith@postgrid.com\",\n        \"firstName\": \"Kevin\",\n        \"jobTitle\": \"Manager\",\n        \"lastName\": \"Smith\",\n        \"metadata\": {\n            \"friend\": \"no\"\n        },\n        \"phoneNumber\": \"9059059059\",\n        \"postalOrZip\": \"M5J 2N8\",\n        \"provinceOrState\": \"ON\"\n    },\n    \"createdAt\": \"2022-02-16T18:35:54.298Z\",\n    \"updatedAt\": \"2022-02-16T18:35:54.298Z\"\n}"}],"_postman_id":"9edf6f7d-3c80-4f88-beb8-e3522acc6699"},{"name":"Create Cheque with Letter PDF Link","id":"965208f4-12af-46e6-884e-6dda2baf3479","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"to","value":"contact_pxd7wnnD1xY6H6etKNvjb4","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the receiver. You can either pass a contact <code>object</code> or a contact's <code>id</code>.</p>\n<p><code>required</code></p>\n","type":"text"},{"key":"from","value":"contact_pxd7wnnD1xY6H6etKNvjb4","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the sender. You can either pass a contact <code>object</code> or a contact's <code>id</code>.</p>\n<p><code>required</code></p>\n","type":"text"},{"key":"bankAccount","value":"bank_hkjpU68ThBBiXWLu7e9S5Q","description":"<p>The <code>id</code> for which bank account will be used for the cheque.</p>\n<p><code>required</code></p>\n","type":"text"},{"key":"amount","value":"10000","description":"<p>The amount for which the cheque is issued for. <strong>Must be specified in cents.</strong></p>\n<p><code>required</code></p>\n","type":"text"},{"key":"letterPDF","description":"<p>A publicly accesibl link to a PDF to be used for the attached letter.</p>\n<p><code>required</code></p>\n","type":"text","value":"https://pg-prod-bucket-1.s3.amazonaws.com/live/usr_9m6FVmm78VxXhtkKjARXnE/ltr_6YgdBFHXL2axmqzKY8EEu8.pdf"},{"key":"memo","value":"A short memo","description":"<p>A memo to be included on the cheque</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"message","value":"<strong>Here is some money</strong>","description":"<p>An HTML message to print on the same page as the cheque.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"number","value":"5049","description":"<p>The cheque number.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"logo","value":"https://www.postgrid.ca/wp-content/uploads/2021/01/PostGrid-Logo.png","description":"<p>A publicly accessible image URL to be printed on the cheque.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"extraService","value":"certified","description":"<p>Indicates extra services for the letter.  See <a href=\"#certified-and-registered-mail\">certified and registered mail</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"currencyCode","value":"USD","description":"<p>A 3-letter code representing the currency of <code>amount</code>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"sendDate","value":"2023-02-16T15:40:35.873Z","description":"<p>The desired date for the letter to be sent out.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"express","value":"false","description":"<p>See <a href=\"#express-shipping\">express shipping</a>.</p>\n","type":"text"},{"key":"description","value":"My cheque with uplaoded pdf","description":"<p>A description for the cheque.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"mergeVariables[currency]","value":"USD","description":"<p>See <a href=\"#merge-variables\">merge variables</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"metadata[amount]","value":"10000","description":"<p>See <a href=\"#metadata\">metadata</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"mailingClass","value":"first_class","description":"<p>Defaults to <code>first_class</code>. See <a href=\"#mailing-class\">mailing class</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"size","value":"us_letter","description":"<p>Default size will be chosen based on the destination country, if not provided. Indicates the cheque size for the cheque being created. See <a href=\"#cheque-size\">cheque size</a></p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"letterSettings[color]","value":"false","description":"<p>Indicates whether the letter will be printed in color or not.\n<code>optional</code> Default: <code>false</code></p>\n","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/cheques?expand[]=bankAccount","description":"<p>Create a cheque with an attached letter. In this case, the letter is created from an uploaded PDF.<br />This letter will be black-and-white and will be inserted into the same envelope as the cheque.</p>\n","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"46a2bc3a-42b9-4701-bef8-2a753a0497d9","id":"46a2bc3a-42b9-4701-bef8-2a753a0497d9","name":"Cheques","type":"folder"}},"urlObject":{"path":["v1","cheques"],"host":["https://api.postgrid.com/print-mail"],"query":[{"description":{"content":"<p>See <a href=\"#expansions\">expansions</a>.</p>\n<p><code>optional</code></p>\n","type":"text/plain"},"key":"expand[]","value":"bankAccount"}],"variable":[]}},"response":[{"id":"5fbd1ec9-eb90-4e72-8df5-0fec2f43cbd0","name":"Create Cheque","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"from[companyName]","value":"PostGrid","type":"text"},{"key":"from[addressLine1]","value":"20-20 bay st","type":"text"},{"key":"from[addressLine2]","value":"floor 11","type":"text"},{"key":"from[city]","value":"toronto","type":"text"},{"key":"from[provinceOrState]","value":"on","type":"text"},{"key":"from[postalOrZip]","value":"M5V 4G9","type":"text"},{"key":"to[companyName]","value":"PostGrid","type":"text"},{"key":"to[addressLine1]","value":"20-20 bay st","type":"text"},{"key":"to[addressLine2]","value":"floor 11","type":"text"},{"key":"to[city]","value":"toronto","type":"text"},{"key":"to[provinceOrState]","value":"on","type":"text"},{"key":"to[postalOrZip]","value":"M5V 4G9","type":"text"},{"key":"description","value":"Test","type":"text"},{"key":"bankAccount","value":"bank_mycTFJcd2d5SHifVHidiwc","type":"text"},{"key":"amount","value":"10000","type":"text"},{"key":"memo","value":"A short memo.","type":"text"},{"key":"number","value":"5049","type":"text"}],"options":{"raw":{"language":"json"}}},"url":"https://api.postgrid.com/print-mail/v1/cheques"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"862"},{"key":"ETag","value":"W/\"35e-mV0OYTg3GRzwwbTNZRTKa7nqdTs\""},{"key":"Date","value":"Thu, 12 Nov 2020 23:51:16 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"cheque_3pDH9No7rpzh17UDFkEv7V\",\n    \"object\": \"cheque\",\n    \"live\": false,\n    \"amount\": 10000,\n    \"bankAccount\": {\n        \"id\": \"bank_hkjpU68ThBBiXWLu7e9S5Q\",\n        \"object\": \"bank_account\",\n        \"live\": false,\n        \"accountNumberLast4\": \"6789\",\n        \"bankCountryCode\": \"US\",\n        \"bankName\": \"Chase Bank 2\",\n        \"bankPrimaryLine\": \"\",\n        \"bankSecondaryLine\": \"\",\n        \"description\": \"\",\n        \"routingNumber\": \"123456789\",\n        \"signatureText\": \"Apaar\",\n        \"createdAt\": \"2021-06-28T17:46:54.646Z\",\n        \"updatedAt\": \"2021-06-28T17:46:54.646Z\"\n    },\n    \"currencyCode\": \"USD\",\n    \"description\": \"My cheque with uplaoded pdf\",\n    \"extraService\": \"certified\",\n    \"from\": {\n        \"id\": \"contact_pxd7wnnD1xY6H6etKNvjb4\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"20-20 BAY ST\",\n        \"addressLine2\": \"FLOOR 11\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"TORONTO\",\n        \"companyName\": \"PostGrid\",\n        \"country\": \"CANADA\",\n        \"countryCode\": \"CA\",\n        \"description\": \"Kevin Smith's contact information \",\n        \"email\": \"kevinsmith@postgrid.com\",\n        \"firstName\": \"Kevin\",\n        \"jobTitle\": \"Manager\",\n        \"lastName\": \"Smith\",\n        \"metadata\": {\n            \"friend\": \"no\"\n        },\n        \"phoneNumber\": \"9059059059\",\n        \"postalOrZip\": \"M5J 2N8\",\n        \"provinceOrState\": \"ON\"\n    },\n    \"letterUploadedPDF\": \"https://pg-prod-bucket-1.s3.amazonaws.com/test/pdf_dZk8kgbFfVDbYc5Wz5i2m3?AWSAccessKeyId=AKIA5GFUILSULWTWCR64&Expires=1645037504&Signature=GZRrhn%2FgQRsHBHwowIUQ5rnXxQs%3D\",\n    \"logo\": \"https://www.postgrid.ca/wp-content/uploads/2021/01/PostGrid-Logo.png\",\n    \"memo\": \"A short memo\",\n    \"mergeVariables\": {\n        \"currency\": \"USD\"\n    },\n    \"message\": \"<strong>Here is some money</strong>\",\n    \"metadata\": {\n        \"amount\": \"10000\"\n    },\n    \"number\": 5049,\n    \"redirectTo\": {\n        \"id\": \"contact_sUqCrMDWcX21Jn8kDaE77g\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"145 MULBERRY ST\",\n        \"addressLine2\": \"APT PH D\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"NEW YORK\",\n        \"companyName\": \"\",\n        \"country\": \"UNITED STATES\",\n        \"countryCode\": \"US\",\n        \"description\": \"Contact with no last name\",\n        \"email\": \"\",\n        \"firstName\": \"Anna Marie\",\n        \"jobTitle\": \"\",\n        \"lastName\": \"\",\n        \"metadata\": {\n            \"var\": \"Here is the variable\"\n        },\n        \"phoneNumber\": \"\",\n        \"postalOrZip\": \"10013\",\n        \"provinceOrState\": \"NY\"\n    },\n    \"sendDate\": \"2023-02-16T15:40:35.873Z\",\n    \"status\": \"ready\",\n    \"to\": {\n        \"id\": \"contact_pxd7wnnD1xY6H6etKNvjb4\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"20-20 BAY ST\",\n        \"addressLine2\": \"FLOOR 11\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"TORONTO\",\n        \"companyName\": \"PostGrid\",\n        \"country\": \"CANADA\",\n        \"countryCode\": \"CA\",\n        \"description\": \"Kevin Smith's contact information \",\n        \"email\": \"kevinsmith@postgrid.com\",\n        \"firstName\": \"Kevin\",\n        \"jobTitle\": \"Manager\",\n        \"lastName\": \"Smith\",\n        \"metadata\": {\n            \"friend\": \"no\"\n        },\n        \"phoneNumber\": \"9059059059\",\n        \"postalOrZip\": \"M5J 2N8\",\n        \"provinceOrState\": \"ON\"\n    },\n    \"createdAt\": \"2022-02-16T18:36:44.612Z\",\n    \"updatedAt\": \"2022-02-16T18:36:44.612Z\"\n}"}],"_postman_id":"965208f4-12af-46e6-884e-6dda2baf3479"},{"name":"Create Cheque with Return Envelope","id":"ff4bf4f2-70bd-4a49-a081-21b6cc4df4ee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"to","value":"contact_pxd7wnnD1xY6H6etKNvjb4","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the receiver. You can either pass a contact <code>object</code> or a contact's <code>id</code>.</p>\n<p><code>required</code></p>\n","type":"text"},{"key":"from","value":"contact_pxd7wnnD1xY6H6etKNvjb4","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the sender. You can either pass a contact <code>object</code> or a contact's <code>id</code>.\n<code>required</code></p>\n","type":"text"},{"key":"bankAccount","value":"bank_hkjpU68ThBBiXWLu7e9S5Q","type":"text","description":"<p>The <code>id</code> for which bank account will be used for the cheque.</p>\n<p><code>required</code></p>\n"},{"key":"amount","value":"10000","type":"text","description":"<p>The amount for which the cheque is issued for. <strong>Must be specified in cents.</strong></p>\n<p><code>required</code></p>\n"},{"key":"memo","value":"A short memo.","type":"text","description":"<p>A memo to be included on the cheque</p>\n<p><code>optional</code></p>\n"},{"key":"message","value":"<strong>Here is some money</strong>","description":"<p>An HTML message to print on the same page as the cheque.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"number","value":"5049","type":"text","description":"<p>The cheque number.</p>\n<p><code>optional</code></p>\n"},{"key":"logo","value":"https://gdm-catalog-fmapi-prod.imgix.net/ProductLogo/35cc11eb-39a9-4dac-948a-24670781c557.png?auto=format&ixlib=react-9.0.3&h=auto&w=auto","description":"<p>A publicly accessible image URL to be printed on the cheque.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"extraService","value":"certified","description":"<p>Indicates extra services for the letter.  See <a href=\"#certified-and-registered-mail\">certified and registered mail</a>.\n<code>optional</code></p>\n","type":"text"},{"key":"currencyCode","value":"USD","description":"<p>A 3-letter code representing the currency of <code>amount</code>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"express","value":"false","description":"<p>See <a href=\"#express-shipping\">express shipping</a>.</p>\n","type":"text"},{"key":"sendDate","value":"2023-02-16T15:40:35.873Z","description":"<p>The desired date for the letter to be sent out.</p>\n<p><code>optional</code></p>\n","type":"text","disabled":true},{"key":"mailingClass","value":"first_class","description":"<p>Defaults to <code>first_class</code>. See <a href=\"#mailing-class\">mailing class</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"description","value":"My basic cheque","description":"<p>A description for the cheque.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"mergeVariables[currency]","value":"USD","description":"<p>See <a href=\"#merge-variables\">merge variables</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"metadata[amount]","value":"10000","description":"<p>See <a href=\"#metadata\">metadata</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"size","value":"us_letter","description":"<p>Default size will be chosen based on the destination country, if not provided. Indicates the cheque size for the cheque being created. See <a href=\"#cheque-size\">cheque size</a></p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"returnEnvelope","value":"return_envelope_mLSbMgS3THaWZLamoTZgpB","type":"text","uuid":"3ae971db-c658-4890-9c14-ea106fc34e59"}]},"url":"https://api.postgrid.com/print-mail/v1/cheques?expand[]=bankAccount","description":"<p>Create a cheque with a return envelope.</p>\n","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"46a2bc3a-42b9-4701-bef8-2a753a0497d9","id":"46a2bc3a-42b9-4701-bef8-2a753a0497d9","name":"Cheques","type":"folder"}},"urlObject":{"path":["v1","cheques"],"host":["https://api.postgrid.com/print-mail"],"query":[{"description":{"content":"<p>See <a href=\"#expansions\">expansions</a>.</p>\n<p><code>optional</code></p>\n","type":"text/plain"},"key":"expand[]","value":"bankAccount"}],"variable":[]}},"response":[{"id":"59c1dc03-2815-450f-9e2e-80a8f9deb82d","name":"Create Cheque","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"from[companyName]","value":"PostGrid","type":"text"},{"key":"from[addressLine1]","value":"20-20 bay st","type":"text"},{"key":"from[addressLine2]","value":"floor 11","type":"text"},{"key":"from[city]","value":"toronto","type":"text"},{"key":"from[provinceOrState]","value":"on","type":"text"},{"key":"from[postalOrZip]","value":"M5V 4G9","type":"text"},{"key":"to[companyName]","value":"PostGrid","type":"text"},{"key":"to[addressLine1]","value":"20-20 bay st","type":"text"},{"key":"to[addressLine2]","value":"floor 11","type":"text"},{"key":"to[city]","value":"toronto","type":"text"},{"key":"to[provinceOrState]","value":"on","type":"text"},{"key":"to[postalOrZip]","value":"M5V 4G9","type":"text"},{"key":"description","value":"Test","type":"text"},{"key":"bankAccount","value":"bank_mycTFJcd2d5SHifVHidiwc","type":"text"},{"key":"amount","value":"10000","type":"text"},{"key":"memo","value":"A short memo.","type":"text"},{"key":"number","value":"5049","type":"text"},{"key":"returnEnvelope","value":"return_envelope_mLSbMgS3THaWZLamoTZgpB","type":"text","uuid":"aba2ce05-66b2-4091-8411-3e451c9da3f6"}],"options":{"raw":{"language":"json"}}},"url":"https://api.postgrid.com/print-mail/v1/cheques"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"862"},{"key":"ETag","value":"W/\"35e-mV0OYTg3GRzwwbTNZRTKa7nqdTs\""},{"key":"Date","value":"Thu, 12 Nov 2020 23:51:16 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"cheque_sxyrnx6taqwoEBHzxEzsUE\",\n    \"object\": \"cheque\",\n    \"live\": false,\n    \"amount\": 10000,\n    \"bankAccount\": {\n        \"id\": \"bank_hkjpU68ThBBiXWLu7e9S5Q\",\n        \"object\": \"bank_account\",\n        \"live\": false,\n        \"accountNumberLast4\": \"6789\",\n        \"bankCountryCode\": \"US\",\n        \"bankName\": \"Chase Bank 2\",\n        \"bankPrimaryLine\": \"\",\n        \"bankSecondaryLine\": \"\",\n        \"description\": \"\",\n        \"routingNumber\": \"123456789\",\n        \"signatureText\": \"Apaar\",\n        \"createdAt\": \"2021-06-28T17:46:54.646Z\",\n        \"updatedAt\": \"2021-06-28T17:46:54.646Z\"\n    },\n    \"currencyCode\": \"USD\",\n    \"description\": \"My basic cheque\",\n    \"extraService\": \"certified\",\n    \"from\": {\n        \"id\": \"contact_pxd7wnnD1xY6H6etKNvjb4\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"20-20 BAY ST\",\n        \"addressLine2\": \"FLOOR 11\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"TORONTO\",\n        \"companyName\": \"PostGrid\",\n        \"country\": \"CANADA\",\n        \"countryCode\": \"CA\",\n        \"description\": \"Kevin Smith's contact information \",\n        \"email\": \"kevinsmith@postgrid.com\",\n        \"firstName\": \"Kevin\",\n        \"jobTitle\": \"Manager\",\n        \"lastName\": \"Smith\",\n        \"metadata\": {\n            \"friend\": \"no\"\n        },\n        \"phoneNumber\": \"9059059059\",\n        \"postalOrZip\": \"M5J 2N8\",\n        \"provinceOrState\": \"ON\"\n    },\n    \"logo\": \"https://gdm-catalog-fmapi-prod.imgix.net/ProductLogo/35cc11eb-39a9-4dac-948a-24670781c557.png?auto=format&ixlib=react-9.0.3&h=auto&w=auto\",\n    \"memo\": \"A short memo.\",\n    \"mergeVariables\": {\n        \"currency\": \"USD\"\n    },\n    \"message\": \"<strong>Here is some money</strong>\",\n    \"metadata\": {\n        \"amount\": \"10000\"\n    },\n    \"number\": 5049,\n    \"returnEnvelope\": \"return_envelope_mLSbMgS3THaWZLamoTZgpB\",\n    \"redirectTo\": {\n        \"id\": \"contact_sUqCrMDWcX21Jn8kDaE77g\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"145 MULBERRY ST\",\n        \"addressLine2\": \"APT PH D\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"NEW YORK\",\n        \"companyName\": \"\",\n        \"country\": \"UNITED STATES\",\n        \"countryCode\": \"US\",\n        \"description\": \"Contact with no last name\",\n        \"email\": \"\",\n        \"firstName\": \"Anna Marie\",\n        \"jobTitle\": \"\",\n        \"lastName\": \"\",\n        \"metadata\": {\n            \"var\": \"Here is the variable\"\n        },\n        \"phoneNumber\": \"\",\n        \"postalOrZip\": \"10013\",\n        \"provinceOrState\": \"NY\"\n    },\n    \"sendDate\": \"2023-02-16T15:40:35.873Z\",\n    \"status\": \"ready\",\n    \"to\": {\n        \"id\": \"contact_pxd7wnnD1xY6H6etKNvjb4\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"20-20 BAY ST\",\n        \"addressLine2\": \"FLOOR 11\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"TORONTO\",\n        \"companyName\": \"PostGrid\",\n        \"country\": \"CANADA\",\n        \"countryCode\": \"CA\",\n        \"description\": \"Kevin Smith's contact information \",\n        \"email\": \"kevinsmith@postgrid.com\",\n        \"firstName\": \"Kevin\",\n        \"jobTitle\": \"Manager\",\n        \"lastName\": \"Smith\",\n        \"metadata\": {\n            \"friend\": \"no\"\n        },\n        \"phoneNumber\": \"9059059059\",\n        \"postalOrZip\": \"M5J 2N8\",\n        \"provinceOrState\": \"ON\"\n    },\n    \"createdAt\": \"2022-02-16T18:35:29.424Z\",\n    \"updatedAt\": \"2022-02-16T18:35:29.424Z\"\n}"}],"_postman_id":"ff4bf4f2-70bd-4a49-a081-21b6cc4df4ee"},{"name":"Create a Digital Check","id":"d59f5d1d-f739-4265-b894-993ab903b466","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"to","value":"contact_pxd7wnnD1xY6H6etKNvjb4","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the receiver. You can either pass a contact <code>object</code> or a contact's <code>id</code>.</p>\n<p><code>required</code></p>\n","type":"text"},{"key":"from","value":"contact_pxd7wnnD1xY6H6etKNvjb4","description":"<p>The <code>id</code> or <a href=\"#contact\">contact</a> <code>object</code> of the sender. You can either pass a contact <code>object</code> or a contact's <code>id</code>.\n<code>required</code></p>\n","type":"text"},{"key":"digitalOnly[watermark]","value":"Test","description":"<p>This field must be passed in to create a digital-only cheque. The watermark must be passed in as such - <code>\"digitalOnly\": {\"watermark\": \"Test\"}</code></p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"bankAccount","value":"bank_hkjpU68ThBBiXWLu7e9S5Q","type":"text","description":"<p>The <code>id</code> for which bank account will be used for the cheque.</p>\n<p><code>required</code></p>\n"},{"key":"amount","value":"10000","type":"text","description":"<p>The amount for which the cheque is issued for. <strong>Must be specified in cents.</strong></p>\n<p><code>required</code></p>\n"},{"key":"memo","value":"A short memo.","type":"text","description":"<p>A memo to be included on the cheque</p>\n<p><code>optional</code></p>\n"},{"key":"message","value":"<strong>Here is some money</strong>","description":"<p>An HTML message to print on the same page as the cheque.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"number","value":"5049","type":"text","description":"<p>The cheque number.</p>\n<p><code>optional</code></p>\n"},{"key":"logo","value":"https://gdm-catalog-fmapi-prod.imgix.net/ProductLogo/35cc11eb-39a9-4dac-948a-24670781c557.png?auto=format&ixlib=react-9.0.3&h=auto&w=auto","description":"<p>A publicly accessible image URL to be printed on the cheque.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"currencyCode","value":"USD","description":"<p>A 3-letter code representing the currency of <code>amount</code>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"description","value":"My basic cheque","description":"<p>A description for the cheque.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"mergeVariables[currency]","value":"USD","description":"<p>See <a href=\"#merge-variables\">merge variables</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"metadata[amount]","value":"10000","description":"<p>See <a href=\"#metadata\">metadata</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"digitalOnly[payee][name]","value":"PostGrid","description":"<p>If the <code>to</code> contact is omitted, this information will be used as the cheque payee name, and the address lines will be omitted. Available for digital cheques only.</p>\n<p><code>optional</code></p>\n","type":"text","uuid":"7702504c-fb26-4cb5-8004-d3364639762c"}]},"url":"https://api.postgrid.com/print-mail/v1/cheques","description":"<p>Create a Digital Check. Digital Checks allow you to create digital copies of checks that can be sent electronically (for example, through e-mail) or printed by yourself. They use the same standard template as our postal cheques. The Digital Checks created through our API will not be sent out. They will instead be created with a <code>cancelled</code> status and a cancellation reason of <code>digital_only</code>.</p>\n<p>There are two PDFs that will be generated: a preview PDF that has a watermark over the cheque, which is the watermark passed in the initial POST call, and the deposit-ready PDF without the watermark and the full bank account number on the cheque.</p>\n<p>The PDFs are not generated immediately as the API call is made. To be notified when they are available, you can utilize our <a href=\"https://postgrid-offline.postman.co/workspace/edcb4596-ff81-46fe-8e83-de661418d65d/folder/37307287-a40ee943-3fa8-4e0b-9381-a168bd9b90f4?action=share&amp;source=copy-link&amp;creator=37307287&amp;ctx=documentation\">webhook</a> functionality. You will be notified when the PDFs are available with a <code>cheque.updated</code> event.<br /><a href=\"https://postgrid-offline.postman.co/workspace/edcb4596-ff81-46fe-8e83-de661418d65d/folder/37307287-a40ee943-3fa8-4e0b-9381-a168bd9b90f4?action=share&amp;source=copy-link&amp;creator=37307287&amp;ctx=documentation\"></a><br />To retrieve the deposit-ready PDF, you will need to call this <a href=\"https://postgrid-offline.postman.co/workspace/edcb4596-ff81-46fe-8e83-de661418d65d/request/37307287-ec35b66f-46a1-4f48-afc5-c8bb878fc0dd?action=share&amp;source=copy-link&amp;creator=37307287&amp;ctx=documentation\">GET</a> endpoint. To learn more about this feature, you can visit our <a href=\"https://postgrid.readme.io/docs/sending-e-checks-using-the-api\">README</a> guide.</p>\n<p>You can now also omit the <code>to</code> contact entirely by using the <code>digitalOnly.payee.name</code> field. This allows you to display only the payee's name on the cheque without requiring any mailing address. This is useful when no physical recipient address is needed.</p>\n<p>To create Digital Checks, the feature needs to be enabled for your organization; please reach out to <a href=\"https://mailto:support@postgrid.com\">support@postgrid.com</a>.</p>\n","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"46a2bc3a-42b9-4701-bef8-2a753a0497d9","id":"46a2bc3a-42b9-4701-bef8-2a753a0497d9","name":"Cheques","type":"folder"}},"urlObject":{"path":["v1","cheques"],"host":["https://api.postgrid.com/print-mail"],"query":[{"disabled":true,"description":{"content":"<p>See <a href=\"#expansions\">expansions</a>.</p>\n<p><code>optional</code></p>\n","type":"text/plain"},"key":"expand[]","value":"bankAccount"}],"variable":[]}},"response":[{"id":"4cb4a9ea-a22e-4b19-b97f-29493ff1b823","name":"Create an E-Check","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"to","value":"contact_pxd7wnnD1xY6H6etKNvjb4","description":"The `id` or [contact](#contact) `object` of the receiver. You can either pass a contact `object` or a contact's `id`.\n\n`required`","type":"text"},{"key":"from","value":"contact_pxd7wnnD1xY6H6etKNvjb4","description":"The `id` or [contact](#contact) `object` of the sender. You can either pass a contact `object` or a contact's `id`.\n`required`","type":"text"},{"key":"digitalOnly[watermark]","value":"Test","description":"This field must be passed in to create a digital-only cheque. The watermark must be passed in as such - `\"digitalOnly\": {\"watermark\": \"Test\"}`\n\n`optional`","type":"text"},{"key":"bankAccount","value":"bank_hkjpU68ThBBiXWLu7e9S5Q","type":"text","description":"The `id` for which bank account will be used for the cheque.\n\n`required`"},{"key":"amount","value":"10000","type":"text","description":"The amount for which the cheque is issued for. **Must be specified in cents.**\n\n`required`"},{"key":"memo","value":"A short memo.","type":"text","description":"A memo to be included on the cheque\n\n`optional`"},{"key":"message","value":"<strong>Here is some money</strong>","description":"An HTML message to print on the same page as the cheque.\n\n`optional`","type":"text"},{"key":"number","value":"5049","type":"text","description":"The cheque number.\n\n`optional`"},{"key":"logo","value":"https://gdm-catalog-fmapi-prod.imgix.net/ProductLogo/35cc11eb-39a9-4dac-948a-24670781c557.png?auto=format&ixlib=react-9.0.3&h=auto&w=auto","description":"A publicly accessible image URL to be printed on the cheque.\n\n`optional`","type":"text"},{"key":"currencyCode","value":"USD","description":"A 3-letter code representing the currency of `amount`.\n\n`optional`","type":"text"},{"key":"description","value":"My basic cheque","description":"A description for the cheque.\n\n`optional`","type":"text"},{"key":"mergeVariables[currency]","value":"USD","description":"See [merge variables](#merge-variables).\n\n`optional`","type":"text"},{"key":"metadata[amount]","value":"10000","description":"See [metadata](#metadata).\n\n`optional`","type":"text"}]},"url":{"raw":"https://api.postgrid.com/print-mail/v1/cheques","host":["https://api.postgrid.com/print-mail"],"path":["v1","cheques"],"query":[{"key":"expand[]","value":"bankAccount","description":"See [expansions](#expansions).\n\n`optional`","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"cheque_hhA8v4k5aGAk6w2FVtihjg\",\n    \"object\": \"cheque\",\n    \"live\": false,\n    \"amount\": 1000,\n    \"bankAccount\": \"bank_rY4B3GhttdVe1odkCyNq8f\",\n    \"cancellation\": {\n        \"reason\": \"digital_only\"\n    },\n    \"carrierTracking\": null,\n    \"currencyCode\": \"USD\",\n    \"description\": \"Test Digital Cheque Successful\",\n    \"digitalOnly\": {\n        \"watermark\": \"TEST\"\n    },\n    \"from\": {\n        \"id\": \"contact_bvtr9V3kEqgT2UsKoXnvCh\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"20 BAY ST\",\n        \"addressLine2\": \"\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"TORONTO\",\n        \"country\": \"CANADA\",\n        \"countryCode\": \"CA\",\n        \"firstName\": \"Test\",\n        \"postalOrZip\": \"M9V4V1\",\n        \"provinceOrState\": \"ON\"\n    },\n    \"mailingClass\": \"first_class\",\n    \"number\": 1000,\n    \"sendDate\": \"2025-03-10T18:53:53.697Z\",\n    \"size\": \"us_letter\",\n    \"status\": \"cancelled\",\n    \"to\": {\n        \"id\": \"contact_bvtr9V3kEqgT2UsKoXnvCh\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"20 BAY ST\",\n        \"addressLine2\": \"\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"TORONTO\",\n        \"country\": \"CANADA\",\n        \"countryCode\": \"CA\",\n        \"firstName\": \"Test\",\n        \"postalOrZip\": \"M9V4V1\",\n        \"provinceOrState\": \"ON\"\n    },\n    \"createdAt\": \"2025-03-10T18:53:53.702Z\",\n    \"updatedAt\": \"2025-03-10T18:53:53.702Z\"\n}"}],"_postman_id":"d59f5d1d-f739-4265-b894-993ab903b466"},{"name":"Get Cheque","id":"e314b4bf-1c24-4392-8a99-2cece75eae36","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.postgrid.com/print-mail/v1/cheques/:id","description":"<p>Retrieves a cheque order based on the passed <code>id</code>. The <code>id</code> should be a unique identifying string starting with <code>cheque_.</code></p>\n","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"46a2bc3a-42b9-4701-bef8-2a753a0497d9","id":"46a2bc3a-42b9-4701-bef8-2a753a0497d9","name":"Cheques","type":"folder"}},"urlObject":{"path":["v1","cheques",":id"],"host":["https://api.postgrid.com/print-mail"],"query":[{"disabled":true,"description":{"content":"<p>See <a href=\"#expansions\">expansions</a>.</p>\n<p><code>optional</code></p>\n","type":"text/plain"},"key":"expand[]","value":"bankAccount"}],"variable":[{"description":{"content":"<p>The <code>id</code> of the desired cheque.</p>\n<p><code>required</code></p>\n","type":"text/plain"},"type":"any","value":"cheque_mK8PfefU41ZQnKBRCaUayh","key":"id"}]}},"response":[{"id":"1a2b251d-5746-4812-9738-d13e1a29e8b0","name":"Get Cheque","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.postgrid.com/print-mail/v1/cheques/:id?expand[]=bankAccount","host":["https://api.postgrid.com/print-mail"],"path":["v1","cheques",":id"],"query":[{"key":"expand[]","value":"bankAccount"}],"variable":[{"key":"id","value":"cheque_mK8PfefU41ZQnKBRCaUayh"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 18 Nov 2020 05:11:15 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1196"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"4ac-igEv2GInn+MD8DC23IJuCsKomVI\""}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"cheque_mK8PfefU41ZQnKBRCaUayh\",\n    \"object\": \"cheque\",\n    \"live\": false,\n    \"amount\": 10000,\n    \"bankAccount\": {\n        \"id\": \"bank_3yXGjQ6ee4pHkLhb3a7keu\",\n        \"object\": \"bank_account\",\n        \"live\": false,\n        \"accountNumberLast4\": \"3211\",\n        \"bankCountryCode\": \"CA\",\n        \"bankName\": \"CIBC\",\n        \"bankPrimaryLine\": \"100 Bank Street\",\n        \"bankSecondaryLine\": \"Toronto, ON M9V4V1\",\n        \"description\": \"Example Bank Account\",\n        \"routeNumber\": \"123\",\n        \"transitNumber\": \"12345\",\n        \"createdAt\": \"2020-11-13T08:28:42.509Z\",\n        \"updatedAt\": \"2020-11-13T08:28:42.509Z\"\n    },\n    \"description\": \"Test\",\n    \"from\": {\n        \"id\": \"contact_jkTtb6ovKZ7xXe7N5rXipX\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"20-20 BAY ST\",\n        \"addressLine2\": \"FLOOR 11\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"TORONTO\",\n        \"companyName\": \"PostGrid\",\n        \"country\": null,\n        \"countryCode\": null,\n        \"postalOrZip\": \"M5V 4G9\",\n        \"provinceOrState\": \"ON\"\n    },\n    \"memo\": \"A short memo.\",\n    \"number\": 5049,\n    \"sendDate\": \"2020-11-18\",\n    \"status\": \"ready\",\n    \"to\": {\n        \"id\": \"contact_jkTtb6ovKZ7xXe7N5rXipX\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"20-20 BAY ST\",\n        \"addressLine2\": \"FLOOR 11\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"TORONTO\",\n        \"companyName\": \"PostGrid\",\n        \"country\": null,\n        \"countryCode\": null,\n        \"postalOrZip\": \"M5V 4G9\",\n        \"provinceOrState\": \"ON\"\n    },\n    \"createdAt\": \"2020-11-18T05:10:52.994Z\",\n    \"updatedAt\": \"2020-11-18T05:10:52.994Z\"\n}"}],"_postman_id":"e314b4bf-1c24-4392-8a99-2cece75eae36"},{"name":"Get Deposit-Ready Digital Check","id":"00be69ce-db79-4f82-906a-827b50afe107","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.postgrid.com/print-mail/v1/cheques/:id/with_deposit_ready_pdf","description":"<p>Returns the cheque object with the <code>depositReadyPDFURL</code> field, which links to the PDF version of a cheque that is non-watermarked and includes the full account number. It also contains the <code>url</code> field which links to the preview PDF of the E-Check. This endpoint can only be called by users with <code>admin</code> permission, which can be granted by the owner of your PostGrid account.</p>\n","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"46a2bc3a-42b9-4701-bef8-2a753a0497d9","id":"46a2bc3a-42b9-4701-bef8-2a753a0497d9","name":"Cheques","type":"folder"}},"urlObject":{"path":["v1","cheques",":id","with_deposit_ready_pdf"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[{"description":{"content":"<p>The <code>id</code> of the desired digital-only cheque</p>\n","type":"text/plain"},"type":"any","value":"cheque_oQubRo5HL4jTuWcKDxh4tL","key":"id"}]}},"response":[{"id":"416d65f2-0cdc-410c-a33e-d419d21386d0","name":"Get Deposit-Ready E-Check","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.postgrid.com/print-mail/v1/cheques/:id/with_deposit_ready_pdf","protocol":"https","host":["api","postgrid","com"],"path":["print-mail","v1","cheques",":id","with_deposit_ready_pdf"],"variable":[{"key":"id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":""}],"cookie":[],"responseTime":null,"body":"{     \n\t  \"id\": \"cheque_oQubRo5HL4jTuWcKDxh4tL\",\n      \"object\": \"cheque\",\n      \"live\": true,\n      \"amount\": 1000,\n      \"bankAccount\": \"bank_69btBPbngPWzD1rCB8PEU3\",\n      \"cancellation\": { \"reason\": \"digital_only\" },\n      \"currencyCode\": \"USD\",\n      \"depositReadyPDFURL\": \"https://eksandbox.s3.amazonaws.com/chequeprint/cheque_oQubRo5HL4jTuWcKDxh4tL.pdf?AWSAccessKeyId=AKIA5GFUILSUDYW4YKAG&Expires=1734977964&Signature=IeqLMwB5RwkPUMfHsS3vtyCX3%2FA%3D\",\n      \"description\": \"Test Digital Cheque Successful in live mode\",\n      \"digitalOnly\": { \"watermark\": \"TEST\" },\n      \"from\": {\n        \"id\": \"contact_tQYPcUmTTmrYqE8aRkd5ox\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"20-20 BAY ST\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"TORONTO\",\n        \"country\": \"CANADA\",\n        \"countryCode\": \"CA\",\n        \"firstName\": \"Fortune 500 Company\",\n        \"postalOrZip\": \"M9V 4G5\"\n      },\n      \"number\": 1000,\n      \"pageCount\": 2,\n      \"sendDate\": \"2024-12-23T18:04:21.924Z\",\n      \"size\": \"us_letter\",\n      \"status\": \"cancelled\",\n      \"to\": {\n        \"id\": \"contact_4dmRn2HRg8BpuPzaAieX89\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"20-20 BAY ST\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"TORONTO\",\n        \"country\": \"CANADA\",\n        \"countryCode\": \"CA\",\n        \"firstName\": \"Test\",\n        \"postalOrZip\": \"M9V 4G5\"\n      },\n      \"url\": \"https://eksandbox.s3.amazonaws.com/live/cheque_oQubRo5HL4jTuWcKDxh4tL.pdf?AWSAccessKeyId=AKIA5GFUILSUDYW4YKAG&Expires=1734977964&Signature=u7whUG2PkMqMGEY6Rb7fxWCRnrI%3D\",\n      \"createdAt\": \"2024-12-23T18:04:21.928Z\",\n      \"updatedAt\": \"2024-12-23T18:04:24.163Z\"\n}"}],"_postman_id":"00be69ce-db79-4f82-906a-827b50afe107"},{"name":"List Cheques","id":"3f254b89-f04c-44e5-af44-bd802c270221","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.postgrid.com/print-mail/v1/cheques?skip=2","description":"<p>List all cheque orders.</p>\n","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"46a2bc3a-42b9-4701-bef8-2a753a0497d9","id":"46a2bc3a-42b9-4701-bef8-2a753a0497d9","name":"Cheques","type":"folder"}},"urlObject":{"path":["v1","cheques"],"host":["https://api.postgrid.com/print-mail"],"query":[{"key":"skip","value":"2"}],"variable":[]}},"response":[{"id":"8d15024d-3b1d-45a6-960e-587819326914","name":"List Cheques","originalRequest":{"method":"GET","header":[],"url":"https://api.postgrid.com/print-mail/v1/cheques"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"922"},{"key":"ETag","value":"W/\"39a-CIc0x6nyltNbjrLSYw44W12k4QI\""},{"key":"Date","value":"Thu, 12 Nov 2020 22:25:39 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"object\": \"list\",\n    \"limit\": 10,\n    \"skip\": 0,\n    \"totalCount\": 1,\n    \"data\": [\n        {\n            \"id\": \"cheque_dYwJ1uc428rg1pwzqcRirV\",\n            \"object\": \"cheque\",\n            \"live\": false,\n            \"amount\": 10000,\n            \"bankAccount\": \"bank_mycTFJcd2d5SHifVHidiwc\",\n            \"description\": \"Test\",\n            \"from\": {\n                \"id\": \"contact_2ebY285LeamvfBZrJTdCvP\",\n                \"object\": \"contact\",\n                \"addressLine1\": \"20-20 BAY ST FLOOR 11\",\n                \"addressLine2\": \"\",\n                \"addressStatus\": \"verified\",\n                \"city\": \"TORONTO\",\n                \"companyName\": \"PostGrid\",\n                \"country\": \"CANADA\",\n                \"countryCode\": \"CA\",\n                \"postalOrZip\": \"M5J2N8\",\n                \"provinceOrState\": \"ON\"\n            },\n            \"memo\": \"A short memo.\",\n            \"number\": 5049,\n            \"sendDate\": \"Thu Nov 12 2020\",\n            \"status\": \"ready\",\n            \"to\": {\n                \"id\": \"contact_sUeaxGua7LgDfwGcBEBfz1\",\n                \"object\": \"contact\",\n                \"addressLine1\": \"20-20 BAY ST FLOOR 11\",\n                \"addressLine2\": \"\",\n                \"addressStatus\": \"verified\",\n                \"city\": \"TORONTO\",\n                \"companyName\": \"PostGrid\",\n                \"country\": \"CANADA\",\n                \"countryCode\": \"CA\",\n                \"postalOrZip\": \"M5J2N8\",\n                \"provinceOrState\": \"ON\"\n            },\n            \"createdAt\": \"2020-11-12T22:22:47.819Z\",\n            \"updatedAt\": \"2020-11-12T22:22:47.819Z\"\n        }\n    ]\n}"}],"_postman_id":"3f254b89-f04c-44e5-af44-bd802c270221"},{"name":"Cancel Cheque","id":"24391d0c-72a9-4ad5-8743-fb8309110fe9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://api.postgrid.com/print-mail/v1/cheques/:id","description":"<p>Cancels a cheque by <code>id</code>. This should be a unique identifying string starting with <code>cheque_</code>.</p>\n","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"46a2bc3a-42b9-4701-bef8-2a753a0497d9","id":"46a2bc3a-42b9-4701-bef8-2a753a0497d9","name":"Cheques","type":"folder"}},"urlObject":{"path":["v1","cheques",":id"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[{"id":"b872cadd-4c54-4373-9f84-ed1c3af3ef07","type":"any","value":"cheque_jFwzQ3Ao9rB6k5EWxViyT3","key":"id"}]}},"response":[{"id":"eeb3233a-f070-4a14-b58b-3347401520ec","name":"Cancel Cheque","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"https://api.postgrid.com/print-mail/v1/cheques/:id","host":["https://api.postgrid.com/print-mail"],"path":["v1","cheques",":id"],"variable":[{"key":"id","value":"cheque_7rjvmEM7yDz9TsoqAdiCJL"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1118"},{"key":"ETag","value":"W/\"45e-I2Wp1PW2qXLWbiqgdU7CQIxEM8g\""},{"key":"Date","value":"Mon, 05 Apr 2021 20:53:50 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"cheque_7rjvmEM7yDz9TsoqAdiCJL\",\n    \"object\": \"cheque\",\n    \"live\": false,\n    \"amount\": 13400,\n    \"bankAccount\": \"bank_2BFhb2euJTL8jU63DaFzU2\",\n    \"currencyCode\": \"CAD\",\n    \"description\": \"\",\n    \"from\": {\n        \"id\": \"contact_w5QLw7pPmRuZU3AB5uVTTw\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"800 W CUMMINGS PARK SUITE 6650\",\n        \"addressLine2\": \"\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"WOBURN\",\n        \"country\": \"CANADA\",\n        \"countryCode\": \"CA\",\n        \"firstName\": \"Scott\",\n        \"lastName\": \"Behman\",\n        \"postalOrZip\": \"01801\",\n        \"provinceOrState\": \"MA\"\n    },\n    \"memo\": \"\",\n    \"message\": \"\",\n    \"number\": 1072,\n    \"pageCount\": 2,\n    \"sendDate\": \"2021-04-05T20:53:36.545Z\",\n    \"status\": \"cancelled\",\n    \"to\": {\n        \"id\": \"contact_v4RjDJZpSAZx3EtoBCuU4v\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"238 SHREWSBURY ST.\",\n        \"addressLine2\": \"\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"WORCESTER\",\n        \"country\": \"CANADA\",\n        \"countryCode\": \"CA\",\n        \"firstName\": \"Jane\",\n        \"lastName\": \"Eden\",\n        \"postalOrZip\": \"01604\",\n        \"provinceOrState\": \"MA\"\n    },\n    \"url\": \"https://eksandbox.s3.amazonaws.com/test/cheque_7rjvmEM7yDz9TsoqAdiCJL.pdf?AWSAccessKeyId=AKIA5GFUILSUDYW4YKAG&Expires=1617656930&Signature=Wj%2F3lLKmZym0monCzLzdWRjCF%2B8%3D\",\n    \"createdAt\": \"2021-04-05T20:53:36.553Z\",\n    \"updatedAt\": \"2021-04-05T20:53:50.700Z\"\n}"}],"_postman_id":"24391d0c-72a9-4ad5-8743-fb8309110fe9"},{"name":"Cancel Cheque With Note","id":"f92e4bce-041c-4b7b-9fe1-1802bb827f7d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"note","value":"Cancelled due to payment value update","description":"<p>A <code>note</code> for the cancellation of the cheque.\n<code>required</code></p>\n","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/cheques/:id/cancellation","description":"<p>Cancels the specified cheque by <code>id</code> with a <code>note</code> describing the reason for cancellation. The <code>id</code> should be a unique identifying string starting with <code>cheque_</code>. The <code>note</code> should be a string.</p>\n","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"46a2bc3a-42b9-4701-bef8-2a753a0497d9","id":"46a2bc3a-42b9-4701-bef8-2a753a0497d9","name":"Cheques","type":"folder"}},"urlObject":{"path":["v1","cheques",":id","cancellation"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[{"id":"34252c56-901c-43b2-b1ce-cdfe19bb8614","description":{"content":"<p>The <code>id</code> of the cheque to be deleted.\n<code>required</code></p>\n","type":"text/plain"},"type":"any","value":"cheque_26Rm3FAizk6U8TUi8bokPj","key":"id"}]}},"response":[{"id":"e660ef4e-49b3-4f55-889e-3fb9c3cb2593","name":"Cancel Cheque With Note","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"note","value":"Cancelled due to payment value update","description":"A `note` for the cancellation of the cheque.\n`required`","type":"text"}]},"url":{"raw":"https://api.postgrid.com/print-mail/v1/cheques/:id/cancellation","host":["https://api.postgrid.com/print-mail"],"path":["v1","cheques",":id","cancellation"],"variable":[{"key":"id","value":"cheque_26Rm3FAizk6U8TUi8bokPj","description":"The `id` of the cheque to be deleted.\n`required`"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 25 Jan 2024 15:58:57 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"x-content-type-options","value":"nosniff"},{"key":"content-security-policy","value":"default-src 'none'"},{"key":"vary","value":"Origin"},{"key":"access-control-allow-credentials","value":"true"},{"key":"etag","value":"W/\"63e-wKHEQjssmP9GWzMbOGNWDXv21LE\""},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=B0ICyNaQ0SkfKk%2FPpymkNabABC9prX5eWxOIrH55DYxJBFs6bNJFJH9d4iM3zz7kukuqfgQOPEGTEgbHmRVNXBC5V54yDW3j%2B5wL02UYAWUCotSzQiAQEZKPEr0ahzyopNl8\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"84b1b877bc6d07b0-IAD"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"cheque_26Rm3FAizk6U8TUi8bokPj\",\n    \"object\": \"cheque\",\n    \"live\": false,\n    \"amount\": 500,\n    \"bankAccount\": \"bank_wALJikLcPznEK3i8WhkVjo\",\n    \"cancellation\": {\n        \"cancelledByUser\": \"user_epXvQvRpfsx5rWQnQu7YSA\",\n        \"note\": \"Cancelled due to payment value update\",\n        \"reason\": \"user_initiated\"\n    },\n    \"carrierTracking\": null,\n    \"currencyCode\": \"USD\",\n    \"description\": \"cancellation test 1\",\n    \"express\": false,\n    \"from\": {\n        \"id\": \"contact_6cHJXmpSnAjQC4vgXvTQV2\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"750 NORTH SAINT PAUL STREET\",\n        \"addressLine2\": \"\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"DALLAS\",\n        \"companyName\": \"JANE DOE\",\n        \"country\": \"UNITED STATES\",\n        \"countryCode\": \"US\",\n        \"postalOrZip\": \"75201\",\n        \"provinceOrState\": \"TX\"\n    },\n    \"mailingClass\": \"first_class\",\n    \"memo\": \"\",\n    \"mergeVariables\": {\n        \"Company name\": \"Axiom Space\"\n    },\n    \"message\": \"\",\n    \"metadata\": {\n        \"postgrid_dashboard\": \"\"\n    },\n    \"number\": 2049,\n    \"pageCount\": 2,\n    \"sendDate\": \"2024-01-26T04:59:59.999Z\",\n    \"size\": \"us_letter\",\n    \"status\": \"cancelled\",\n    \"to\": {\n        \"id\": \"contact_e8cVVSakApQnZTCHjoGXPf\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"1290 HERCULES AVENUE\",\n        \"addressLine2\": \"\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"HOUSTON\",\n        \"companyName\": \"Axiom Space\",\n        \"country\": \"UNITED STATES\",\n        \"countryCode\": \"US\",\n        \"email\": \"john@axiomspace.com\",\n        \"firstName\": \"John\",\n        \"jobTitle\": \"Manager, Information Technology Support\",\n        \"lastName\": \"Smith\",\n        \"metadata\": {\n            \"Company name\": \"Axiom Space\"\n        },\n        \"postalOrZip\": \"77058\",\n        \"provinceOrState\": \"TX\"\n    },\n    \"url\": \"https://pg-prod-bucket-1.s3.amazonaws.com/test/cheque_26Rm3FAizk6U8TUi8bokPj.pdf?AWSAccessKeyId=AKIA5GFUILSULWTWCR64&Expires=1706199237&Signature=66BxqEUwNCilzgRWVg2nRsczCUw%3D\",\n    \"createdAt\": \"2024-01-25T15:58:29.967Z\",\n    \"updatedAt\": \"2024-01-25T15:58:57.260Z\"\n}"}],"_postman_id":"f92e4bce-041c-4b7b-9fe1-1802bb827f7d"},{"name":"Progress Test Cheque","id":"f2e0401c-d34b-49cb-a751-293023e94095","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"https://api.postgrid.com/print-mail/v1/cheques/:id/progressions","description":"<p>Progress the desired test cheque by <code>id</code> to the next status. This should be a unique identifying string starting with <code>cheque</code>. This can be used to test webhooks.</p>\n<p><em>Note that this will fail with an</em> <code>invalid_progression_error</code> <em>if the status is one of</em> <code>completed</code> <em>or</em> <code>cancelled</code><em>.</em></p>\n","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"46a2bc3a-42b9-4701-bef8-2a753a0497d9","id":"46a2bc3a-42b9-4701-bef8-2a753a0497d9","name":"Cheques","type":"folder"}},"urlObject":{"path":["v1","cheques",":id","progressions"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[{"id":"fb0d8aa7-f698-45ac-9831-095c8a5c09c7","type":"any","value":"letter_wn7hPABuHVqi8FZapo2uMS","key":"id"}]}},"response":[{"id":"0855b651-b8cf-4d93-bff5-48c79ad272f2","name":"Progress Test Cheque","originalRequest":{"method":"POST","header":[],"url":{"raw":"https://api.postgrid.com/print-mail/v1/cheques/:id/progressions","host":["https://api.postgrid.com/print-mail"],"path":["v1","cheques",":id","progressions"],"variable":[{"key":"id","value":"cheque_nJnGbkfj58hAVRt2GEchc6"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"928"},{"key":"ETag","value":"W/\"3a0-jNVrT0kfe3uqyLr3TAscahV/syM\""},{"key":"Date","value":"Mon, 03 May 2021 14:43:09 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"cheque_nJnGbkfj58hAVRt2GEchc6\",\n    \"object\": \"cheque\",\n    \"live\": false,\n    \"amount\": 10000,\n    \"bankAccount\": \"bank_4mkDvY8xiJFQLirNejArdi\",\n    \"currencyCode\": \"CAD\",\n    \"description\": \"Test\",\n    \"from\": {\n        \"id\": \"contact_tCq5vq67jb3zuST2QA7oBS\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"20-20 BAY ST\",\n        \"addressLine2\": \"FLOOR 11\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"TORONTO\",\n        \"companyName\": \"PostGrid\",\n        \"country\": \"CANADA\",\n        \"countryCode\": \"CA\",\n        \"postalOrZip\": \"M5V 4G9\",\n        \"provinceOrState\": \"ON\"\n    },\n    \"memo\": \"A short memo.\",\n    \"message\": \"This is a test message\",\n    \"number\": 5049,\n    \"sendDate\": \"2021-05-03T14:42:48.675Z\",\n    \"status\": \"printing\",\n    \"to\": {\n        \"id\": \"contact_tCq5vq67jb3zuST2QA7oBS\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"20-20 BAY ST\",\n        \"addressLine2\": \"FLOOR 11\",\n        \"addressStatus\": \"verified\",\n        \"city\": \"TORONTO\",\n        \"companyName\": \"PostGrid\",\n        \"country\": \"CANADA\",\n        \"countryCode\": \"CA\",\n        \"postalOrZip\": \"M5V 4G9\",\n        \"provinceOrState\": \"ON\"\n    },\n    \"createdAt\": \"2021-05-03T14:42:48.678Z\",\n    \"updatedAt\": \"2021-05-03T14:43:09.140Z\"\n}"}],"_postman_id":"f2e0401c-d34b-49cb-a751-293023e94095"}],"id":"46a2bc3a-42b9-4701-bef8-2a753a0497d9","description":"<p>Create and manage cheque orders.</p>\n<h1 id=\"cheque\">Cheque</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>A unique ID prefixed with <code>cheque_</code></td>\n</tr>\n<tr>\n<td>object</td>\n<td>string</td>\n<td>Always <code>cheque</code></td>\n</tr>\n<tr>\n<td>status</td>\n<td>string</td>\n<td>See <a href=\"#tracking\">Tracking</a></td>\n</tr>\n<tr>\n<td>to</td>\n<td><a href=\"#contact-response\">Contact</a></td>\n<td>The recipient</td>\n</tr>\n<tr>\n<td>from</td>\n<td><a href=\"#contact-response\">Contact</a></td>\n<td>The sender</td>\n</tr>\n<tr>\n<td>imbStatus</td>\n<td>string or null</td>\n<td>See <a href=\"#intelligent-mail-tracking\">Intelligent-Mail Tracking</a></td>\n</tr>\n<tr>\n<td>live</td>\n<td>boolean</td>\n<td><code>true</code> if this is a live mode cheque else <code>false</code></td>\n</tr>\n<tr>\n<td>url</td>\n<td>string or null</td>\n<td>Signed link to a preview of this letter order</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string or null</td>\n<td>Optional line describing this cheque</td>\n</tr>\n<tr>\n<td>sendDate</td>\n<td>Date</td>\n<td>Date when the cheque will be sent</td>\n</tr>\n<tr>\n<td>bankAccount</td>\n<td>string</td>\n<td>A <a href=\"#bank-account\">Bank Account</a> ID, the drawee</td>\n</tr>\n<tr>\n<td>currencyCode</td>\n<td>string</td>\n<td>3-letter code representing currency of <code>amount</code></td>\n</tr>\n<tr>\n<td>amount</td>\n<td>integer</td>\n<td>The cheque amount as an integer representing cents</td>\n</tr>\n<tr>\n<td>memo</td>\n<td>string or null</td>\n<td>An optional memo to be printed on the cheque (Max 40 characters long)</td>\n</tr>\n<tr>\n<td>logo</td>\n<td>string or null</td>\n<td>An optional logo image URL which will be printed on the cheque</td>\n</tr>\n<tr>\n<td>number</td>\n<td>integer</td>\n<td>The cheque number</td>\n</tr>\n<tr>\n<td>message</td>\n<td>string or null</td>\n<td>An optional (HTML) message to print on the same page as the cheque</td>\n</tr>\n<tr>\n<td>letterHTML</td>\n<td>string or null</td>\n<td>The raw HTML for the attached letter, if any</td>\n</tr>\n<tr>\n<td>letterTemplate</td>\n<td>string or null</td>\n<td>A <a href=\"#template\">Template</a> ID for the attached letter, if any</td>\n</tr>\n<tr>\n<td>letterUploadedPDF</td>\n<td>string or null</td>\n<td>A URL pointing to the original PDF of the attached letter</td>\n</tr>\n<tr>\n<td>mailingClass</td>\n<td><code>first_class</code> or <code>standard_class</code></td>\n<td>Defaults to <code>first_class</code>. See <a href=\"#mailing-class\">mailing class</a>.</td>\n</tr>\n<tr>\n<td>mergeVariables</td>\n<td>object or null</td>\n<td><a href=\"#merge-variables\">Merge Variables</a> for the message/attached letter</td>\n</tr>\n<tr>\n<td>metadata</td>\n<td>object or null</td>\n<td>See <a href=\"#metadata\">Metadata</a></td>\n</tr>\n<tr>\n<td>digitalOnly</td>\n<td>object or null</td>\n<td>This field must be passed in to create a digital-only cheque. The watermark must be passed in as such - <code>\"digitalOnly\": {\"watermark\": \"Test\"}</code>. When a cheque is created as <code>digitalOnly</code>, its status is automatically set to <code>cancelled</code> with a cancellation reason of <code>DIGITAL_ONLY</code></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"061dc9f9-3dd6-40db-a9f7-e23f519bac1c","type":"text/javascript","requests":{},"exec":[""]}},{"listen":"test","script":{"id":"2810803f-21ef-4658-8318-16223fe66103","type":"text/javascript","requests":{},"exec":[""]}}],"_postman_id":"46a2bc3a-42b9-4701-bef8-2a753a0497d9"},{"name":"Webhooks","item":[{"name":"Create Webhook","id":"a7c7abbe-d377-472b-8d63-450e48c28b3c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"enabledEvents[]","value":"letter.created","type":"text","description":"<p>All the events that the webhook will receive.  See <a href=\"#webhook-event-types\">webhook event types</a>.</p>\n<p><code>required</code></p>\n"},{"key":"url","value":"https://ac18f0aecb4a.ngrok.io","type":"text","description":"<p>The trigger URL of the webhook. This must be HTTPS.</p>\n<p><code>required</code></p>\n"},{"key":"description","value":"Letter Created","type":"text","description":"<p>A description for the webhook.</p>\n<p><code>optional</code></p>\n"},{"key":"metadata[hooks]","value":"letter","description":"<p>See <a href=\"#metadata\">metadata</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"secret","value":"this_is_a_very_long_secret","description":"<p>You can specify a secret to use when creating the webhook. Note that this must be at least 20 characters long and contain no spaces.</p>\n<p><code>optional</code></p>\n","type":"text","disabled":true}]},"url":"https://api.postgrid.com/print-mail/v1/webhooks","description":"<p>Creates a new webhook.</p>\n","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"09c34fbd-253b-4682-b801-ec073e01b680","id":"09c34fbd-253b-4682-b801-ec073e01b680","name":"Webhooks","type":"folder"}},"urlObject":{"path":["v1","webhooks"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[]}},"response":[{"id":"37d2c18b-a281-48e1-b6bc-e7b2eeeab509","name":"Create Webhook","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"description","value":"Letter Created","type":"text"},{"key":"url","value":"https://ac18f0aecb4a.ngrok.io","type":"text"},{"key":"enabledEvents[]","value":"letter.created","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/webhooks"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"317"},{"key":"ETag","value":"W/\"13d-KW4tW1DTmaWecC2jSExyoI6EeWc\""},{"key":"Date","value":"Fri, 02 Apr 2021 02:06:55 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"webhook_skN2ZTvFwS62oc5tJY1gzw\",\n    \"object\": \"webhook\",\n    \"live\": false,\n    \"description\": \"Letter Created\",\n    \"enabled\": true,\n    \"enabledEvents\": [\n        \"letter.created\"\n    ],\n    \"metadata\": {\n        \"hooks\": \"letter\"\n    },\n    \"secret\": \"webhook_secret_xkNXtQ4jHevFdkTG3mSf1Q\",\n    \"url\": \"https://ac18f0aecb4a.ngrok.io\",\n    \"createdAt\": \"2022-02-16T18:37:02.048Z\",\n    \"updatedAt\": \"2022-02-16T18:37:02.048Z\"\n}"}],"_postman_id":"a7c7abbe-d377-472b-8d63-450e48c28b3c"},{"name":"Update Webhook","id":"cc20af17-5c19-4723-9f0e-70fd8d292295","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"enabled","value":"true","type":"text","description":"<p>Whether or not this webhook is enabled.</p>\n<p><code>optional</code></p>\n"},{"key":"url","value":"https://1cca5bfb3056.ngrok.io","type":"text","description":"<p>The trigger URL of the webhook. This must be HTTPS.</p>\n<p><code>required</code></p>\n"},{"key":"enabledEvents[]","value":"letter.updated","description":"<p>All the events that the webhook will receive.  See <a href=\"#webhook-event-types\">webhook event types</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"description","value":"Letter creates and updates","description":"<p>A description for the webhook.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"metadata[hooks]","value":"update","description":"<p>See <a href=\"#metadata\">metadata</a>.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"secret","value":"updated_webhook_secret_that_is_sufficiently_long","description":"<p>An updated secret value for the webhook. Must be at least 20 characters long and contain no spaces.</p>\n<p><code>optional</code></p>\n","type":"text","disabled":true}]},"url":"https://api.postgrid.com/print-mail/v1/webhooks/:id","description":"<p>Updates a webhook given by <code>:id</code>. The <code>id</code> should be a unique identifying string that starts with <code>webhook_</code>.</p>\n","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"09c34fbd-253b-4682-b801-ec073e01b680","id":"09c34fbd-253b-4682-b801-ec073e01b680","name":"Webhooks","type":"folder"}},"urlObject":{"path":["v1","webhooks",":id"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[{"description":{"content":"<p>The <code>id</code> of the webhook which you wish to update.</p>\n<p><code>required</code></p>\n","type":"text/plain"},"type":"any","value":"webhook_cttJaz1ju2s5vZudFZDixC","key":"id"}]}},"response":[{"id":"283bd3ae-5316-464d-b8f1-23d1d2761afd","name":"Update Webhook","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"enabled","value":"true","type":"text","description":"Whether or not this webhook is enabled.\n\n`optional`"},{"key":"url","value":"https://1cca5bfb3056.ngrok.io","type":"text","description":"The trigger URL of the webhook. This must be HTTPS.\n\n`required`"},{"key":"enabledEvents[]","value":"letter.updated","description":"All the events that the webhook will receive.  See [webhook event types](#webhook-event-types).\n\n`optional`","type":"text"},{"key":"description","value":"Letter creates and updates","description":"A description for the webhook.\n\n`optional`","type":"text"},{"key":"metadata[hooks]","value":"update","description":"See [metadata](#metadata).\n\n`optional`","type":"text"}]},"url":{"raw":"https://api.postgrid.com/print-mail/v1/webhooks/:id","host":["https://api.postgrid.com/print-mail"],"path":["v1","webhooks",":id"],"variable":[{"key":"id","value":"webhook_rfdnqrVxb9gnu2nr3Fr5Kv","description":"The `id` of the webhook which you wish to update.\n\n`required`"}]}},"_postman_previewlanguage":"json","header":[""],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"id\": \"webhook_rfdnqrVxb9gnu2nr3Fr5Kv\",\n    \"object\": \"webhook\",\n    \"live\": false,\n    \"description\": \"Letter creates and updates\",\n    \"enabled\": true,\n    \"enabledEvents\": [\n        \"letter.updated\"\n    ],\n    \"metadata\": {\n        \"hooks\": \"update\"\n    },\n    \"secret\": \"webhook_secret_8JnDNKaLaaxJpVANaEgpyY\",\n    \"url\": \"https://1cca5bfb3056.ngrok.io\",\n    \"createdAt\": \"2022-02-16T17:53:14.251Z\",\n    \"updatedAt\": \"2022-02-16T18:37:14.021Z\"\n}"}],"_postman_id":"cc20af17-5c19-4723-9f0e-70fd8d292295"},{"name":"Get Webhook","id":"1b2ff2bc-905d-4b3b-b284-226174e94109","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.postgrid.com/print-mail/v1/webhooks/:id","description":"<p>Gets a webhook by its <code>id</code>. This should be a unique identifying string starting with <code>webhook_</code>.</p>\n","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"09c34fbd-253b-4682-b801-ec073e01b680","id":"09c34fbd-253b-4682-b801-ec073e01b680","name":"Webhooks","type":"folder"}},"urlObject":{"path":["v1","webhooks",":id"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[{"id":"cf132022-9e64-4b04-95ac-de2e6afede0f","type":"any","value":"webhook_beA27GdjQvUUisCDwRTasK","key":"id"}]}},"response":[{"id":"f3106bf1-68b1-4b5b-b01f-a332df6dbe4b","name":"Get Webhook","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.postgrid.com/print-mail/v1/webhooks/:id","host":["https://api.postgrid.com/print-mail"],"path":["v1","webhooks",":id"],"variable":[{"key":"id","value":"webhook_beA27GdjQvUUisCDwRTasK"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"317"},{"key":"ETag","value":"W/\"13d-KW4tW1DTmaWecC2jSExyoI6EeWc\""},{"key":"Date","value":"Fri, 02 Apr 2021 02:07:10 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"webhook_beA27GdjQvUUisCDwRTasK\",\n    \"object\": \"webhook\",\n    \"live\": false,\n    \"description\": \"Letter Created\",\n    \"enabled\": true,\n    \"enabledEvents\": [\n        \"letter.created\"\n    ],\n    \"secret\": \"webhook_secret_c2iSwdM2UFJw4VuBvw27kL\",\n    \"url\": \"https://ac18f0aecb4a.ngrok.io\",\n    \"createdAt\": \"2021-04-02T02:06:55.086Z\",\n    \"updatedAt\": \"2021-04-02T02:06:55.086Z\"\n}"}],"_postman_id":"1b2ff2bc-905d-4b3b-b284-226174e94109"},{"name":"List Webhooks","id":"0824ac79-ab6c-4ca5-ac30-7b04de229973","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.postgrid.com/print-mail/v1/webhooks","description":"<p>Gets all webhooks for the current user.</p>\n","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"09c34fbd-253b-4682-b801-ec073e01b680","id":"09c34fbd-253b-4682-b801-ec073e01b680","name":"Webhooks","type":"folder"}},"urlObject":{"path":["v1","webhooks"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[]}},"response":[{"id":"2db32da1-7d40-4eee-948f-51264c4c599c","name":"List Webhooks","originalRequest":{"method":"GET","header":[],"url":"https://api.postgrid.com/print-mail/v1/webhooks"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"697"},{"key":"ETag","value":"W/\"2b9-4zDPH7ok8WAwQn3DXy/lS4AMFTo\""},{"key":"Date","value":"Fri, 02 Apr 2021 03:23:34 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"object\": \"list\",\n    \"limit\": 10,\n    \"skip\": 0,\n    \"totalCount\": 2,\n    \"data\": [\n        {\n            \"id\": \"webhook_f3gLJ57kutjvtb8HjCov5s\",\n            \"object\": \"webhook\",\n            \"live\": false,\n            \"description\": \"Letter Created\",\n            \"enabled\": true,\n            \"enabledEvents\": [\n                \"letter.created\"\n            ],\n            \"secret\": \"webhook_secret_u1R5HxPs8BduKzMn2FdZUV\",\n            \"url\": \"https://ac18f0aecb4a.ngrok.io\",\n            \"createdAt\": \"2021-04-02T03:11:01.158Z\",\n            \"updatedAt\": \"2021-04-02T03:11:01.158Z\"\n        },\n        {\n            \"id\": \"webhook_beA27GdjQvUUisCDwRTasK\",\n            \"object\": \"webhook\",\n            \"live\": false,\n            \"description\": \"Letter Created\",\n            \"enabled\": true,\n            \"enabledEvents\": [\n                \"letter.created\"\n            ],\n            \"secret\": \"webhook_secret_c2iSwdM2UFJw4VuBvw27kL\",\n            \"url\": \"https://ac18f0aecb4a.ngrok.io\",\n            \"createdAt\": \"2021-04-02T02:06:55.086Z\",\n            \"updatedAt\": \"2021-04-02T02:06:55.086Z\"\n        }\n    ]\n}"}],"_postman_id":"0824ac79-ab6c-4ca5-ac30-7b04de229973"},{"name":"List Webhook Invocations","id":"1d559dd6-24f0-4018-a94d-713ff61f0bc1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.postgrid.com/print-mail/v1/webhooks/:id/invocations","description":"<p>List previous invocations of this webhook by <code>id</code>. This should be a unique identifying string starting with <code>webhook_</code>. PostGrid tracks the general details about the invocation and what the response status code was.</p>\n","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"09c34fbd-253b-4682-b801-ec073e01b680","id":"09c34fbd-253b-4682-b801-ec073e01b680","name":"Webhooks","type":"folder"}},"urlObject":{"path":["v1","webhooks",":id","invocations"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[{"description":{"content":"<p>The <code>id</code> of the webhook.</p>\n<p><code>required</code></p>\n","type":"text/plain"},"type":"any","value":"webhook_beA27GdjQvUUisCDwRTasK","key":"id"}]}},"response":[{"id":"01e39a73-b7ca-4c95-9d93-878c03104d4a","name":"List Webhook Invocations","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.postgrid.com/print-mail/v1/webhooks/:id/invocations","host":["https://api.postgrid.com/print-mail"],"path":["v1","webhooks",":id","invocations"],"variable":[{"key":"id","value":"webhook_beA27GdjQvUUisCDwRTasK"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"547"},{"key":"ETag","value":"W/\"223-dEOEBv7baMnxN3oM93UJpJS3X0c\""},{"key":"Date","value":"Fri, 02 Apr 2021 03:24:04 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"object\": \"list\",\n    \"limit\": 10,\n    \"skip\": 0,\n    \"totalCount\": 2,\n    \"data\": [\n        {\n            \"id\": \"webhook_invocation_6TAGtJezjUyGFnznTRdX37\",\n            \"object\": \"webhook_invocation\",\n            \"statusCode\": 200,\n            \"type\": \"letter.created\",\n            \"webhook\": \"webhook_beA27GdjQvUUisCDwRTasK\",\n            \"createdAt\": \"2021-04-02T02:09:32.066Z\",\n            \"updatedAt\": \"2021-04-02T02:09:32.066Z\"\n        },\n        {\n            \"id\": \"webhook_invocation_a1Znx4otAJkEeFYGWCL3G2\",\n            \"object\": \"webhook_invocation\",\n            \"statusCode\": 500,\n            \"type\": \"letter.created\",\n            \"webhook\": \"webhook_beA27GdjQvUUisCDwRTasK\",\n            \"createdAt\": \"2021-04-02T02:08:55.707Z\",\n            \"updatedAt\": \"2021-04-02T02:08:55.707Z\"\n        }\n    ]\n}"}],"_postman_id":"1d559dd6-24f0-4018-a94d-713ff61f0bc1"},{"name":"Delete Webhook","id":"b2ffa55e-0d7c-43fc-b673-fe87991b1988","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://api.postgrid.com/print-mail/v1/webhooks/:id","description":"<p>Deletes a webhook by its <code>id</code>. This should be a unique identifying string starting with <code>webhook_</code>.</p>\n","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"09c34fbd-253b-4682-b801-ec073e01b680","id":"09c34fbd-253b-4682-b801-ec073e01b680","name":"Webhooks","type":"folder"}},"urlObject":{"path":["v1","webhooks",":id"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[{"id":"f59bbb06-658b-4905-bbe3-6445e04011fb","type":"any","value":"webhook_f3gLJ57kutjvtb8HjCov5s","key":"id"}]}},"response":[{"id":"b96e6610-fe9b-42f0-8e70-de0e3aa7c9f6","name":"Delete Webhook","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"https://api.postgrid.com/print-mail/v1/webhooks/:id","host":["https://api.postgrid.com/print-mail"],"path":["v1","webhooks",":id"],"variable":[{"key":"id","value":"webhook_f3gLJ57kutjvtb8HjCov5s"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"73"},{"key":"ETag","value":"W/\"49-gn3ggcb02Iq5FKAoTtFt8Q4XWAY\""},{"key":"Date","value":"Fri, 02 Apr 2021 03:25:25 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"webhook_f3gLJ57kutjvtb8HjCov5s\",\n    \"object\": \"webhook\",\n    \"deleted\": true\n}"}],"_postman_id":"b2ffa55e-0d7c-43fc-b673-fe87991b1988"}],"id":"09c34fbd-253b-4682-b801-ec073e01b680","description":"<p>Create and manage webhooks. Webhooks can be used to notify your application when events occur in PostGrid. For example, you may use a <code>letter.updated</code> webhook to receive a notification when a letter has been processed for delivery.</p>\n<p>Every webhook has a <code>secret</code> and this is used to sign the payload of the event.</p>\n<p>You can choose what format you want the payload to be delivered in. By default, the webhook payload will be delivered as a as a <a href=\"https://jwt.io/\">JSON Web Token. </a> When you receive the event, you can verify it using a JWT library available for your particular language (using the HMAC SHA256 Algorithm). There are <a href=\"https://jwt.io/#libraries-io\">many</a> off-the-shelf solutions you can use.</p>\n<p>You can alternatively choose to receive a JSON payload. In this case, you'll also receive a <code>PostGrid-Signature</code> HTTP header along with the payload.</p>\n<p>You must respond with a <code>200</code> status from your webhook. Otherwise, PostGrid will retry the webhook up to 3 times. First, after 1 hour, then 2 hours, then 4 hours. We will also keep track of every invocation and its response status. You can retrieve data about prior invocations using the webhook invocations list endpoint below.</p>\n<h1 id=\"webhook-response\">Webhook Response</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>A unique ID prefixed with <code>webhook_</code></td>\n</tr>\n<tr>\n<td>object</td>\n<td>string</td>\n<td>Always <code>webhook</code></td>\n</tr>\n<tr>\n<td>live</td>\n<td>boolean</td>\n<td><code>true</code> if this is a live mode webhook else <code>false</code></td>\n</tr>\n<tr>\n<td>url</td>\n<td>string</td>\n<td>The trigger URL of the webhook. Must be HTTPS</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string or null</td>\n<td>Optional line describing this webhook</td>\n</tr>\n<tr>\n<td>secret</td>\n<td>string</td>\n<td>The secret that the webhook JWT is signed with</td>\n</tr>\n<tr>\n<td>enabledEvents</td>\n<td>string array</td>\n<td>All the event types that this webhook receives</td>\n</tr>\n<tr>\n<td>enabled</td>\n<td>boolean</td>\n<td>Whether this webhook is enabled or not</td>\n</tr>\n<tr>\n<td>metadata</td>\n<td>object or null</td>\n<td>See <a href=\"#metadata\">Metadata</a></td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"webhook-notification\">Webhook Notification</h1>\n<p>This is the payload that PostGrid sends when it invokes your webhook. Note that if you choose <code>jwt</code> as the payload type for your webhook, you will have to verify/decode the JWT before you can access this payload.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>type</td>\n<td><a href=\"#webhook-event-types\">Webhook Event Type</a></td>\n<td>The event type of the webhook</td>\n</tr>\n<tr>\n<td>data</td>\n<td>Order</td>\n<td>The complete order object associated with this event (letter, postcard, or cheque)</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"webhook-invocation\">Webhook Invocation</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>A unique ID prefixed with <code>webhook_invocation_</code></td>\n</tr>\n<tr>\n<td>object</td>\n<td>string</td>\n<td>Always <code>webhook_invocation</code></td>\n</tr>\n<tr>\n<td>webhook</td>\n<td>string</td>\n<td>The webhook ID which was invoked</td>\n</tr>\n<tr>\n<td>type</td>\n<td><a href=\"#webhook-event-types\">Webhook Event Type</a></td>\n<td>The event type</td>\n</tr>\n<tr>\n<td>statusCode</td>\n<td>number</td>\n<td>The response from the invocation</td>\n</tr>\n<tr>\n<td>orderID</td>\n<td>string or null</td>\n<td>The relevant order ID for the event</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"webhook-event-types\">Webhook Event Types</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>letter.created</code></td>\n<td>Triggered when a letter is created</td>\n</tr>\n<tr>\n<td><code>letter.updated</code></td>\n<td>Triggered when a letter object is updated</td>\n</tr>\n<tr>\n<td><code>postcard.created</code></td>\n<td>Triggered when a postcard is created</td>\n</tr>\n<tr>\n<td><code>postcard.updated</code></td>\n<td>Triggered when a postcard object is updated</td>\n</tr>\n<tr>\n<td><code>cheque.created</code></td>\n<td>Triggered when a cheque is created</td>\n</tr>\n<tr>\n<td><code>cheque.updated</code></td>\n<td>Triggered when a cheque object is updated</td>\n</tr>\n<tr>\n<td><code>box.created</code></td>\n<td>Triggered when a box order is created</td>\n</tr>\n<tr>\n<td><code>box.updated</code></td>\n<td>Triggered when a box order object is updated</td>\n</tr>\n<tr>\n<td><code>return_envelope_order.created</code></td>\n<td>Triggered when a return envelope order is created</td>\n</tr>\n<tr>\n<td><code>return_envelope_order.updated</code></td>\n<td>Triggered when a return envelope order is updated</td>\n</tr>\n<tr>\n<td><code>tracker.visited</code></td>\n<td>Triggered when a tracker URL is visited or QR code is scanned.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"4a4afa98-8a48-4e89-b2da-eef87a2cc514","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"0bef016c-8e68-4248-a47e-b09455f35412","type":"text/javascript","exec":[""]}}],"_postman_id":"09c34fbd-253b-4682-b801-ec073e01b680"},{"name":"Return Envelopes","item":[{"name":"Create Return Envelope","id":"f2dcd781-64ba-470a-bb60-4eba61d58abc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"to","value":"contact_kFjQtFqJtRXgahx5vgc9mA","description":"<p>A contact ID or a contact object containing the address that will be printed onto the return envelope.</p>\n","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/return_envelopes","description":"<p>Creates a new return envelope.</p>\n","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"a437cf12-6062-4e23-9759-6903d4c02b3f","id":"a437cf12-6062-4e23-9759-6903d4c02b3f","name":"Return Envelopes","type":"folder"}},"urlObject":{"path":["v1","return_envelopes"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[]}},"response":[{"id":"35deb3c4-a120-4d1e-aa00-273027df6840","name":"Create Return Envelope","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"to","value":"contact_kFjQtFqJtRXgahx5vgc9mA","description":"A contact ID or a contact object containing the address that will be printed onto the return envelope.","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/return_envelopes"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"440"},{"key":"ETag","value":"W/\"1b8-bKQEPy6BLQ0SsU6YtbQGgb8AEFM\""},{"key":"Date","value":"Thu, 16 Dec 2021 03:06:17 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"return_envelope_7mhJUt25TnagyYzy1N81SJ\",\n    \"object\": \"return_envelope\",\n    \"live\": false,\n    \"available\": 0,\n    \"to\": {\n        \"id\": \"contact_kFjQtFqJtRXgahx5vgc9mA\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"20 BAY ST TORONTO ON\",\n        \"addressLine2\": null,\n        \"addressStatus\": \"verified\",\n        \"city\": null,\n        \"country\": \"CANADA\",\n        \"countryCode\": \"CA\",\n        \"firstName\": \"Apaar\",\n        \"postalOrZip\": null,\n        \"provinceOrState\": null\n    },\n    \"createdAt\": \"2021-12-16T03:06:17.419Z\",\n    \"updatedAt\": \"2021-12-16T03:06:17.419Z\"\n}"}],"_postman_id":"f2dcd781-64ba-470a-bb60-4eba61d58abc"},{"name":"List Return Envelopes","id":"e88be12a-e4b5-4b50-aff9-7d72d1c2f9c2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.postgrid.com/print-mail/v1/return_envelopes","description":"<p>Gets a list of return envelopes for the user.</p>\n","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"a437cf12-6062-4e23-9759-6903d4c02b3f","id":"a437cf12-6062-4e23-9759-6903d4c02b3f","name":"Return Envelopes","type":"folder"}},"urlObject":{"path":["v1","return_envelopes"],"host":["https://api.postgrid.com/print-mail"],"query":[{"disabled":true,"description":{"content":"<p>Used for traversing pages.  See <a href=\"#lists-and-pagination\">lists and pagination</a>.</p>\n<p><code>optional</code></p>\n","type":"text/plain"},"key":"skip","value":"1"},{"disabled":true,"description":{"content":"<p>Limits the number of resources returned.  See <a href=\"#lists-and-pagination\">lists and pagination</a>.</p>\n<p><code>optional</code></p>\n","type":"text/plain"},"key":"limit","value":"5"},{"disabled":true,"description":{"content":"<p>Searches the data for the given input.  See <a href=\"#search\">search</a>.</p>\n<p><code>optional</code></p>\n","type":"text/plain"},"key":"search","value":"toronto"}],"variable":[]}},"response":[{"id":"42b7ea06-85f7-4e37-8349-7c4444a9295d","name":"List Return Envelopes","originalRequest":{"method":"GET","header":[],"url":"https://api.postgrid.com/print-mail/v1/return_envelopes"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"502"},{"key":"ETag","value":"W/\"1f6-b3rCv3F8q2Wm41Xk5AHkMv8od0I\""},{"key":"Date","value":"Thu, 16 Dec 2021 03:08:18 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"object\": \"list\",\n    \"limit\": 10,\n    \"skip\": 0,\n    \"totalCount\": 1,\n    \"data\": [\n        {\n            \"id\": \"return_envelope_7mhJUt25TnagyYzy1N81SJ\",\n            \"object\": \"return_envelope\",\n            \"live\": false,\n            \"available\": 0,\n            \"to\": {\n                \"id\": \"contact_kFjQtFqJtRXgahx5vgc9mA\",\n                \"object\": \"contact\",\n                \"addressLine1\": \"20 BAY ST TORONTO ON\",\n                \"addressLine2\": null,\n                \"addressStatus\": \"verified\",\n                \"city\": null,\n                \"country\": \"CANADA\",\n                \"countryCode\": \"CA\",\n                \"firstName\": \"Apaar\",\n                \"postalOrZip\": null,\n                \"provinceOrState\": null\n            },\n            \"createdAt\": \"2021-12-16T03:06:17.419Z\",\n            \"updatedAt\": \"2021-12-16T03:06:17.419Z\"\n        }\n    ]\n}"}],"_postman_id":"e88be12a-e4b5-4b50-aff9-7d72d1c2f9c2"},{"name":"Get Return Envelope","id":"56f6bc60-4e16-49cb-abf0-3203a56d3ef5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.postgrid.com/print-mail/v1/return_envelopes/:id","description":"<p>Gets the information for a return envelope by <code>id</code>. This should be a unique identifying string starting with <code>return_envelope_</code>.</p>\n","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"a437cf12-6062-4e23-9759-6903d4c02b3f","id":"a437cf12-6062-4e23-9759-6903d4c02b3f","name":"Return Envelopes","type":"folder"}},"urlObject":{"path":["v1","return_envelopes",":id"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[{"id":"79a2b7d9-c7c2-4ca1-8077-61e9d6e330d5","type":"any","value":"return_envelope_7mhJUt25TnagyYzy1N81SJ","key":"id"}]}},"response":[{"id":"dfe3f8ff-9774-4ab0-a466-744f69865f16","name":"Get Return Envelope","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.postgrid.com/print-mail/v1/return_envelopes/:id","host":["https://api.postgrid.com/print-mail"],"path":["v1","return_envelopes",":id"],"variable":[{"key":"id","value":"return_envelope_7mhJUt25TnagyYzy1N81SJ"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"440"},{"key":"ETag","value":"W/\"1b8-bKQEPy6BLQ0SsU6YtbQGgb8AEFM\""},{"key":"Date","value":"Thu, 16 Dec 2021 03:10:23 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"return_envelope_7mhJUt25TnagyYzy1N81SJ\",\n    \"object\": \"return_envelope\",\n    \"live\": false,\n    \"available\": 0,\n    \"to\": {\n        \"id\": \"contact_kFjQtFqJtRXgahx5vgc9mA\",\n        \"object\": \"contact\",\n        \"addressLine1\": \"20 BAY ST TORONTO ON\",\n        \"addressLine2\": null,\n        \"addressStatus\": \"verified\",\n        \"city\": null,\n        \"country\": \"CANADA\",\n        \"countryCode\": \"CA\",\n        \"firstName\": \"Apaar\",\n        \"postalOrZip\": null,\n        \"provinceOrState\": null\n    },\n    \"createdAt\": \"2021-12-16T03:06:17.419Z\",\n    \"updatedAt\": \"2021-12-16T03:06:17.419Z\"\n}"}],"_postman_id":"56f6bc60-4e16-49cb-abf0-3203a56d3ef5"}],"id":"a437cf12-6062-4e23-9759-6903d4c02b3f","description":"<p>You can use the return envelopes API to create and manage return envelopes. These are envelopes that are sent along with your mail (if specified) and allow your recipients to send mail to a particular address without having to purchase their own envelopes/stamps.</p>\n<p>Note that you must order return envelopes and wait for the order to be filled before you can use them. You can manage these return envelope orders via the API as well as the dashboard.</p>\n","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"b42dc677-facc-42ff-9f0c-41b90304fa70","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"69a63392-9721-4f0d-a6b0-4d71e8440b58","type":"text/javascript","exec":[""]}}],"_postman_id":"a437cf12-6062-4e23-9759-6903d4c02b3f"},{"name":"Return Envelope Orders","item":[{"name":"Create Return Envelope Order","id":"efd9cae8-b6ef-48c6-8f0d-50b09f4035d6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"quantityOrdered","value":"100000","type":"text","description":"<p>The quantity of return envelopes ordered. Minimum 5000.</p>\n<p><code>required</code></p>\n"},{"key":"description","value":"A batch of 10000","description":"<p>A description for the order of return envelopes.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"metadata[size]","value":"10000","description":"<p>See <a href=\"#metadata\">metadata</a>.</p>\n<p><code>optional</code></p>\n","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/return_envelopes/:id/orders","description":"<p>Creates a batch order of return envelopes.</p>\n","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"f5e04b03-19e7-420d-aa7e-fa2a55cb7697","id":"f5e04b03-19e7-420d-aa7e-fa2a55cb7697","name":"Return Envelope Orders","type":"folder"}},"urlObject":{"path":["v1","return_envelopes",":id","orders"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[{"id":"fc3eab3c-f6be-4390-ad21-57214644a7c1","type":"any","value":"return_envelope_7mhJUt25TnagyYzy1N81SJx","key":"id"}]}},"response":[{"id":"f7d393be-9d81-4400-8d1e-74174b448502","name":"Create Return Envelope Order","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"quantityOrdered","value":"100","type":"text"}]},"url":{"raw":"https://api.postgrid.com/print-mail/v1/return_envelopes/:id/orders","host":["https://api.postgrid.com/print-mail"],"path":["v1","return_envelopes",":id","orders"],"variable":[{"key":"id","value":"return_envelope_7mhJUt25TnagyYzy1N81SJx"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"275"},{"key":"ETag","value":"W/\"113-D99gyxRqQBKiSShFHeTow/gOyR8\""},{"key":"Date","value":"Thu, 16 Dec 2021 03:23:22 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"return_envelope_order_cJhFxQhs69MGhxu3L5NvyA\",\n    \"object\": \"return_envelope_order\",\n    \"live\": false,\n    \"quantityOrdered\": 100,\n    \"returnEnvelope\": \"return_envelope_7mhJUt25TnagyYzy1N81SJ\",\n    \"status\": \"placed\",\n    \"createdAt\": \"2021-12-16T03:23:22.617Z\",\n    \"updatedAt\": \"2021-12-16T03:23:22.617Z\"\n}"}],"_postman_id":"efd9cae8-b6ef-48c6-8f0d-50b09f4035d6"},{"name":"List Return Envelope Orders","id":"01876e73-e33b-41cf-804a-35944bf30126","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.postgrid.com/print-mail/v1/return_envelopes/:id/orders","description":"<p>Gets a list of return envelope orders for the user.</p>\n","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"f5e04b03-19e7-420d-aa7e-fa2a55cb7697","id":"f5e04b03-19e7-420d-aa7e-fa2a55cb7697","name":"Return Envelope Orders","type":"folder"}},"urlObject":{"path":["v1","return_envelopes",":id","orders"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[{"description":{"content":"<p>The <code>id</code> of the return envelope of which orders you'd like to retrieve.</p>\n<p><code>required</code></p>\n","type":"text/plain"},"type":"any","value":"return_envelope_7mhJUt25TnagyYzy1N81SJ","key":"id"}]}},"response":[{"id":"d933c57f-103f-4095-950f-6b7e2113171a","name":"List Return Envelope Orders","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.postgrid.com/print-mail/v1/return_envelopes/:id/orders","host":["https://api.postgrid.com/print-mail"],"path":["v1","return_envelopes",":id","orders"],"variable":[{"key":"id","value":"return_envelope_7mhJUt25TnagyYzy1N81SJ"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"337"},{"key":"ETag","value":"W/\"151-7mibfjnqPDzxiNIDUVlcw1Zx8PI\""},{"key":"Date","value":"Thu, 16 Dec 2021 03:23:33 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"object\": \"list\",\n    \"limit\": 10,\n    \"skip\": 0,\n    \"totalCount\": 1,\n    \"data\": [\n        {\n            \"id\": \"return_envelope_order_cJhFxQhs69MGhxu3L5NvyA\",\n            \"object\": \"return_envelope_order\",\n            \"live\": false,\n            \"quantityOrdered\": 100,\n            \"returnEnvelope\": \"return_envelope_7mhJUt25TnagyYzy1N81SJ\",\n            \"status\": \"placed\",\n            \"createdAt\": \"2021-12-16T03:23:22.617Z\",\n            \"updatedAt\": \"2021-12-16T03:23:22.617Z\"\n        }\n    ]\n}"}],"_postman_id":"01876e73-e33b-41cf-804a-35944bf30126"},{"name":"Get Return Envelope Order","id":"9b734e21-f8eb-4afc-877b-c9789ad017c2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.postgrid.com/print-mail/v1/return_envelopes/:id/orders/:orderID?expand[]=returnEnvelope","description":"<p>Gets a specific return envelope order by return envelope id as <code>id</code> and return envelope order id as <code>orderID</code>.</p>\n","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"f5e04b03-19e7-420d-aa7e-fa2a55cb7697","id":"f5e04b03-19e7-420d-aa7e-fa2a55cb7697","name":"Return Envelope Orders","type":"folder"}},"urlObject":{"path":["v1","return_envelopes",":id","orders",":orderID"],"host":["https://api.postgrid.com/print-mail"],"query":[{"description":{"content":"<p>Must be <code>returnEnvelope</code> if supplied.  See <a href=\"#expandables\">expandables</a>.</p>\n<p><code>optional</code></p>\n","type":"text/plain"},"key":"expand[]","value":"returnEnvelope"}],"variable":[{"description":{"content":"<p>The <code>id</code> of the return envelope.</p>\n<p><code>required</code></p>\n","type":"text/plain"},"type":"any","value":"return_envelope_7mhJUt25TnagyYzy1N81SJ","key":"id"},{"description":{"content":"<p>The <code>id</code> of the return envelope order.</p>\n<p><code>required</code></p>\n","type":"text/plain"},"type":"any","value":"return_envelope_order_cJhFxQhs69MGhxu3L5NvyA","key":"orderID"}]}},"response":[{"id":"bdcd55d5-559d-4fd7-962d-7d68ea5038a0","name":"Get Return Envelope Order","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.postgrid.com/print-mail/v1/return_envelopes/:id/orders/:orderID?expand[]=returnEnvelope","host":["https://api.postgrid.com/print-mail"],"path":["v1","return_envelopes",":id","orders",":orderID"],"query":[{"key":"expand[]","value":"returnEnvelope"}],"variable":[{"key":"id","value":"return_envelope_7mhJUt25TnagyYzy1N81SJ"},{"key":"orderID","value":"return_envelope_order_cJhFxQhs69MGhxu3L5NvyA"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"675"},{"key":"ETag","value":"W/\"2a3-t8t8Va+vQEEo1jO5tssalwJFapo\""},{"key":"Date","value":"Thu, 16 Dec 2021 03:33:42 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"return_envelope_order_cJhFxQhs69MGhxu3L5NvyA\",\n    \"object\": \"return_envelope_order\",\n    \"live\": false,\n    \"quantityOrdered\": 100,\n    \"returnEnvelope\": {\n        \"id\": \"return_envelope_7mhJUt25TnagyYzy1N81SJ\",\n        \"object\": \"return_envelope\",\n        \"live\": false,\n        \"available\": 0,\n        \"to\": {\n            \"id\": \"contact_kFjQtFqJtRXgahx5vgc9mA\",\n            \"object\": \"contact\",\n            \"addressLine1\": \"20 BAY ST TORONTO ON\",\n            \"addressLine2\": null,\n            \"addressStatus\": \"verified\",\n            \"city\": null,\n            \"country\": \"CANADA\",\n            \"countryCode\": \"CA\",\n            \"firstName\": \"Apaar\",\n            \"postalOrZip\": null,\n            \"provinceOrState\": null\n        },\n        \"createdAt\": \"2021-12-16T03:06:17.419Z\",\n        \"updatedAt\": \"2021-12-16T03:06:17.419Z\"\n    },\n    \"status\": \"placed\",\n    \"createdAt\": \"2021-12-16T03:23:22.617Z\",\n    \"updatedAt\": \"2021-12-16T03:23:22.617Z\"\n}"}],"_postman_id":"9b734e21-f8eb-4afc-877b-c9789ad017c2"},{"name":"Fill Test Return Envelope Order","id":"1721ab88-438d-4903-83f2-70709433ec49","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"https://api.postgrid.com/print-mail/v1/return_envelopes/:id/orders/:orderID/fills","description":"<p>Fills the return envelope by <code>id</code>, for the return envelope order by <code>orderID</code> in testing.</p>\n<p>The <code>id</code> for the return envelope should be a unique identifying string starting with <code>return_envelope_</code>.</p>\n<p>The <code>id</code> for the return envelope order should be a unique identifying string starting with <code>return_envelope_order_</code>.</p>\n","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"f5e04b03-19e7-420d-aa7e-fa2a55cb7697","id":"f5e04b03-19e7-420d-aa7e-fa2a55cb7697","name":"Return Envelope Orders","type":"folder"}},"urlObject":{"path":["v1","return_envelopes",":id","orders",":orderID","fills"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[{"description":{"content":"<p>The <code>id</code> of the return envelope.</p>\n<p><code>required</code></p>\n","type":"text/plain"},"type":"any","value":"return_envelope_7mhJUt25TnagyYzy1N81SJ","key":"id"},{"description":{"content":"<p>The <code>id</code> of the return envelope order.</p>\n<p><code>required</code></p>\n","type":"text/plain"},"type":"any","value":"return_envelope_order_7Lfcisz49i1PP8XDC6ewqy","key":"orderID"}]}},"response":[{"id":"f2bb7b47-b726-4fbf-ad94-f7ca6e78f0b3","name":"Fill Test Return Envelope Order","originalRequest":{"method":"POST","header":[],"url":{"raw":"https://api.postgrid.com/print-mail/v1/return_envelopes/:id/orders/:orderID/fills","host":["https://api.postgrid.com/print-mail"],"path":["v1","return_envelopes",":id","orders",":orderID","fills"],"variable":[{"key":"id","value":"return_envelope_7mhJUt25TnagyYzy1N81SJ"},{"key":"orderID","value":"return_envelope_order_7Lfcisz49i1PP8XDC6ewqy"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"296"},{"key":"ETag","value":"W/\"128-HVjhG+oBlajsEGd4/DKGvh7nuuE\""},{"key":"Date","value":"Thu, 16 Dec 2021 03:37:05 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"return_envelope_order_7Lfcisz49i1PP8XDC6ewqy\",\n    \"object\": \"return_envelope_order\",\n    \"live\": false,\n    \"quantityFilled\": 100,\n    \"quantityOrdered\": 100,\n    \"returnEnvelope\": \"return_envelope_7mhJUt25TnagyYzy1N81SJ\",\n    \"status\": \"filled\",\n    \"createdAt\": \"2021-12-16T03:36:20.255Z\",\n    \"updatedAt\": \"2021-12-16T03:37:05.450Z\"\n}"}],"_postman_id":"1721ab88-438d-4903-83f2-70709433ec49"},{"name":"Cancel Return Envelope Order","id":"b9d83766-38eb-4c06-bcc4-d971cedefaa3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://api.postgrid.com/print-mail/v1/return_envelopes/:id/orders/:orderID?expand[]=returnEnvelope","description":"<p>Cancels a return envelope by <code>id</code> and return envelope order by <code>orderID</code>.</p>\n<p>The <code>id</code> for the return envelope should be a unique identifying string starting with <code>return_envelope_</code>.</p>\n<p>The <code>id</code> for the return envelope order should be a unique identifying string starting with <code>return_envelope_order_</code>.</p>\n","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"f5e04b03-19e7-420d-aa7e-fa2a55cb7697","id":"f5e04b03-19e7-420d-aa7e-fa2a55cb7697","name":"Return Envelope Orders","type":"folder"}},"urlObject":{"path":["v1","return_envelopes",":id","orders",":orderID"],"host":["https://api.postgrid.com/print-mail"],"query":[{"description":{"content":"<p>Must be <code>returnEnvelope</code> if provided.  See <a href=\"#expandables\">expandables</a>.</p>\n<p><code>optional</code></p>\n","type":"text/plain"},"key":"expand[]","value":"returnEnvelope"}],"variable":[{"id":"59408d04-d439-4354-a845-011dfcf8ff29","type":"any","value":"return_envelope_7mhJUt25TnagyYzy1N81SJ","key":"id"},{"id":"1eca1b7a-39f8-4891-be4c-e198d0961d3c","type":"any","value":"return_envelope_order_c27wiHFJdDCVeBfcefP6th","key":"orderID"}]}},"response":[{"id":"01d205d2-2689-41ef-a3da-df6821324132","name":"Cancel Return Envelope Order","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"https://api.postgrid.com/print-mail/v1/return_envelopes/:id/orders/:orderID","host":["https://api.postgrid.com/print-mail"],"path":["v1","return_envelopes",":id","orders",":orderID"],"variable":[{"key":"id","value":"return_envelope_7mhJUt25TnagyYzy1N81SJ"},{"key":"orderID","value":"return_envelope_order_c27wiHFJdDCVeBfcefP6th"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"278"},{"key":"ETag","value":"W/\"116-AtvrEc3H8KCQ5JFyVJC/uZI4i/0\""},{"key":"Date","value":"Thu, 16 Dec 2021 03:38:41 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"return_envelope_order_c27wiHFJdDCVeBfcefP6th\",\n    \"object\": \"return_envelope_order\",\n    \"live\": false,\n    \"quantityOrdered\": 100,\n    \"returnEnvelope\": \"return_envelope_7mhJUt25TnagyYzy1N81SJ\",\n    \"status\": \"cancelled\",\n    \"createdAt\": \"2021-12-16T03:37:29.816Z\",\n    \"updatedAt\": \"2021-12-16T03:38:41.546Z\"\n}"}],"_postman_id":"b9d83766-38eb-4c06-bcc4-d971cedefaa3"}],"id":"f5e04b03-19e7-420d-aa7e-fa2a55cb7697","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"04d4536d-46de-4c89-a0dd-82f766dc9a5b","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"009f45fb-2ab2-492b-b606-79dd0746b765","type":"text/javascript","exec":[""]}}],"_postman_id":"f5e04b03-19e7-420d-aa7e-fa2a55cb7697","description":""},{"name":"Events","item":[{"name":"List Events","id":"4711290c-ef54-4632-9af6-12768ce8c7e8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.postgrid.com/print-mail/v1/events?type[]=letter.created&skip=1&limit=2","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"79202d3f-0f30-4cef-8a98-048ad02752f1","id":"79202d3f-0f30-4cef-8a98-048ad02752f1","name":"Events","type":"folder"}},"urlObject":{"path":["v1","events"],"host":["https://api.postgrid.com/print-mail"],"query":[{"description":{"content":"<p>Specifies the type of event to list. See <a href=\"#204bd5a0-9d1f-417c-aa21-1d2e1a06e8b0\">event types</a>.</p>\n","type":"text/plain"},"key":"type[]","value":"letter.created"},{"description":{"content":"<p>Used for traversing pages.</p>\n","type":"text/plain"},"key":"skip","value":"1"},{"description":{"content":"<p>Limits the number of resources returned.</p>\n","type":"text/plain"},"key":"limit","value":"2"}],"variable":[]}},"response":[{"id":"bde06cc0-7398-4b17-b015-cf6da0ea089e","name":"List Events","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.postgrid.com/print-mail/v1/events?type[]=letter.created&skip=1&limit=2","protocol":"https","host":["api","postgrid","com"],"path":["print-mail","v1","events"],"query":[{"key":"type[]","value":"letter.created","description":"Specifies the type of event to list. See [event types](#204bd5a0-9d1f-417c-aa21-1d2e1a06e8b0)."},{"key":"skip","value":"1","description":"Used for traversing pages."},{"key":"limit","value":"2","description":"Limits the number of resources returned."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 29 May 2023 15:20:58 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"x-powered-by","value":"Express"},{"key":"vary","value":"Origin"},{"key":"access-control-allow-credentials","value":"true"},{"key":"etag","value":"W/\"f59-etmPdyPOuTmAdav4lco0hxVuC4Q\""},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=Rr%2BfDcdPfckCtENlDUfOBKP9sxCrvuVYUbuVUoy10oAWPi7ShmAR9ITJ8NGhEuHXtImC4X7ycTITy%2Fhc8hljP4VZclcSsVWRZFw%2BoMbJK26DpNnEQ6cYw5fzpcEvjyf7hhQM\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7cefb9687a7720be-IAD"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"object\": \"list\",\n    \"limit\": 2,\n    \"skip\": 1,\n    \"totalCount\": 196111,\n    \"data\": [\n        {\n            \"id\": \"event_r1nfP4xAacyqMYtt7PeyFD\",\n            \"object\": \"event\",\n            \"live\": false,\n            \"type\": \"letter.created\",\n            \"data\": {\n                \"id\": \"letter_rqfnwvzq5TUsYR2r6L9V8X\",\n                \"object\": \"letter\",\n                \"live\": false,\n                \"addressPlacement\": \"top_first_page\",\n                \"color\": false,\n                \"description\": \"letter test 2\",\n                \"doubleSided\": false,\n                \"envelopeType\": \"standard_double_window\",\n                \"express\": false,\n                \"extraService\": \"certified\",\n                \"from\": {\n                    \"id\": \"contact_wCVRSWWYjx6QHF8Z2kisUA\",\n                    \"object\": \"contact\",\n                    \"addressLine1\": \"2 PICKWICK PLAZA\",\n                    \"addressLine2\": \"\",\n                    \"addressStatus\": \"verified\",\n                    \"city\": \"GREENWICH\",\n                    \"companyName\": \"Interactive Brokers LLC\",\n                    \"country\": \"UNITED STATES\",\n                    \"countryCode\": \"US\",\n                    \"description\": \"1097916\",\n                    \"email\": \"\",\n                    \"firstName\": \"\",\n                    \"jobTitle\": \"\",\n                    \"lastName\": \"\",\n                    \"metadata\": {\n                        \"amount\": 2071.28,\n                        \"chequeNumber\": null,\n                        \"memo\": \"FBO Daniel Devore Roth IRA U5039335\",\n                        \"variable1\": \"\",\n                        \"variable2\": \"\"\n                    },\n                    \"phoneNumber\": \"\",\n                    \"postalOrZip\": \"6831\",\n                    \"provinceOrState\": \"CT\"\n                },\n                \"mailingClass\": \"first_class\",\n                \"mergeVariables\": {\n                    \"amount\": 732.11,\n                    \"chequeNumber\": null,\n                    \"memo\": \"David Becker Distribution\",\n                    \"variable1\": \"\",\n                    \"variable2\": \"\"\n                },\n                \"metadata\": {\n                    \"postgrid_dashboard\": \"\"\n                },\n                \"pageCount\": 1,\n                \"sendDate\": \"2023-05-29T03:59:59.999Z\",\n                \"size\": \"us_letter\",\n                \"status\": \"ready\",\n                \"template\": \"template_g37s8aKWcTA96YCanSwTe7\",\n                \"to\": {\n                    \"id\": \"contact_j4UQMhBkq6mz2Vvj2coLwX\",\n                    \"object\": \"contact\",\n                    \"addressLine1\": \"27571 SANDY SHORES DR SW\",\n                    \"addressLine2\": \"\",\n                    \"addressStatus\": \"verified\",\n                    \"city\": \"VASHON\",\n                    \"companyName\": \"\",\n                    \"country\": \"UNITED STATES\",\n                    \"countryCode\": \"US\",\n                    \"description\": \"\",\n                    \"email\": \"\",\n                    \"firstName\": \"David\",\n                    \"jobTitle\": \"\",\n                    \"lastName\": \"Becker\",\n                    \"metadata\": {\n                        \"amount\": 732.11,\n                        \"chequeNumber\": null,\n                        \"memo\": \"David Becker Distribution\",\n                        \"variable1\": \"\",\n                        \"variable2\": \"\"\n                    },\n                    \"phoneNumber\": \"\",\n                    \"postalOrZip\": \"98070\",\n                    \"provinceOrState\": \"WA\"\n                },\n                \"url\": \"https://pg-prod-bucket-1.s3.amazonaws.com/test/letter_rqfnwvzq5TUsYR2r6L9V8X?AWSAccessKeyId=AKIA5GFUILSULWTWCR64&Expires=1685374558&Signature=LfgizJyFWFcBilYV46nBtad%2Fwx8%3D\",\n                \"createdAt\": \"2023-05-28T23:29:45.206Z\",\n                \"updatedAt\": \"2023-05-29T05:30:31.404Z\"\n            }\n        },\n        {\n            \"id\": \"event_8Gv6ekFotgQn2BQ15MhNgk\",\n            \"object\": \"event\",\n            \"live\": false,\n            \"type\": \"letter.created\",\n            \"data\": {\n                \"id\": \"letter_rqfnwvzq5TUsYR2r6L9V8X\",\n                \"object\": \"letter\",\n                \"live\": false,\n                \"addressPlacement\": \"top_first_page\",\n                \"color\": false,\n                \"description\": \"letter test 2\",\n                \"doubleSided\": false,\n                \"envelopeType\": \"standard_double_window\",\n                \"express\": false,\n                \"extraService\": \"certified\",\n                \"from\": {\n                    \"id\": \"contact_wCVRSWWYjx6QHF8Z2kisUA\",\n                    \"object\": \"contact\",\n                    \"addressLine1\": \"2 PICKWICK PLAZA\",\n                    \"addressLine2\": \"\",\n                    \"addressStatus\": \"verified\",\n                    \"city\": \"GREENWICH\",\n                    \"companyName\": \"Interactive Brokers LLC\",\n                    \"country\": \"UNITED STATES\",\n                    \"countryCode\": \"US\",\n                    \"description\": \"1097916\",\n                    \"email\": \"\",\n                    \"firstName\": \"\",\n                    \"jobTitle\": \"\",\n                    \"lastName\": \"\",\n                    \"metadata\": {\n                        \"amount\": 2071.28,\n                        \"chequeNumber\": null,\n                        \"memo\": \"FBO Daniel Devore Roth IRA U5039335\",\n                        \"variable1\": \"\",\n                        \"variable2\": \"\"\n                    },\n                    \"phoneNumber\": \"\",\n                    \"postalOrZip\": \"6831\",\n                    \"provinceOrState\": \"CT\"\n                },\n                \"mailingClass\": \"first_class\",\n                \"mergeVariables\": {\n                    \"amount\": 732.11,\n                    \"chequeNumber\": null,\n                    \"memo\": \"David Becker Distribution\",\n                    \"variable1\": \"\",\n                    \"variable2\": \"\"\n                },\n                \"metadata\": {\n                    \"postgrid_dashboard\": \"\"\n                },\n                \"pageCount\": 1,\n                \"sendDate\": \"2023-05-29T03:59:59.999Z\",\n                \"size\": \"us_letter\",\n                \"status\": \"ready\",\n                \"template\": \"template_g37s8aKWcTA96YCanSwTe7\",\n                \"to\": {\n                    \"id\": \"contact_j4UQMhBkq6mz2Vvj2coLwX\",\n                    \"object\": \"contact\",\n                    \"addressLine1\": \"27571 SANDY SHORES DR SW\",\n                    \"addressLine2\": \"\",\n                    \"addressStatus\": \"verified\",\n                    \"city\": \"VASHON\",\n                    \"companyName\": \"\",\n                    \"country\": \"UNITED STATES\",\n                    \"countryCode\": \"US\",\n                    \"description\": \"\",\n                    \"email\": \"\",\n                    \"firstName\": \"David\",\n                    \"jobTitle\": \"\",\n                    \"lastName\": \"Becker\",\n                    \"metadata\": {\n                        \"amount\": 732.11,\n                        \"chequeNumber\": null,\n                        \"memo\": \"David Becker Distribution\",\n                        \"variable1\": \"\",\n                        \"variable2\": \"\"\n                    },\n                    \"phoneNumber\": \"\",\n                    \"postalOrZip\": \"98070\",\n                    \"provinceOrState\": \"WA\"\n                },\n                \"url\": \"https://pg-prod-bucket-1.s3.amazonaws.com/test/letter_rqfnwvzq5TUsYR2r6L9V8X?AWSAccessKeyId=AKIA5GFUILSULWTWCR64&Expires=1685374558&Signature=LfgizJyFWFcBilYV46nBtad%2Fwx8%3D\",\n                \"createdAt\": \"2023-05-28T23:29:45.206Z\",\n                \"updatedAt\": \"2023-05-29T05:30:31.404Z\"\n            }\n        }\n    ]\n}"}],"_postman_id":"4711290c-ef54-4632-9af6-12768ce8c7e8"}],"id":"79202d3f-0f30-4cef-8a98-048ad02752f1","description":"<p>View events related to letters, cheques, postcards, and return envelopes. An event is created whenever a webhook is triggered. For example, if a webhook is created that listens to <code>letter.updated</code> events and the delivery status of a letter is updated, an event detailing the updated fields will get created.</p>\n<h1 id=\"event-response\">Event Response</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>A unique ID prefixed with <code>event_</code></td>\n</tr>\n<tr>\n<td>object</td>\n<td>string</td>\n<td>Always <code>event</code></td>\n</tr>\n<tr>\n<td>type</td>\n<td>EventType</td>\n<td>See <a href=\"#204bd5a0-9d1f-417c-aa21-1d2e1a06e8b0\">event types</a></td>\n</tr>\n<tr>\n<td>live</td>\n<td>boolean</td>\n<td><code>true</code> if this is a live mode <code>event</code> else <code>false</code></td>\n</tr>\n<tr>\n<td>data</td>\n<td><code>letter</code> or <code>postcard</code> or <code>cheque</code> or <code>return_envelope_order</code></td>\n<td>The data of the order associated with this event</td>\n</tr>\n<tr>\n<td>updatedFields</td>\n<td>object or null</td>\n<td>A record containing the updated fields of the order associated with the <code>event</code></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"b33c3b0a-7bfd-4238-b97b-733aa5d4f733","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"ea7d0efd-e844-494d-9ff5-fd2e78e75096","type":"text/javascript","exec":[""]}}],"_postman_id":"79202d3f-0f30-4cef-8a98-048ad02752f1"},{"name":"Template Editor Sessions","item":[{"name":"Create Session","id":"0d9162a8-2957-458d-8ead-f5ce05865ea7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"template","value":"template_eYxcbMKPZEZPk71ZJPA6Yz","description":"<p>The template you want to edit.</p>\n<p><code>required</code></p>\n","type":"text"},{"key":"backURL","value":"https://postgrid.com","description":"<p>The link that the Back button should navigate to. If you are iframing the editor, you should avoid supplying this so the back button is hidden.</p>\n<p><code>optional</code></p>\n","type":"text"},{"key":"title","value":"My Editor Session","description":"<p>Override the title of the editor. By default, the title is your template's description.</p>\n<p><code>optional</code></p>\n","type":"text","disabled":true}]},"url":"https://api.postgrid.com/print-mail/v1/template_editor_sessions","description":"<p>Note that if no <code>backURL</code> is supplied, PostGrid removes the Back button from the editor page. This is ideal for when you <code>iframe</code> the editor.</p>\n","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"6b82eab7-4f09-42b4-b63e-cd73a3f2182a","id":"6b82eab7-4f09-42b4-b63e-cd73a3f2182a","name":"Template Editor Sessions","type":"folder"}},"urlObject":{"path":["v1","template_editor_sessions"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[]}},"response":[{"id":"339df929-b850-4a7d-9a3a-5ba8b3a61473","name":"Create Session","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"template","value":"template_eYxcbMKPZEZPk71ZJPA6Yz","description":"The template you want to edit.\n\n`required`","type":"text"},{"key":"backURL","value":"https://postgrid.com","description":"The link that the Back button should navigate to. If you are iframing the editor, you should avoid supplying this so the back button is hidden.\n\n`optional`","type":"text","disabled":true},{"key":"title","value":"My Editor Session","description":"Override the title of the editor. By default, the title is your template's description.\n\n`optional`","type":"text","disabled":true}]},"url":"https://api.postgrid.com/print-mail/v1/template_editor_sessions"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 05 Jul 2023 19:36:01 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"392"},{"key":"Connection","value":"keep-alive"},{"key":"x-powered-by","value":"Express"},{"key":"vary","value":"Origin"},{"key":"access-control-allow-credentials","value":"true"},{"key":"etag","value":"W/\"188-MEv7+5qqkaCfpmOoJaQTO6PjBCU\""},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=jIeXQleBiVRKrF653muoAUNniNhrQuPlCSU0mmfoBzm4VJ4cDVEYMglK%2BdKK0inKkGrvV80gNFOx2O9Z4t%2FAXJ1yK8KBja5iV9WUz7a0BybteLIEKjWRxkxNYMZA8r9uZAUq\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7e220df03ccc20ae-IAD"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"template_editor_session_bBYRQ5DKu3LJ5yNemoAQ7E3or6E7Yzd7FGNWJSXBRrAfcdoNXNGLvfZxAm2dJYiv9c\",\n    \"object\": \"template_editor_session\",\n    \"live\": false,\n    \"template\": \"template_eYxcbMKPZEZPk71ZJPA6Yz\",\n    \"url\": \"https://dashboard.postgrid.com/embed/template_editor_sessions/template_editor_session_bBYRQ5DKu3LJ5yNemoAQ7E3or6E7Yzd7FGNWJSXBRrAfcdoNXNGLvfZxAm2dJYiv9c\",\n    \"createdAt\": \"2023-07-05T19:36:01.369Z\"\n}"}],"_postman_id":"0d9162a8-2957-458d-8ead-f5ce05865ea7"},{"name":"List Sessions","id":"418f8832-8b4c-4a3e-a3d8-5ba599dae70a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.postgrid.com/print-mail/v1/template_editor_sessions","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"6b82eab7-4f09-42b4-b63e-cd73a3f2182a","id":"6b82eab7-4f09-42b4-b63e-cd73a3f2182a","name":"Template Editor Sessions","type":"folder"}},"urlObject":{"path":["v1","template_editor_sessions"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[]}},"response":[],"_postman_id":"418f8832-8b4c-4a3e-a3d8-5ba599dae70a"},{"name":"Delete Session","id":"2908e40a-3d53-4ddb-bf54-11d7bd843a89","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://api.postgrid.com/print-mail/v1/template_editor_sessions/:id","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"6b82eab7-4f09-42b4-b63e-cd73a3f2182a","id":"6b82eab7-4f09-42b4-b63e-cd73a3f2182a","name":"Template Editor Sessions","type":"folder"}},"urlObject":{"path":["v1","template_editor_sessions",":id"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[{"id":"fc12bc71-3fe4-42cc-856a-6b61eda42598","type":"any","value":"template_editor_session_vmb3aXRJFzHb4oNRP2XMUZiTTBDtC91CSgQeqUrQfhSqq5P9wAGpmX5UkftueTubMN","key":"id"}]}},"response":[{"id":"05c94017-aa20-4009-b682-65a3ed7c2b61","name":"Delete Session","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"https://api.postgrid.com/print-mail/v1/template_editor_sessions/:id","host":["https://api.postgrid.com/print-mail"],"path":["v1","template_editor_sessions",":id"],"variable":[{"key":"id","value":"template_editor_session_vmb3aXRJFzHb4oNRP2XMUZiTTBDtC91CSgQeqUrQfhSqq5P9wAGpmX5UkftueTubMN"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 05 Jul 2023 17:36:00 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"x-powered-by","value":"Express"},{"key":"vary","value":"Origin"},{"key":"access-control-allow-credentials","value":"true"},{"key":"etag","value":"W/\"95-XsPx2g+j4YpJXsiVHuo34/uert4\""},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=Y6cJXk4T99xhVfESmJyy8YbbOwp9uGpfIg2l0wa3C1j6OcF5gTsSJ8TwbC8stt2Gp2r1dxNmTsJNEb8Pjm2xZRM0FxkGeScZbc4J%2Fv742WULuYT4UKTFbTLNVHwZ0n7rJntl\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7e215e23ed1b5842-IAD"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"template_editor_session_vmb3aXRJFzHb4oNRP2XMUZiTTBDtC91CSgQeqUrQfhSqq5P9wAGpmX5UkftueTubMN\",\n    \"object\": \"template_editor_session\",\n    \"deleted\": true\n}"}],"_postman_id":"2908e40a-3d53-4ddb-bf54-11d7bd843a89"}],"id":"6b82eab7-4f09-42b4-b63e-cd73a3f2182a","description":"<p>You can use template editor sessions to bring the capabilities of our template editor to your website. When you create a session, you provide the <code>template</code> which you want to edit, and we return a session with a <code>url</code> that you can <code>iframe</code> or redirect your customers to.</p>\n<p>When users save their changes in the editor session, it will update the underlying template. Note that sessions are only valid for 24 hours, after which point they are automatically deleted for security reasons.</p>\n<p>You can have multiple sessions active for the same template at the same time. In general, we recommend creating a new session every time you present our editor to your users.</p>\n<p><strong>NOTE</strong> You can only use the template editor to modify templates created using the template editor/template editor sessions. A template created using HTML directly will result in a blank template editor session (saving in this editor would override the HTML).</p>\n<h1 id=\"template-editor-session-response\">Template Editor Session Response</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>A unique ID prefixed with <code>template_editor_session_</code></td>\n</tr>\n<tr>\n<td>object</td>\n<td>string</td>\n<td>Always <code>template_editor_session</code></td>\n</tr>\n<tr>\n<td>live</td>\n<td>boolean</td>\n<td><code>true</code> if this is a live mode <code>event</code> else <code>false</code></td>\n</tr>\n<tr>\n<td>template</td>\n<td>string</td>\n<td>ID of the underlying template that this edits</td>\n</tr>\n<tr>\n<td>backURL</td>\n<td>string or null</td>\n<td>The <code>backURL</code> supplied when this editor session was created</td>\n</tr>\n<tr>\n<td>title</td>\n<td>string or null</td>\n<td>The <code>title</code> supplied when this editor session was created</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"b7b664df-c2fd-4790-bc2c-9a7c3a27e2c6","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"6058220d-e19f-4e9c-97a4-f585694a6397","type":"text/javascript","exec":[""]}}],"_postman_id":"6b82eab7-4f09-42b4-b63e-cd73a3f2182a"},{"name":"Trackers","item":[{"name":"Create Tracker","id":"dc548501-507d-42ee-b05c-4b05856aec72","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"redirectURLTemplate","value":"https://postgrid.com?name={{to.firstName}}","description":"<p>The base template for URLs generated by this Tracker</p>\n","type":"text"},{"key":"urlExpireAfterDays","value":"30","description":"<p>Indicates the number of days a Tracker's generated URLs will remain valid after its creation</p>\n","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/trackers","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"ec4f1454-77a8-43e3-82d5-4a07dc9e33a8","id":"ec4f1454-77a8-43e3-82d5-4a07dc9e33a8","name":"Trackers","type":"folder"}},"urlObject":{"path":["v1","trackers"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[]}},"response":[{"id":"c6a2147c-88c7-43be-b3fd-b6919b6c879a","name":"Create Tracker","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"redirectURLTemplate","value":"https://postgrid.com?name={{to.firstName}}","description":"The base template for URLs generated by this Tracker","type":"text"},{"key":"urlExpireAfterDays","value":"30","description":"Indicates the number of days a Tracker's generated URLs will remain valid after its creation","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/trackers"},"code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\r\n    \"id\": \"tracker_123456789abcdefghijklmnopqrstuvwxyz\",\r\n    \"object\": \"tracker\",\r\n    \"live\": false,\r\n    \"redirectURLTemplate\": \"https://postgrid.com?name={{to.firstName}}\",\r\n    \"urlExpireAfterDays\": 30,\r\n    \"visitCount\": 0,\r\n    \"uniqueVisitCount\": 0,\r\n    \"createdAt\": \"2020-11-12T23:30:12.581Z\",\r\n    \"updatedAt\": \"2020-11-12T23:30:12.581Z\"\r\n}"}],"_postman_id":"dc548501-507d-42ee-b05c-4b05856aec72"},{"name":"Update Tracker","id":"b53c4e24-115f-4b52-b22e-1c8a5ab4a7dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"redirectURLTemplate","value":"https://postgrid.com?firstName={{to.firstName}}","description":"<p>The base template for URLs generated by this Tracker</p>\n","type":"text"},{"key":"urlExpireAfterDays","value":"90","description":"<p>Indicates the number of days a Tracker's generated URLs will remain valid after its creation</p>\n","type":"text"}]},"url":"https://api.postgrid.com/print-mail/v1/trackers/:id","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"ec4f1454-77a8-43e3-82d5-4a07dc9e33a8","id":"ec4f1454-77a8-43e3-82d5-4a07dc9e33a8","name":"Trackers","type":"folder"}},"urlObject":{"path":["v1","trackers",":id"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[{"id":"427df686-0cd7-4769-a795-01ba926c0581","type":"any","value":"tracker_abc","key":"id"}]}},"response":[{"id":"a1d69572-28ce-4014-bf0d-ce83396e1d24","name":"Update Tracker","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"redirectURLTemplate","value":"https://postgrid.com?firstName={{to.firstName}}","description":"The base template for URLs generated by this Tracker","type":"text"},{"key":"urlExpireAfterDays","value":"90","description":"Indicates the number of days a Tracker's generated URLs will remain valid after its creation","type":"text"}]},"url":{"raw":"https://api.postgrid.com/print-mail/v1/trackers/:id","host":["https://api.postgrid.com/print-mail"],"path":["v1","trackers",":id"],"variable":[{"key":"id","value":"tracker_abc"}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"tracker_123456789abcdefghijklmnopqrstuvwxyz\",\n    \"object\": \"tracker\",\n    \"live\": false,\n    \"redirectURLTemplate\": \"https://postgrid.com?firstName={{to.firstName}}\",\n    \"urlExpireAfterDays\": 90,\n    \"visitCount\": 0,\n    \"uniqueVisitCount\": 0,\n    \"createdAt\": \"2020-11-12T23:30:12.581Z\",\n    \"updatedAt\": \"2020-11-12T23:30:12.581Z\"\n}"}],"_postman_id":"b53c4e24-115f-4b52-b22e-1c8a5ab4a7dd"},{"name":"Get Tracker","id":"a7fbf1a6-c7a8-461d-a35e-b0adb50df36e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.postgrid.com/print-mail/v1/trackers/:id","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"ec4f1454-77a8-43e3-82d5-4a07dc9e33a8","id":"ec4f1454-77a8-43e3-82d5-4a07dc9e33a8","name":"Trackers","type":"folder"}},"urlObject":{"path":["v1","trackers",":id"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[{"id":"5ed31b25-d3c2-4d56-8c8c-17c7a5f295bd","type":"any","value":"tracker_1234567890abcdefghijklmnopqrstuvwxyz","key":"id"}]}},"response":[{"id":"b23d9efc-034a-4bda-bf76-422c982110aa","name":"Get Tracker","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.postgrid.com/print-mail/v1/trackers/:id","host":["https://api.postgrid.com/print-mail"],"path":["v1","trackers",":id"],"variable":[{"key":"id","value":"tracker_abc"}]}},"code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"tracker_123456789abcdefghijklmnopqrstuvwxyz\",\n    \"object\": \"tracker\",\n    \"live\": false,\n    \"redirectURLTemplate\": \"https://postgrid.com?name={{to.firstName}}\",\n    \"urlExpireAfterDays\": 90,\n    \"visitCount\": 0,\n    \"uniqueVisitCount\": 0,\n    \"createdAt\": \"2020-11-12T23:30:12.581Z\",\n    \"updatedAt\": \"2020-11-12T23:31:12.581Z\"\n}"}],"_postman_id":"a7fbf1a6-c7a8-461d-a35e-b0adb50df36e"},{"name":"List Trackers","id":"d7122bb8-1a66-45e1-a7c4-619dd70dc2e8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.postgrid.com/print-mail/v1/trackers","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"ec4f1454-77a8-43e3-82d5-4a07dc9e33a8","id":"ec4f1454-77a8-43e3-82d5-4a07dc9e33a8","name":"Trackers","type":"folder"}},"urlObject":{"path":["v1","trackers"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[]}},"response":[{"id":"199b19cc-d67b-434e-901c-cd1c8efcc06f","name":"List Trackers","originalRequest":{"method":"GET","header":[],"url":"https://api.postgrid.com/print-mail/v1/trackers"},"code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\r\n    \"object\": \"list\",\r\n    \"limit\": 10,\r\n    \"skip\": 0,\r\n    \"totalCount\": 1,\r\n    \"data\": [\r\n        {\r\n            \"id\": \"tracker_123456789abcdefghijklmnopqrstuvwxyz\",\r\n            \"object\": \"tracker\",\r\n            \"live\": false,\r\n            \"redirectURLTemplate\": \"https://postgrid.com?name={{to.firstName}}\",\r\n            \"urlExpireAfterDays\": 90,\r\n            \"visitCount\": 0,\r\n            \"uniqueVisitCount\": 0,\r\n            \"createdAt\": \"2020-11-12T23:30:12.581Z\",\r\n            \"updatedAt\": \"2020-11-12T23:31:12.581Z\"\r\n        }\r\n    ]\r\n}"}],"_postman_id":"d7122bb8-1a66-45e1-a7c4-619dd70dc2e8"},{"name":"List Tracker Visits","id":"e5c41e07-ca9b-4b3c-97fc-f56d0eee8c9e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.postgrid.com/print-mail/v1/trackers/:id/visits","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"ec4f1454-77a8-43e3-82d5-4a07dc9e33a8","id":"ec4f1454-77a8-43e3-82d5-4a07dc9e33a8","name":"Trackers","type":"folder"}},"urlObject":{"path":["v1","trackers",":id","visits"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[{"id":"9dc21000-5991-4f30-bc56-b7c11cb5fe91","type":"any","value":"tracker_abc","key":"id"}]}},"response":[{"id":"787ec0c8-1a30-4b95-ab09-e9b78324cf9b","name":"List Tracker Visits","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.postgrid.com/print-mail/v1/trackers/:id/visits","host":["https://api.postgrid.com/print-mail"],"path":["v1","trackers",":id","visits"],"variable":[{"key":"id","value":"tracker_abc"}]}},"code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"object\": \"list\",\n    \"limit\": 10,\n    \"skip\": 0,\n    \"totalCount\": 1,\n    \"data\": [\n        {\n            \"id\": \"tracker_visit_123456789abcdefghijklmnopqrstuvwxyz\",\n            \"object\": \"tracker_visit\",\n            \"live\": false,\n            \"tracker\": \"tracker_123456789abcdefghijklmnopqrstuvwxyz\",\n            \"orderID\": \"order_123456789abcdefghijklmnopqrstuvwxyz\",\n            \"device\": \"Device Unknown\",\n            \"ipAddress\": \"Unknown IP Address\",\n            \"createdAt\": \"2020-11-12T23:30:12.581Z\",\n            \"updatedAt\": \"2020-11-12T23:31:12.581Z\"\n        }\n    ]\n}"}],"_postman_id":"e5c41e07-ca9b-4b3c-97fc-f56d0eee8c9e"},{"name":"Delete Tracker","id":"aab6a5aa-45cf-4fed-8d10-229e913455bd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://api.postgrid.com/print-mail/v1/trackers/:id","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"ec4f1454-77a8-43e3-82d5-4a07dc9e33a8","id":"ec4f1454-77a8-43e3-82d5-4a07dc9e33a8","name":"Trackers","type":"folder"}},"urlObject":{"path":["v1","trackers",":id"],"host":["https://api.postgrid.com/print-mail"],"query":[],"variable":[{"id":"6db3344d-e6df-4882-b15f-ec03cb3d4833","type":"any","value":"tracker_abc","key":"id"}]}},"response":[{"id":"86c858b9-b43c-49f8-9ab9-71d11fde58bf","name":"Delete Tracker","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"https://api.postgrid.com/print-mail/v1/trackers/:id","host":["https://api.postgrid.com/print-mail"],"path":["v1","trackers",":id"],"variable":[{"key":"id","value":"tracker_abc"}]}},"code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"tracker_123456789abcdefghijklmnopqrstuvwxyz\",\n    \"deleted\": true\n}"}],"_postman_id":"aab6a5aa-45cf-4fed-8d10-229e913455bd"}],"id":"ec4f1454-77a8-43e3-82d5-4a07dc9e33a8","description":"<p>Create and manage Trackers.</p>\n<p>Trackers can be used to track interactions in your orders through personalized URLs and QR codes.</p>\n<p>As a brief introduction to using Trackers in your orders, a QR code can be generated by using the Tracker's ID as a merge variable in your orders HTML and Templates. The following example HTML uses Trackers to generate personalized URLs (PURLs) in your orders.</p>\n<p>See the following guide for more details: <a href=\"https://postgrid.readme.io/reference/trackers-1\">https://postgrid.readme.io/reference/trackers-1</a></p>\n<h1 id=\"tracker-response\">Tracker Response</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id</code></td>\n<td><code>string</code></td>\n<td>A unique ID prefixed with <code>tracker_</code></td>\n</tr>\n<tr>\n<td><code>object</code></td>\n<td><code>string</code></td>\n<td>The object of the response, always <code>tracker</code></td>\n</tr>\n<tr>\n<td><code>description</code></td>\n<td><code>string</code> (Optional)</td>\n<td>A description of the Tracker</td>\n</tr>\n<tr>\n<td><code>live</code></td>\n<td><code>boolean</code></td>\n<td>Indicates if the Tracker is live</td>\n</tr>\n<tr>\n<td><code>redirectURLTemplate</code></td>\n<td><code>string</code></td>\n<td>The base template for URLs generated by this Tracker</td>\n</tr>\n<tr>\n<td><code>urlExpireAfterDays</code></td>\n<td><code>30</code>, <code>60</code>, <code>90</code></td>\n<td>Indicates the number of days a Tracker's generated URLs will remain valid after its creation</td>\n</tr>\n<tr>\n<td><code>visitCount</code></td>\n<td><code>number</code></td>\n<td>The total number of interactions the Tracker has had</td>\n</tr>\n<tr>\n<td><code>uniqueVisitCount</code></td>\n<td><code>number</code></td>\n<td>The unique number of interactions the Tracker has had</td>\n</tr>\n<tr>\n<td><code>metadata</code></td>\n<td><code>object</code> (Optional)</td>\n<td>Metadata for the Tracker</td>\n</tr>\n<tr>\n<td><code>createdAt</code></td>\n<td><code>Date</code></td>\n<td>The creation date of the Tracker</td>\n</tr>\n<tr>\n<td><code>updatedAt</code></td>\n<td><code>Date</code></td>\n<td>The date at which the Tracker was last updated</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"tracker-visits-response\">Tracker Visits Response</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id</code></td>\n<td><code>string</code></td>\n<td>A unique ID prefixed with <code>tracker_visit_</code></td>\n</tr>\n<tr>\n<td><code>object</code></td>\n<td><code>string</code></td>\n<td>The object of the response, always <code>tracker_visit</code></td>\n</tr>\n<tr>\n<td><code>tracker</code></td>\n<td><code>string</code></td>\n<td>The ID of the tracker related to this visit</td>\n</tr>\n<tr>\n<td><code>live</code></td>\n<td><code>boolean</code></td>\n<td>Indicates if the visit was used in a live order or not</td>\n</tr>\n<tr>\n<td><code>orderID</code></td>\n<td><code>string</code></td>\n<td>The ID of the order where the interaction occurred</td>\n</tr>\n<tr>\n<td><code>device</code></td>\n<td><code>string</code></td>\n<td>The type of device associated the visit</td>\n</tr>\n<tr>\n<td><code>ipAddress</code></td>\n<td><code>string</code></td>\n<td>The IP address associated with the visit</td>\n</tr>\n<tr>\n<td><code>createdAt</code></td>\n<td><code>Date</code></td>\n<td>The creation date of the Tracker Visit</td>\n</tr>\n<tr>\n<td><code>updatedAt</code></td>\n<td><code>Date</code></td>\n<td>The date at which the Tracker Visit was last updated</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"value":"{{example-api-key}}","key":"<key>"},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"a5135f22-2ebb-4458-9cc4-e3c933ad7bc3","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"099f414f-f477-49de-a47e-6c66e010c6c1","type":"text/javascript","exec":[""]}}],"_postman_id":"ec4f1454-77a8-43e3-82d5-4a07dc9e33a8"}],"event":[{"listen":"prerequest","script":{"id":"73edc833-ff38-474b-8ade-200f1ff9da14","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"fd2f3904-27bc-4dbb-8e32-f1bfcf5e8062","type":"text/javascript","exec":[""]}}],"variable":[{"key":"print-mail-api","value":"https://api.postgrid.com/print-mail"}]}