From 7a033a6a4531d2dfd18101fe28cd94da70108bda Mon Sep 17 00:00:00 2001 From: amaan-lob <72472696+amaan-lob@users.noreply.github.com> Date: Mon, 21 Oct 2024 11:37:25 -0700 Subject: [PATCH] chore(MI-486): remove intl autocompletions from docs (#509) --- .husky/pre-commit | 6 +- dist/lob-api-bundled.yml | 429 +----- dist/lob-api-postman.json | 1343 ++++++----------- docs/index.html | 172 +-- lob-api-public.yml | 25 +- package-lock.json | 23 +- package.json | 3 +- .../attributes/intl_auto_id.yml | 5 - .../intl_autocompletions.yml | 200 --- .../models/intl_autocompletions.yml | 14 - .../models/intl_autocompletions_writable.yml | 31 - .../models/intl_suggestions.yml | 41 - .../responses/intl_autocompletions.yml | 127 -- .../responses/intl_autocompletions_error.yml | 12 - tests/intl_autocompletions_test.js | 136 -- 15 files changed, 585 insertions(+), 1982 deletions(-) delete mode 100644 resources/intl_autocompletions/attributes/intl_auto_id.yml delete mode 100644 resources/intl_autocompletions/intl_autocompletions.yml delete mode 100644 resources/intl_autocompletions/models/intl_autocompletions.yml delete mode 100644 resources/intl_autocompletions/models/intl_autocompletions_writable.yml delete mode 100644 resources/intl_autocompletions/models/intl_suggestions.yml delete mode 100644 resources/intl_autocompletions/responses/intl_autocompletions.yml delete mode 100644 resources/intl_autocompletions/responses/intl_autocompletions_error.yml delete mode 100644 tests/intl_autocompletions_test.js diff --git a/.husky/pre-commit b/.husky/pre-commit index 6630386d..01bd3894 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -10,7 +10,6 @@ readonly CAMPAIGNS="campaigns" readonly CHECKS="checks" readonly CREATIVES="creatives" readonly IDENTITY_VALIDATION="identity_validation" -readonly INTL_AUTOCOMPLETIONS="intl_autocompletions" readonly INTL_VERIFICATIONS_BULK="intl_verifications_bulk" readonly INTL_VERIFICATIONS="intl_verifications" readonly LETTERS="letters" @@ -45,9 +44,6 @@ fi if [[ $files_changed == *"identity_validation"* ]]; then tests_to_run+=($IDENTITY_VALIDATION) fi -if [[ $files_changed == *"intl_autocompletion"* ]]; then - tests_to_run+=($INTL_AUTOCOMPLETIONS) -fi if [[ $files_changed == *"intl_verification"* ]]; then tests_to_run+=($INTL_VERIFICATIONS $INTL_VERIFICATIONS_BULK) fi @@ -89,7 +85,7 @@ if [[ ${#tests_to_run[@]} == 0 ]]; then select yn in "Yes" "No"; do case $yn in Yes ) - tests_to_run=($ADDRESSES $BANK_ACCOUNTS $CAMPAIGNS $CHECKS $CREATIVES $IDENTITY_VALIDATION $INTL_AUTOCOMPLETIONS $INTL_VERIFICATIONS_BULK $INTL_VERIFICATIONS $LETTERS $POSTCARDS $SELF_MAILERS $TEMPLATE_VERSIONS $TEMPLATES $UPLOADS $US_AUTOCOMPLETIONS $US_REVERSE_GEOCODE $US_VERIFICATIONS_BULK $US_VERIFICATIONS $ZIP_LOOKUPS); + tests_to_run=($ADDRESSES $BANK_ACCOUNTS $CAMPAIGNS $CHECKS $CREATIVES $IDENTITY_VALIDATION $INTL_VERIFICATIONS_BULK $INTL_VERIFICATIONS $LETTERS $POSTCARDS $SELF_MAILERS $TEMPLATE_VERSIONS $TEMPLATES $UPLOADS $US_AUTOCOMPLETIONS $US_REVERSE_GEOCODE $US_VERIFICATIONS_BULK $US_VERIFICATIONS $ZIP_LOOKUPS); break;; No ) break;; esac diff --git a/dist/lob-api-bundled.yml b/dist/lob-api-bundled.yml index 21a28305..0e445bdc 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.43 + version: 1.20.0 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 any API errors.
license: @@ -986,24 +986,6 @@ tags: description: | The Informed Delivery campaigns API allows you to create and view Informed Delivery campaigns.
- - name: Intl Autocompletions - description: | - Address autocompletion for non-US addresses. Given partial address information, this endpoint returns up to 10 address suggestions. - ## Autocompletion Test Env - Your test API key does not autocomplete international 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. - `1 su` returns 9 suggested addresses). `[PRIMARY NUMBER]` does not affect the number of - suggestions returned. - Country is a required field. - 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/intl_autocompletions) within the "Autocomplete - a partial address" section in Intl Autocompletions. - - name: Intl Verifications description: | Address verification for non-US addresses @@ -7998,195 +7980,6 @@ paths: -u7)mi[6+z,2&~8Wc('](7mhO=>qi;}gh2{I JF7Mz2R/i+w{+V2,MmwHp)feG!7n1o}PFXBqI]cU@vRhp{uEW}f>e*X:PYpDeVN#=oV,:|L9TIc]h,vYxJudt " }, { "disabled": false, @@ -4439,7 +4431,7 @@ }, "response": [ { - "id": "c15c8f08-42f3-4adb-9a51-4c00ce043db4", + "id": "568e8d12-8c7a-420d-a6fa-155d1fe348cd", "name": "Returns a campaign object", "originalRequest": { "url": { @@ -4496,7 +4488,7 @@ "_postman_previewlanguage": "json" }, { - "id": "bea107c9-4efe-4328-947d-7e15c0c0cc08", + "id": "0d2ecfc4-c5ab-4410-bd4d-a49cebca930a", "name": "Error", "originalRequest": { "url": { @@ -4559,7 +4551,7 @@ } }, { - "id": "c064f6ca-75ce-449e-af02-2cb2a9c1b096", + "id": "bd856f31-687a-4538-8038-055afbdd10d0", "name": "Delete", "request": { "name": "Delete", @@ -4597,7 +4589,7 @@ }, "response": [ { - "id": "e3811acc-923c-4fbe-a6c8-c4f265437c5f", + "id": "58309a56-6d6c-4dd9-9d97-1155f57143ef", "name": "Deleted the campaign.", "originalRequest": { "url": { @@ -4645,7 +4637,7 @@ "_postman_previewlanguage": "json" }, { - "id": "27762be7-f6a4-40e1-80b4-ae6a35a814c6", + "id": "62efcd7c-d73d-4736-8f8a-0efeb96f7c8b", "name": "Error", "originalRequest": { "url": { @@ -4696,7 +4688,7 @@ "event": [] }, { - "id": "2c249df2-1a8c-491c-bbfd-58e0989715a6", + "id": "61de91f2-deb7-4586-8212-c7e1efda5abc", "name": "Send Campaign", "request": { "name": "Send Campaign", @@ -4735,7 +4727,7 @@ }, "response": [ { - "id": "7985f078-6d14-47c3-8c83-a91fee64c207", + "id": "25688fcd-5201-4102-a198-7a71793ee69f", "name": "Returns a campaign object", "originalRequest": { "url": { @@ -4784,7 +4776,7 @@ "_postman_previewlanguage": "json" }, { - "id": "414f6f7d-0a3b-4016-b59b-5e1ff3f4252b", + "id": "285657ad-0df9-4722-b689-6490351dc9bb", "name": "Error", "originalRequest": { "url": { @@ -4839,7 +4831,7 @@ "event": [] }, { - "id": "3b623044-a82a-4dfa-a1ea-50b3524c4ab3", + "id": "05a5405f-1705-47d1-8191-28ebe492d1dd", "name": "Card Orders", "description": { "content": "The card orders endpoint allows you to easily create card orders for existing cards.\nThe API provides endpoints for creating card orders and listing card orders for a given card.\n
\n", @@ -4847,7 +4839,7 @@ }, "item": [ { - "id": "ee27cc85-f4ea-4f08-ba91-56011dec8ddf", + "id": "a2f7b613-3356-4a63-bcfb-5fe1f8763ea4", "name": "Retrieve", "request": { "name": "Retrieve", @@ -4899,7 +4891,7 @@ }, "response": [ { - "id": "8706ad22-0bd9-4f8a-8259-a9051c63d0fa", + "id": "3966e0d5-a1b1-4fea-bce0-13f72e927679", "name": "Returns the card orders associated with the given card id", "originalRequest": { "url": { @@ -4957,7 +4949,7 @@ "_postman_previewlanguage": "json" }, { - "id": "56d04072-8f3d-4568-8e9c-ce0eac409c0d", + "id": "3de326d3-9d8b-4e8f-9dfe-ddf8a480fb89", "name": "Error", "originalRequest": { "url": { @@ -5018,7 +5010,7 @@ "event": [] }, { - "id": "d1efa5ce-18a7-40dc-9186-dc2dfa974e1f", + "id": "623b70f9-b806-4c86-bc5a-f0678a47b8f0", "name": "Create", "request": { "name": "Create", @@ -5072,7 +5064,7 @@ }, "response": [ { - "id": "73864f24-8c4f-43ba-8984-e09faacc40a2", + "id": "6534a641-6e02-408d-ab7e-7ab0dd1803ec", "name": "Card order created successfully", "originalRequest": { "url": { @@ -5134,7 +5126,7 @@ "_postman_previewlanguage": "json" }, { - "id": "11915fc5-f875-4dc3-977d-ee94a5c9b78d", + "id": "54299ba8-926e-4158-b4c3-ea9ce8a3a223", "name": "Error", "originalRequest": { "url": { @@ -5205,7 +5197,7 @@ "event": [] }, { - "id": "f0a688e3-db02-4cf1-aa6d-e3550b0fc453", + "id": "57c62aa3-07c4-42bf-ad23-55cbb4c077f6", "name": "Cards", "description": { "content": "The cards endpoint allows you to easily create cards that can later be affixed to Letters.\nThe API provides endpoints for creating cards, retrieving individual cards, creating card orders, and retrieving a list of cards.\n\n", @@ -5213,7 +5205,7 @@ }, "item": [ { - "id": "8aa791c7-95b9-4e49-a9d3-ed5812fc88f4", + "id": "f575997f-6522-406c-8beb-893552474b49", "name": "List", "request": { "name": "List", @@ -5273,7 +5265,7 @@ }, "response": [ { - "id": "2860d892-6ffc-4a84-9313-d37f8231491a", + "id": "a1f21a46-24fd-480b-b18b-904fac6c0b3d", "name": "Returns a list of card objects", "originalRequest": { "url": { @@ -5333,7 +5325,7 @@ "_postman_previewlanguage": "json" }, { - "id": "3336cb18-f726-474d-8a55-5a9ef3198203", + "id": "b643441f-97e5-42fa-a7b9-39e71fd6e36c", "name": "Error", "originalRequest": { "url": { @@ -5396,7 +5388,7 @@ "event": [] }, { - "id": "1ba34c62-1409-4560-a293-952e498c66a4", + "id": "013e4156-a69c-4226-8789-e793243fafe4", "name": "Create", "request": { "name": "Create", @@ -5454,7 +5446,7 @@ }, "response": [ { - "id": "79cbe63d-7cdb-4872-8c0a-5593f8713265", + "id": "c445247b-4cd8-4be1-80c6-315b21e76aad", "name": "Card created successfully", "originalRequest": { "url": { @@ -5517,7 +5509,7 @@ "_postman_previewlanguage": "json" }, { - "id": "29b22224-784c-4e01-bce1-77627bc0bc94", + "id": "af58d8ea-983c-4164-8283-6d03aa860cd5", "name": "Error", "originalRequest": { "url": { @@ -5586,7 +5578,7 @@ } }, { - "id": "3b72b554-1a4e-4bc3-86d8-c1a691049834", + "id": "baf9fda1-efc7-40c9-a564-63a8e9d429e7", "name": "Retrieve", "request": { "name": "Retrieve", @@ -5624,7 +5616,7 @@ }, "response": [ { - "id": "dc6e9024-bcec-44b3-81f3-4aff16adb14e", + "id": "8adfdd47-dfbe-42dc-94a1-8f49c29f2798", "name": "Returns a card object", "originalRequest": { "url": { @@ -5672,7 +5664,7 @@ "_postman_previewlanguage": "json" }, { - "id": "25d7229e-19e1-4284-8ec1-b99593c9eb23", + "id": "bc7d06ee-be68-404a-926d-016d50dfa7c5", "name": "Error", "originalRequest": { "url": { @@ -5723,7 +5715,7 @@ "event": [] }, { - "id": "75e311c0-ca02-484e-ace9-3756c46797b0", + "id": "81e2085c-c61e-41b8-a663-628f1861bfb5", "name": "Update", "request": { "name": "Update", @@ -5787,7 +5779,7 @@ }, "response": [ { - "id": "d30dd6d6-9c81-47fa-a031-d27a5196453a", + "id": "2f6d21bf-2494-4119-89b2-23bbf9b9c85c", "name": "Returns a card object", "originalRequest": { "url": { @@ -5853,7 +5845,7 @@ "_postman_previewlanguage": "json" }, { - "id": "a32be7df-dbc8-456d-b9a3-3792f45baea7", + "id": "0ca79bbb-4219-4732-8db0-769d7604657e", "name": "Error", "originalRequest": { "url": { @@ -5925,7 +5917,7 @@ } }, { - "id": "19b37085-16a0-4d7e-aefc-8a7932684d90", + "id": "efb49b21-375f-4f5d-a527-96036b585e8f", "name": "Delete", "request": { "name": "Delete", @@ -5963,7 +5955,7 @@ }, "response": [ { - "id": "63c1e705-5ea6-4947-bf79-3f61008bbb38", + "id": "e9e81c36-4052-4b0c-9cfd-db590daa74d1", "name": "Deleted the card", "originalRequest": { "url": { @@ -6011,7 +6003,7 @@ "_postman_previewlanguage": "json" }, { - "id": "32de5fa8-55fc-40f1-8152-38bab18768fc", + "id": "f2b342cf-a8b7-4281-8b2b-313d290cdb67", "name": "Error", "originalRequest": { "url": { @@ -6065,7 +6057,7 @@ "event": [] }, { - "id": "8fbab91b-9127-431a-9399-e84364c2199b", + "id": "e5d02294-01d5-4414-b69a-de469a597087", "name": "Checks", "description": { "content": "Checks allow you to send payments via physical checks. The API provides endpoints\nfor creating checks, retrieving individual checks, canceling checks, and retrieving a list of checks.\n\n", @@ -6073,7 +6065,7 @@ }, "item": [ { - "id": "73353cff-c195-43b8-a075-2cbc175dc317", + "id": "a458df5b-2c5f-45e8-bc8c-2c48bc40c1fc", "name": "List", "request": { "name": "List", @@ -6121,7 +6113,13 @@ }, { "disabled": false, - "key": "date_created[ut_ad]", + "key": "date_created[Excepteure10]", + "value": "ATTRIBUTE | \nDESCRIPTION | \n
---|---|
code | \n A consistent machine-keyable string identifying the error | \n
status_code | \n A conventional HTTP status code | \n
message | \n A human-readable, subject-to-change message with more details about the error | \n
STATUS_CODE | \nCODE | \nMESSAGE | \n
---|---|---|
200 | \n SUCCESS | \nSuccessful API request | \n
401 | \n UNAUTHORIZED | \nAuthorization error with your API key or account | \n
403 | \n FORBIDDEN | \nForbidden error with your API key or account | \n
404 | \n NOT FOUND | \nThe requested item does not exist | \n
422 | \n BAD REQUEST | \nThe query or body parameters did not pass validation | \n
429 | \n TOO MANY REQUESTS | \nToo many requests have been sent with an API key in a given amount of time | \n
500 | \n SERVER ERROR | \nAn internal server error occurred, please contact support@lob.com | \n
STATUS_CODE | \nCODE | \nMESSAGE | \n
---|---|---|
422 | \n BAD_REQUEST | \nAn invalid request was made. See error message for details. | \n
409/422 | \n CONFLICT | \nThis operation would leave data in a conflicted state. | \n
403 | \n FEATURE_LIMIT_REACHED | \nThe account has reached its resource limit and requires upgrading to add more. | \n
500 | \n INTERNAL_SERVER_ERROR | \nAn error has occured on Lob's servers. Please try request again. | \n
422 | \n INVALID | \nAn invalid request was made. See error message for details. | \n
422 | \n NOT_DELETABLE | \nAn attempt was made to delete a resource, but the resource cannot be deleted. | \n
404 | \n NOT_FOUND | \nThe requested resource was not found. | \n
408 | \n REQUEST_TIMEOUT | \nThe request took too long. Please try again. | \n
503 | \n SERVICE_UNAVAILABLE | \nThe Lob servers are temporarily unavailable. Please try again. | \n
404 | \n UNRECOGNIZED_ENDPOINT | \nThe requested endpoint doesn't exist. | \n
422 | \n UNSUPPORTED_LOB_VERSION | \nAn unsupported Lob API version was requested. | \n
STATUS_CODE | \nCODE | \nMESSAGE | \n
---|---|---|
401 | \n EMAIL_REQUIRED | \nAccount must have a verified email address before creating live resources. | \n
401 | \n UNAUTHORIZED | \nThe request isn't authorized. | \n
401 | \n UNAUTHORIZED_TOKEN | \nToken isn't authorized. | \n
401/403 | \n INVALID_API_KEY | \nThe API key is invalid. | \n
403 | \n PUBLISHABLE_KEY_NOT_ALLOWED | \nThe requested operation needs a secret key, not a publishable key. See [API Keys](#tag/API-Keys) for more information. | \n
429 | \n RATE_LIMIT_EXCEEDED | \nRequests were sent too quickly and must be slowed down. | \n
STATUS_CODE | \nCODE | \nMESSAGE | \n
---|---|---|
401 | \n PAYMENT_METHOD_UNVERIFIED | \nYou must have a verified bank account or credit card to submit live requests. | \n
404 | \n DELETED_BANK_ACCOUNT | \nChecks cannot be created with a deleted bank account. | \n
422 | \n ADDRESS_LENGTH_EXCEEDS_LIMIT | \nThe sum of to.address_line1 and to.address_line2 cannot surpass 50 characters. | \n
422 | \n BANK_ACCOUNT_ALREADY_VERIFIED | \nThe bank account has already been verified. | \n
422 | \n BANK_ERROR | \nThere's an issue with the bank account. | \n
403 | \n BILLING_ADDRESS_REQUIRED | \nIn order to create a live mail piece, your account needs to set up a billing address. | \n
422 | \n CUSTOM_ENVELOPE_INVENTORY_DEPLETED | \nCustom envelope inventory is depleted, and more will need to be ordered. | \n
422 | \n FAILED_DELIVERABILITY_STRICTNESS | \nThe to address doesn't meet strictness requirements.\n See Account Settings to configure strictness. | \n
422 | \n FILE_PAGES_BELOW_MIN | \nNot enough pages. | \n
422 | \n FILE_PAGES_EXCEED_MAX | \nToo many pages. | \n
422 | \n FILE_SIZE_EXCEEDS_LIMIT | \nThe file size is too large. See description for details. | \n
422 | \n FOREIGN_RETURN_ADDRESS | \nThe 'from' address must be a US address. | \n
422 | \n INCONSISTENT_PAGE_DIMENSIONS | \nAll pages of the input file must have the same dimensions. | \n
422 | \n INVALID_BANK_ACCOUNT | \nThe provided bank routing number is invalid. | \n
422 | \n INVALID_BANK_ACCOUNT_VERIFICATION | \nVerification amounts do not match. | \n
422 | \n INVALID_CHECK_INTERNATIONAL | \nChecks cannot be sent internationally. | \n
422 | \n INVALID_COUNTRY_COVID | \nThe postal service in the specified country is currently unable to process the request due to COVID-19 restrictions. | \n
422 | \n INVALID_FILE | \nThe file is invalid. | \n
422 | \n INVALID_FILE_DIMENSIONS | \nFile dimensions are incorrect for the selected mail type. | \n
422 | \n INVALID_FILE_DOWNLOAD_TIME | \nFile download from remote server took too long. | \n
422 | \n INVALID_FILE_URL | \nThe file URL when creating a resource is invalid. | \n
422 | \n INVALID_IMAGE_DPI | \nDPI must be at least 300. | \n
422 | \n INVALID_INTERNATIONAL_FEATURE | \nThe specified product cannot be sent to the destination. | \n
422 | \n INVALID_PERFORATION_RETURN_ENVELOPE | \nBoth `return_envelope` and `perforation` must be used together. | \n
422 | \n INVALID_TEMPLATE_HTML | \nThe provided HTML is invalid. | \n
422 | \n MAIL_USE_TYPE_CAN_NOT_BE_NULL | \n`use_type` must be one of \"marketing\" or \"operational\". Alternatively, an admin can set the account default use type in Account Settings. | \n
422 | \n MERGE_VARIABLE_REQUIRED | \nA required merge variable is missing. | \n
422 | \n MERGE_VARIABLE_WHITESPACE | \nMerge variable names cannot contain whitespace. | \n
422 | \n PDF_ENCRYPTED | \nAn encrypted PDF was provided. | \n
422 | \n SPECIAL_CHARACTERS_RESTRICTED | \nCannot use special characters for merge variable names. | \n
422 | \n UNEMBEDDED_FONTS | \nThe provided PDF contains non-standard unembedded fonts. See description for details. | \n
EVENT TYPE | \nLIVE-ONLY | \nWHEN EVENT TYPE OCCURS | \n
---|---|---|
postcard.created | \n false | \n A postcard is successfully created (Lob returns a 200 status code). | \n
postcard.rejected | \n false | \n A postcard was not successfully created (Usually happens when one or more postcards fail the creation step during a batch request) | \n
postcard.rendered_pdf | \n false | \n A postcard's PDF proof is successfully rendered. | \n
postcard.rendered_thumbnails | \n false | \n A postcard's thumbnails are successfully rendered. | \n
postcard.deleted | \n false | \n A postcard is successfully canceled. | \n
postcard.mailed | \n true | \n A postcard receives a \"Mailed\" tracking event. Only enabled for certain Print & Mail Editions. | \n
postcard.in_transit | \n true | \n A postcard receives an \"In Transit\" tracking event. | \n
postcard.in_local_area | \n true | \n A postcard receives an \"In Local Area\" tracking event. | \n
postcard.processed_for_delivery | \n true | \n A postcard receives a \"Processed for Delivery\" tracking event. | \n
postcard.delivered | \n false | \n A postcard receives a \"Delivered\" tracking event. | \n
postcard.failed | \n false | \n A postcard receives a \"Failed\" rendering error or tracking event. | \n
postcard.re-routed | \n true | \n A postcard receives a \"Re-Routed\" tracking event. | \n
postcard.returned_to_sender | \n true | \n A postcard receives a \"Returned to Sender\" tracking event. | \n
postcard.international_exit | \n true | \n A postcard receives a \"International Exit\" tracking event. | \n
postcard.viewed | \n false | \n A postcard QR code or URL was scanned or viewed by the recipient. | \n
EVENT TYPE | \nLIVE-ONLY | \nWHEN EVENT TYPE OCCURS | \n
---|---|---|
self_mailer.created | \n false | \n A self_mailer is successfully created (Lob returns a 200 status code). | \n
self_mailer.rejected | \n false | \n A self_mailer was not successfully created (Usually happens when one or more self_mailers fail the creation step during a batch request) | \n
self_mailer.rendered_pdf | \n false | \n A self_mailer's PDF proof is successfully rendered. | \n
self_mailer.rendered_thumbnails | \n false | \n A self_mailer's thumbnails are successfully rendered. | \n
self_mailer.deleted | \n false | \n A self_mailer is successfully canceled. | \n
self_mailer.mailed | \n true | \n A self_mailer receives a \"Mailed\" tracking event. Only enabled for certain\n Print & Mail Editions. | \n
self_mailer.in_transit | \n true | \n A self_mailer receives an \"In Transit\" tracking event. | \n
self_mailer.in_local_area | \n true | \n A self_mailer receives an \"In Local Area\" tracking event. | \n
self_mailer.processed_for_delivery | \n true | \n A self_mailer receives a \"Processed for Delivery\" tracking event. | \n
self_mailer.delivered | \n true | \n A self_mailer receives an \"Delivered\" tracking event. | \n
self_mailer.failed | \n false | \n A self_mailer receives an \"Failed\" rendering error or tracking event. | \n
self_mailer.re-routed | \n true | \n A self_mailer receives a \"Re-Routed\" tracking event. | \n
self_mailer.returned_to_sender | \n true | \n A self_mailer receives a \"Returned to Sender\" tracking event. | \n
self_mailer.international_exit | \n true | \n A self_mailer receives an \"International Exit\" tracking event. | \n
self_mailer.viewed | \n false | \n A self_mailer's QR code or URL was scanned or viewed by the recipient. | \n
EVENT TYPE | \nLIVE-ONLY | \nWHEN EVENT TYPE OCCURS | \n
---|---|---|
letter.created | \n false | \n A letter is successfully created (Lob returns a 200 status code). | \n
letter.rejected | \n false | \n A letter was not successfully created (Usually happens when one or more letters fail the creation step during a batch request) | \n
letter.rendered_pdf | \n false | \n A letter's PDF proof is successfully rendered. | \n
letter.rendered_thumbnails | \n false | \n A letter's thumbnails are successfully rendered. | \n
letter.deleted | \n false | \n A letter is successfully canceled. | \n
letter.mailed | \n true | \n A letter receives a \"Mailed\" tracking event. Only enabled for certain\n Print & Mail Editions. | \n
letter.in_transit | \n true | \n A letter receives an \"In Transit\" tracking event. | \n
letter.in_local_area | \n true | \n A letter receives an \"In Local Area\" tracking event. | \n
letter.processed_for_delivery | \n true | \n A letter receives a \"Processed for Delivery\" tracking event. | \n
letter.delivered | \n true | \n A letter receives a \"Delivered\" tracking event. | \n
letter.failed | \n false | \n A letter receives a \"Failed\" rendering error or tracking event. | \n
letter.re-routed | \n true | \n A letter receives a \"Re-Routed\" tracking event. | \n
letter.returned_to_sender | \n true | \n A letter receives a \"Returned to Sender\" tracking event. | \n
letter.international_exit | \n true | \n A letter receives a \"International Exit\" tracking event. | \n
letter.viewed | \n false | \n A letter's QR code or URL was scanned or viewed by the recipient. | \n
letter.certified.mailed | \n true | \n A certified letter receives a \"Mailed\" tracking event. Only enabled for certain\n Print & Mail Editions. | \n
letter.certified.in_transit | \n true | \n A certified letter receives an \"In Transit\" tracking event. | \n
letter.certified.in_local_area | \n true | \n A certified letter receives an \"In Transit\" tracking event. | \n
letter.certified.processed_for_delivery | \n true | \n A certified letter receives a \"Processed for Delivery\" tracking event. | \n
letter.certified.re-routed | \n true | \n A certified letter receives a \"Re-Routed\" tracking event. | \n
letter.certified.returned_to_sender | \n true | \n A certified letter receives a \"Returned to Sender\" tracking event. | \n
letter.certified.delivered | \n true | \n A certified letter receives a \"Delivered\" tracking event. | \n
letter.certified.pickup_available | \n true | \n A certified letter receives a \"Pickup Available\" tracking event. | \n
letter.certified.issue | \n true | \n A certified letter receives an \"Issue\" tracking event. | \n
letter.return_envelope.created | \n false | \n A return envelope is created (occurs simultaneously with letter creation). | \n
letter.return_envelope.in_transit | \n true | \n A return envelope receives an \"In Transit\" tracking event. | \n
letter.return_envelope.in_local_area | \n true | \n A return envelope receives an \"In Local Area\" tracking event. | \n
letter.return_envelope.processed_for_delivery | \n true | \n A return envelope receives a \"Processed for Delivery\" tracking event. | \n
letter.return_envelope.re-routed | \n true | \n A return envelope receives a \"Re-Routed\" tracking event. | \n
letter.return_envelope.returned_to_sender | \n true | \n A return envelope receives a \"Returned to Sender\" tracking event. | \n
EVENT TYPE | \nLIVE-ONLY | \nWHEN EVENT TYPE OCCURS | \n
---|---|---|
check.created | \n false | \n A check is successfully created (Lob returns a 200 status code). | \n
check.rejected | \n false | \n A check was not successfully created (Usually happens when one or more checks fail the creation step during a batch request) | \n
check.rendered_pdf | \n false | \n A check's PDF proof is successfully rendered. | \n
check.rendered_thumbnails | \n false | \n A check's thumbnails are successfully rendered. | \n
check.deleted | \n false | \n A check is successfully canceled. | \n
check.mailed | \n true | \n A check receives a \"Mailed\" tracking event. Only enabled for certain Print & Mail Editions. | \n
check.in_transit | \n true | \n A check receives an \"In Transit\" tracking event. | \n
check.in_local_area | \n true | \n A check receives an \"In Local Area\" tracking event. | \n
check.processed_for_delivery | \n true | \n A check receives a \"Processed for Delivery\" tracking event. | \n
check.delivered | \n true | \n A check receives a \"Delivered\" tracking event. | \n
check.failed | \n false | \n A check receives a \"Failed\" rendering error or tracking event. | \n
check.re-routed | \n true | \n A check receives a \"Re-Routed\" tracking event. | \n
check.returned_to_sender | \n true | \n A check receives a \"Returned to Sender\" tracking event. | \n
EVENT TYPE | \nLIVE-ONLY | \nWHEN EVENT TYPE OCCURS | \n
---|---|---|
address.created | \n false | \n An address is successfully created (Lob returns a 200 status code). | \n
address.deleted | \n false | \n An address is successfully deleted. | \n
EVENT TYPE | \nLIVE-ONLY | \nWHEN EVENT TYPE OCCURS | \n
---|---|---|
bank_account.created | \n false | \n A bank account is successfully created (Lob returns a 200 status code). | \n
bank_account.deleted | \n false | \n A bank account is successfully deleted. | \n
bank_account.verified | \n false | \n A bank account is successfully verified. | \n
DELIVERABILITY OF SAMPLE RESPONSE | \nSET primary_line TO | \n
---|---|
deliverable | \n deliverable | \n
deliverable_missing_info | \n deliverable missing info | \n
undeliverable | \n undeliverable | \n
no_match | \n no match | \n
X-Rate-Limit-Limit: | \nthe rate limit ceiling for a given request | \n
X-Rate-Limit-Remaining: | \nthe number of requests remaining in this window | \n
X-Rate-Limit-Reset: | \nthe time at which the rate limit window resets (in UTC epoch seconds)\n | \n
Idempotency-Key: | \n\n optional\n \n \n A string of no longer than 256 characters\n that uniquely identifies this resource.\n \n \n | \n
idempotency-key: | \n\n optional\n \n \n A string of no longer than 256 characters\n that uniquely identifies this resource.\n \n \n | \n
FONT NAME | \nTYPES | \n
---|---|
Arial | \n TrueType, CID TrueType | \n
Arial,Bold | \n TrueType, CID TrueType | \n
Arial,BoldItalic | \n TrueType, CID TrueType | \n
Arial,Italic | \n TrueType, CID TrueType | \n
ArialMT | \n TrueType, CID TrueType | \n
Arial-BoldMT | \n TrueType | \n
Arial-BoldItalicMT | \n TrueType | \n
Arial-ItalicMT | \n TrueType | \n
ArialNarrow | \n TrueType | \n
ArialNarrow-Bold | \n TrueType | \n
Calibri | \n TrueType | \n
Calibri-Bold | \n TrueType | \n
Calibri-Italic | \n TrueType | \n
Courier | \n Type 1 | \n
Courier-Oblique | \n Type 1 | \n
Courier-Bold | \n Type 1 | \n
Courier-BoldOblique | \n Type 1 | \n
CourierNewPSMT | \n TrueType | \n
CourierNewPS-ItalicMT | \n TrueType | \n
CourierNewPS-BoldMT | \n TrueType | \n
Helvetica | \n Type 1 | \n
Helvetica-Bold | \n Type 1 | \n
Helvetica-BoldOblique | \n Type 1 | \n
Helvetica-Oblique | \n Type 1 | \n
LucidaConsole | \n TrueType | \n
MsSansSerif | \n TrueType | \n
MsSansSerif,Bold | \n TrueType | \n
Symbol | \n Type 1, TrueType | \n
Tahoma | \n TrueType | \n
Tahoma-Bold | \n TrueType | \n
Times-Bold | \n Type 1 | \n
Times-BoldItalic | \n Type 1 | \n
Times-Italic | \n Type 1 | \n
Times-Roman | \n Type 1 | \n
TimesNewRomanPS-BoldItalicMT | \n TrueType | \n
TimesNewRomanPS-BoldMT | \n TrueType | \n
TimesNewRomanPS-ItalicMT | \n TrueType | \n
TimesNewRomanPSMT | \n TrueType, CID TrueType | \n
TimesNewRomanPSMT,Bold | \n TrueType | \n
Verdana | \n TrueType | \n
Verdana-Bold | \n TrueType | \n
Verdana,Italic | \n TrueType | \n
ZapfDingbats | \n Type 1 | \n
NAME | \nEVENT | \nDESCRIPTION | \nACTION REQUIRED | \n
---|---|---|---|
Mailed | \npackage_accepted | \n Package has been accepted into the carrier network for delivery. | \nfalse | \n
In Transit | \npackage_arrived | \n Package has arrived at an intermediate location in the carrier network. | \nfalse | \n
In Transit | \npackage_departed | \n Package has departed from an intermediate location in the carrier network. | \nfalse | \n
In Transit | \npackage_processing | \n Package is processing at an intermediate location in the carrier network. | \nfalse | \n
In Transit | \npackage_processed | \n Package has been processed at an intermediate location. | \nfalse | \n
In Local Area | \npackage_in_local_area | \n Package is at a location near the end destination. | \nfalse | \n
Processed For Delivery | \ndelivery_scheduled | \n Package is scheduled for delivery. | \nfalse | \n
Processed For Delivery | \nout_for_delivery | \n Package is out for delivery. | \nfalse | \n
Pickup Available | \npickup_available | \n Package is available for pickup at carrier location. | \ntrue | \n
Delivered | \ndelivered | \n Package has been delivered. | \nfalse | \n
Re-Routed | \npackage_forwarded | \n Package has been forwarded. | \nfalse | \n
Returned to Sender | \nreturned_to_sender | \n Package is to be returned to sender. | \nfalse | \n
Issue | \naddress_issue | \n Address information is incorrect. Contact carrier to ensure delivery. | \ntrue | \n
Issue | \ncontact_carrier | \n Contact the carrier for more information. | \ntrue | \n
Issue | \ndelayed | \n Delivery of package is delayed. | \nfalse | \n
Issue | \ndelivery_attempted | \n Delivery of package has been attempted. Contact carrier to ensure delivery. | \ntrue | \n
Issue | \ndelivery_rescheduled | \n Delivery of package has been rescheduled. | \nfalse | \n
Issue | \nlocation_inaccessible | \n Delivery location inaccessible to carrier. Contact carrier to ensure delivery. | \ntrue | \n
Issue | \nnotice_left | \n Carrier left notice during attempted delivery. Follow carrier instructions on notice. | \ntrue | \n
Issue | \npackage_damaged | \n Package has been damaged. Contact carrier for more details. | \ntrue | \n
Issue | \npackage_disposed | \n Package has been disposed. | \nfalse | \n
Issue | \npackage_held | \n Package held at carrier location. Contact carrier for more details. | \ntrue | \n
Issue | \npackage_lost | \n Package has been lost. Contact carrier for more details. | \ntrue | \n
Issue | \npackage_unclaimed | \n Package is unclaimed. | \ntrue | \n
Issue | \npackage_undeliverable | \n Package is not able to be delivered. | \ntrue | \n
Issue | \nreschedule_delivery | \n Contact carrier to reschedule delivery. | \ntrue | \n
Issue | \nother | \n Unrecognized carrier status. | \nfalse | \n
components[zip_code_type]
standard | \n The default ZIP code type. Used when none of the other types apply. | \n
po_box | \n The ZIP code contains only PO Boxes. | \n
unique | \n The ZIP code is uniquely assigned to a single organization (such as a government agency) that receives a large volume of mail. | \n
military | \n The ZIP code contains military addresses. | \n
empty string | \nA match could not be made with the provided inputs. | \n
components[record_type]
street | \n The default address type. | \n
highrise | \n The address is a commercial building, apartment complex, highrise, etc. | \n
firm | \n The address is of an organizational entity which receives a minimum number of mailpieces per day. | \n
po_box | \n The address is a PO Box. | \n
rural_route | \n The address exists on a Rural Route. This is an older system of mail delivery which is still used in some parts of the country. | \n
general_delivery | \n The address is part of the USPS General Delivery service, which allows individuals without permanent addresses to receive mail. | \n
empty string | \nA match could not be made with the provided inputs. | \n
components[carrier_route_type]
city_delivery | \n The default carrier route type. Used when none of the other types apply. | \n
rural_route | \n The carrier route is a Rural Route. This is an older system of mail delivery which is still used in some parts of the country. | \n
highway_contract | \n The carrier route is a Highway Contract Route. This is an older system of mail delivery which is still used in some parts of the country. | \n
po_box | \n The carrier route consists of PO Boxes. | \n
general_delivery | \n The carrier route is part of the USPS General Delivery service, which allows individuals without permanent addresses to receive mail. | \n
empty string | \nA match could not be made with the provided inputs. | \n
deliverability_analysis[dpv_footnotes]
AA | \n Some parts of the address (such as the street and ZIP code) are valid. | \n
A1 | \n The address is invalid based on given inputs. | \n
BB | \n The address is deliverable. | \n
CC | \n The address is deliverable by removing the provided secondary unit designator. | \n
TA | \n The address is deliverable by dropping a trailing alphabet from the primary number. | \n
IA | \n The address is an Informed Address. The recipient and the street address is replaced with a special code provided by the USPS. | \n
N1 | \n The address is deliverable but is missing a secondary information (apartment, unit, etc). | \n
F1 | \n The address is a deliverable military address. | \n
G1 | \n The address is a deliverable General Delivery address. General Delivery is a USPS service which allows individuals without permanent addresses to receive mail. | \n
U1 | \n The address is a deliverable unique address. A unique ZIP code is assigned to a single organization (such as a government agency) that receives a large volume of mail. | \n
C1 | \n The primary number was confirmed whereas the secondary number is unconfirmed and required to be deliverable. | \n
M1 | \n The primary number is missing. | \n
M3 | \n The primary number is invalid. | \n
P1 | \n PO Box, Rural Route, or Highway Contract box number is missing. | \n
P3 | \n PO Box, Rural Route, or Highway Contract box number is invalid. | \n
PB | \n The address is identified as PO Box street address. | \n
R1 | \n The address matched to a CMRA and private mailbox information is not present. | \n
R7 | \n The address matched to a Phantom Carrier Route (carrier_route of R777 ), which corresponds to physical addresses that are not eligible for delivery. | \n
RR | \n The address matched to a CMRA and private mailbox information is present. | \n
ADDRESS TYPE FOR SAMPLE RESPONSE | \nDELIVERABILITY | \nSET primary_line OR address TO | \n
---|---|---|
Commercial highrise | \ndeliverable | \n commercial highrise | \n
Residential highrise | \ndeliverable | \n residential highrise | \n
Residential house | \ndeliverable | \n residential house | \n
PO Box | \ndeliverable | \n po box | \n
Rural route | \ndeliverable | \n rural route | \n
Puerty Rico address w/ urbanization | \ndeliverable | \n puerto rico | \n
Military address | \ndeliverable | \n military | \n
Department of state | \ndeliverable | \n department of state | \n
Generic deliverable | \ndeliverable | \n deliverable | \n
Missing a suite number | \ndeliverable_missing_unit | \n missing unit | \n
Suite number doesn't exist | \ndeliverable_incorrect_unit | \n incorrect unit | \n
Residential house with unnecessary suite number | \ndeliverable_unnecessary_unit | \n unnecessary unit | \n
Undeliverable and block matched | \nundeliverable | \n undeliverable block match | \n
Undeliverable and no block matched | \nundeliverable | \n undeliverable no match | \n
{- "addresses": [
- {
- "recipient": "John Doe",
- "primary_line": "370 Water St",
- "secondary_line": "",
- "city": "Summerside",
- "state": "Prince Edwards Island",
- "postal_code": "C1N 1C4",
- "country": "CA"
}, - {
- "recipient": "Jane Doe",
- "primary_line": "UL. DOLSKAYA 1",
- "secondary_line": "",
- "city": "MOSCOW",
- "state": "MOSCOW G",
- "postal_code": "115569",
- "country": "RU"
}
]
}
{- "addresses": [
- {
- "id": "intl_ver_c7cb63d68f8d6",
- "recipient": null,
- "primary_line": "370 WATER ST",
- "secondary_line": "",
- "last_line": "SUMMERSIDE PE C1N 1C4",
- "country": "CA",
- "coverage": "SUBBUILDING",
- "deliverability": "deliverable",
- "status": "LV4",
- "components": {
- "primary_number": "370",
- "street_name": "WATER ST",
- "city": "SUMMERSIDE",
- "state": "PE",
- "postal_code": "C1N 1C4"
}, - "object": "intl_verification"
}
], - "errors": false
}
{- "addresses": [
- {
- "recipient": "John Doe",
- "primary_line": "370 Water St",
- "secondary_line": "",
- "city": "Summerside",
- "state": "Prince Edwards Island",
- "postal_code": "C1N 1C4",
- "country": "CA"
}, - {
- "recipient": "Jane Doe",
- "primary_line": "UL. DOLSKAYA 1",
- "secondary_line": "",
- "city": "MOSCOW",
- "state": "MOSCOW G",
- "postal_code": "115569",
- "country": "RU"
}
]
}
{- "addresses": [
- {
- "id": "intl_ver_c7cb63d68f8d6",
- "recipient": null,
- "primary_line": "370 WATER ST",
- "secondary_line": "",
- "last_line": "SUMMERSIDE PE C1N 1C4",
- "country": "CA",
- "coverage": "SUBBUILDING",
- "deliverability": "deliverable",
- "status": "LV4",
- "components": {
- "primary_number": "370",
- "street_name": "WATER ST",
- "city": "SUMMERSIDE",
- "state": "PE",
- "postal_code": "C1N 1C4"
}, - "object": "intl_verification"
}
], - "errors": false
}
Verify an international (except US or US territories) address with a live API key. Requests to this endpoint with a test API key will return a dummy response based on the primary line you input.
x-lang-output | string Enum: "native" "match"
DPV Footnotes -
|
object | string Default: "intl_verification" Value: "intl_verification" Value is resource type. |
{- "recipient": "Harry Zhang",
- "primary_line": "370 Water St",
- "secondary_line": "",
- "city": "Summerside",
- "state": "Prince Edward Island",
- "postal code": "C1N 1C4",
- "country": "CA"
}
{- "id": "intl_ver_c7cb63d68f8d6",
- "recipient": null,
- "primary_line": "370 WATER ST",
- "secondary_line": "",
- "last_line": "SUMMERSIDE PE C1N 1C4",
- "country": "CA",
- "coverage": "SUBBUILDING",
- "deliverability": "deliverable",
- "status": "LV4",
- "components": {
- "primary_number": "370",
- "street_name": "WATER ST",
- "city": "SUMMERSIDE",
- "state": "PE",
- "postal_code": "C1N 1C4"
}, - "object": "intl_verification"
}
Webhooks are an easy way to get notifications on events happening asynchronously +
{- "recipient": "Harry Zhang",
- "primary_line": "370 Water St",
- "secondary_line": "",
- "city": "Summerside",
- "state": "Prince Edward Island",
- "postal code": "C1N 1C4",
- "country": "CA"
}
{- "id": "intl_ver_c7cb63d68f8d6",
- "recipient": null,
- "primary_line": "370 WATER ST",
- "secondary_line": "",
- "last_line": "SUMMERSIDE PE C1N 1C4",
- "country": "CA",
- "coverage": "SUBBUILDING",
- "deliverability": "deliverable",
- "status": "LV4",
- "components": {
- "primary_number": "370",
- "street_name": "WATER ST",
- "city": "SUMMERSIDE",
- "state": "PE",
- "postal_code": "C1N 1C4"
}, - "object": "intl_verification"
}
Webhooks are an easy way to get notifications on events happening asynchronously
within Lob's architecture. For example, when a postcard gets a "Processed For
Delivery" tracking event, an event object of type postcard.processed_for_delivery
will be created. If you are subscribed to that event type in that Environment
@@ -6543,7 +6507,7 @@
Unique identifier of the related resource for the event.
A timestamp in ISO 8601 format of the date the resource was created.
Value is resource type.
-{- "event_type": {
- "resource": "postcards",
- "enabled_for_test": true,
- "id": "postcard.created",
- "object": "event_type"
}, - "reference_id": "psc_d2d10a2e9cba991c",
- "id": "evt_d95ff8ffd2b5cfb4",
- "date_created": "2016-12-04T22:50:08.180Z",
- "body": {
- "id": "psc_d2d10a2e9cba991c",
- "description": "Test Postcard",
- "metadata": { },
- "to": {
- "id": "adr_8e783523dd7f0e70",
- "description": "Test Recipient Address",
- "name": "Harry Zhang",
- "company": "LOB",
- "phone": null,
- "email": null,
- "address_line1": "123 TEST ST",
- "address_line2": "UNIT 1",
- "address_city": "SAN FRANCISCO",
- "address_state": "CA",
- "address_zip": "94107",
- "address_country": "UNITED STATES",
- "metadata": { },
- "date_created": "2016-12-04T10:51:51.844Z",
- "date_modified": "2016-12-04T10:51:51.844Z",
- "object": "address"
}, - "from": {
- "id": "adr_d2e26faf793ed422",
- "description": "Test Sender Address",
- "name": "Harry Zhang",
- "company": "LOB",
- "phone": null,
- "email": null,
- "address_line1": "123 TEST ST",
- "address_line2": "UNIT 1",
- "address_city": "SAN FRANCISCO",
- "address_state": "CA",
- "address_zip": "94107",
- "address_country": "UNITED STATES",
- "metadata": { },
- "date_created": "2016-12-04T10:51:51.845Z",
- "date_modified": "2016-12-04T10:51:51.845Z",
- "object": "address"
}, - "front_template_id": null,
- "back_template_id": null,
- "carrier": "USPS",
- "tracking_events": [ ],
- "thumbnails": [
- {
}, - {
}
], - "merge_variables": null,
- "mail_type": "usps_first_class",
- "size": "4x6",
- "expected_delivery_date": "2016-12-09",
- "date_created": "2016-12-04T10:51:51.843Z",
- "date_modified": "2016-12-04T10:51:51.843Z",
- "send_date": "2016-12-04T10:56:51.843Z",
- "object": "postcard"
}, - "object": "event"
}
As mailpieces travel through the mail stream, USPS scans their unique barcodes, and Lob processes these mail scans to generate tracking events.
+{- "event_type": {
- "resource": "postcards",
- "enabled_for_test": true,
- "id": "postcard.created",
- "object": "event_type"
}, - "reference_id": "psc_d2d10a2e9cba991c",
- "id": "evt_d95ff8ffd2b5cfb4",
- "date_created": "2016-12-04T22:50:08.180Z",
- "body": {
- "id": "psc_d2d10a2e9cba991c",
- "description": "Test Postcard",
- "metadata": { },
- "to": {
- "id": "adr_8e783523dd7f0e70",
- "description": "Test Recipient Address",
- "name": "Harry Zhang",
- "company": "LOB",
- "phone": null,
- "email": null,
- "address_line1": "123 TEST ST",
- "address_line2": "UNIT 1",
- "address_city": "SAN FRANCISCO",
- "address_state": "CA",
- "address_zip": "94107",
- "address_country": "UNITED STATES",
- "metadata": { },
- "date_created": "2016-12-04T10:51:51.844Z",
- "date_modified": "2016-12-04T10:51:51.844Z",
- "object": "address"
}, - "from": {
- "id": "adr_d2e26faf793ed422",
- "description": "Test Sender Address",
- "name": "Harry Zhang",
- "company": "LOB",
- "phone": null,
- "email": null,
- "address_line1": "123 TEST ST",
- "address_line2": "UNIT 1",
- "address_city": "SAN FRANCISCO",
- "address_state": "CA",
- "address_zip": "94107",
- "address_country": "UNITED STATES",
- "metadata": { },
- "date_created": "2016-12-04T10:51:51.845Z",
- "date_modified": "2016-12-04T10:51:51.845Z",
- "object": "address"
}, - "front_template_id": null,
- "back_template_id": null,
- "carrier": "USPS",
- "tracking_events": [ ],
- "thumbnails": [
- {
}, - {
}
], - "merge_variables": null,
- "mail_type": "usps_first_class",
- "size": "4x6",
- "expected_delivery_date": "2016-12-09",
- "date_created": "2016-12-04T10:51:51.843Z",
- "date_modified": "2016-12-04T10:51:51.843Z",
- "send_date": "2016-12-04T10:56:51.843Z",
- "object": "postcard"
}, - "object": "event"
}
As mailpieces travel through the mail stream, USPS scans their unique barcodes, and Lob processes these mail scans to generate tracking events.
Letters sent with USPS Certified Mail are fully tracked by USPS, and @@ -6768,7 +6732,7 @@
A timestamp in ISO 8601 format of the date USPS registered the event.
Will be null
for type=normal
events
The zip code in which the scan event occurred. Null for Mailed
events.
{- "id": "evnt_9e84094c9368cfb",
- "type": "normal",
- "name": "In Local Area",
- "details": null,
- "location": "72231",
- "time": "2016-06-30T15:51:41.000Z",
- "date_created": "2016-06-30T17:41:59.771Z",
- "date_modified": "2016-06-30T17:41:59.771Z",
- "object": "tracking_event"
}
The Billing Groups API allows you to create and view labels that can be attached to certain consumption-based +
{- "id": "evnt_9e84094c9368cfb",
- "type": "normal",
- "name": "In Local Area",
- "details": null,
- "location": "72231",
- "time": "2016-06-30T15:51:41.000Z",
- "date_created": "2016-06-30T17:41:59.771Z",
- "date_modified": "2016-06-30T17:41:59.771Z",
- "object": "tracking_event"
}
The Billing Groups API allows you to create and view labels that can be attached to certain consumption-based usages of Letters, Checks, Postcards and Self-Mailers to customize your bill. Please check each resource API section to learn more about how to access the Billing Groups API.
@@ -6783,9 +6747,9 @@Value is resource type.
curl https://api.lob.com/v1/billing_groups/bg_4bb02b527a72667d0 \ +
curl https://api.lob.com/v1/billing_groups/bg_4bb02b527a72667d0 \ -u <YOUR API KEY>: -
{- "id": "bg_c94e83ca2cd5121",
- "name": "Marketing Dept",
- "description": "Usage group used for the Marketing Dept resource sends",
- "date_created": "2017-11-07T22:56:10.962Z",
- "date_modified": "2017-11-07T22:56:10.962Z",
- "object": "billing_group"
}
{- "id": "bg_c94e83ca2cd5121",
- "name": "Marketing Dept",
- "description": "Usage group used for the Marketing Dept resource sends",
- "date_created": "2017-11-07T22:56:10.962Z",
- "date_modified": "2017-11-07T22:56:10.962Z",
- "object": "billing_group"
}
Updates all editable attributes of the billing_group with the given id.
bg_id required | string (bg_id) ^bg_[a-zA-Z0-9]+$ id of the billing_group |
description | string (bg_description) <= 255 characters Description of the billing group. |
name | string (name) <= 255 characters Name of the billing group. @@ -6801,7 +6765,7 @@Certified Tracking Event Details |
object | string Default: "billing_group" Value: "billing_group" Value is resource type. |
{- "name": "Marketing Dept",
- "description": "Usage group used for the Marketing Dept resource sends"
}
{- "id": "bg_c94e83ca2cd5121",
- "name": "Marketing Dept",
- "description": "Usage group used for the Marketing Dept resource sends",
- "date_created": "2017-11-07T22:56:10.962Z",
- "date_modified": "2017-11-07T22:56:10.962Z",
- "object": "billing_group"
}
{- "name": "Marketing Dept",
- "description": "Usage group used for the Marketing Dept resource sends"
}
{- "id": "bg_c94e83ca2cd5121",
- "name": "Marketing Dept",
- "description": "Usage group used for the Marketing Dept resource sends",
- "date_created": "2017-11-07T22:56:10.962Z",
- "date_modified": "2017-11-07T22:56:10.962Z",
- "object": "billing_group"
}
Returns a list of your billing_groups. The billing_groups are returned sorted by creation date, with the most recently created billing_groups appearing first.
limit | integer [ 1 .. 100 ] Default: 10 Example: limit=10 How many results to return. |
offset | integer Default: 0 An integer that designates the offset at which to begin returning results. Defaults to 0. |
include | Array of strings Request that the response include the total count by specifying Certified Tracking Event Details |
Array of objects (billing_group) list of billing_groups |
curl -X GET "https://api.lob.com/v1/billing_groups?limit=2" \ +
curl -X GET "https://api.lob.com/v1/billing_groups?limit=2" \ -u <YOUR API KEY>: -
{- "data": [
- {
- "id": "bg_d5a5a89da9106f8",
- "description": "Test billing_group",
- "metadata": { },
- "date_created": "2019-07-27T23:49:01.511Z",
- "date_modified": "2019-07-27T23:49:01.511Z",
- "object": "billing_group"
}, - {
- "id": "bg_59b2150ae120887",
- "description": "Test billing_group",
- "metadata": { },
- "date_created": "2019-03-29T10:22:34.642Z",
- "date_modified": "2019-03-29T10:22:34.642Z",
- "object": "billing_group"
}
], - "object": "list",
- "next_url": null,
- "prev_url": null,
- "count": 2
}
{- "data": [
- {
- "id": "bg_d5a5a89da9106f8",
- "description": "Test billing_group",
- "metadata": { },
- "date_created": "2019-07-27T23:49:01.511Z",
- "date_modified": "2019-07-27T23:49:01.511Z",
- "object": "billing_group"
}, - {
- "id": "bg_59b2150ae120887",
- "description": "Test billing_group",
- "metadata": { },
- "date_created": "2019-03-29T10:22:34.642Z",
- "date_modified": "2019-03-29T10:22:34.642Z",
- "object": "billing_group"
}
], - "object": "list",
- "next_url": null,
- "prev_url": null,
- "count": 2
}
Creates a new billing_group with the provided properties.
name required | string (name) <= 255 characters Name of the billing group. |
description | string (bg_description) <= 255 characters Description of the billing group. |
Value is resource type.
{- "name": "Marketing Dept",
- "description": "Usage group used for the Marketing Dept resource sends"
}
{- "id": "bg_c94e83ca2cd5121",
- "name": "Marketing Dept",
- "description": "Usage group used for the Marketing Dept resource sends",
- "date_created": "2017-11-07T22:56:10.962Z",
- "date_modified": "2017-11-07T22:56:10.962Z",
- "object": "billing_group"
}
The Buckslips endpoint allows you to easily create buckslips that can later be used as add-ons for Letters Campaigns. Note that a Letter Campaign with Buckslip add-on requires a minimum send quantity of 5,000 letters. +
{- "name": "Marketing Dept",
- "description": "Usage group used for the Marketing Dept resource sends"
}
{- "id": "bg_c94e83ca2cd5121",
- "name": "Marketing Dept",
- "description": "Usage group used for the Marketing Dept resource sends",
- "date_created": "2017-11-07T22:56:10.962Z",
- "date_modified": "2017-11-07T22:56:10.962Z",
- "object": "billing_group"
}
The Buckslips endpoint allows you to easily create buckslips that can later be used as add-ons for Letters Campaigns. Note that a Letter Campaign with Buckslip add-on requires a minimum send quantity of 5,000 letters. The API provides endpoints for creating buckslips, retrieving individual buckslips, creating buckslip orders, and retrieving a list of buckslips.
curl -X GET "https://api.lob.com/v1/buckslips?limit=2" \ +
curl -X GET "https://api.lob.com/v1/buckslips?limit=2" \ -u <YOUR API KEY>: -
{- "data": [
- {
- "id": "bck_7a6d73c5c8457fc",
- "account_id": "fa9ea650fc7b31a89f92",
- "description": null,
- "size": "8.75x3.75",
- "has_front": true,
- "has_back": true,
- "auto_reorder": false,
- "reorder_quantity": null,
- "threshold_amount": 0,
- "thumbnails": [
- {
}
], - "available_quantity": 0,
- "allocated_quantity": 0,
- "onhand_quantity": 0,
- "pending_quantity": 0,
- "projected_quantity": 0,
- "buckslip_orders": [ ],
- "stock": "text",
- "weight": "80#",
- "finish": "gloss",
- "status": "rendered",
- "mode": "test",
- "date_created": "2021-03-24T22:51:42.838Z",
- "date_modified": "2021-03-24T22:51:42.838Z",
- "send_date": "2021-03-24T22:51:42.838Z",
- "object": "buckslip"
}
], - "object": "list",
- "previous_url": null,
- "next_url": null,
- "count": 1
}
{- "data": [
- {
- "id": "bck_7a6d73c5c8457fc",
- "account_id": "fa9ea650fc7b31a89f92",
- "description": null,
- "size": "8.75x3.75",
- "has_front": true,
- "has_back": true,
- "auto_reorder": false,
- "reorder_quantity": null,
- "threshold_amount": 0,
- "thumbnails": [
- {
}
], - "available_quantity": 0,
- "allocated_quantity": 0,
- "onhand_quantity": 0,
- "pending_quantity": 0,
- "projected_quantity": 0,
- "buckslip_orders": [ ],
- "stock": "text",
- "weight": "80#",
- "finish": "gloss",
- "status": "rendered",
- "mode": "test",
- "date_created": "2021-03-24T22:51:42.838Z",
- "date_modified": "2021-03-24T22:51:42.838Z",
- "send_date": "2021-03-24T22:51:42.838Z",
- "object": "buckslip"
}
], - "object": "list",
- "previous_url": null,
- "next_url": null,
- "count": 1
}
Creates a new buckslip given information
required | remote_file_url (string) or local_file_path (string) A PDF template for the front of the buckslip |
description | string or null (buckslip_description) <= 255 characters Description of the buckslip. |
size | string Default: "8.75x3.75" Value: "8.75x3.75" The size of the buckslip @@ -6880,7 +6844,7 @@Certified Tracking Event Details |
size | string Default: "8.75x3.75" Value: "8.75x3.75" The size of the buckslip |
{- "description": "Test buckslip",
}
{- "id": "bck_7a6d73c5c8457fc",
- "account_id": "fa9ea650fc7b31a89f92",
- "description": "Test buckslip",
- "size": "8.75x3.755",
- "auto_reorder": false,
- "reorder_quantity": null,
- "threshold_amount": 0,
- "thumbnails": [
- {
}, - {
}
], - "available_quantity": 0,
- "allocated_quantity": 0,
- "onhand_quantity": 0,
- "pending_quantity": 0,
- "projected_quantity": 0,
- "buckslip_orders": [ ],
- "stock": "text",
- "weight": "80#",
- "finish": "gloss",
- "status": "rendered",
- "mode": "test",
- "date_created": "2021-03-24T22:51:42.838Z",
- "date_modified": "2021-03-24T22:51:42.838Z",
- "send_date": "2021-03-24T22:51:42.838Z",
- "object": "buckslip"
}
{- "description": "Test buckslip",
}
{- "id": "bck_7a6d73c5c8457fc",
- "account_id": "fa9ea650fc7b31a89f92",
- "description": "Test buckslip",
- "size": "8.75x3.755",
- "auto_reorder": false,
- "reorder_quantity": null,
- "threshold_amount": 0,
- "thumbnails": [
- {
}, - {
}
], - "available_quantity": 0,
- "allocated_quantity": 0,
- "onhand_quantity": 0,
- "pending_quantity": 0,
- "projected_quantity": 0,
- "buckslip_orders": [ ],
- "stock": "text",
- "weight": "80#",
- "finish": "gloss",
- "status": "rendered",
- "mode": "test",
- "date_created": "2021-03-24T22:51:42.838Z",
- "date_modified": "2021-03-24T22:51:42.838Z",
- "send_date": "2021-03-24T22:51:42.838Z",
- "object": "buckslip"
}
Retrieves the details of an existing buckslip. You need only supply the unique customer identifier that was returned upon buckslip creation.
buckslip_id required | string (buckslip_id) ^bck_[a-zA-Z0-9]+$ id of the buckslip |
date_created required | string <date-time> (date_created) A timestamp in ISO 8601 format of the date the resource was created. @@ -6905,9 +6869,9 @@Certified Tracking Event Details |
size | string Default: "8.75x3.75" Value: "8.75x3.75" The size of the buckslip |
curl https://api.lob.com/v1/buckslips/bck_7a6d73c5c8457fc \ +
curl https://api.lob.com/v1/buckslips/bck_7a6d73c5c8457fc \ -u <YOUR API KEY>: -
{- "id": "bck_7a6d73c5c8457fc",
- "account_id": "fa9ea650fc7b31a89f92",
- "description": "Test buckslip",
- "size": "8.75x3.755",
- "auto_reorder": false,
- "reorder_quantity": null,
- "threshold_amount": 0,
- "thumbnails": [
- {
}, - {
}
], - "available_quantity": 0,
- "allocated_quantity": 0,
- "onhand_quantity": 0,
- "pending_quantity": 0,
- "projected_quantity": 0,
- "buckslip_orders": [ ],
- "stock": "text",
- "weight": "80#",
- "finish": "gloss",
- "status": "rendered",
- "mode": "test",
- "date_created": "2021-03-24T22:51:42.838Z",
- "date_modified": "2021-03-24T22:51:42.838Z",
- "send_date": "2021-03-24T22:51:42.838Z",
- "object": "buckslip"
}
{- "id": "bck_7a6d73c5c8457fc",
- "account_id": "fa9ea650fc7b31a89f92",
- "description": "Test buckslip",
- "size": "8.75x3.755",
- "auto_reorder": false,
- "reorder_quantity": null,
- "threshold_amount": 0,
- "thumbnails": [
- {
}, - {
}
], - "available_quantity": 0,
- "allocated_quantity": 0,
- "onhand_quantity": 0,
- "pending_quantity": 0,
- "projected_quantity": 0,
- "buckslip_orders": [ ],
- "stock": "text",
- "weight": "80#",
- "finish": "gloss",
- "status": "rendered",
- "mode": "test",
- "date_created": "2021-03-24T22:51:42.838Z",
- "date_modified": "2021-03-24T22:51:42.838Z",
- "send_date": "2021-03-24T22:51:42.838Z",
- "object": "buckslip"
}
Update the details of an existing buckslip. You need only supply the unique identifier that was returned upon buckslip creation.
buckslip_id required | string (buckslip_id) ^bck_[a-zA-Z0-9]+$ id of the buckslip |
description | string or null (buckslip_description) <= 255 characters Description of the buckslip. |
auto_reorder | boolean Allows for auto reordering @@ -6935,16 +6899,16 @@Certified Tracking Event Details |
size | string Default: "8.75x3.75" Value: "8.75x3.75" The size of the buckslip |
{- "description": "Test buckslip",
- "auto_reorder": true
}
{- "id": "bck_7a6d73c5c8457fc",
- "account_id": "fa9ea650fc7b31a89f92",
- "description": "Test buckslip",
- "size": "8.75x3.755",
- "auto_reorder": false,
- "reorder_quantity": null,
- "threshold_amount": 0,
- "thumbnails": [
- {
}, - {
}
], - "available_quantity": 0,
- "allocated_quantity": 0,
- "onhand_quantity": 0,
- "pending_quantity": 0,
- "projected_quantity": 0,
- "buckslip_orders": [ ],
- "stock": "text",
- "weight": "80#",
- "finish": "gloss",
- "status": "rendered",
- "mode": "test",
- "date_created": "2021-03-24T22:51:42.838Z",
- "date_modified": "2021-03-24T22:51:42.838Z",
- "send_date": "2021-03-24T22:51:42.838Z",
- "object": "buckslip"
}
{- "description": "Test buckslip",
- "auto_reorder": true
}
{- "id": "bck_7a6d73c5c8457fc",
- "account_id": "fa9ea650fc7b31a89f92",
- "description": "Test buckslip",
- "size": "8.75x3.755",
- "auto_reorder": false,
- "reorder_quantity": null,
- "threshold_amount": 0,
- "thumbnails": [
- {
}, - {
}
], - "available_quantity": 0,
- "allocated_quantity": 0,
- "onhand_quantity": 0,
- "pending_quantity": 0,
- "projected_quantity": 0,
- "buckslip_orders": [ ],
- "stock": "text",
- "weight": "80#",
- "finish": "gloss",
- "status": "rendered",
- "mode": "test",
- "date_created": "2021-03-24T22:51:42.838Z",
- "date_modified": "2021-03-24T22:51:42.838Z",
- "send_date": "2021-03-24T22:51:42.838Z",
- "object": "buckslip"
}
Delete an existing buckslip. You need only supply the unique identifier that was returned upon buckslip creation.
buckslip_id required | string (buckslip_id) ^bck_[a-zA-Z0-9]+$ id of the buckslip |
id | string (buckslip_id) ^bck_[a-zA-Z0-9]+$ Unique identifier prefixed with |
deleted | boolean (deleted) Only returned if the resource has been successfully deleted. |
curl -X DELETE https://api.lob.com/v1/buckslips/bck_7a6d73c5c8457fc \ +
curl -X DELETE https://api.lob.com/v1/buckslips/bck_7a6d73c5c8457fc \ -u <YOUR API KEY>: -
{- "id": "buckslip_123456789",
- "deleted": true
}
The Buckslip Orders endpoint allows you to easily create buckslip orders for existing buckslips. +
{- "id": "buckslip_123456789",
- "deleted": true
}
The Buckslip Orders endpoint allows you to easily create buckslip orders for existing buckslips. The API provides endpoints for creating buckslip orders and listing buckslip orders for a given buckslip.
curl https://api.lob.com/v1/buckslips/bck_6afffd19045076c/orders/ \ +
curl https://api.lob.com/v1/buckslips/bck_6afffd19045076c/orders/ \ -u <YOUR API KEY>: -
{- "data": [
- {
- "id": "bo_e0f8a0562a06bea7f",
- "buckslip_id": "bck_6afffd19045076c",
- "status": "available",
- "quantity_ordered": 5000,
- "unit_price": 0.75,
- "cancelled_reason": "No longer needed",
- "availability_date": "2021-10-12T21:41:48.326Z",
- "expected_availability_date": "2021-11-04T21:03:18.871Z",
- "date_created": "2021-10-07T21:03:18.871Z",
- "date_modified": "2021-10-16T01:00:30.144Z",
- "object": "buckslip_order"
}
], - "object": "list",
- "next_url": null,
- "previous_url": null,
- "count": 1
}
{- "data": [
- {
- "id": "bo_e0f8a0562a06bea7f",
- "buckslip_id": "bck_6afffd19045076c",
- "status": "available",
- "quantity_ordered": 5000,
- "unit_price": 0.75,
- "cancelled_reason": "No longer needed",
- "availability_date": "2021-10-12T21:41:48.326Z",
- "expected_availability_date": "2021-11-04T21:03:18.871Z",
- "date_created": "2021-10-07T21:03:18.871Z",
- "date_modified": "2021-10-16T01:00:30.144Z",
- "object": "buckslip_order"
}
], - "object": "list",
- "next_url": null,
- "previous_url": null,
- "count": 1
}
Creates a new buckslip order given information
buckslip_id required | string (buckslip_id) ^bck_[a-zA-Z0-9]+$ The ID of the buckslip to which the buckslip orders belong. |
quantity required | integer [ 5000 .. 10000000 ] The quantity of buckslips in the order (minimum 5,000). |
The fixed deadline for the buckslips to be printed.
{- "quantity": 10000
}
{- "id": "bo_e0f8a0562a06bea7f",
- "buckslip_id": "bck_6afffd19045076c",
- "status": "available",
- "quantity_ordered": 10000,
- "unit_price": 0.75,
- "cancelled_reason": "No longer needed",
- "availability_date": "2021-10-12T21:41:48.326Z",
- "expected_availability_date": "2021-11-04T21:03:18.871Z",
- "date_created": "2021-10-07T21:03:18.871Z",
- "date_modified": "2021-10-16T01:00:30.144Z",
- "object": "buckslip_order"
}
The cards endpoint allows you to easily create cards that can later be affixed to Letters. +
{- "quantity": 10000
}
{- "id": "bo_e0f8a0562a06bea7f",
- "buckslip_id": "bck_6afffd19045076c",
- "status": "available",
- "quantity_ordered": 10000,
- "unit_price": 0.75,
- "cancelled_reason": "No longer needed",
- "availability_date": "2021-10-12T21:41:48.326Z",
- "expected_availability_date": "2021-11-04T21:03:18.871Z",
- "date_created": "2021-10-07T21:03:18.871Z",
- "date_modified": "2021-10-16T01:00:30.144Z",
- "object": "buckslip_order"
}
The cards endpoint allows you to easily create cards that can later be affixed to Letters. The API provides endpoints for creating cards, retrieving individual cards, creating card orders, and retrieving a list of cards.
curl -X GET "https://api.lob.com/v1/cards?limit=2" \ +
curl -X GET "https://api.lob.com/v1/cards?limit=2" \ -u <YOUR API KEY>: -
{- "data": [
- {
- "id": "card_7a6d73c5c8457fc",
- "account_id": "fa9ea650fc7b31a89f92",
- "description": null,
- "size": "2.125x3.375",
- "auto_reorder": false,
- "reorder_quantity": null,
- "thumbnails": [
- {
}
], - "available_quantity": 10000,
- "pending_quantity": 0,
- "countries": null,
- "status": "rendered",
- "mode": "test",
- "orientation": "horizontal",
- "threshold_amount": 0,
- "date_created": "2021-03-24T22:51:42.838Z",
- "date_modified": "2021-03-24T22:51:42.838Z",
- "send_date": "2021-03-24T22:51:42.838Z",
- "object": "card"
}
], - "object": "list",
- "previous_url": null,
- "next_url": null,
- "count": 1
}
{- "data": [
- {
- "id": "card_7a6d73c5c8457fc",
- "account_id": "fa9ea650fc7b31a89f92",
- "description": null,
- "size": "2.125x3.375",
- "auto_reorder": false,
- "reorder_quantity": null,
- "thumbnails": [
- {
}
], - "available_quantity": 10000,
- "pending_quantity": 0,
- "countries": null,
- "status": "rendered",
- "mode": "test",
- "orientation": "horizontal",
- "threshold_amount": 0,
- "date_created": "2021-03-24T22:51:42.838Z",
- "date_modified": "2021-03-24T22:51:42.838Z",
- "send_date": "2021-03-24T22:51:42.838Z",
- "object": "card"
}
], - "object": "list",
- "previous_url": null,
- "next_url": null,
- "count": 1
}
Creates a new card given information
required | remote_file_url (string) or local_file_path (string) A PDF template for the front of the card |
description | string or null (card_description) <= 255 characters Description of the card. |
size | string Default: "2.125x3.375" Enum: "3.375x2.125" "2.125x3.375" The size of the card @@ -7024,7 +6988,7 @@Certified Tracking Event Details |
size | string Default: "2.125x3.375" Enum: "3.375x2.125" "2.125x3.375" The size of the card |
{- "description": "Test card",
- "size": "2.125x3.375"
}
{- "id": "card_7a6d73c5c8457fc",
- "account_id": "fa9ea650fc7b31a89f92",
- "description": "Test card",
- "size": "2.125x3.375",
- "auto_reorder": false,
- "reorder_quantity": null,
- "thumbnails": [
- {
}, - {
}
], - "available_quantity": 10000,
- "pending_quantity": 0,
- "countries": null,
- "status": "rendered",
- "mode": "test",
- "orientation": "horizontal",
- "threshold_amount": 0,
- "date_created": "2021-03-24T22:51:42.838Z",
- "date_modified": "2021-03-24T22:51:42.838Z",
- "send_date": "2021-03-24T22:51:42.838Z",
- "object": "card"
}
{- "description": "Test card",
- "size": "2.125x3.375"
}
{- "id": "card_7a6d73c5c8457fc",
- "account_id": "fa9ea650fc7b31a89f92",
- "description": "Test card",
- "size": "2.125x3.375",
- "auto_reorder": false,
- "reorder_quantity": null,
- "thumbnails": [
- {
}, - {
}
], - "available_quantity": 10000,
- "pending_quantity": 0,
- "countries": null,
- "status": "rendered",
- "mode": "test",
- "orientation": "horizontal",
- "threshold_amount": 0,
- "date_created": "2021-03-24T22:51:42.838Z",
- "date_modified": "2021-03-24T22:51:42.838Z",
- "send_date": "2021-03-24T22:51:42.838Z",
- "object": "card"
}
Retrieves the details of an existing card. You need only supply the unique customer identifier that was returned upon card creation.
card_id required | string (card_id) ^card_[a-zA-Z0-9]+$ id of the card |
date_created required | string <date-time> (date_created) A timestamp in ISO 8601 format of the date the resource was created. @@ -7046,9 +7010,9 @@Certified Tracking Event Details |
size | string Default: "2.125x3.375" Enum: "3.375x2.125" "2.125x3.375" The size of the card |
curl https://api.lob.com/v1/cards/card_7a6d73c5c8457fc \ +
curl https://api.lob.com/v1/cards/card_7a6d73c5c8457fc \ -u <YOUR API KEY>: -
{- "id": "card_7a6d73c5c8457fc",
- "account_id": "fa9ea650fc7b31a89f92",
- "description": "Test card",
- "size": "2.125x3.375",
- "auto_reorder": false,
- "reorder_quantity": null,
- "thumbnails": [
- {
}, - {
}
], - "available_quantity": 10000,
- "pending_quantity": 0,
- "countries": null,
- "status": "rendered",
- "mode": "test",
- "orientation": "horizontal",
- "threshold_amount": 0,
- "date_created": "2021-03-24T22:51:42.838Z",
- "date_modified": "2021-03-24T22:51:42.838Z",
- "send_date": "2021-03-24T22:51:42.838Z",
- "object": "card"
}
{- "id": "card_7a6d73c5c8457fc",
- "account_id": "fa9ea650fc7b31a89f92",
- "description": "Test card",
- "size": "2.125x3.375",
- "auto_reorder": false,
- "reorder_quantity": null,
- "thumbnails": [
- {
}, - {
}
], - "available_quantity": 10000,
- "pending_quantity": 0,
- "countries": null,
- "status": "rendered",
- "mode": "test",
- "orientation": "horizontal",
- "threshold_amount": 0,
- "date_created": "2021-03-24T22:51:42.838Z",
- "date_modified": "2021-03-24T22:51:42.838Z",
- "send_date": "2021-03-24T22:51:42.838Z",
- "object": "card"
}
Update the details of an existing card. You need only supply the unique identifier that was returned upon card creation.
card_id required | string (card_id) ^card_[a-zA-Z0-9]+$ id of the card |
description | string or null (card_description) <= 255 characters Description of the card. |
auto_reorder | boolean Allows for auto reordering @@ -7073,16 +7037,16 @@Certified Tracking Event Details |
size | string Default: "2.125x3.375" Enum: "3.375x2.125" "2.125x3.375" The size of the card |
{- "description": "Test card",
- "auto_reorder": true
}
{- "id": "card_7a6d73c5c8457fc",
- "account_id": "fa9ea650fc7b31a89f92",
- "description": "Test card",
- "size": "2.125x3.375",
- "auto_reorder": false,
- "reorder_quantity": null,
- "thumbnails": [
- {
}, - {
}
], - "available_quantity": 10000,
- "pending_quantity": 0,
- "countries": null,
- "status": "rendered",
- "mode": "test",
- "orientation": "horizontal",
- "threshold_amount": 0,
- "date_created": "2021-03-24T22:51:42.838Z",
- "date_modified": "2021-03-24T22:51:42.838Z",
- "send_date": "2021-03-24T22:51:42.838Z",
- "object": "card"
}
{- "description": "Test card",
- "auto_reorder": true
}
{- "id": "card_7a6d73c5c8457fc",
- "account_id": "fa9ea650fc7b31a89f92",
- "description": "Test card",
- "size": "2.125x3.375",
- "auto_reorder": false,
- "reorder_quantity": null,
- "thumbnails": [
- {
}, - {
}
], - "available_quantity": 10000,
- "pending_quantity": 0,
- "countries": null,
- "status": "rendered",
- "mode": "test",
- "orientation": "horizontal",
- "threshold_amount": 0,
- "date_created": "2021-03-24T22:51:42.838Z",
- "date_modified": "2021-03-24T22:51:42.838Z",
- "send_date": "2021-03-24T22:51:42.838Z",
- "object": "card"
}
Delete an existing card. You need only supply the unique identifier that was returned upon card creation.
card_id required | string (card_id) ^card_[a-zA-Z0-9]+$ id of the card |
id | string (card_id) ^card_[a-zA-Z0-9]+$ Unique identifier prefixed with |
deleted | boolean (deleted) Only returned if the resource has been successfully deleted. |
curl -X DELETE https://api.lob.com/v1/cards/card_7a6d73c5c8457fc \ +
curl -X DELETE https://api.lob.com/v1/cards/card_7a6d73c5c8457fc \ -u <YOUR API KEY>: -
{- "id": "card_123456789",
- "deleted": true
}
{- "id": "card_123456789",
- "deleted": true
}
The card orders endpoint allows you to easily create card orders for existing cards. The API provides endpoints for creating card orders and listing card orders for a given card.
curl https://api.lob.com/v1/cards/card_6afffd19045076c/orders/ \ +
curl https://api.lob.com/v1/cards/card_6afffd19045076c/orders/ \ -u <YOUR API KEY>: -
{- "data": [
- {
- "id": "co_e0f8a0562a06bea7f",
- "card_id": "card_6afffd19045076c",
- "status": "available",
- "inventory": 9500,
- "quantity_ordered": 10000,
- "unit_price": 0.75,
- "cancelled_reason": "No longer needed",
- "availability_date": "2021-10-12T21:41:48.326Z",
- "expected_availability_date": "2021-11-04T21:03:18.871Z",
- "date_created": "2021-10-07T21:03:18.871Z",
- "date_modified": "2021-10-16T01:00:30.144Z",
- "object": "card_order"
}
], - "object": "list",
- "next_url": null,
- "previous_url": null,
- "count": 1
}
{- "data": [
- {
- "id": "co_e0f8a0562a06bea7f",
- "card_id": "card_6afffd19045076c",
- "status": "available",
- "inventory": 9500,
- "quantity_ordered": 10000,
- "unit_price": 0.75,
- "cancelled_reason": "No longer needed",
- "availability_date": "2021-10-12T21:41:48.326Z",
- "expected_availability_date": "2021-11-04T21:03:18.871Z",
- "date_created": "2021-10-07T21:03:18.871Z",
- "date_modified": "2021-10-16T01:00:30.144Z",
- "object": "card_order"
}
], - "object": "list",
- "next_url": null,
- "previous_url": null,
- "count": 1
}
Creates a new card order given information
card_id required | string (card_id) ^card_[a-zA-Z0-9]+$ The ID of the card to which the card orders belong. |
quantity required | integer [ 10000 .. 10000000 ] The quantity of cards in the order (minimum 10,000). |
The fixed deadline for the cards to be printed.
{- "quantity": 10000
}
{- "id": "co_e0f8a0562a06bea7f",
- "card_id": "card_6afffd19045076c",
- "status": "available",
- "inventory": 9500,
- "quantity_ordered": 10000,
- "unit_price": 0.75,
- "cancelled_reason": "No longer needed",
- "availability_date": "2021-10-12T21:41:48.326Z",
- "expected_availability_date": "2021-11-04T21:03:18.871Z",
- "date_created": "2021-10-07T21:03:18.871Z",
- "date_modified": "2021-10-16T01:00:30.144Z",
- "object": "card_order"
}
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.
+{- "quantity": 10000
}
{- "id": "co_e0f8a0562a06bea7f",
- "card_id": "card_6afffd19045076c",
- "status": "available",
- "inventory": 9500,
- "quantity_ordered": 10000,
- "unit_price": 0.75,
- "cancelled_reason": "No longer needed",
- "availability_date": "2021-10-12T21:41:48.326Z",
- "expected_availability_date": "2021-11-04T21:03:18.871Z",
- "date_created": "2021-10-07T21:03:18.871Z",
- "date_modified": "2021-10-16T01:00:30.144Z",
- "object": "card_order"
}
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!
@@ -7137,9 +7101,9 @@Indicates the number of QR Codes out of count
that were scanned atleast once.
List of QR code analytics
curl -X GET "https://api.lob.com/v1/qr_code_analytics?limit=2&scanned=true" \ +
curl -X GET "https://api.lob.com/v1/qr_code_analytics?limit=2&scanned=true" \ -u <YOUR API KEY>: -
{- "data": [
- {
- "resource_id": "ltr_d5a5a89da9106f8",
- "date_created": "2019-07-27T23:49:01.511Z",
- "number_of_scans": 2,
- "scans": [
- {
- "ip_location": "127.0.0.1",
- "scan_date": "2022-07-27T23:49:01.511Z"
}, - {
- "ip_location": "127.0.0.1",
- "scan_date": "2022-07-29T23:45:00.436Z"
}
]
}, - {
- "resource_id": "psc_d5a5a89da9106f8",
- "date_created": "2022-09-27T23:49:01.511Z",
- "number_of_scans": 1,
- "scans": [
- {
- "ip_location": "127.0.0.1",
- "scan_date": "2022-09-27T23:49:01.511Z"
}
]
}
], - "object": "list",
- "count": 2,
- "scanned_count": 2,
- "total_count": 2
}
Lob's URL shortener allows you to generate unique short links, either with Lob's own domain or your own custom domains. Each custom link enables Lob to track mail individually and provide customers the relevant tracking data in their dashboard.
+{- "data": [
- {
- "resource_id": "ltr_d5a5a89da9106f8",
- "date_created": "2019-07-27T23:49:01.511Z",
- "number_of_scans": 2,
- "scans": [
- {
- "ip_location": "127.0.0.1",
- "scan_date": "2022-07-27T23:49:01.511Z"
}, - {
- "ip_location": "127.0.0.1",
- "scan_date": "2022-07-29T23:45:00.436Z"
}
]
}, - {
- "resource_id": "psc_d5a5a89da9106f8",
- "date_created": "2022-09-27T23:49:01.511Z",
- "number_of_scans": 1,
- "scans": [
- {
- "ip_location": "127.0.0.1",
- "scan_date": "2022-09-27T23:49:01.511Z"
}
]
}
], - "object": "list",
- "count": 2,
- "scanned_count": 2,
- "total_count": 2
}
Lob's URL shortener allows you to generate unique short links, either with Lob's own domain or your own custom domains. Each custom link enables Lob to track mail individually and provide customers the relevant tracking data in their dashboard.
Webhooks can be used to integrate Lob's URL Shortener scans into your omni channel marketing stratergy. 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, you can use our Retrieve endpoints to track the impact and engagement rate of links created.
@@ -7153,16 +7117,16 @@The date and time the domain was last updated.
curl -X GET "https://api.lob.com/v1/domains/{domain_id}" \ +
curl -X GET "https://api.lob.com/v1/domains/{domain_id}" \ -u <YOUR_LIVE_API_KEY>: -
{- "id": "string",
- "domain": "string",
- "error_redirect_link": "string",
- "created_at": "string",
- "updated_at": "string"
}
{- "id": "string",
- "domain": "string",
- "error_redirect_link": "string",
- "created_at": "string",
- "updated_at": "string"
}
Delete a registered domain. This operation can only be performed if all associated links with the domain are deleted.
domain_id required | string Unique identifier for a domain. |
id | string Unique identifier for a domain. |
deleted | boolean Only returned if the domain was successfully deleted. |
{- "id": "string",
- "deleted": true
}
{- "id": "string",
- "deleted": true
}
Add a new custom domain that can be used to create custom links.
domain required | string (domain) The registered domain/hostname. |
error_redirect_link | string (error_redirect_link) The 404 error redirect link. |
The date and time the domain was last updated.
{- "domain": "lob.st"
}
{- "id": "string",
- "domain": "string",
- "error_redirect_link": "string",
- "created_at": "string",
- "updated_at": "string"
}
{- "domain": "lob.st"
}
{- "id": "string",
- "domain": "string",
- "error_redirect_link": "string",
- "created_at": "string",
- "updated_at": "string"
}
Retrieve a list of all created domains.
Array of objects (domain_response) List of domains. |
curl -X GET "https://api.lob.com/v1/domains?limit=2" \ +
curl -X GET "https://api.lob.com/v1/domains?limit=2" \ -u <YOUR_LIVE_API_KEY>: -
{- "data": [
- {
- "id": "string",
- "domain": "string",
- "error_redirect_link": "string",
- "created_at": "string",
- "updated_at": "string"
}
]
}
{- "data": [
- {
- "id": "string",
- "domain": "string",
- "error_redirect_link": "string",
- "created_at": "string",
- "updated_at": "string"
}
]
}
Retrieves a single shortened link.
link_id required | string Unique identifier for a link. |
id | string Unique identifier prefixed with Certified Tracking Event Details |
object (metadata) <= 500 characters [^"\\]{0,500} Use metadata to store custom information for tagging and labeling back to your internal systems. Must be an object with up to 20 key-value pairs. Keys must be at most 40 characters and values must be at most 500 characters. Neither can contain the characters |
curl -X GET "https://api.lob.com/v1/links/<link_id>" \ +
curl -X GET "https://api.lob.com/v1/links/<link_id>" \ -u <YOUR_LIVE_API_KEY>: -
{- "id": "string",
- "title": "string",
- "domain_id": "string",
- "redirect_link": "string",
- "short_link": "string",
- "metadata": {
- "property1": "string",
- "property2": "string"
}
}
{- "id": "string",
- "title": "string",
- "domain_id": "string",
- "redirect_link": "string",
- "short_link": "string",
- "metadata": {
- "property1": "string",
- "property2": "string"
}
}
Update any of the properties of a shortened link.
link_id required | string Unique identifier for a link. |
redirect_link required | string (redirect_link) The original target URL. |
title | string The title of the URL. @@ -7207,14 +7171,14 @@Certified Tracking Event Details |
object (metadata) <= 500 characters [^"\\]{0,500} Use metadata to store custom information for tagging and labeling back to your internal systems. Must be an object with up to 20 key-value pairs. Keys must be at most 40 characters and values must be at most 500 characters. Neither can contain the characters |
{- "resource_id": "ltr_133"
}
{- "id": "string",
- "title": "string",
- "domain_id": "string",
- "redirect_link": "string",
- "short_link": "string",
- "metadata": {
- "property1": "string",
- "property2": "string"
}
}
{- "resource_id": "ltr_133"
}
{- "id": "string",
- "title": "string",
- "domain_id": "string",
- "redirect_link": "string",
- "short_link": "string",
- "metadata": {
- "property1": "string",
- "property2": "string"
}
}
Delete the shortened link.
link_id required | string Unique identifier for a link. |
id | string Unique identifier for a link. |
deleted | boolean Only returned if the link was successfully deleted. |
{- "id": "string",
- "deleted": true
}
{- "id": "string",
- "deleted": true
}
Given a long URL, shorten your URL either by using a custom domain or Lob's own short domain.
redirect_link required | string (redirect_link) The original target URL. |
title | string The title of the URL. |
domain | string The registered domain to be used for the short URL. @@ -7229,7 +7193,7 @@Certified Tracking Event Details |
object (metadata) <= 500 characters [^"\\]{0,500} Use metadata to store custom information for tagging and labeling back to your internal systems. Must be an object with up to 20 key-value pairs. Keys must be at most 40 characters and values must be at most 500 characters. Neither can contain the characters |
{- "slug": "a1b2c3"
}
{- "id": "string",
- "title": "string",
- "domain_id": "string",
- "redirect_link": "string",
- "short_link": "string",
- "metadata": {
- "property1": "string",
- "property2": "string"
}
}
{- "slug": "a1b2c3"
}
{- "id": "string",
- "title": "string",
- "domain_id": "string",
- "redirect_link": "string",
- "short_link": "string",
- "metadata": {
- "property1": "string",
- "property2": "string"
}
}
Retrieves a list of shortened links. The list is sorted by creation date, with the most recently created appearing first.
limit | integer [ 1 .. 100 ] Default: 10 Example: limit=10 How many results to return. |
offset | integer Default: 0 An integer that designates the offset at which to begin returning results. Defaults to 0. |
list of links
curl -X GET "https://api.lob.com/v1/links?limit=2" \ +
curl -X GET "https://api.lob.com/v1/links?limit=2" \ -u <YOUR_LIVE_API_KEY>: -
{- "count": 0,
- "limit": 0,
- "offset": 0,
- "data": [
- {
- "id": "string",
- "title": "string",
- "domain_id": "string",
- "redirect_link": "string",
- "short_link": "string",
- "metadata": {
- "property1": "string",
- "property2": "string"
}
}
]
}
{- "count": 0,
- "limit": 0,
- "offset": 0,
- "data": [
- {
- "id": "string",
- "title": "string",
- "domain_id": "string",
- "redirect_link": "string",
- "short_link": "string",
- "metadata": {
- "property1": "string",
- "property2": "string"
}
}
]
}
At Lob, we pride ourselves on building high quality platform capabilities rapidly and iteratively, so we can constantly be delivering additional value to our customers. When evaluating a new product or feature from Lob, you may see that it has been released in Beta.
Typically, something in Beta means that the feature is early in its lifecycle here at @@ -7824,7 +7788,7 @@