diff --git a/docs/index.html b/docs/index.html index 9c3d5159..b8992beb 100644 --- a/docs/index.html +++ b/docs/index.html @@ -2989,7 +2989,7 @@ -
{- "addresses": [
- {
- "primary_line": "210 King Street",
- "city": "San Francisco",
- "state": "CA",
- "zip_code": "94107"
}, - {
- "recipient": "Walgreens",
- "primary_line": "Ave Wilson Churchill 123",
- "secondary_line": "",
- "urbanization": "URB FAIR OAKS",
- "city": "RIO PIEDRAS",
- "state": "PR",
- "zip_code": "00926"
}
]
}
{- "addresses": [
- {
- "id": "us_ver_c7cb63d68f8d6",
- "recipient": "LOB.COM",
- "primary_line": "210 KING ST",
- "secondary_line": "",
- "urbanization": "",
- "last_line": "SAN FRANCISCO CA 94107-1702",
- "deliverability": "deliverable",
- "valid_address": true,
- "components": {
- "primary_number": "210",
- "street_predirection": "",
- "street_name": "KING",
- "street_suffix": "ST",
- "street_postdirection": "",
- "secondary_designator": "",
- "secondary_number": "",
- "pmb_designator": "",
- "pmb_number": "",
- "extra_secondary_designator": "",
- "extra_secondary_number": "",
- "city": "SAN FRANCISCO",
- "state": "CA",
- "zip_code": "94107",
- "zip_code_plus_4": "1702",
- "zip_code_type": "standard",
- "delivery_point_barcode": "941071728506",
- "address_type": "commercial",
- "record_type": "street",
- "default_building_address": false,
- "county": "SAN FRANCISCO",
- "county_fips": "06075",
- "carrier_route": "C032",
- "carrier_route_type": "city_delivery",
- "po_box_only_flag": "N",
- "latitude": 37.77597542841264,
- "longitude": -122.3929557343685
}, - "deliverability_analysis": {
- "dpv_confirmation": "Y",
- "dpv_cmra": "N",
- "dpv_vacant": "N",
- "dpv_active": "Y",
- "dpv_inactive_reason": "",
- "dpv_throwback": "N",
- "dpv_non_delivery_day_flag": "N",
- "dpv_non_delivery_day_values": "",
- "dpv_no_secure_location": "N",
- "dpv_door_not_accessible": "N",
- "dpv_footnotes": [
- "AA",
- "BB"
], - "ews_match": false,
- "lacs_indicator": "",
- "lacs_return_code": "",
- "suite_return_code": ""
}, - "lob_confidence_score": {
- "score": 100,
- "level": "high"
}, - "object": "us_verification"
}
], - "errors": false
}
Verify a US or US territory address with a live API key. The address can be in components (e.g. primary_line
is "210 King Street", zip_code
is "94107") or as a single string (e.g. "210 King Street 94107"), but not as both. Requests using a test API key validate required fields but return empty values unless specific primary_line
values are provided. See the US Verifications Test Environment for details.
{- "addresses": [
- {
- "primary_line": "210 King Street",
- "city": "San Francisco",
- "state": "CA",
- "zip_code": "94107"
}, - {
- "recipient": "Walgreens",
- "primary_line": "Ave Wilson Churchill 123",
- "secondary_line": "",
- "urbanization": "URB FAIR OAKS",
- "city": "RIO PIEDRAS",
- "state": "PR",
- "zip_code": "00926"
}
]
}
{- "addresses": [
- {
- "id": "us_ver_c7cb63d68f8d6",
- "recipient": "LOB.COM",
- "primary_line": "210 KING ST",
- "secondary_line": "",
- "urbanization": "",
- "last_line": "SAN FRANCISCO CA 94107-1702",
- "deliverability": "deliverable",
- "valid_address": true,
- "components": {
- "primary_number": "210",
- "street_predirection": "",
- "street_name": "KING",
- "street_suffix": "ST",
- "street_postdirection": "",
- "secondary_designator": "",
- "secondary_number": "",
- "pmb_designator": "",
- "pmb_number": "",
- "extra_secondary_designator": "",
- "extra_secondary_number": "",
- "city": "SAN FRANCISCO",
- "state": "CA",
- "zip_code": "94107",
- "zip_code_plus_4": "1702",
- "zip_code_type": "standard",
- "delivery_point_barcode": "941071728506",
- "address_type": "commercial",
- "record_type": "street",
- "default_building_address": false,
- "county": "SAN FRANCISCO",
- "county_fips": "06075",
- "carrier_route": "C032",
- "carrier_route_type": "city_delivery",
- "po_box_only_flag": "N",
- "latitude": 37.77597542841264,
- "longitude": -122.3929557343685
}, - "deliverability_analysis": {
- "dpv_confirmation": "Y",
- "dpv_cmra": "N",
- "dpv_vacant": "N",
- "dpv_active": "Y",
- "dpv_inactive_reason": "",
- "dpv_throwback": "N",
- "dpv_non_delivery_day_flag": "N",
- "dpv_non_delivery_day_values": "",
- "dpv_no_secure_location": "N",
- "dpv_door_not_accessible": "N",
- "dpv_footnotes": [
- "AA",
- "BB"
], - "ews_match": false,
- "lacs_indicator": "",
- "lacs_return_code": "",
- "suite_return_code": ""
}, - "lob_confidence_score": {
- "score": 100,
- "level": "high"
}, - "object": "us_verification"
}
], - "errors": false
}
Verify a US or US territory address with a live API key. The address can be in components (e.g. primary_line
is "210 King Street", zip_code
is "94107") or as a single string (e.g. "210 King Street 94107"), but not as both. Requests using a test API key validate required fields but return empty values unless specific primary_line
values are provided. See the US Verifications Test Environment for details.
case | string Default: "upper" Enum: "upper" "proper" Casing of the verified address. Possible values are |
city required | string <= 200 characters The name of the city. |
state required | string <= 50 characters The ISO 3166-2 two letter code or subdivision name for the state. Example Create Request using Sen |
object | string Default: "us_verification" Value: "us_verification" Value is resource type. |
{- "primary_line": "210 King Street",
- "city": "San Francisco",
- "state": "CA",
- "zip_code": "94107"
}
{- "id": "us_ver_c7cb63d68f8d6",
- "recipient": "LOB.COM",
- "primary_line": "210 KING ST",
- "secondary_line": "",
- "urbanization": "",
- "last_line": "SAN FRANCISCO CA 94107-1702",
- "deliverability": "deliverable",
- "valid_address": true,
- "components": {
- "primary_number": "210",
- "street_predirection": "",
- "street_name": "KING",
- "street_suffix": "ST",
- "street_postdirection": "",
- "secondary_designator": "",
- "secondary_number": "",
- "pmb_designator": "",
- "pmb_number": "",
- "extra_secondary_designator": "",
- "extra_secondary_number": "",
- "city": "SAN FRANCISCO",
- "state": "CA",
- "zip_code": "94107",
- "zip_code_plus_4": "1702",
- "zip_code_type": "standard",
- "delivery_point_barcode": "941071702108",
- "address_type": "commercial",
- "record_type": "street",
- "default_building_address": false,
- "county": "SAN FRANCISCO",
- "county_fips": "06075",
- "carrier_route": "C032",
- "carrier_route_type": "city_delivery",
- "po_box_only_flag": "N",
- "latitude": 37.77597542841264,
- "longitude": -122.3929557343685
}, - "deliverability_analysis": {
- "dpv_confirmation": "Y",
- "dpv_cmra": "N",
- "dpv_vacant": "N",
- "dpv_active": "Y",
- "dpv_inactive_reason": "",
- "dpv_throwback": "N",
- "dpv_non_delivery_day_flag": "N",
- "dpv_non_delivery_day_values": "",
- "dpv_no_secure_location": "N",
- "dpv_door_not_accessible": "N",
- "dpv_footnotes": [
- "AA",
- "BB"
], - "ews_match": false,
- "lacs_indicator": "",
- "lacs_return_code": "",
- "suite_return_code": ""
}, - "lob_confidence_score": {
- "score": 100,
- "level": "high"
}, - "object": "us_verification"
}
These are detailed definitions for various fields in the US verification object.
+{- "primary_line": "210 King Street",
- "city": "San Francisco",
- "state": "CA",
- "zip_code": "94107"
}
{- "id": "us_ver_c7cb63d68f8d6",
- "recipient": "LOB.COM",
- "primary_line": "210 KING ST",
- "secondary_line": "",
- "urbanization": "",
- "last_line": "SAN FRANCISCO CA 94107-1702",
- "deliverability": "deliverable",
- "valid_address": true,
- "components": {
- "primary_number": "210",
- "street_predirection": "",
- "street_name": "KING",
- "street_suffix": "ST",
- "street_postdirection": "",
- "secondary_designator": "",
- "secondary_number": "",
- "pmb_designator": "",
- "pmb_number": "",
- "extra_secondary_designator": "",
- "extra_secondary_number": "",
- "city": "SAN FRANCISCO",
- "state": "CA",
- "zip_code": "94107",
- "zip_code_plus_4": "1702",
- "zip_code_type": "standard",
- "delivery_point_barcode": "941071702108",
- "address_type": "commercial",
- "record_type": "street",
- "default_building_address": false,
- "county": "SAN FRANCISCO",
- "county_fips": "06075",
- "carrier_route": "C032",
- "carrier_route_type": "city_delivery",
- "po_box_only_flag": "N",
- "latitude": 37.77597542841264,
- "longitude": -122.3929557343685
}, - "deliverability_analysis": {
- "dpv_confirmation": "Y",
- "dpv_cmra": "N",
- "dpv_vacant": "N",
- "dpv_active": "Y",
- "dpv_inactive_reason": "",
- "dpv_throwback": "N",
- "dpv_non_delivery_day_flag": "N",
- "dpv_non_delivery_day_values": "",
- "dpv_no_secure_location": "N",
- "dpv_door_not_accessible": "N",
- "dpv_footnotes": [
- "AA",
- "BB"
], - "ews_match": false,
- "lacs_indicator": "",
- "lacs_return_code": "",
- "suite_return_code": ""
}, - "lob_confidence_score": {
- "score": 100,
- "level": "high"
}, - "object": "us_verification"
}
These are detailed definitions for various fields in the US verification object.
components[zip_code_type]
object | string Default: "us_autocompletion" Value: "us_autocompletion" Value is resource type. |
{- "address_prefix": "185 B",
- "city": "San Francisco",
- "state": "CA",
- "zip_code": "94107",
- "geo_ip_sort": false
}
{- "id": "us_auto_a3ac97bcfbb2460ab20c",
- "suggestions": [
- {
- "primary_line": "185 BAYSIDE VILLAGE PL",
- "city": "SAN FRANCISCO",
- "state": "CA",
- "zip_code": "94107"
}, - {
- "primary_line": "185 BRANNAN ST",
- "city": "SAN FRANCISCO",
- "state": "CA",
- "zip_code": "94107"
}, - {
- "primary_line": "185 BONIFACIO ST",
- "city": "SAN FRANCISCO",
- "state": "CA",
- "zip_code": "94107"
}, - {
- "primary_line": "185 BLAIR TER",
- "city": "SAN FRANCISCO",
- "state": "CA",
- "zip_code": "94107"
}, - {
- "primary_line": "185 BLUXOME ST",
- "city": "SAN FRANCISCO",
- "state": "CA",
- "zip_code": "94107"
}, - {
- "primary_line": "210 KING ST",
- "city": "SAN FRANCISCO",
- "state": "CA",
- "zip_code": "94107"
}, - {
- "primary_line": "185 BRYANT ST",
- "city": "SAN FRANCISCO",
- "state": "CA",
- "zip_code": "94107"
}
], - "object": "us_autocompletion"
}
Find a list of zip codes associated with a valid US location via latitude and longitude.
{- "address_prefix": "185 B",
- "city": "San Francisco",
- "state": "CA",
- "zip_code": "94107",
- "geo_ip_sort": false
}
{- "id": "us_auto_a3ac97bcfbb2460ab20c",
- "suggestions": [
- {
- "primary_line": "185 BAYSIDE VILLAGE PL",
- "city": "SAN FRANCISCO",
- "state": "CA",
- "zip_code": "94107"
}, - {
- "primary_line": "185 BRANNAN ST",
- "city": "SAN FRANCISCO",
- "state": "CA",
- "zip_code": "94107"
}, - {
- "primary_line": "185 BONIFACIO ST",
- "city": "SAN FRANCISCO",
- "state": "CA",
- "zip_code": "94107"
}, - {
- "primary_line": "185 BLAIR TER",
- "city": "SAN FRANCISCO",
- "state": "CA",
- "zip_code": "94107"
}, - {
- "primary_line": "185 BLUXOME ST",
- "city": "SAN FRANCISCO",
- "state": "CA",
- "zip_code": "94107"
}, - {
- "primary_line": "210 KING ST",
- "city": "SAN FRANCISCO",
- "state": "CA",
- "zip_code": "94107"
}, - {
- "primary_line": "185 BRYANT ST",
- "city": "SAN FRANCISCO",
- "state": "CA",
- "zip_code": "94107"
}
], - "object": "us_autocompletion"
}
Find a list of zip codes associated with a valid US location via latitude and longitude.
Reverse geocode a valid US location with a live API key.
size | integer [ 1 .. 50 ] Default: 5 Example: size=5 Determines the number of locations returned. Possible values are between 1 and 50 and any number higher will be rounded down to 50. Default size is a list of 5 reverse geocoded locations. |
latitude required | number or null <float> [ -90 .. 90 ] A positive or negative decimal indicating the geographic latitude of the address, specifying the north-to-south position of a location. This should be input with DPV Footnotes -
|
object | string Default: "us_reverse_geocode_lookup" Value: "us_reverse_geocode_lookup" Value is resource type. |
{- "latitude": 37.7749,
- "longitude": 122.4194
}
{- "id": "us_reverse_geocode_8a013f3e",
- "addresses": [
- {
- "components": {
- "zip_code": "94107",
- "zip_code_plus_4": "1702"
}, - "location_analysis": {
- "latitude": 37.78271,
- "longitude": -122.416202,
- "distance": 1.32
}
}, - {
- "components": {
- "zip_code": "94107",
- "zip_code_plus_4": "1702"
}, - "location_analysis": {
- "latitude": 37.782917,
- "longitude": -122.416131,
- "distance": 1.33
}
}
]
}
Find a list of cities, states and associated information about a US ZIP code.
+{- "latitude": 37.7749,
- "longitude": 122.4194
}
{- "id": "us_reverse_geocode_8a013f3e",
- "addresses": [
- {
- "components": {
- "zip_code": "94107",
- "zip_code_plus_4": "1702"
}, - "location_analysis": {
- "latitude": 37.78271,
- "longitude": -122.416202,
- "distance": 1.32
}
}, - {
- "components": {
- "zip_code": "94107",
- "zip_code_plus_4": "1702"
}, - "location_analysis": {
- "latitude": 37.782917,
- "longitude": -122.416131,
- "distance": 1.33
}
}
]
}
Find a list of cities, states and associated information about a US ZIP code.
{- "zip_code": "94107"
}
{- "id": "us_zip_c7cb63d68f8d6",
- "cities": [
- {
- "city": "SAN FRANCISCO",
- "state": "CA",
- "county": "SAN FRANCISCO",
- "county_fips": "06075",
- "preferred": true
}
], - "zip_code_type": "standard",
- "object": "us_zip_lookup",
- "zip_code": "94107"
}
Validates whether a given name is associated with an address.
+{- "zip_code": "94107"
}
{- "id": "us_zip_c7cb63d68f8d6",
- "cities": [
- {
- "city": "SAN FRANCISCO",
- "state": "CA",
- "county": "SAN FRANCISCO",
- "county_fips": "06075",
- "preferred": true
}
], - "zip_code_type": "standard",
- "object": "us_zip_lookup",
- "zip_code": "94107"
}
Validates whether a given name is associated with an address.
Validates whether a given name is associated with an address.
city required | string <= 200 characters The name of the city. DPV Footnotes -
|
object | string Default: "id_validation" Value: "id_validation" Value is resource type. |
{- "recipient": "Larry Lobster",
- "primary_line": "210 King St.",
- "secondary_line": "",
- "city": "San Francisco",
- "state": "CA",
- "zip_code": "94107"
}
{- "id": "id_validation_8a013f3e",
- "recipient": "LARRY LOBSTER",
- "primary_line": "210 KING ST.",
- "secondary_line": "",
- "urbanization": "",
- "last_line": "SAN FRANCISCO CA 94107-1728",
- "score": 100,
- "confidence": "high",
- "object": "id_validation"
}
Address autocompletion for non-US addresses. Given partial address information, this endpoint returns up to 10 address suggestions.
+{- "recipient": "Larry Lobster",
- "primary_line": "210 King St.",
- "secondary_line": "",
- "city": "San Francisco",
- "state": "CA",
- "zip_code": "94107"
}
{- "id": "id_validation_8a013f3e",
- "recipient": "LARRY LOBSTER",
- "primary_line": "210 KING ST.",
- "secondary_line": "",
- "urbanization": "",
- "last_line": "SAN FRANCISCO CA 94107-1728",
- "score": 100,
- "confidence": "high",
- "object": "id_validation"
}
Address autocompletion for non-US addresses. Given partial address information, this endpoint returns up to 10 address suggestions.
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:
deliverability_analysis[dpv_footnotes]
An array of objects representing suggested addresses.
{- "address_prefix": "340 Wat",
- "city": "Summerside",
- "state": "Prince Edward Island",
- "zip_code": "C1N 1C4",
- "country": "CA",
- "geo_ip_sort": false
}
{- "id": "intl_auto_a3ac97bcfbb2460ab20c",
- "suggestions": [
- {
- "primary_number_range": "",
- "primary_line": "340 WATERSTONE PL SE",
- "city": "AIRDRIE",
- "state": "AB",
- "country": "CA",
- "zip_code": "T4B 2G7"
}, - {
- "primary_number_range": "",
- "primary_line": "340 WATT BLVD SW",
- "city": "EDMONTON",
- "state": "AB",
- "country": "CA",
- "zip_code": "T6X 1R7"
}, - {
- "primary_number_range": "",
- "primary_line": "340 WATROUS ST",
- "city": "PRINCE GEORGE",
- "state": "BC",
- "country": "CA",
- "zip_code": "V2M 2B6"
}, - {
- "primary_number_range": "",
- "primary_line": "340 WATERS RD",
- "city": "QUALICUM BEACH",
- "state": "BC",
- "country": "CA",
- "zip_code": "V9K 2B8"
}, - {
- "primary_number_range": "",
- "primary_line": "SUITE 340, 1510 WATT DR SW",
- "city": "EDMONTON",
- "state": "AB",
- "country": "CA",
- "zip_code": "T6X 2E6"
}, - {
- "primary_number_range": "",
- "primary_line": "WATERFRONT POINTE WEST SUITE 340, 5212 25 AVE NW",
- "city": "EDMONTON",
- "state": "AB",
- "country": "CA",
- "zip_code": "T6L 6R7"
}, - {
- "primary_number_range": "",
- "primary_line": "WATERFRONT POINTE EAST SUITE 340, 2520 52 ST NW",
- "city": "EDMONTON",
- "state": "AB",
- "country": "CA",
- "zip_code": "T6L 6S2"
}, - {
- "primary_number_range": "",
- "primary_line": "WATERSTONE SUITE 340, 6079 MAYNARD WAY NW",
- "city": "EDMONTON",
- "state": "AB",
- "country": "CA",
- "zip_code": "T6R 0S4"
}, - {
- "primary_number_range": "",
- "primary_line": "WATSON APTS. SUITE 340, 5207 39 ST",
- "city": "RED DEER",
- "state": "AB",
- "country": "CA",
- "zip_code": "T4N 0Z9"
}, - {
- "primary_number_range": "",
- "primary_line": "WATERS EDGE SUITE 3400..3409, 2600 FERGUSON RD",
- "city": "SAANICHTON",
- "state": "BC",
- "country": "CA",
- "zip_code": "V8M 2C1"
}
], - "object": "intl_autocompletion"
}
Address verification for non-US addresses +
{- "address_prefix": "340 Wat",
- "city": "Summerside",
- "state": "Prince Edward Island",
- "zip_code": "C1N 1C4",
- "country": "CA",
- "geo_ip_sort": false
}
{- "id": "intl_auto_a3ac97bcfbb2460ab20c",
- "suggestions": [
- {
- "primary_number_range": "",
- "primary_line": "340 WATERSTONE PL SE",
- "city": "AIRDRIE",
- "state": "AB",
- "country": "CA",
- "zip_code": "T4B 2G7"
}, - {
- "primary_number_range": "",
- "primary_line": "340 WATT BLVD SW",
- "city": "EDMONTON",
- "state": "AB",
- "country": "CA",
- "zip_code": "T6X 1R7"
}, - {
- "primary_number_range": "",
- "primary_line": "340 WATROUS ST",
- "city": "PRINCE GEORGE",
- "state": "BC",
- "country": "CA",
- "zip_code": "V2M 2B6"
}, - {
- "primary_number_range": "",
- "primary_line": "340 WATERS RD",
- "city": "QUALICUM BEACH",
- "state": "BC",
- "country": "CA",
- "zip_code": "V9K 2B8"
}, - {
- "primary_number_range": "",
- "primary_line": "SUITE 340, 1510 WATT DR SW",
- "city": "EDMONTON",
- "state": "AB",
- "country": "CA",
- "zip_code": "T6X 2E6"
}, - {
- "primary_number_range": "",
- "primary_line": "WATERFRONT POINTE WEST SUITE 340, 5212 25 AVE NW",
- "city": "EDMONTON",
- "state": "AB",
- "country": "CA",
- "zip_code": "T6L 6R7"
}, - {
- "primary_number_range": "",
- "primary_line": "WATERFRONT POINTE EAST SUITE 340, 2520 52 ST NW",
- "city": "EDMONTON",
- "state": "AB",
- "country": "CA",
- "zip_code": "T6L 6S2"
}, - {
- "primary_number_range": "",
- "primary_line": "WATERSTONE SUITE 340, 6079 MAYNARD WAY NW",
- "city": "EDMONTON",
- "state": "AB",
- "country": "CA",
- "zip_code": "T6R 0S4"
}, - {
- "primary_number_range": "",
- "primary_line": "WATSON APTS. SUITE 340, 5207 39 ST",
- "city": "RED DEER",
- "state": "AB",
- "country": "CA",
- "zip_code": "T4N 0Z9"
}, - {
- "primary_number_range": "",
- "primary_line": "WATERS EDGE SUITE 3400..3409, 2600 FERGUSON RD",
- "city": "SAANICHTON",
- "state": "BC",
- "country": "CA",
- "zip_code": "V8M 2C1"
}
], - "object": "intl_autocompletion"
}
Address verification for non-US addresses
deliverability_analysis[dpv_footnotes]
required | Array of intl_verification (object) or error (object) |
errors required | boolean Indicates whether any errors occurred during the verification process. |
{- "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
@@ -6371,7 +6521,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 @@ -6596,7 +6746,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.
@@ -6611,9 +6761,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. @@ -6629,7 +6779,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 @@ -6708,7 +6858,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. @@ -6733,9 +6883,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 @@ -6763,16 +6913,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 @@ -6852,7 +7002,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. @@ -6874,9 +7024,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 @@ -6901,16 +7051,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!
@@ -6965,9 +7115,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.
@@ -6976,135 +7126,100 @@id | string Unique identifier for a domain. |
domain | string The registered domain/hostname. - |
account_id | string Unique identifier associated with the account the domain is registered for. + |
error_redirect_link | string The 404 error redirect link. + |
created_at | string The date and time the domain was created. + |
updated_at | string 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",
- "account_id": "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. - |
domain | string The registered domain/hostname. - |
account_id | string Unique identifier associated with the account the domain is registered for. + |
deleted | boolean Only returned if the domain was successfully deleted. |
{- "id": "string",
- "domain": "string",
- "account_id": "string"
}
Add a new custom domain that can be used to create custom links.
-domain required | string (domain) The registered domain/hostname. +https://api.lob.com/v1/domains/{domain_id} Response samples
Content type application/json { Create DomainAdd a new custom domain that can be used to create custom links. +Authorizations:basicAuth Request Body schema:
ResponsesResponse Schema: application/json
Request samples
Content type Example { Response samples
Content type application/json { Request samples
Content type Example { Response samples
Content type application/json { List all domainsRetrieve a list of all created domains. Authorizations:basicAuth ResponsesResponse Schema: application/json
Request samples
curl -X GET "https://api.lob.com/v1/domains?limit=2" \ - -u <YOUR_LIVE_API_KEY>: - Response samples
Content type application/json { Delete all links for a domainDelete all associated links for a domain -Authorizations:basicAuth path Parameters
ResponsesResponse Schema: application/json
Response samples
Content type application/json { Retrieve all shortened linksRetrieves a list of shortened links. The list is sorted by creation date, with the most recently created appearing first. -Authorizations:basicAuth query Parameters
ResponsesResponse Schema: application/json
Request samples
curl -X GET "https://api.lob.com/v1/links/?limit=2" \ + https://api.lob.com/v1/domains Request samples
curl -X GET "https://api.lob.com/v1/domains?limit=2" \ -u <YOUR_LIVE_API_KEY>: - Response samples
Content type application/json { Response samples
Content type application/json { Retrieve a linkRetrieves a single shortened link. Authorizations:basicAuth path Parameters
ResponsesResponse Schema: application/json
Request samples
curl -X GET "https://api.lob.com/v1/links/<link_id>" \ + https://api.lob.com/v1/links/{link_id} Request samples
curl -X GET "https://api.lob.com/v1/links/<link_id>" \ -u <YOUR_LIVE_API_KEY>: - Response samples
Content type application/json { Response samples
Content type application/json { Update a LinkUpdate any of the properties of a shortened link. Authorizations:basicAuth path Parameters
Request Body schema:
ResponsesResponse Schema: application/json
Request samples
Content type Example { Response samples
Content type application/json { Request samples
Content type Example { Response samples
Content type application/json { Delete LinkDelete the shortened link. Authorizations:basicAuth path Parameters
ResponsesResponse Schema: application/json
|