diff --git a/dist/lob-api-bundled.yml b/dist/lob-api-bundled.yml index 4f140bc2..cdb84f34 100644 --- a/dist/lob-api-bundled.yml +++ b/dist/lob-api-bundled.yml @@ -1,7 +1,7 @@ openapi: 3.0.3 info: title: Lob - version: 1.19.22 + version: 1.19.23 description: > The Lob API is organized around REST. Our API is designed to have predictable, resource-oriented URLs and uses HTTP response codes to indicate diff --git a/docs/index.html b/docs/index.html index 1d420337..f9a26dab 100644 --- a/docs/index.html +++ b/docs/index.html @@ -2965,7 +2965,7 @@ 55.627 l 55.6165,55.627 -231.245496,231.24803 c -127.185,127.1864 -231.5279,231.248 -231.873,231.248 -0.3451,0 -104.688, -104.0616 -231.873,-231.248 z - " fill="currentColor">
The Lob API is organized around REST. Our API is designed to have predictable, resource-oriented URLs and uses HTTP response codes to indicate any API errors.
+ " fill="currentColor">The Lob API is organized around REST. Our API is designed to have predictable, resource-oriented URLs and uses HTTP response codes to indicate any API errors.
Lob’s Print & Mail and Address Verification APIs help companies transform outdated, manual print-and-mail processes; save 1,000s of hours in processing time by sending mail much more quickly; and increase ROI on offline communications.
@@ -3226,7 +3226,7 @@An array of tracking_event objects ordered by ascending time
. Will not be populated for postcards created in test mode.
Denotes resources created by the provided campaign id, prefixed with cmp_
.
The use type for each mailpiece. Can be one of marketing, operational, or null. Null use_type is only allowed if an account default use_type is selected in Account Settings. For more information on use_type, see our Help Center article.
-This is in beta. Contact support@lob.com or your account contact to learn more. Not available for 4x6
or A5
postcard sizes.
This is in beta. Contact support@lob.com or your account contact to learn more. Not available for 4x6
or A5
postcard sizes.
A string describing the PDF render status:
processed
- the rendering process is currently in progress.Required if to
address is international. Must either be an address ID or an inline object with correct address parameters. Must either be an address ID or an inline object with correct address parameters. All addresses will be standardized into uppercase without being modified by verification.
An optional string with the billing group ID to tag your usage with. Is used for billing purposes. Requires special activation to use. See Billing Group API for more information.
Customize and place a QR code on the creative at the required position.
-This is in beta. Contact support@lob.com or your account contact to learn more. Not available for 4x6
or A5
postcard sizes.
This is in beta. Contact support@lob.com or your account contact to learn more. Not available for 4x6
or A5
postcard sizes.
ratelimit-limit | integer Example: 150 The rate limit for a given endpoint. |
ratelimit-remaining | integer Example: 100 The number of requests remaining in the current window. @@ -3351,7 +3351,7 @@3. Learn more |
Array of objects or null (tracking_event_normal) An array of tracking_event objects ordered by ascending | |
campaign_id | string or null (campaign_id) ^cmp_[a-zA-Z0-9]+$ Denotes resources created by the provided campaign id, prefixed with |
use_type | string or null (psc_use_type) Enum: "marketing" "operational" null The use type for each mailpiece. Can be one of marketing, operational, or null. Null use_type is only allowed if an account default use_type is selected in Account Settings. For more information on use_type, see our Help Center article. - |
fsc | boolean Default: false This is in beta. Contact support@lob.com or your account contact to learn more. Not available for |
fsc | boolean Default: false This is in beta. Contact support@lob.com or your account contact to learn more. Not available for |
status | string (status) Enum: "processed" "rendered" "failed" A string describing the PDF render status:
3. Learn more |
merge_variables | object or null (merge_variables) <= 25000 characters You can input a merge variable payload object to your template to render dynamic content. For example, if you have a template like: |
string or string (send_date) A timestamp in ISO 8601 format which specifies a date after the current time and up to 180 days in the future to send the letter off for production. Setting a send date overrides the default cancellation window applied to the mailpiece. Until the | |
size | string (self_mailer_size) Default: "6x18_bifold" Enum: "6x18_bifold" "11x9_bifold" "12x9_bifold" "17.75x9_trifold" Specifies the size of the self mailer. The |
size | string (self_mailer_size) Default: "6x18_bifold" Enum: "6x18_bifold" "11x9_bifold" "12x9_bifold" "17.75x9_trifold" Specifies the size of the self mailer. The |
Array of objects (thumbnail) | |
expected_delivery_date | string <date> (expected_delivery_date) A date in YYYY-MM-DD format of the mailpiece's expected delivery date based on its |
date_created | string <date-time> (date_created) A timestamp in ISO 8601 format of the date the resource was created. |
date_modified | string <date-time> (date_modified) A timestamp in ISO 8601 format of the date the resource was last modified. @@ -3393,7 +3393,7 @@3. Learn more |
inside_template_version_id | string or null^vrsn_[a-zA-Z0-9]+$ Unique identifier prefixed with |
object | string Default: "self_mailer" Value: "self_mailer" Value is resource type. |
Array of objects (tracking_event_certified) An array of certified tracking events ordered by ascending | |
fsc | boolean Default: false This is in beta. Contact support@lob.com or your account contact to learn more. Not available for |
fsc | boolean Default: false This is in beta. Contact support@lob.com or your account contact to learn more. Not available for |
status | string (status) Enum: "processed" "rendered" "failed" A string describing the PDF render status:
3. Learn more |
merge_variables | object or null (merge_variables) <= 25000 characters You can input a merge variable payload object to your template to render dynamic content. For example, if you have a template like: |
string or string (send_date) A timestamp in ISO 8601 format which specifies a date after the current time and up to 180 days in the future to send the letter off for production. Setting a send date overrides the default cancellation window applied to the mailpiece. Until the | |
size | string (self_mailer_size) Default: "6x18_bifold" Enum: "6x18_bifold" "11x9_bifold" "12x9_bifold" "17.75x9_trifold" Specifies the size of the self mailer. The |
size | string (self_mailer_size) Default: "6x18_bifold" Enum: "6x18_bifold" "11x9_bifold" "12x9_bifold" "17.75x9_trifold" Specifies the size of the self mailer. The |
adr_id (string) or (address_editable_us (address obj with `name` defined (object) or address obj with `company` defined (object))) Required if | |
billing_group_id | string (billing_group_id) An optional string with the billing group ID to tag your usage with. Is used for billing purposes. Requires special activation to use. See Billing Group API for more information. |
object (qr_code) Customize and place a QR code on the creative at the required position. - | |
fsc | boolean Default: false This is in beta. Contact support@lob.com or your account contact to learn more. Not available for |
fsc | boolean Default: false This is in beta. Contact support@lob.com or your account contact to learn more. Not available for |
ratelimit-limit | integer Example: 150 The rate limit for a given endpoint. |
ratelimit-remaining | integer Example: 100 The number of requests remaining in the current window. @@ -3507,7 +3507,7 @@3. Learn more |
merge_variables | object or null (merge_variables) <= 25000 characters You can input a merge variable payload object to your template to render dynamic content. For example, if you have a template like: |
string or string (send_date) A timestamp in ISO 8601 format which specifies a date after the current time and up to 180 days in the future to send the letter off for production. Setting a send date overrides the default cancellation window applied to the mailpiece. Until the | |
size | string (self_mailer_size) Default: "6x18_bifold" Enum: "6x18_bifold" "11x9_bifold" "12x9_bifold" "17.75x9_trifold" Specifies the size of the self mailer. The |
size | string (self_mailer_size) Default: "6x18_bifold" Enum: "6x18_bifold" "11x9_bifold" "12x9_bifold" "17.75x9_trifold" Specifies the size of the self mailer. The |
Array of objects (thumbnail) | |
expected_delivery_date | string <date> (expected_delivery_date) A date in YYYY-MM-DD format of the mailpiece's expected delivery date based on its |
date_created | string <date-time> (date_created) A timestamp in ISO 8601 format of the date the resource was created. |
date_modified | string <date-time> (date_modified) A timestamp in ISO 8601 format of the date the resource was last modified. @@ -3518,7 +3518,7 @@3. Learn more |
inside_template_version_id | string or null^vrsn_[a-zA-Z0-9]+$ Unique identifier prefixed with |
object | string Default: "self_mailer" Value: "self_mailer" Value is resource type. |
Array of objects (tracking_event_certified) An array of certified tracking events ordered by ascending | |
fsc | boolean Default: false This is in beta. Contact support@lob.com or your account contact to learn more. Not available for |
fsc | boolean Default: false This is in beta. Contact support@lob.com or your account contact to learn more. Not available for |
status | string (status) Enum: "processed" "rendered" "failed" A string describing the PDF render status:
3. Learn more |
template_id | string^tmpl_[a-zA-Z0-9]+$ Unique identifier prefixed with |
template_version_id | string^vrsn_[a-zA-Z0-9]+$ Unique identifier prefixed with |
campaign_id | string or null (campaign_id) ^cmp_[a-zA-Z0-9]+$ Denotes resources created by the provided campaign id, prefixed with |
fsc | boolean Default: false This is in beta. Contact support@lob.com or your account contact to learn more. Not available for |
fsc | boolean Default: false This is in beta. Contact support@lob.com or your account contact to learn more. Not available for |
status | string (status) Enum: "processed" "rendered" "failed" A string describing the PDF render status:
3. Learn more |
custom_envelope | string or null (user_provided) ^env_[a-zA-Z0-9]+$ Accepts an envelope ID for any customized envelope with available inventory. If no inventory is available for the specified ID, the letter will not be sent, and an error will be returned. If the letter has more than 6 sheets, it will be sent in a blank flat envelope. Custom envelopes may be created and ordered from the dashboard. This feature is exclusive to certain customers. Upgrade to the appropriate Print & Mail Edition to gain access. |
billing_group_id | string (billing_group_id) An optional string with the billing group ID to tag your usage with. Is used for billing purposes. Requires special activation to use. See Billing Group API for more information. |
object (qr_code) Customize and place a QR code on the creative at the required position. - | |
fsc | boolean Default: false This is in beta. Contact support@lob.com or your account contact to learn more. Not available for |
fsc | boolean Default: false This is in beta. Contact support@lob.com or your account contact to learn more. Not available for |
ratelimit-limit | integer Example: 150 The rate limit for a given endpoint. | ||||||
ratelimit-remaining | integer Example: 100 The number of requests remaining in the current window. @@ -3719,7 +3719,7 @@3. Learn more | ||||||
template_id | string^tmpl_[a-zA-Z0-9]+$ Unique identifier prefixed with | ||||||
template_version_id | string^vrsn_[a-zA-Z0-9]+$ Unique identifier prefixed with | ||||||
campaign_id | string or null (campaign_id) ^cmp_[a-zA-Z0-9]+$ Denotes resources created by the provided campaign id, prefixed with | ||||||
fsc | boolean Default: false This is in beta. Contact support@lob.com or your account contact to learn more. Not available for | ||||||
fsc | boolean Default: false This is in beta. Contact support@lob.com or your account contact to learn more. Not available for | ||||||
status | string (status) Enum: "processed" "rendered" "failed" A string describing the PDF render status:
Changelog+ + ## Intl Verifications Test Env + When verifying international addresses, you'll likely want to test against + a wide array of addresses to ensure you're handling responses correctly. + With your test API key, requests that use specific values for `primary_line` + let you explore the responses to many types of addresses: +
+ + ## Scheduled Mailings + Postcards, self mailers, letters, and checks can be scheduled to be sent up + to 180 days in advance. You can use this feature to: + - Create automated drip campaigns (e.g. send a postcard at 15, 30, and 60 + days) + - Schedule recurring sends + - Plan your mailing schedule ahead of time + Up until the time a mailing is scheduled for, it can also be canceled. + If you use this feature in conjunction with [a cancellation window]( + index.html#section/Cancellation-Windows), the `send_date` parameter will always + take precedence. + For implementation details, see documentation below for each respective + endpoint. For more help, see our Scheduled Mailings Guide. + This feature is exclusive to certain customers. Upgrade to the appropriate + Print & Mail Edition to + gain access. + ### Example Create Request using Send Date + ```bash curl https://api.lob.com/v1/postcards \ -u test_0dc8d51e0acffcb1880e0f19c79b2f5b0cc: \ @@ -1102,87 +1294,143 @@ tags: -d "merge_variables[name]=Harry" \ -d "send_date=2021-07-26" ``` + - name: National Change of Address x-traitTag: true - description: | - National Change of Address Linkage (NCOALink) is a service offered by the USPS, which allows individuals + description: > + National Change of Address Linkage (NCOALink) is a service offered by the + USPS, which allows individuals + or businesses who have recently moved to have any mail forwarded from their previous address + to their new address. + As a CASS-certified Address Verification Provider, Lob also offers NCOALink + functionality to our Print & Mail customers. With the Lob NCOALink feature enabled, Postcards, + Letters, Checks and Addresses can automatically be corrected to reflect an individual's or business's + new address in the case that they have moved (only if they have registered for NCOALink with the USPS). + Due to privacy concerns and USPS constraints, for customers with NCOALink enabled, our API responses + for a limited set of endpoints differ slightly in the case when an address has been changed through NCOALink. + **NOTE**: This feature is exclusive to certain customers. Upgrade to the appropriate Print & Mail Editions to gain access. + For more information, see our NCOALink guide. + + + ## NCOALink Live Environment + Though there are no changes to API requests, there are significant changes to our API responses, but + only in the event that an address has been changed through NCOALink. If an address has not been changed + through NCOALink, the response would be identical to our standard responses, except the addition of a + `recipient_moved` field, which is `false` for unchanged addresses. + If an address has been changed through NCOALink, we are required to suppress the following response + fields for that address: + - `address_line1` + - `address_line2` + - The +4 portion of the ZIP+4 (5-digit ZIP code will still be present) + See the `ncoa_us_live` example under [Response samples](#operation/address_create) within the "Create an Address" section in Addresses + + + ## NCOALink Test Environment + In addition to sending live requests, you may also want to simulate what an NCOALink response might + look like so that you can ensure your application behaves as expected. The behavior of NCOALink in + Lob's Test Environment is very similar to our [US Verifications Test Mode](#section/US-Verifications-Test-Env). + To simulate an NCOALink request, send a POST request to any of the four endpoints below with an `address_line1` field equal to `NCOA`: + - `POST /v1/addresses` + - `POST /v1/checks` + - `POST /v1/letters` + - `POST /v1/postcards` + - `POST /v1/self_mailers` + A static address will always be returned, as documented in the `ncoa_us_test` example under [Response samples](#operation/address_create) within the "Create an Address" + section in Addresses (along with the corresponding request under "Request samples"). + - name: Postcards - description: | - The postcards endpoint allows you to easily print and mail postcards. The API provides endpoints for creating postcards, + description: > + The postcards endpoint allows you to easily print and mail postcards. The + API provides endpoints for creating postcards, + retrieving individual postcards, canceling postcards, and retrieving a list of postcards. + - name: QR Codes - description: | + description: > Lob QR codes allow you to generate a QR code that is unique to each mailpiece, thereby allowing each and every customers to receive a personalized link. See the Create endpoint for Letters, Postcards or Self Mailers to learn how to embed a QR code into your mail piece. + Webhooks can be used to integrate Lob QR code scans into your omni channel marketing strategy. See the Webhooks section of our documentation to learn how to enable the `letter.viewed`, `postcard.viewed` and `self_mailer.viewed` event notifications for your mail pieces. + Furthermore, our QR code Analytics endpoint can be used to track the impact and engagement rate of your mail sends. Lob can tell you exactly which recipients opened your mailpiece. Our Analytics endpoint allows you to see exactly which recipient scanned a mailpiece, when they scanned it, and more! + - name: Rate Limiting x-traitTag: true - description: |- - To prevent misuse, we enforce a rate limit on an API Key and endpoint basis, similar to the way many other APIs enforce rate limits. By default, all accounts and their corresponding Test and Live API Keys have a rate limit of 150 requests per 5 seconds per endpoint. The `POST /v1/us_verifications` and `POST /v1/us_autocompletions` endpoints have a limit of 300 requests per 5 seconds for all accounts. + description: >- + To prevent misuse, we enforce a rate limit on an API Key and endpoint + basis, similar to the way many other APIs enforce rate limits. By default, + all accounts and their corresponding Test and Live API Keys have a rate + limit of 150 requests per 5 seconds per endpoint. The `POST + /v1/us_verifications` and `POST /v1/us_autocompletions` endpoints have a + limit of 300 requests per 5 seconds for all accounts. + When your application exceeds the rate limit for a given API endpoint, the Lob API will return an HTTP 429 "Too Many Requests" response code instead of the variety of codes you would find across the other API endpoints. + **HTTP Headers** + HTTP headers are returned on each request to a rate limited endpoint. Ensure that you inspect these headers during your requests as they provide relevant data on how many more requests your application is allowed to make for the endpoint you just utilized. + While the headers are documented here in titlecase, HTTP headers are case insensitive and certain libraries may transform them to lowercase. Please inspect your headers carefully to see how they will be represented in your chosen development scenario. + + + ## Query Parameters + Query parameters which consist of lists of strings require that all elements of + the list be double-quoted, as per query filter standards. + + + ## Idempotent Requests + Lob supports idempotency for safely retrying `POST` requests to create + postcards, self mailers, letters, and checks without accidentally creating + duplicates. + For example, if a request to create a check fails due to a network error, + you can safely retry the same request with the same idempotency key and + guarantee that only one check will ultimately be created and sent. When a + request is sent with an idempotency key for an already created resource, + the response object for the existing resource will be returned. + To perform an idempotent `POST` request to one of the mailpiece product + endpoints, provide an additional `Idempotency-Key` header or an `idempotency_key` + query parameter to the request. If multiple idempotency keys are provided, + the request will fail. How you create unique keys is up to you, but we + suggest using random values, such as V4 UUIDs. Idempotency keys are intended + to prevent issues over a short periods of time, therefore keys expire after + 24 hours. Keys are unique by mode (Test vs. Live) as well as by resource + (postcard vs. letter, etc.). + By default, all `GET` and `DELETE` requests are idempotent by nature, so + they do not require an additional idempotency key. + For more help integrating idempotency keys, refer to our + implementation guide. + **Headers** + + + ## Metadata + When creating any Lob object, you can include a metadata object with up to 20 key-value pairs of + custom data. You can use metadata to store information like `metadata[customer_id] = "987654"` or + `metadata[campaign] = "NEWYORK2015"`. This is especially useful for filtering and matching to internal + systems. + Each metadata key must be less than 40 characters long and values must be less than 500 characters. + Metadata does not support nested objects. + ### Example Create Request with Metadata + ```bash curl https://api.lob.com/v1/postcards \ -u test_0dc8d51e0acffcb1880e0f19c79b2f5b0cc: \ @@ -1343,45 +1645,67 @@ tags: -d "merge_variables[name]=Harry" ``` + ### Example List Request with Metadata Filter + ```bash curl -g "https://api.lob.com/v1/postcards?metadata[campaign]=NEWYORK2015&limit=2" \ -u test_0dc8d51e0acffcb1880e0f19c79b2f5b0cc: ``` + + + ## Request Body + When manually sending a POST HTTP request directly to the Lob API, without + the use of a library, you may represent the body as either a Form URL + Encoded request, a JSON document, or a Multipart Form Data request. + However, if you're using one of our [SDKs](#tag/SDKs-and-Tools), + the generation of the request bodies is done for you automatically and you don't + need to worry about the format. + ### Form URL Encoded + This request body encoding is accompanied with the + `Content-Type: application/x-www-form-urlencoded` header. The content is an + example of what the [Verify a US address](index.html#operation/us_verification) + endpoint accepts. An example of a request body encoded in this format follows. + ```javascript primary_line=210 King Street&city=San Francisco&state=CA&zip_code=94107 ``` + ### JSON + This request body encoding is accompanied with the `Content-Type: application/json` header. + The content is an example of what the [Verify a US address endpoint](index.html#operation/us_verification) + accepts. An example of a request body encoded in this format follows. + ```javascript { "primary_line": "210 King Street", @@ -1391,14 +1715,20 @@ tags: } ``` + ### Multipart Form Data + This request body encoding is accompanied with the `Content-Type: multipart/form-data` + header. This is the only format that can be used for uploading a file to the API. The + content is an example of what the [Create a check](index.html#operation/check_create) + endpoint accepts. An example of a request body encoded in this format follows. + ```javascript --------------------------7015ebe79c0a5f8c Content-Disposition: form-data; name="description" @@ -1423,54 +1753,90 @@ tags: true --------------------------7015ebe79c0a5f8c-- ``` + - name: Reverse Geocode Lookups - description: | - Find a list of zip codes associated with a valid US location via latitude and longitude. + description: > + Find a list of zip codes associated with a valid US location via latitude + and longitude. - name: SDKs and Tools x-traitTag: true - description: | - Please visit our Github for a list of our supported libraries. + description: > + Please visit our Github for a list of our supported libraries. + - Typescript + - PHP + - Python + - Java + - Ruby + - CSharp + - Elixir + - Go + - Node.js (legacy) + - Java (legacy) + - PHP (legacy) + - Python (Legacy) + - Ruby (Legacy) + + - name: Self Mailers - description: | - The self mailer endpoint allows you to easily print and mail self mailers. The API provides endpoints + description: > + The self mailer endpoint allows you to easily print and mail self mailers. + The API provides endpoints + for creating self mailers, retrieving individual self mailers, canceling self mailers, and retrieving a list of self mailers. + - name: Template Design x-traitTag: true - description: | + description: > ## HTML Templates + You can save commonly used HTML as templates within Lob to more easily manage them. You can reference + your saved templates in postcard, letter, and check requests instead of having to pass a long HTML + string on each request. Additionally, you can make changes to your HTML templates and update them + independently, without having to touch your API integration. Templates can be created, edited, + and viewed on your Dashboard. To use a template in a postcard, + letter, or check, see the documentation for each endpoint below. For help using templates, check out our + HTML Templates Guide or get started with a + pre-designed template from our gallery. In Live mode, you can only have + as many templates as allotted in your current + Print & Mail Edition. There is no limit in Test mode. + If you'd like to interact with templates programmatically, check out our Beta Program for API access + to the [HTML Templates Endpoints](#tag/Templates). + ### Example Create Request using HTML Templates + ```bash curl https://api.lob.com/v1/postcards \ -u test_0dc8d51e0acffcb1880e0f19c79b2f5b0cc: \ @@ -1481,83 +1847,144 @@ tags: -d "back=tmpl_01b0d396a10c268" \ -d "merge_variables[name]=Harry" ``` + + + ## HTML Examples + Use a pre-designed template from our gallery or follow these + basic guidelines as starting points for creating custom Postcards, + Self Mailers, Letters, and Checks. + Please follow the standards used in these templates, such as: + - For any linked assets, you must use a performant file hosting provider with no rate limits such as Amazon + S3. + - Use inline styles or an internal stylesheet, do not link to external stylesheets. + - Link to images that are 300DPI and sized at the final desired size on the physical mailing. For example, + for a photo that is desired to be 1in x 1in on the final postcard, the image asset should be sized at 1in + x 1in at 300DPI (which equates to 300px by 300px). + - The sum of all linked assets should not exceed 5MB in file size. + - Use `-webkit` prefixes for CSS properties when recommended here. + Because different browsers have varying user-agent styles, the HTML you see in your browser will not + always look identical to what is produced through the API. It is **strongly** recommended that you test all + HTML requests by reviewing the final PDF files in your Test Environment, as these are the files that will be + printed. + + + ## Image Prepping + Currently we support the following file types for all endpoints: + - PDF + - PNG + - JPEG + **Templates** + You can find pre-made templates that already adhere to all of these guidelines here: + - [Postcards](#tag/Postcards) + - [Letters](#tag/Letters) + - [Checks](#tag/Checks) + - [Self Mailers](#tag/Self-Mailers) + **Prepping All Images** + The following guidelines apply to image types: + - Images should be 300 dpi or higher - PNG/JPEG files with less than 300 dpi will be rejected. + - Your artwork should include a 1/8" border around the final trim size. This means your final file size will be a total of 0.25" larger than your expected printed piece (ie, a 4"x6" postcard should be submitted as 4.25"x6.25"). There is no need to include crop marks in your submitted content. + - Include a safe zone – make sure no critical elements are within 1/8" from the edge of the final size. + - Do not include any additional postage marks or indicia. + - File sizes should be no larger than 5MB. + **Prepping PDFs** + To ensure that you are producing PDF's correctly please follow the guidelines below: + - [Make sure all non-standard fonts are embedded.](#section/Standard-PDF-Fonts) + - Generated PDF's need to be be PDF/A compliant. + **Prepping PNGs/JPEGs** + To ensure that you are producing PNG's/JPEG's correctly please follow the guidelines below: + - Minimum 300 dpi. The dpi is calculated as (width of image in pixels) / (width of product in inches) and (length of image in pixels) / (length of product in inches). For Example: 1275px x 1875px image used to create a 4.25" x 6.25" postcard has a dpi of 300. + - Submitted images must have the same length to width ratio as the chosen product. Images will not be cropped or stretched by the API. + + + ## Standard PDF Fonts + Ideally, all fonts in provided PDFs should be embedded. Embedding a font in a PDF ensures that the final + printed product will look as it was designed. Fonts can vary greatly in size and shape, even within the + same family. If the exact font that was used to design the artwork is not used to print, the look and + placement of the text is not guaranteed to be the same. + In general, requests that provide PDFs with un-embedded fonts will be rejected. We make an exception for + "standard fonts", a set of fonts that we have identified as being common. PDFs that contain un-embedded + fonts that are found in the list, and match the accepted font type + will be accepted. Otherwise, the request will be rejected. + Font embedding is an essential part of standard PDF workflows. Fonts should be embedded automatically by + PDF editing software that are compliant with PDF standards. +
Certified Tracking Event Details+ Letters sent with USPS Certified Mail are fully tracked by USPS, and + therefore their [tracking events](#operation/tracking_event) have an + additional `details` object with more detailed information about the + tracking event. The following table shows the potential values for + the fields in the `details` object mapped to the tracking event `name`. +
+ description: > + Given partial address information, this endpoint returns up to 10 address + suggestions. + ## Autocompletion Test Env + Your test API key does not autocomplete US addresses and is used to simulate behavior. With your test API key, requests with specific values for `address_prefix` return predetermined values. When `address_prefix` is set to: + - `0 suggestions` - Returns no suggestions - `[PRIMARY NUMBER] s[uggestion]` - Returns a maximum of ten predefined suggested addresses. `[PRIMARY NUMBER]` does not have to be a valid primary number when sending a test request. Each additional letter in `suggestion` reduces the number of suggestions by one (e.g. @@ -1983,14 +2460,18 @@ tags: suggestions returned. City and state filters work as expected and filter the list of predetermined suggested addresses. + See the `test` request & response examples under [Autocomplete Examples](#operation/autocompletion) within the "Autocomplete a partial address" section in US Autocompletions. - name: US Verification Types x-traitTag: true - description: | - These are detailed definitions for various fields in the [US verification object](#operation/us_verification). + description: > + These are detailed definitions for various fields in the [US verification + object](#operation/us_verification). + ZIP Code Types -
+
|
components[record_type]
components[carrier_route_type]
deliverability_analysis[dpv_footnotes]
ADDRESS TYPE FOR SAMPLE RESPONSE | @@ -2241,74 +2738,119 @@ tags:
---|