diff --git a/docs/index.html b/docs/index.html index ab97f56b..6f4f19b2 100644 --- a/docs/index.html +++ b/docs/index.html @@ -2989,7 +2989,7 @@ -
{- "description": "Demo Snap Pack Job",
- "to": "adr_bae820679f3f536b",
- "from": "adr_210a8d4b0b76d77b",
- "size": "8.5x11",
- "metadata": {
- "spiffy": "true"
}, - "mail_type": "usps_standard",
- "merge_variables": {
- "name": "Harry"
}, - "send_date": "2017-11-01T00:00:00.000Z",
- "use_type": "marketing"
}
{- "id": "ord_0d6a16a3fff6318ac8f8008dc1",
- "description": "April Campaign",
- "to": {
- "id": "adr_bae820679f3f536b",
- "description": null,
- "name": "HARRY ZHANG",
- "company": null,
- "phone": null,
- "email": null,
- "address_line1": "210 KING ST STE 6100",
- "address_line2": null,
- "address_city": "SAN FRANCISCO",
- "address_state": "CA",
- "address_zip": "94107-1741",
- "address_country": "UNITED STATES",
- "metadata": { },
- "date_created": "2017-09-05T17:47:53.767Z",
- "date_modified": "2017-09-05T17:47:53.767Z",
- "deleted": true,
- "object": "address"
}, - "from": {
- "id": "adr_210a8d4b0b76d77b",
- "description": null,
- "name": "LEORE AVIDAR",
- "company": null,
- "phone": null,
- "email": null,
- "address_line1": "210 KING ST STE 6100",
- "address_line2": null,
- "address_city": "SAN FRANCISCO",
- "address_state": "CA",
- "address_zip": "94107-1741",
- "address_country": "UNITED STATES",
- "metadata": { },
- "date_created": "2017-09-05T17:47:53.767Z",
- "date_modified": "2017-09-05T17:47:53.767Z",
- "deleted": true,
- "object": "address"
}, - "outside_template_id": "tmpl_a3cb937f26d7eec",
- "inside_template_id": "tmpl_a3cb937f26d7eec",
- "inside_template_version_id": "vrsn_bfdf70893b00a85",
- "outside_template_version_id": "vrsn_bfdf70893b00a85",
- "carrier": "USPS",
- "tracking_events": [ ],
- "thumbnails": [
- {
}, - {
}
], - "merge_variables": {
- "name": null
}, - "size": "8.5x11",
- "mail_type": "usps_first_class",
- "expected_delivery_date": "2021-03-24",
- "date_created": "2021-03-16T18:40:40.504Z",
- "date_modified": "2021-03-16T18:40:40.504Z",
- "send_date": "2021-03-16T18:45:40.493Z",
- "use_type": "marketing",
- "fsc": false,
- "color": false,
- "object": "snap_pack"
}
Retrieves the details of an existing booklet. You need to only supply the unique booklet identifier that was returned upon booklet creation.
+booklet_id required | string (booklet_id) ^ord_[0-9a-f]{26}$ id of the booklet + |
required | (address_us (address obj with `name` defined (object) or address obj with `company` defined (object))) or (address_intl (address obj with `name` defined (object) or address obj with `company` defined (object))) (address) |
carrier required | string Default: "USPS" Value: "USPS" |
id required | string (booklet_id) ^ord_[0-9a-f]{26}$ Unique identifier prefixed with |
required | (address_us (address obj with `name` defined (object) or address obj with `company` defined (object))) or (address_intl (address obj with `name` defined (object) or address obj with `company` defined (object))) (address) |
use_type required | string or null (booklet_use_type) Enum: "marketing" "operational" null The use type for each mailpiece. Can be one of marketing, operational, or null. Null use_type is only allowed if an account default use_type is selected in Account Settings. For more information on use_type, see our Help Center article. + |
Array of objects (tracking_event_normal) An array of tracking events ordered by ascending | |
description | string or null (resource_description) <= 255 characters An internal description that identifies this resource. Must be no longer than 255 characters. + |
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 | |
merge_variables | object or null (merge_variables) <= 25000 characters You can input a merge variable payload object to your template or QR code redirect URLs to render dynamic content. For example, if you have a template like: |
string or string (send_date) A timestamp in ISO 8601 format which specifies a date after the current time and up to 180 days in the future to send the letter off for production. Setting a send date overrides the default cancellation window applied to the mailpiece. Until the | |
mail_type | string (mail_type) Default: "usps_first_class" Enum: "usps_first_class" "usps_standard" A string designating the mail postage type: +
|
Array of objects (thumbnail) | |
expected_delivery_date | string <date> (expected_delivery_date) A date in YYYY-MM-DD format of the mailpiece's expected delivery date based on its |
date_created | string <date-time> (date_created) A timestamp in ISO 8601 format of the date the resource was created. + |
date_modified | string <date-time> (date_modified) A timestamp in ISO 8601 format of the date the resource was last modified. + |
deleted | boolean (deleted) Only returned if the resource has been successfully deleted. + |
url | string (signed_link) ^https://lob-assets.com/(letters|postcards|ba... A signed link served over HTTPS. The link returned will expire in 30 days to prevent mis-sharing. Each time a GET request is initiated, a new signed URL will be generated. + |
template_id | string^tmpl_[a-zA-Z0-9]+$ The unique ID of the HTML template used for the booklet. + |
template_version_id | string^vrsn_[a-zA-Z0-9]+$ The unique ID of the specific version of the HTML template used for the booklet. + |
campaign_id | string or null (campaign_id) ^(cmp|camp)_[a-zA-Z0-9]+$ Denotes resources created by the provided campaign id, prefixed with |
fsc | boolean Default: false This is in beta. Contact support@lob.com or your account contact to learn more. + |
status | string (status) Enum: "processed" "rendered" "failed" A string describing the PDF render status: +
|
object or null An object describing the reason for failure if the resource failed to render. + | |
object | string Default: "booklet" Value: "booklet" Value is resource type. + |
curl -X GET "https://api.lob.com/v1/booklets/ord_0d6a16a3fff6318ac8f8008dc1" \ + -u test_0dc8d51e0acffcb1880e0f19c79b2f5b0cc: +
{- "id": "ord_0d6a16a3fff6318ac8f8008dc1",
- "description": "April Campaign",
- "metadata": { },
- "to": {
- "id": "adr_d3489cd64c791ab5",
- "description": null,
- "name": "HARRY ZHANG",
- "company": null,
- "phone": null,
- "email": null,
- "address_line1": "210 KING ST STE 6100",
- "address_line2": null,
- "address_city": "SAN FRANCISCO",
- "address_state": "CA",
- "address_zip": "94107-1741",
- "address_country": "UNITED STATES",
- "metadata": { },
- "date_created": "2017-09-05T15:54:53.264Z",
- "date_modified": "2017-09-05T15:54:53.264Z",
- "deleted": true,
- "object": "address"
}, - "from": {
- "id": "adr_b8fb5acf3a2b55db",
- "description": null,
- "name": "LEORE AVIDAR",
- "company": null,
- "phone": null,
- "email": null,
- "address_line1": "210 KING ST STE 6100",
- "address_line2": null,
- "address_city": "SAN FRANCISCO",
- "address_state": "CA",
- "address_zip": "94107-1741",
- "address_country": "UNITED STATES",
- "metadata": { },
- "date_created": "2017-09-05T15:54:53.264Z",
- "date_modified": "2017-09-05T15:54:53.264Z",
- "deleted": true,
- "object": "address"
}, - "mail_type": "usps_first_class",
- "carrier": "USPS",
- "tracking_number": null,
- "tracking_events": [ ],
- "thumbnails": [
- {
}
], - "merge_variables": {
- "name": "Harry"
}, - "size": "9x6",
- "expected_delivery_date": "2021-03-24",
- "date_created": "2021-03-16T18:40:40.504Z",
- "date_modified": "2021-03-16T18:40:40.504Z",
- "send_date": "2021-03-16T18:45:40.493Z",
- "use_type": "marketing",
- "fsc": false,
- "object": "booklet"
}
Completely removes a booklet from production. This can only be done if the booklet's send_date
has not yet passed. If the booklet is successfully canceled, you will not be charged for it.
booklet_id required | string (booklet_id) ^ord_[0-9a-f]{26}$ id of the booklet + |
id | string (booklet_id) ^ord_[0-9a-f]{26}$ Unique identifier prefixed with |
deleted | boolean (deleted) Only returned if the resource has been successfully deleted. + |
curl -X DELETE https://api.lob.com/v1/booklets/ord_0d6a16a3fff6318ac8f8008dc1 \ + -u test_0dc8d51e0acffcb1880e0f19c79b2f5b0cc: +
{- "id": "ord_0d6a16a3fff6318ac8f8008dc1",
- "deleted": true
}
Returns a list of your booklets. The booklets are returned sorted by creation date, with the most recently created booklets appearing first.
+limit | integer [ 1 .. 100 ] Default: 10 Example: limit=10 How many results to return. + |
object or object
| |
include | Array of strings Request that the response include the total count by specifying |
object (date_filter) Filter by date created. Accepted formats are ISO-8601 date or datetime, e.g. | |
object (metadata) <= 500 characters [^"\\]{0,500} Filter by metadata key-value pair`. + | |
string or string (send_date) Filter by ISO-8601 date or datetime, e.g. | |
mail_type | string (mail_type) Default: "usps_first_class" Enum: "usps_first_class" "usps_standard" A string designating the mail postage type: * |
object or object Sorts items by ascending or descending dates. Use either | |
campaign_id | string or null (campaign_id) ^(cmp|camp)_[a-zA-Z0-9]+$ Filters resources created by the provided campaign id, prefixed with |
status | string (status) Enum: "processed" "rendered" "failed" A string describing the render status: +
|
object | string (object) Value is resource type. + |
next_url | string or null Url of next page of items in list. + |
previous_url | string or null Url of previous page of items in list. + |
count | integer (count) number of resources in a set + |
total_count | integer Indicates the total number of records. Provided when the request specifies an "include" query parameter + |
Array of objects (booklet) list of booklets + |
curl -X GET "https://api.lob.com/v1/booklets?limit=2" \ + -u test_0dc8d51e0acffcb1880e0f19c79b2f5b0cc: +
{- "data": [
- {
- "id": "ord_0d6a16a3fff6318ac8f8008dc1",
- "description": "April Campaign",
- "metadata": { },
- "to": {
- "id": "adr_d3489cd64c791ab5",
- "description": null,
- "name": "HARRY ZHANG",
- "company": null,
- "phone": null,
- "email": null,
- "address_line1": "210 KING ST STE 6100",
- "address_line2": null,
- "address_city": "SAN FRANCISCO",
- "address_state": "CA",
- "address_zip": "94107-1741",
- "address_country": "UNITED STATES",
- "metadata": { },
- "date_created": "2017-09-05T15:54:53.264Z",
- "date_modified": "2017-09-05T15:54:53.264Z",
- "deleted": true,
- "object": "address"
}, - "from": {
- "id": "adr_b8fb5acf3a2b55db",
- "description": null,
- "name": "LEORE AVIDAR",
- "company": null,
- "phone": null,
- "email": null,
- "address_line1": "210 KING ST STE 6100",
- "address_line2": null,
- "address_city": "SAN FRANCISCO",
- "address_state": "CA",
- "address_zip": "94107-1741",
- "address_country": "UNITED STATES",
- "metadata": { },
- "date_created": "2017-09-05T15:54:53.264Z",
- "date_modified": "2017-09-05T15:54:53.264Z",
- "deleted": true,
- "object": "address"
}, - "mail_type": "usps_first_class",
- "carrier": "USPS",
- "tracking_number": null,
- "tracking_events": [ ],
- "thumbnails": [
- {
}
], - "merge_variables": {
- "name": "Harry"
}, - "size": "9x6",
- "expected_delivery_date": "2021-03-24",
- "date_created": "2021-03-16T18:40:40.504Z",
- "date_modified": "2021-03-16T18:40:40.504Z",
- "send_date": "2021-03-16T18:45:40.493Z",
- "use_type": "marketing",
- "fsc": false,
- "object": "booklet"
}, - {
- "id": "ord_851100000f31bb1a872f794cee",
- "description": "April Campaign",
- "metadata": { },
- "to": {
- "id": "adr_f9228b743884ff98",
- "description": null,
- "name": "AYA",
- "company": null,
- "phone": null,
- "email": null,
- "address_line1": "2812 PARK RD",
- "address_line2": null,
- "address_city": "CHARLOTTE",
- "address_state": "NC",
- "address_zip": "28209-1314",
- "address_country": "UNITED STATES",
- "metadata": { },
- "date_created": "2021-03-16T18:40:40.410Z",
- "date_modified": "2021-03-16T18:40:40.410Z",
- "deleted": true,
- "object": "address"
}, - "from": {
- "id": "adr_210a8d4b0b76d77b",
- "description": null,
- "name": null,
- "company": "LOB",
- "phone": null,
- "email": null,
- "address_line1": "210 KING ST STE 6100",
- "address_line2": null,
- "address_city": "SAN FRANCISCO",
- "address_state": "CA",
- "address_zip": "94107-1741",
- "address_country": "UNITED STATES",
- "metadata": { },
- "date_created": "2018-12-08T03:01:07.651Z",
- "date_modified": "2018-12-08T03:01:07.651Z",
- "object": "address"
}, - "mail_type": "usps_first_class",
- "carrier": "USPS",
- "tracking_number": null,
- "tracking_events": [ ],
- "thumbnails": [
- {
}
], - "merge_variables": {
- "name": "Harry"
}, - "size": "9x6",
- "expected_delivery_date": "2021-03-24",
- "date_created": "2021-03-16T18:40:40.504Z",
- "date_modified": "2021-03-16T18:40:40.504Z",
- "send_date": "2021-03-16T18:45:40.493Z",
- "use_type": "marketing",
- "fsc": false,
- "object": "booklet"
}
], - "object": "list",
- "next_url": null,
- "previous_url": null,
- "count": 2
}
Creates a new booklet.
+idempotency_key | string <= 256 characters Example: idempotency_key=026e7634-24d7-486c-a0bb-4a17fd0eebc5 A string of no longer than 256 characters that uniquely identifies this resource. For more help integrating idempotency keys, refer to our implementation guide. + |
Idempotency-Key | string <= 256 characters Example: 026e7634-24d7-486c-a0bb-4a17fd0eebc5 A string of no longer than 256 characters that uniquely identifies this resource. For more help integrating idempotency keys, refer to our implementation guide. + |
required | adr_id (string) or (inline_address ((address_editable_us (address obj with `name` defined (object) or address obj with `company` defined (object))) or (inline_address_intl ((address_editable_intl (address obj with `name` defined (object) or address obj with `company` defined (object))) or (address_editable_intl (address obj with `name` defined (object) or address obj with `company` defined (object))))))) Must either be an address ID or an inline object with correct address parameters. If an object is used, an address will be created, corrected, and standardized for free whenever possible using our US Address Verification engine (if it is a US address), and returned back with an ID. Depending on your Print & Mail Edition, US addresses may also be run through National Change of Address Linkage(NCOALink). Non-US addresses will be standardized into uppercase only. If a US address used does not meet your account’s US Mail strictness setting, the request will fail. Lob Guide: Verification of Mailing Addresses + |
required | adr_id (string) or (inline_address ((address_editable_us (address obj with `name` defined (object) or address obj with `company` defined (object))) or (inline_address_intl ((address_editable_intl (address obj with `name` defined (object) or address obj with `company` defined (object))) or (address_editable_intl (address obj with `name` defined (object) or address obj with `company` defined (object))))))) Must either be an address ID or an inline object with correct address parameters. Must be a US address unless using a |
required | html_string (string) or tmpl_id (string) or remote_file_url (string) or string (booklet_file) Notes: +
|
use_type required | string or null (booklet_use_type) Enum: "marketing" "operational" null The use type for each mailpiece. Can be one of marketing, operational, or null. Null use_type is only allowed if an account default use_type is selected in Account Settings. For more information on use_type, see our Help Center article. + |
description | string or null (resource_description) <= 255 characters An internal description that identifies this resource. Must be no longer than 255 characters. + |
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 | |
mail_type | string Default: "usps_first_class" Enum: "usps_first_class" "usps_standard" A string designating the mail postage type: +
|
merge_variables | object or null (merge_variables) <= 25000 characters You can input a merge variable payload object to your template or QR code redirect URLs to render dynamic content. For example, if you have a template like: |
string or string (send_date) A timestamp in ISO 8601 format which specifies a date after the current time and up to 180 days in the future to send the letter off for production. Setting a send date overrides the default cancellation window applied to the mailpiece. Until the | |
billing_group_id | string (billing_group_id) An optional string with the billing group ID to tag your usage with. Is used for billing purposes. Requires special activation to use. See Billing Group API for more information. + |
object (qr_code) Customize and place a QR code on the creative at the required position. + | |
fsc | boolean Default: false This is in beta. Contact support@lob.com or your account contact to learn more. Not available for |
size | string (booklet_size) Default: "9x6" Enum: "9x6" "8.375x5.375" Specifies the size of the booklet. + |
ratelimit-limit | integer Example: 150 The rate limit for a given endpoint. + |
ratelimit-remaining | integer Example: 100 The number of requests remaining in the current window. + |
ratelimit-reset |
required | (address_us (address obj with `name` defined (object) or address obj with `company` defined (object))) or (address_intl (address obj with `name` defined (object) or address obj with `company` defined (object))) (address) |
carrier required | string Default: "USPS" Value: "USPS" |
id required | string (booklet_id) ^ord_[0-9a-f]{26}$ Unique identifier prefixed with |
required | (address_us (address obj with `name` defined (object) or address obj with `company` defined (object))) or (address_intl (address obj with `name` defined (object) or address obj with `company` defined (object))) (address) |
use_type required | string or null (booklet_use_type) Enum: "marketing" "operational" null The use type for each mailpiece. Can be one of marketing, operational, or null. Null use_type is only allowed if an account default use_type is selected in Account Settings. For more information on use_type, see our Help Center article. + |
Array of objects (tracking_event_normal) An array of tracking events ordered by ascending | |
description | string or null (resource_description) <= 255 characters An internal description that identifies this resource. Must be no longer than 255 characters. + |
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 | |
merge_variables | object or null (merge_variables) <= 25000 characters You can input a merge variable payload object to your template or QR code redirect URLs to render dynamic content. For example, if you have a template like: |
string or string (send_date) A timestamp in ISO 8601 format which specifies a date after the current time and up to 180 days in the future to send the letter off for production. Setting a send date overrides the default cancellation window applied to the mailpiece. Until the | |
mail_type | string (mail_type) Default: "usps_first_class" Enum: "usps_first_class" "usps_standard" A string designating the mail postage type: +
|
Array of objects (thumbnail) | |
expected_delivery_date | string <date> (expected_delivery_date) A date in YYYY-MM-DD format of the mailpiece's expected delivery date based on its |
date_created | string <date-time> (date_created) A timestamp in ISO 8601 format of the date the resource was created. + |
date_modified | string <date-time> (date_modified) A timestamp in ISO 8601 format of the date the resource was last modified. + |
deleted | boolean (deleted) Only returned if the resource has been successfully deleted. + |
url | string (signed_link) ^https://lob-assets.com/(letters|postcards|ba... A signed link served over HTTPS. The link returned will expire in 30 days to prevent mis-sharing. Each time a GET request is initiated, a new signed URL will be generated. + |
template_id | string^tmpl_[a-zA-Z0-9]+$ The unique ID of the HTML template used for the booklet. + |
template_version_id | string^vrsn_[a-zA-Z0-9]+$ The unique ID of the specific version of the HTML template used for the booklet. + |
campaign_id | string or null (campaign_id) ^(cmp|camp)_[a-zA-Z0-9]+$ Denotes resources created by the provided campaign id, prefixed with |
fsc | boolean Default: false This is in beta. Contact support@lob.com or your account contact to learn more. + |
status | string (status) Enum: "processed" "rendered" "failed" A string describing the PDF render status: +
|
object or null An object describing the reason for failure if the resource failed to render. + | |
object | string Default: "booklet" Value: "booklet" Value is resource type. + |
{- "description": "demo",
- "to": {
- "description": "Harry - Office",
- "name": "Harry Zhang",
- "company": "Lob",
- "email": "harry@lob.com",
- "phone": "5555555555",
- "address_line1": "210 King St",
- "address_line2": "# 6100",
- "address_city": "San Francisco",
- "address_state": "CA",
- "address_zip": "94107",
- "address_country": "US"
}, - "from": {
- "name": "Harry",
- "address_line1": "210 King St",
- "address_line2": "# 6100",
- "address_city": "San Francisco",
- "address_state": "CA",
- "address_zip": "94107"
}, - "file": "<html style='padding-top: 3in; margin: .5in;'>HTML Booklet for {{name}}</html>",
- "mail_type": "usps_first_class",
- "merge_variables": {
- "name": "Harry"
}, - "metadata": {
- "spiffy": "true"
}, - "send_date": "2017-11-01T00:00:00.000Z",
- "use_type": "marketing",
- "qr_code": {
- "position": "relative",
- "width": "2",
- "top": "2",
- "right": "2",
- "pages": "1-2,4-5"
}, - "fsc": true,
- "size": "9x6"
}
{- "id": "ord_0d6a16a3fff6318ac8f8008dc1",
- "description": "April Campaign",
- "metadata": { },
- "to": {
- "id": "adr_d3489cd64c791ab5",
- "description": null,
- "name": "HARRY ZHANG",
- "company": null,
- "phone": null,
- "email": null,
- "address_line1": "210 KING ST STE 6100",
- "address_line2": null,
- "address_city": "SAN FRANCISCO",
- "address_state": "CA",
- "address_zip": "94107-1741",
- "address_country": "UNITED STATES",
- "metadata": { },
- "date_created": "2017-09-05T15:54:53.264Z",
- "date_modified": "2017-09-05T15:54:53.264Z",
- "deleted": true,
- "object": "address"
}, - "from": {
- "id": "adr_b8fb5acf3a2b55db",
- "description": null,
- "name": "LEORE AVIDAR",
- "company": null,
- "phone": null,
- "email": null,
- "address_line1": "210 KING ST STE 6100",
- "address_line2": null,
- "address_city": "SAN FRANCISCO",
- "address_state": "CA",
- "address_zip": "94107-1741",
- "address_country": "UNITED STATES",
- "metadata": { },
- "date_created": "2017-09-05T15:54:53.264Z",
- "date_modified": "2017-09-05T15:54:53.264Z",
- "deleted": true,
- "object": "address"
}, - "mail_type": "usps_first_class",
- "carrier": "USPS",
- "tracking_number": null,
- "tracking_events": [ ],
- "thumbnails": [
- {
}
], - "merge_variables": {
- "name": "Harry"
}, - "size": "9x6",
- "expected_delivery_date": "2021-03-24",
- "date_created": "2021-03-16T18:40:40.504Z",
- "date_modified": "2021-03-16T18:40:40.504Z",
- "send_date": "2021-03-16T18:45:40.493Z",
- "use_type": "marketing",
- "fsc": false,
- "object": "booklet"
}
Bank Accounts allow you to store your bank account securely in our system. The API provides endpoints for creating bank accounts, deleting bank accounts, verifying bank accounts, retrieving individual bank accounts, and retrieving a list of bank accounts.
@@ -4134,7 +4273,7 @@A bank account must be verified before a check can be created. More info here.
{- "amounts": [
- 1,
- 100
]
}
{- "id": "bank_8cad8df5354d33f",
- "description": "Test Bank Account",
- "metadata": { },
- "routing_number": "322271627",
- "fractional_routing_number": "25-3/440",
- "check_template": "jpm",
- "account_number": "123456789",
- "account_type": "company",
- "signatory": "John Doe",
- "bank_name": "J.P. MORGAN CHASE BANK, N.A.,",
- "bank_city": "Columbus",
- "bank_state": "OH",
- "bank_zip": "43240",
- "verified": false,
- "date_created": "2015-11-06T19:24:24.440Z",
- "date_modified": "2015-11-06T19:24:24.440Z",
- "object": "bank_account"
}
{- "amounts": [
- 1,
- 100
]
}
{- "id": "bank_8cad8df5354d33f",
- "description": "Test Bank Account",
- "metadata": { },
- "routing_number": "322271627",
- "fractional_routing_number": "25-3/440",
- "check_template": "jpm",
- "account_number": "123456789",
- "account_type": "company",
- "signatory": "John Doe",
- "bank_name": "J.P. MORGAN CHASE BANK, N.A.,",
- "bank_city": "Columbus",
- "bank_state": "OH",
- "bank_zip": "43240",
- "verified": false,
- "date_created": "2015-11-06T19:24:24.440Z",
- "date_modified": "2015-11-06T19:24:24.440Z",
- "object": "bank_account"
}
Retrieves the details of an existing bank account. You need only supply the unique bank account identifier that was returned upon bank account creation.
bank_id required | string (bank_id) ^bank_[a-zA-Z0-9]+$ id of the bank account |
routing_number required | string = 9 characters Must be a valid US routing number. @@ -4157,18 +4296,18 @@3. Learn more |
verified | boolean Default: false A bank account must be verified before a check can be created. More info here. |
curl https://api.lob.com/v1/bank_accounts/bank_8cad8df5354d33f \ +
curl https://api.lob.com/v1/bank_accounts/bank_8cad8df5354d33f \ -u test_0dc8d51e0acffcb1880e0f19c79b2f5b0cc: -
{- "id": "bank_8cad8df5354d33f",
- "description": "Test Bank Account",
- "metadata": { },
- "routing_number": "322271627",
- "fractional_routing_number": "25-3/440",
- "check_template": "jpm",
- "account_number": "123456789",
- "account_type": "company",
- "signatory": "John Doe",
- "bank_name": "J.P. MORGAN CHASE BANK, N.A.,",
- "bank_city": "Columbus",
- "bank_state": "OH",
- "bank_zip": "43240",
- "verified": false,
- "date_created": "2015-11-06T19:24:24.440Z",
- "date_modified": "2015-11-06T19:24:24.440Z",
- "object": "bank_account"
}
{- "id": "bank_8cad8df5354d33f",
- "description": "Test Bank Account",
- "metadata": { },
- "routing_number": "322271627",
- "fractional_routing_number": "25-3/440",
- "check_template": "jpm",
- "account_number": "123456789",
- "account_type": "company",
- "signatory": "John Doe",
- "bank_name": "J.P. MORGAN CHASE BANK, N.A.,",
- "bank_city": "Columbus",
- "bank_state": "OH",
- "bank_zip": "43240",
- "verified": false,
- "date_created": "2015-11-06T19:24:24.440Z",
- "date_modified": "2015-11-06T19:24:24.440Z",
- "object": "bank_account"
}
Permanently deletes a bank account. It cannot be undone.
bank_id required | string (bank_id) ^bank_[a-zA-Z0-9]+$ id of the bank account |
id | string (bank_id) ^bank_[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/bank_accounts/bank_3e64d9904356b20 \ +
curl -X DELETE https://api.lob.com/v1/bank_accounts/bank_3e64d9904356b20 \ -u test_0dc8d51e0acffcb1880e0f19c79b2f5b0cc: -
{- "id": "bank_123456789",
- "deleted": true
}
{- "id": "bank_123456789",
- "deleted": true
}
Returns a list of your bank accounts. The bank accounts are returned sorted by creation date, with the most recently created bank accounts appearing first.
limit | integer [ 1 .. 100 ] Default: 10 Example: limit=10 How many results to return. |
object or object
| |
include | Array of strings Request that the response include the total count by specifying 3. Learn more |
Array of objects (bank_account) list of bank_accounts |
curl -X GET "https://api.lob.com/v1/bank_accounts?limit=2" \ +
curl -X GET "https://api.lob.com/v1/bank_accounts?limit=2" \ -u test_0dc8d51e0acffcb1880e0f19c79b2f5b0cc: -
{- "data": [
- {
- "id": "bank_0e3fb07eba0b35b",
- "description": "Example bank account",
- "metadata": { },
- "routing_number": "122100024",
- "account_number": "1234564789",
- "account_type": "company",
- "signatory": "John Doe",
- "bank_name": "JPMORGAN CHASE BANK, NA",
- "verified": true,
- "date_created": "2019-03-30T13:13:22.200Z",
- "date_modified": "2019-03-30T13:13:23.385Z",
- "object": "bank_account"
}, - {
- "id": "bank_eba93f7de3c02d9",
- "description": "Example bank account",
- "metadata": { },
- "routing_number": "122100024",
- "account_number": "1234564789",
- "account_type": "company",
- "signatory": "John Doe",
- "bank_name": "JPMORGAN CHASE BANK, NA",
- "verified": true,
- "date_created": "2019-03-30T13:11:06.809Z",
- "date_modified": "2019-03-30T13:11:07.872Z",
- "object": "bank_account"
}
], - "object": "list",
- "previous_url": null,
- "count": 2
}
{- "data": [
- {
- "id": "bank_0e3fb07eba0b35b",
- "description": "Example bank account",
- "metadata": { },
- "routing_number": "122100024",
- "account_number": "1234564789",
- "account_type": "company",
- "signatory": "John Doe",
- "bank_name": "JPMORGAN CHASE BANK, NA",
- "verified": true,
- "date_created": "2019-03-30T13:13:22.200Z",
- "date_modified": "2019-03-30T13:13:23.385Z",
- "object": "bank_account"
}, - {
- "id": "bank_eba93f7de3c02d9",
- "description": "Example bank account",
- "metadata": { },
- "routing_number": "122100024",
- "account_number": "1234564789",
- "account_type": "company",
- "signatory": "John Doe",
- "bank_name": "JPMORGAN CHASE BANK, NA",
- "verified": true,
- "date_created": "2019-03-30T13:11:06.809Z",
- "date_modified": "2019-03-30T13:11:07.872Z",
- "object": "bank_account"
}
], - "object": "list",
- "previous_url": null,
- "count": 2
}
Creates a new bank account with the provided properties. Bank accounts created in live mode will need to be verified via micro deposits before being able to send live checks. The deposits will appear in the bank account in 2-3 business days and have the description "VERIFICATION".
routing_number required | string = 9 characters Must be a valid US routing number. |
account_number required | string <= 17 characters |
account_type required | string Enum: "company" "individual" The type of entity that holds the account. |
signatory required | string <= 30 characters The signatory associated with your account. This name will be printed on checks created with this bank account. If you prefer to use a custom signature image on your checks instead, please create your bank account from the Dashboard. @@ -4220,7 +4359,7 @@3. Learn more |
verified | boolean Default: false A bank account must be verified before a check can be created. More info here. |
{- "description": "Test Bank Account",
- "routing_number": "322271627",
- "account_number": "123456789",
- "signatory": "Jane Doe",
- "account_type": "individual",
- "metadata": {
- "spiffy": "true"
}
}
{- "id": "bank_8cad8df5354d33f",
- "description": "Test Bank Account",
- "metadata": { },
- "routing_number": "322271627",
- "fractional_routing_number": "25-3/440",
- "check_template": "jpm",
- "account_number": "123456789",
- "account_type": "company",
- "signatory": "John Doe",
- "bank_name": "J.P. MORGAN CHASE BANK, N.A.,",
- "bank_city": "Columbus",
- "bank_state": "OH",
- "bank_zip": "43240",
- "verified": false,
- "date_created": "2015-11-06T19:24:24.440Z",
- "date_modified": "2015-11-06T19:24:24.440Z",
- "object": "bank_account"
}
These API endpoints allow you to create, retrieve, update and delete reusable HTML templates for use with the Print & Mail API.
+{- "description": "Test Bank Account",
- "routing_number": "322271627",
- "account_number": "123456789",
- "signatory": "Jane Doe",
- "account_type": "individual",
- "metadata": {
- "spiffy": "true"
}
}
{- "id": "bank_8cad8df5354d33f",
- "description": "Test Bank Account",
- "metadata": { },
- "routing_number": "322271627",
- "fractional_routing_number": "25-3/440",
- "check_template": "jpm",
- "account_number": "123456789",
- "account_type": "company",
- "signatory": "John Doe",
- "bank_name": "J.P. MORGAN CHASE BANK, N.A.,",
- "bank_city": "Columbus",
- "bank_state": "OH",
- "bank_zip": "43240",
- "verified": false,
- "date_created": "2015-11-06T19:24:24.440Z",
- "date_modified": "2015-11-06T19:24:24.440Z",
- "object": "bank_account"
}
These API endpoints allow you to create, retrieve, update and delete reusable HTML templates for use with the Print & Mail API.
Retrieves the details of an existing template. You need only supply the unique template identifier that was returned upon template creation.
tmpl_id required | string (tmpl_id) ^tmpl_[a-zA-Z0-9]+$ id of the template @@ -4236,9 +4375,9 @@3. Learn more |
deleted | boolean (deleted) Only returned if the resource has been successfully deleted. |
curl https://api.lob.com/v1/templates/tmpl_c94e83ca2cd5121 \ +
curl https://api.lob.com/v1/templates/tmpl_c94e83ca2cd5121 \ -u test_0dc8d51e0acffcb1880e0f19c79b2f5b0cc: -
{- "id": "tmpl_c94e83ca2cd5121",
- "description": "Test Template",
- "versions": [
- {
- "id": "vrsn_362184d96d9b0c9",
- "suggest_json_editor": true,
- "description": "Test Template",
- "engine": "legacy",
- "html": "<html>HTML for {{name}}</html>",
- "date_created": "2017-11-07T22:56:10.962Z",
- "date_modified": "2017-11-07T22:56:10.962Z",
- "object": "version"
}
], - "published_version": {
- "id": "vrsn_362184d96d9b0c9",
- "suggest_json_editor": false,
- "description": "Test Template",
- "engine": "handlebars",
- "html": "<html>HTML for {{name}}</html>",
- "date_created": "2017-11-07T22:56:10.962Z",
- "date_modified": "2017-11-07T22:56:10.962Z",
- "object": "version"
}, - "metadata": { },
- "date_created": "2017-11-07T22:56:10.962Z",
- "date_modified": "2017-11-07T22:56:10.962Z",
- "object": "template"
}
{- "id": "tmpl_c94e83ca2cd5121",
- "description": "Test Template",
- "versions": [
- {
- "id": "vrsn_362184d96d9b0c9",
- "suggest_json_editor": true,
- "description": "Test Template",
- "engine": "legacy",
- "html": "<html>HTML for {{name}}</html>",
- "date_created": "2017-11-07T22:56:10.962Z",
- "date_modified": "2017-11-07T22:56:10.962Z",
- "object": "version"
}
], - "published_version": {
- "id": "vrsn_362184d96d9b0c9",
- "suggest_json_editor": false,
- "description": "Test Template",
- "engine": "handlebars",
- "html": "<html>HTML for {{name}}</html>",
- "date_created": "2017-11-07T22:56:10.962Z",
- "date_modified": "2017-11-07T22:56:10.962Z",
- "object": "version"
}, - "metadata": { },
- "date_created": "2017-11-07T22:56:10.962Z",
- "date_modified": "2017-11-07T22:56:10.962Z",
- "object": "template"
}
Updates the description and/or published version of the template with the given id. To update the template's html, create a new version of the template.
tmpl_id required | string (tmpl_id) ^tmpl_[a-zA-Z0-9]+$ id of the template |
description | string or null (resource_description) <= 255 characters An internal description that identifies this resource. Must be no longer than 255 characters. |
published_version | string^vrsn_[a-zA-Z0-9]+$ The ID of the published version of a template you'd like to update. The published version is the one that will be used in any Print & Mail API requests that reference the specified template. Will err if the referenced 3. Learn more |
deleted | boolean (deleted) Only returned if the resource has been successfully deleted. |
{- "description": "Updated Example",
- "published_version": "vrsn_a"
}
{- "id": "tmpl_c94e83ca2cd5121",
- "description": "Test Template",
- "versions": [
- {
- "id": "vrsn_362184d96d9b0c9",
- "suggest_json_editor": true,
- "description": "Test Template",
- "engine": "legacy",
- "html": "<html>HTML for {{name}}</html>",
- "date_created": "2017-11-07T22:56:10.962Z",
- "date_modified": "2017-11-07T22:56:10.962Z",
- "object": "version"
}
], - "published_version": {
- "id": "vrsn_362184d96d9b0c9",
- "suggest_json_editor": false,
- "description": "Test Template",
- "engine": "handlebars",
- "html": "<html>HTML for {{name}}</html>",
- "date_created": "2017-11-07T22:56:10.962Z",
- "date_modified": "2017-11-07T22:56:10.962Z",
- "object": "version"
}, - "metadata": { },
- "date_created": "2017-11-07T22:56:10.962Z",
- "date_modified": "2017-11-07T22:56:10.962Z",
- "object": "template"
}
{- "description": "Updated Example",
- "published_version": "vrsn_a"
}
{- "id": "tmpl_c94e83ca2cd5121",
- "description": "Test Template",
- "versions": [
- {
- "id": "vrsn_362184d96d9b0c9",
- "suggest_json_editor": true,
- "description": "Test Template",
- "engine": "legacy",
- "html": "<html>HTML for {{name}}</html>",
- "date_created": "2017-11-07T22:56:10.962Z",
- "date_modified": "2017-11-07T22:56:10.962Z",
- "object": "version"
}
], - "published_version": {
- "id": "vrsn_362184d96d9b0c9",
- "suggest_json_editor": false,
- "description": "Test Template",
- "engine": "handlebars",
- "html": "<html>HTML for {{name}}</html>",
- "date_created": "2017-11-07T22:56:10.962Z",
- "date_modified": "2017-11-07T22:56:10.962Z",
- "object": "version"
}, - "metadata": { },
- "date_created": "2017-11-07T22:56:10.962Z",
- "date_modified": "2017-11-07T22:56:10.962Z",
- "object": "template"
}
Permanently deletes a template. Deleting a template also deletes its associated versions. Deleted templates can not be used to create postcard, letter, or check resources.
tmpl_id required | string (tmpl_id) ^tmpl_[a-zA-Z0-9]+$ id of the template |
id | string (tmpl_id) ^tmpl_[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/templates/tmpl_df934eeda694203 \ +
curl -X DELETE https://api.lob.com/v1/templates/tmpl_df934eeda694203 \ -u test_0dc8d51e0acffcb1880e0f19c79b2f5b0cc: -
{- "value": {
- "id": "tmpl_123456789",
- "deleted": true
}
}
{- "value": {
- "id": "tmpl_123456789",
- "deleted": true
}
}
Returns a list of your templates. The templates are returned sorted by creation date, with the most recently created templates appearing first.
limit | integer [ 1 .. 100 ] Default: 10 Example: limit=10 How many results to return. |
object or object
| |
include | Array of strings Request that the response include the total count by specifying 3. Learn more |
Array of objects (template) list of templates |
curl -X GET "https://api.lob.com/v1/templates?limit=2" \ +
curl -X GET "https://api.lob.com/v1/templates?limit=2" \ -u test_0dc8d51e0acffcb1880e0f19c79b2f5b0cc: -
{- "data": [
- {
- "id": "tmpl_d5a5a89da9106f8",
- "description": "Test Template",
- "versions": [
- {
- "id": "vrsn_232a02fb8224791",
- "suggest_json_editor": true,
- "description": "Test Template",
- "engine": "legacy",
- "html": "HTML for ",
- "date_created": "2019-07-27T23:49:01.512Z",
- "date_modified": "2019-07-27T23:49:01.512Z",
- "object": "version"
}
], - "published_version": {
- "id": "vrsn_232a02fb8224791",
- "suggest_json_editor": false,
- "description": "Test Template",
- "engine": "handlebars",
- "html": "HTML for ",
- "date_created": "2019-07-27T23:49:01.512Z",
- "date_modified": "2019-07-27T23:49:01.512Z",
- "object": "version"
}, - "metadata": { },
- "date_created": "2019-07-27T23:49:01.511Z",
- "date_modified": "2019-07-27T23:49:01.511Z",
- "object": "template"
}, - {
- "id": "tmpl_59b2150ae120887",
- "description": "Test Template",
- "versions": [
- {
- "id": "vrsn_2a7eb63ccb795b9",
- "description": "Test Template",
- "html": "HTML for ",
- "date_created": "2019-03-29T10:22:34.643Z",
- "date_modified": "2019-03-29T10:22:34.643Z",
- "object": "version"
}
], - "published_version": {
- "id": "vrsn_2a7eb63ccb795b9",
- "description": "Test Template",
- "html": "HTML for ",
- "date_created": "2019-03-29T10:22:34.643Z",
- "date_modified": "2019-03-29T10:22:34.643Z",
- "object": "version"
}, - "metadata": { },
- "date_created": "2019-03-29T10:22:34.642Z",
- "date_modified": "2019-03-29T10:22:34.642Z",
- "object": "template"
}
], - "object": "list",
- "previous_url": null,
- "count": 2
}
Creates a new template for use with the Print & Mail API. In Live mode, you can only have as many non-deleted templates as allotted in your current Print & Mail Edition. If you attempt to create a template past your limit, you will receive a 403
error. There is no limit in Test mode.
{- "data": [
- {
- "id": "tmpl_d5a5a89da9106f8",
- "description": "Test Template",
- "versions": [
- {
- "id": "vrsn_232a02fb8224791",
- "suggest_json_editor": true,
- "description": "Test Template",
- "engine": "legacy",
- "html": "HTML for ",
- "date_created": "2019-07-27T23:49:01.512Z",
- "date_modified": "2019-07-27T23:49:01.512Z",
- "object": "version"
}
], - "published_version": {
- "id": "vrsn_232a02fb8224791",
- "suggest_json_editor": false,
- "description": "Test Template",
- "engine": "handlebars",
- "html": "HTML for ",
- "date_created": "2019-07-27T23:49:01.512Z",
- "date_modified": "2019-07-27T23:49:01.512Z",
- "object": "version"
}, - "metadata": { },
- "date_created": "2019-07-27T23:49:01.511Z",
- "date_modified": "2019-07-27T23:49:01.511Z",
- "object": "template"
}, - {
- "id": "tmpl_59b2150ae120887",
- "description": "Test Template",
- "versions": [
- {
- "id": "vrsn_2a7eb63ccb795b9",
- "description": "Test Template",
- "html": "HTML for ",
- "date_created": "2019-03-29T10:22:34.643Z",
- "date_modified": "2019-03-29T10:22:34.643Z",
- "object": "version"
}
], - "published_version": {
- "id": "vrsn_2a7eb63ccb795b9",
- "description": "Test Template",
- "html": "HTML for ",
- "date_created": "2019-03-29T10:22:34.643Z",
- "date_modified": "2019-03-29T10:22:34.643Z",
- "object": "version"
}, - "metadata": { },
- "date_created": "2019-03-29T10:22:34.642Z",
- "date_modified": "2019-03-29T10:22:34.642Z",
- "object": "template"
}
], - "object": "list",
- "previous_url": null,
- "count": 2
}
Creates a new template for use with the Print & Mail API. In Live mode, you can only have as many non-deleted templates as allotted in your current Print & Mail Edition. If you attempt to create a template past your limit, you will receive a 403
error. There is no limit in Test mode.
html required | string (template_html) <= 100000 characters An HTML string of less than 100,000 characters to be used as the
3. Learn more |
deleted | boolean (deleted) Only returned if the resource has been successfully deleted. |
{- "description": "demo",
- "html": "<html>HTML for {{name}}</html>",
- "metadata": {
- "spiffy": "true"
}, - "engine": "handlebars"
}
{- "id": "tmpl_c94e83ca2cd5121",
- "description": "Test Template",
- "versions": [
- {
- "id": "vrsn_362184d96d9b0c9",
- "suggest_json_editor": true,
- "description": "Test Template",
- "engine": "legacy",
- "html": "<html>HTML for {{name}}</html>",
- "date_created": "2017-11-07T22:56:10.962Z",
- "date_modified": "2017-11-07T22:56:10.962Z",
- "object": "version"
}
], - "published_version": {
- "id": "vrsn_362184d96d9b0c9",
- "suggest_json_editor": false,
- "description": "Test Template",
- "engine": "handlebars",
- "html": "<html>HTML for {{name}}</html>",
- "date_created": "2017-11-07T22:56:10.962Z",
- "date_modified": "2017-11-07T22:56:10.962Z",
- "object": "version"
}, - "metadata": { },
- "date_created": "2017-11-07T22:56:10.962Z",
- "date_modified": "2017-11-07T22:56:10.962Z",
- "object": "template"
}
These API endpoints allow you to create, retrieve, update and delete versions of reusable HTML templates for use with the Print & Mail API.
+{- "description": "demo",
- "html": "<html>HTML for {{name}}</html>",
- "metadata": {
- "spiffy": "true"
}, - "engine": "handlebars"
}
{- "id": "tmpl_c94e83ca2cd5121",
- "description": "Test Template",
- "versions": [
- {
- "id": "vrsn_362184d96d9b0c9",
- "suggest_json_editor": true,
- "description": "Test Template",
- "engine": "legacy",
- "html": "<html>HTML for {{name}}</html>",
- "date_created": "2017-11-07T22:56:10.962Z",
- "date_modified": "2017-11-07T22:56:10.962Z",
- "object": "version"
}
], - "published_version": {
- "id": "vrsn_362184d96d9b0c9",
- "suggest_json_editor": false,
- "description": "Test Template",
- "engine": "handlebars",
- "html": "<html>HTML for {{name}}</html>",
- "date_created": "2017-11-07T22:56:10.962Z",
- "date_modified": "2017-11-07T22:56:10.962Z",
- "object": "version"
}, - "metadata": { },
- "date_created": "2017-11-07T22:56:10.962Z",
- "date_modified": "2017-11-07T22:56:10.962Z",
- "object": "template"
}
These API endpoints allow you to create, retrieve, update and delete versions of reusable HTML templates for use with the Print & Mail API.
Retrieves the template version with the given template and version ids.
tmpl_id required | string (tmpl_id) ^tmpl_[a-zA-Z0-9]+$ The ID of the template to which the version belongs. @@ -4347,9 +4486,9 @@3. Learn more |
merge_variables | object Object representing the keys of every merge variable present in the template. It has one key named 'keys', and its value is an array of strings. |
curl https://api.lob.com/v1/templates/tmpl_c94e83ca2cd5121/versions/vrsn_534e339882d2282 \ +
curl https://api.lob.com/v1/templates/tmpl_c94e83ca2cd5121/versions/vrsn_534e339882d2282 \ -u test_0dc8d51e0acffcb1880e0f19c79b2f5b0cc: -
{- "id": "vrsn_534e339882d2282",
- "description": "Second Version",
- "html": "<html>Second HTML for {{name}}</html>",
- "date_created": "2017-11-09T04:49:38.016Z",
- "date_modified": "2017-11-09T04:49:38.016Z",
- "object": "version"
}
{- "id": "vrsn_534e339882d2282",
- "description": "Second Version",
- "html": "<html>Second HTML for {{name}}</html>",
- "date_created": "2017-11-09T04:49:38.016Z",
- "date_modified": "2017-11-09T04:49:38.016Z",
- "object": "version"
}
Updates the template version with the given template and version ids.
tmpl_id required | string (tmpl_id) ^tmpl_[a-zA-Z0-9]+$ The ID of the template to which the version belongs. |
vrsn_id required | string (vrsn_id) ^vrsn_[a-zA-Z0-9]+$ id of the template_version |
description | string or null (resource_description) <= 255 characters An internal description that identifies this resource. Must be no longer than 255 characters. @@ -4388,7 +4527,7 @@3. Learn more |
merge_variables | object Object representing the keys of every merge variable present in the template. It has one key named 'keys', and its value is an array of strings. |
{- "description": "Some description"
}
{- "id": "vrsn_534e339882d2282",
- "description": "Second Version",
- "html": "<html>Second HTML for {{name}}</html>",
- "date_created": "2017-11-09T04:49:38.016Z",
- "date_modified": "2017-11-09T04:49:38.016Z",
- "object": "version"
}
{- "description": "Some description"
}
{- "id": "vrsn_534e339882d2282",
- "description": "Second Version",
- "html": "<html>Second HTML for {{name}}</html>",
- "date_created": "2017-11-09T04:49:38.016Z",
- "date_modified": "2017-11-09T04:49:38.016Z",
- "object": "version"
}
Permanently deletes a template version. A template's published_version
can not be deleted.
tmpl_id required | string (tmpl_id) ^tmpl_[a-zA-Z0-9]+$ The ID of the template to which the version belongs. |
vrsn_id required | string (vrsn_id) ^vrsn_[a-zA-Z0-9]+$ id of the template_version |
Only returned if the resource has been successfully deleted.
curl -X DELETE https://api.lob.com/v1/templates/tmpl_4aa14648113e45b/versions/vrsn_534e339882d2282 \ +
curl -X DELETE https://api.lob.com/v1/templates/tmpl_4aa14648113e45b/versions/vrsn_534e339882d2282 \ -u test_0dc8d51e0acffcb1880e0f19c79b2f5b0cc: -
{- "value": {
- "id": "vrsn_123456789",
- "deleted": true
}
}
{- "value": {
- "id": "vrsn_123456789",
- "deleted": true
}
}
Returns a list of template versions for the given template ID. The template versions are sorted by creation date, with the most recently created appearing first.
tmpl_id required | string (tmpl_id) ^tmpl_[a-zA-Z0-9]+$ The ID of the template associated with the retrieved versions |
limit | integer [ 1 .. 100 ] Default: 10 Example: limit=10 How many results to return. |
object or object
3. Learn more | |
Array of objects (template_version) list of template versions |
curl -X GET "https://api.lob.com/v1/templates/tmpl_ea6e6a1abf01703/versions?limit=2" \ +
curl -X GET "https://api.lob.com/v1/templates/tmpl_ea6e6a1abf01703/versions?limit=2" \ -u test_0dc8d51e0acffcb1880e0f19c79b2f5b0cc: -
{- "data": [
- {
- "id": "vrsn_4d6ff5d868bf630",
- "description": "Second Version",
- "html": "Second HTML for ",
- "date_created": "2017-11-09T05:09:03.665Z",
- "date_modified": "2018-05-22T22:01:10.479Z",
- "object": "version"
}, - {
- "id": "vrsn_2a17159c1911919",
- "description": "Test Template",
- "html": "HTML for ",
- "date_created": "2017-11-09T05:08:40.004Z",
- "date_modified": "2018-05-22T22:01:11.309Z",
- "object": "version"
}
], - "object": "list",
- "count": 2
}
{- "data": [
- {
- "id": "vrsn_4d6ff5d868bf630",
- "description": "Second Version",
- "html": "Second HTML for ",
- "date_created": "2017-11-09T05:09:03.665Z",
- "date_modified": "2018-05-22T22:01:10.479Z",
- "object": "version"
}, - {
- "id": "vrsn_2a17159c1911919",
- "description": "Test Template",
- "html": "HTML for ",
- "date_created": "2017-11-09T05:08:40.004Z",
- "date_modified": "2018-05-22T22:01:11.309Z",
- "object": "version"
}
], - "object": "list",
- "count": 2
}
Creates a new template version attached to the specified template.
tmpl_id required | string (tmpl_id) ^tmpl_[a-zA-Z0-9]+$ The ID of the template the new version will be attached to |
html required | string (template_html) <= 100000 characters An HTML string of less than 100,000 characters to be used as the
3. Learn more |
merge_variables | object Object representing the keys of every merge variable present in the template. It has one key named 'keys', and its value is an array of strings. |
{- "description": "Some Description",
- "html": "<html>HTML for {{name}}</html>"
}
{- "id": "vrsn_534e339882d2282",
- "description": "Second Version",
- "html": "<html>Second HTML for {{name}}</html>",
- "date_created": "2017-11-09T04:49:38.016Z",
- "date_modified": "2017-11-09T04:49:38.016Z",
- "object": "version"
}
You can save commonly used HTML as templates within Lob to more easily manage them. You can reference +
{- "description": "Some Description",
- "html": "<html>HTML for {{name}}</html>"
}
{- "id": "vrsn_534e339882d2282",
- "description": "Second Version",
- "html": "<html>Second HTML for {{name}}</html>",
- "date_created": "2017-11-09T04:49:38.016Z",
- "date_modified": "2017-11-09T04:49:38.016Z",
- "object": "version"
}
You can save commonly used HTML as templates within Lob to more easily manage them. You can reference your saved templates in postcard, letter, and check requests instead of having to pass a long HTML string on each request. Additionally, you can make changes to your HTML templates and update them independently, without having to touch your API integration. Templates can be created, edited, @@ -4780,9 +4919,9 @@
Indicates the total number of records. Provided when the request specifies an "include" query parameter
list of campaigns
curl https://api.lob.com/v1/campaigns \ +
curl https://api.lob.com/v1/campaigns \ -u <YOUR API KEY>: -
{- "data": [
- {
- "id": "cmp_e05ee61ff80764b",
- "billing_group_id": "bg_fe3079dcdd80e5ae",
- "name": "My Campaign",
- "description": "My Campaign's description",
- "schedule_type": "immediate",
- "send_date": null,
- "target_delivery_date": null,
- "cancel_window_campaign_minutes": 60,
- "metadata": { },
- "use_type": "marketing",
- "is_draft": true,
- "deleted": false,
- "creatives": [ ],
- "uploads": [ ],
- "auto_cancel_if_ncoa": false,
- "date_created": "2017-09-05T17:47:53.767Z",
- "date_modified": "2017-09-05T17:47:53.767Z",
- "object": "campaign"
}
], - "object": "list",
- "previous_url": null,
- "next_url": null,
- "count": 1
}
Creates a new campaign with the provided properties. See how to launch your first campaign here.
+{- "data": [
- {
- "id": "cmp_e05ee61ff80764b",
- "billing_group_id": "bg_fe3079dcdd80e5ae",
- "name": "My Campaign",
- "description": "My Campaign's description",
- "schedule_type": "immediate",
- "send_date": null,
- "target_delivery_date": null,
- "cancel_window_campaign_minutes": 60,
- "metadata": { },
- "use_type": "marketing",
- "is_draft": true,
- "deleted": false,
- "creatives": [ ],
- "uploads": [ ],
- "auto_cancel_if_ncoa": false,
- "date_created": "2017-09-05T17:47:53.767Z",
- "date_modified": "2017-09-05T17:47:53.767Z",
- "object": "campaign"
}
], - "object": "list",
- "previous_url": null,
- "next_url": null,
- "count": 1
}
Creates a new campaign with the provided properties. See how to launch your first campaign here.
x-lang-output | string Enum: "native" "match"
Example Create Request using Sen |
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 |
{- "name": "My Demo Campaign",
- "description": "My Campaign's description",
- "schedule_type": "immediate"
}
{- "id": "cmp_e05ee61ff80764b",
- "billing_group_id": "bg_fe3079dcdd80e5ae",
- "name": "My Campaign",
- "description": "My Campaign's description",
- "schedule_type": "immediate",
- "cancel_window_campaign_minutes": 60,
- "metadata": { },
- "use_type": "marketing",
- "is_draft": true,
- "deleted": false,
- "creatives": [ ],
- "uploads": [ ],
- "auto_cancel_if_ncoa": false,
- "date_created": "2017-09-05T17:47:53.767Z",
- "date_modified": "2017-09-05T17:47:53.767Z",
- "object": "campaign"
}
{- "name": "My Demo Campaign",
- "description": "My Campaign's description",
- "schedule_type": "immediate"
}
{- "id": "cmp_e05ee61ff80764b",
- "billing_group_id": "bg_fe3079dcdd80e5ae",
- "name": "My Campaign",
- "description": "My Campaign's description",
- "schedule_type": "immediate",
- "cancel_window_campaign_minutes": 60,
- "metadata": { },
- "use_type": "marketing",
- "is_draft": true,
- "deleted": false,
- "creatives": [ ],
- "uploads": [ ],
- "auto_cancel_if_ncoa": false,
- "date_created": "2017-09-05T17:47:53.767Z",
- "date_modified": "2017-09-05T17:47:53.767Z",
- "object": "campaign"
}
Retrieves the details of an existing campaign. You need only supply the unique campaign identifier that was returned upon campaign creation.
cmp_id required | string (Campaign id) ^cmp_[a-zA-Z0-9]+$ id of the campaign |
date_created required | string <date-time> (date_created) A timestamp in ISO 8601 format of the date the resource was created. @@ -4842,9 +4981,9 @@Example Create Request using Sen |
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 https://api.lob.com/v1/campaigns/cmp_e05ee61ff80764b \ +
curl https://api.lob.com/v1/campaigns/cmp_e05ee61ff80764b \ -u <YOUR API KEY>: -
{- "id": "cmp_e05ee61ff80764b",
- "billing_group_id": "bg_fe3079dcdd80e5ae",
- "name": "My Campaign",
- "description": "My Campaign's description",
- "schedule_type": "immediate",
- "cancel_window_campaign_minutes": 60,
- "metadata": { },
- "use_type": "marketing",
- "is_draft": true,
- "deleted": false,
- "creatives": [ ],
- "uploads": [ ],
- "auto_cancel_if_ncoa": false,
- "date_created": "2017-09-05T17:47:53.767Z",
- "date_modified": "2017-09-05T17:47:53.767Z",
- "object": "campaign"
}
{- "id": "cmp_e05ee61ff80764b",
- "billing_group_id": "bg_fe3079dcdd80e5ae",
- "name": "My Campaign",
- "description": "My Campaign's description",
- "schedule_type": "immediate",
- "cancel_window_campaign_minutes": 60,
- "metadata": { },
- "use_type": "marketing",
- "is_draft": true,
- "deleted": false,
- "creatives": [ ],
- "uploads": [ ],
- "auto_cancel_if_ncoa": false,
- "date_created": "2017-09-05T17:47:53.767Z",
- "date_modified": "2017-09-05T17:47:53.767Z",
- "object": "campaign"
}
Update the details of an existing campaign. You need only supply the unique identifier that was returned upon campaign creation.
cmp_id required | string (Campaign id) ^cmp_[a-zA-Z0-9]+$ id of the campaign |
name | string (Name) |
description | string or null (resource_description) <= 255 characters An internal description that identifies this resource. Must be no longer than 255 characters. |
schedule_type | string (cmp_schedule_type) Value: "immediate" How the campaign should be scheduled. Only value available today is Example Create Request using Sen |
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 |
{- "description": "Test campaign"
}
{- "id": "cmp_e05ee61ff80764b",
- "billing_group_id": "bg_fe3079dcdd80e5ae",
- "name": "My Campaign",
- "description": "My Campaign's description",
- "schedule_type": "immediate",
- "cancel_window_campaign_minutes": 60,
- "metadata": { },
- "use_type": "marketing",
- "is_draft": true,
- "deleted": false,
- "creatives": [ ],
- "uploads": [ ],
- "auto_cancel_if_ncoa": false,
- "date_created": "2017-09-05T17:47:53.767Z",
- "date_modified": "2017-09-05T17:47:53.767Z",
- "object": "campaign"
}
Delete an existing campaign. You need only supply the unique identifier that was returned upon campaign creation. Deleting a campaign also deletes any associated mail pieces that have been created but not sent. A campaign's send_date
matches its associated mail pieces' send_date
s.
{- "description": "Test campaign"
}
{- "id": "cmp_e05ee61ff80764b",
- "billing_group_id": "bg_fe3079dcdd80e5ae",
- "name": "My Campaign",
- "description": "My Campaign's description",
- "schedule_type": "immediate",
- "cancel_window_campaign_minutes": 60,
- "metadata": { },
- "use_type": "marketing",
- "is_draft": true,
- "deleted": false,
- "creatives": [ ],
- "uploads": [ ],
- "auto_cancel_if_ncoa": false,
- "date_created": "2017-09-05T17:47:53.767Z",
- "date_modified": "2017-09-05T17:47:53.767Z",
- "object": "campaign"
}
Delete an existing campaign. You need only supply the unique identifier that was returned upon campaign creation. Deleting a campaign also deletes any associated mail pieces that have been created but not sent. A campaign's send_date
matches its associated mail pieces' send_date
s.
cmp_id required | string (Campaign id) ^cmp_[a-zA-Z0-9]+$ id of the campaign |
id | string (Campaign id) ^cmp_[a-zA-Z0-9]+$ Unique identifier prefixed with |
deleted | boolean True if the resource has been successfully deleted. |
curl -X DELETE https://api.lob.com/v1/campaigns/cmp_e05ee61ff80764b \ +
curl -X DELETE https://api.lob.com/v1/campaigns/cmp_e05ee61ff80764b \ -u <YOUR API KEY>: -
{- "id": "cmp_e05ee61ff80764b",
- "deleted": true
}
{- "id": "cmp_e05ee61ff80764b",
- "deleted": true
}
Sends a campaign. You need only supply the unique campaign identifier that was returned upon campaign creation.
cmp_id required | string (Campaign id) ^cmp_[a-zA-Z0-9]+$ id of the campaign |
date_created required | string <date-time> (date_created) A timestamp in ISO 8601 format of the date the resource was created. @@ -4908,9 +5047,9 @@Example Create Request using Sen |
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 https://api.lob.com/v1/campaigns/cmp_e05ee61ff80764b/send \ +
curl https://api.lob.com/v1/campaigns/cmp_e05ee61ff80764b/send \ -u <YOUR API KEY>: -
{- "id": "cmp_e05ee61ff80764b",
- "billing_group_id": "bg_fe3079dcdd80e5ae",
- "name": "My Campaign",
- "description": "My Campaign's description",
- "schedule_type": "immediate",
- "cancel_window_campaign_minutes": 60,
- "metadata": { },
- "use_type": "marketing",
- "is_draft": true,
- "deleted": false,
- "creatives": [ ],
- "uploads": [ ],
- "auto_cancel_if_ncoa": false,
- "date_created": "2017-09-05T17:47:53.767Z",
- "date_modified": "2017-09-05T17:47:53.767Z",
- "object": "campaign"
}
The creatives endpoint allows you to create and view creatives. Creatives are used to create +
{- "id": "cmp_e05ee61ff80764b",
- "billing_group_id": "bg_fe3079dcdd80e5ae",
- "name": "My Campaign",
- "description": "My Campaign's description",
- "schedule_type": "immediate",
- "cancel_window_campaign_minutes": 60,
- "metadata": { },
- "use_type": "marketing",
- "is_draft": true,
- "deleted": false,
- "creatives": [ ],
- "uploads": [ ],
- "auto_cancel_if_ncoa": false,
- "date_created": "2017-09-05T17:47:53.767Z",
- "date_modified": "2017-09-05T17:47:53.767Z",
- "object": "campaign"
}
The creatives endpoint allows you to create and view creatives. Creatives are used to create reusable letter and postcard templates. The API provides endpoints for creating creatives, updating creatives, retrieving individual creatives, and deleting creatives.
{- "campaign_id": "cmp_e05ee61ff80764b",
- "resource_type": "postcard",
- "description": "Our 4x6 postcard creative",
- "details": { }
}
{- "id": "crv_2a3b096c409b32c",
- "description": "Our 4x6 postcard creative",
- "from": "adr_210a8d4b0b76d77b",
- "resource_type": "postcard",
- "details": { },
- "metadata": { },
- "template_preview_urls": { },
- "template_previews": [ ],
- "campaigns": [ ],
- "date_created": "2017-09-05T17:47:53.767Z",
- "date_modified": "2017-09-05T17:47:53.767Z",
- "object": "creative"
}
{- "campaign_id": "cmp_e05ee61ff80764b",
- "resource_type": "postcard",
- "description": "Our 4x6 postcard creative",
- "details": { }
}
{- "id": "crv_2a3b096c409b32c",
- "description": "Our 4x6 postcard creative",
- "from": "adr_210a8d4b0b76d77b",
- "resource_type": "postcard",
- "details": { },
- "metadata": { },
- "template_preview_urls": { },
- "template_previews": [ ],
- "campaigns": [ ],
- "date_created": "2017-09-05T17:47:53.767Z",
- "date_modified": "2017-09-05T17:47:53.767Z",
- "object": "creative"
}
Retrieves the details of an existing creative. You need only supply the unique creative identifier that was returned upon creative creation.
crv_id required | string (crv_id) ^crv_[a-zA-Z0-9]+$ Example: crv_2a3b096c409b32c id of the creative |
resource_type required | string Value: "postcard" Mailpiece type for the creative @@ -4979,9 +5118,9 @@Example Create Request using Sen |
deleted required | boolean Only returned if the resource has been successfully deleted. |
curl https://api.lob.com/v1/creatives/crv_2a3b096c409b32c \ +
curl https://api.lob.com/v1/creatives/crv_2a3b096c409b32c \ -u <YOUR API KEY>: -
{- "id": "crv_2a3b096c409b32c",
- "description": "Our 4x6 postcard creative",
- "from": "adr_210a8d4b0b76d77b",
- "resource_type": "postcard",
- "details": { },
- "metadata": { },
- "template_preview_urls": { },
- "template_previews": [ ],
- "campaigns": [ ],
- "date_created": "2017-09-05T17:47:53.767Z",
- "date_modified": "2017-09-05T17:47:53.767Z",
- "object": "creative"
}
{- "id": "crv_2a3b096c409b32c",
- "description": "Our 4x6 postcard creative",
- "from": "adr_210a8d4b0b76d77b",
- "resource_type": "postcard",
- "details": { },
- "metadata": { },
- "template_preview_urls": { },
- "template_previews": [ ],
- "campaigns": [ ],
- "date_created": "2017-09-05T17:47:53.767Z",
- "date_modified": "2017-09-05T17:47:53.767Z",
- "object": "creative"
}
Update the details of an existing creative. You need only supply the unique identifier that was returned upon creative creation.
crv_id required | string (crv_id) ^crv_[a-zA-Z0-9]+$ Example: crv_2a3b096c409b32c id of the creative |
adr_id (string) or (address_editable_us (address obj with `name` defined (object) or address obj with `company` defined (object))) (From) Must either be an address ID or an inline object with correct address parameters. All addresses will be standardized into uppercase without being modified by verification. | |
description | string or null (resource_description) <= 255 characters An internal description that identifies this resource. Must be no longer than 255 characters. @@ -5002,7 +5141,7 @@Example Create Request using Sen |
deleted required | boolean Only returned if the resource has been successfully deleted. |
{- "description": "Test creative"
}
{- "id": "crv_2a3b096c409b32c",
- "description": "Our 4x6 postcard creative",
- "from": "adr_210a8d4b0b76d77b",
- "resource_type": "postcard",
- "details": { },
- "metadata": { },
- "template_preview_urls": { },
- "template_previews": [ ],
- "campaigns": [ ],
- "date_created": "2017-09-05T17:47:53.767Z",
- "date_modified": "2017-09-05T17:47:53.767Z",
- "object": "creative"
}
The uploads endpoint allows you to upload audience files that are then associated with a given campaign. +
{- "description": "Test creative"
}
{- "id": "crv_2a3b096c409b32c",
- "description": "Our 4x6 postcard creative",
- "from": "adr_210a8d4b0b76d77b",
- "resource_type": "postcard",
- "details": { },
- "metadata": { },
- "template_preview_urls": { },
- "template_previews": [ ],
- "campaigns": [ ],
- "date_created": "2017-09-05T17:47:53.767Z",
- "date_modified": "2017-09-05T17:47:53.767Z",
- "object": "creative"
}
The uploads endpoint allows you to upload audience files that are then associated with a given campaign. At this time, only CSV files are allowed. The API provides endpoints for creating uploads, uploading audience files, and marking uploaded files as ready for processing. The API also provides endpoints for downloading files that describe the results, both successful and not, of the processing.
@@ -5027,9 +5166,9 @@Url where your campaign mailpiece failures can be retrieved
Filename of the upload
curl https://api.lob.com/v1/uploads \ +
curl https://api.lob.com/v1/uploads \ -u <YOUR API KEY>: -
[- {
- "id": "upl_71be866e430b11e9",
- "accountId": "fa9ea650fc7b31a89f92",
- "campaignId": "cmp_1933ad629bae1408",
- "mode": "test",
- "originalFilename": "my_audience.csv",
- "state": "Draft",
- "totalMailpieces": 100,
- "failedMailpieces": 5,
- "validatedMailpieces": 95,
- "bytesProcessed": 17268,
- "dateCreated": "2017-09-05T17:47:53.767Z",
- "dateModified": "2017-09-05T17:47:53.767Z",
- "requiredAddressColumnMapping": {
- "name": "recipient_name",
- "address_line1": "primary_line",
- "address_city": "city",
- "address_state": "state",
- "address_zip": "zip_code"
}, - "optionalAddressColumnMapping": {
- "address_line2": "secondary_line",
- "company": "company",
- "address_country": "country"
}, - "mergeVariableColumnMapping": {
- "gift_code": "code"
}, - "metadata": {
- "columns": [
- "recipient_name",
- "zip_code"
]
}
}
]
[- {
- "id": "upl_71be866e430b11e9",
- "accountId": "fa9ea650fc7b31a89f92",
- "campaignId": "cmp_1933ad629bae1408",
- "mode": "test",
- "originalFilename": "my_audience.csv",
- "state": "Draft",
- "totalMailpieces": 100,
- "failedMailpieces": 5,
- "validatedMailpieces": 95,
- "bytesProcessed": 17268,
- "dateCreated": "2017-09-05T17:47:53.767Z",
- "dateModified": "2017-09-05T17:47:53.767Z",
- "requiredAddressColumnMapping": {
- "name": "recipient_name",
- "address_line1": "primary_line",
- "address_city": "city",
- "address_state": "state",
- "address_zip": "zip_code"
}, - "optionalAddressColumnMapping": {
- "address_line2": "secondary_line",
- "company": "company",
- "address_country": "country"
}, - "mergeVariableColumnMapping": {
- "gift_code": "code"
}, - "metadata": {
- "columns": [
- "recipient_name",
- "zip_code"
]
}
}
]
Creates a new upload with the provided properties.
campaignId required | string (Campaign id) ^cmp_[a-zA-Z0-9]+$ Unique identifier prefixed with |
object (Required Address Columns) The mapping of column headers in your file to Lob-required fields for the resource created. See our Campaign Audience Guide for additional details. | |
object (Optional Address Columns) The mapping of column headers in your file to Lob-optional fields for the resource created. See our Campaign Audience Guide for additional details. @@ -5055,7 +5194,7 @@Example Create Request using Sen | |
originalFilename | string (Original Filename) Filename of the upload |
{- "campaignId": "cmp_1933ad629bae1408",
- "requiredAddressColumnMapping": {
- "name": "recipient_name",
- "address_line1": "primary_line",
- "address_city": "city",
- "address_state": "state",
- "address_zip": "zip_code"
}, - "optionalAddressColumnMapping": {
- "address_line2": "secondary_line",
- "company": "company",
- "address_country": "country,"
}, - "metadata": {
- "columns": [
- "recipient_name"
]
}, - "mergeVariableColumnMapping": {
- "name": "recipient_name",
- "gift_code": "code",
- "qr_code_redirect_url": "redirect_url"
}
}
{- "id": "upl_71be866e430b11e9",
- "accountId": "fa9ea650fc7b31a89f92",
- "campaignId": "cmp_1933ad629bae1408",
- "mode": "live",
- "originalFilename": "my_audience.csv",
- "state": "Draft",
- "totalMailpieces": 100,
- "failedMailpieces": 5,
- "validatedMailpieces": 95,
- "bytesProcessed": 17628,
- "dateCreated": "2017-09-05T17:47:53.767Z",
- "dateModified": "2017-09-05T17:47:53.767Z",
- "requiredAddressColumnMapping": {
- "name": null,
- "address_line1": null,
- "address_city": null,
- "address_state": null,
- "address_zip": null
}, - "optionalAddressColumnMapping": {
- "address_line2": null,
- "company": null,
- "address_country": null
}, - "mergeVariableColumnMapping": null,
- "metadata": {
- "columns": [ ]
}
}
{- "campaignId": "cmp_1933ad629bae1408",
- "requiredAddressColumnMapping": {
- "name": "recipient_name",
- "address_line1": "primary_line",
- "address_city": "city",
- "address_state": "state",
- "address_zip": "zip_code"
}, - "optionalAddressColumnMapping": {
- "address_line2": "secondary_line",
- "company": "company",
- "address_country": "country,"
}, - "metadata": {
- "columns": [
- "recipient_name"
]
}, - "mergeVariableColumnMapping": {
- "name": "recipient_name",
- "gift_code": "code",
- "qr_code_redirect_url": "redirect_url"
}
}
{- "id": "upl_71be866e430b11e9",
- "accountId": "fa9ea650fc7b31a89f92",
- "campaignId": "cmp_1933ad629bae1408",
- "mode": "live",
- "originalFilename": "my_audience.csv",
- "state": "Draft",
- "totalMailpieces": 100,
- "failedMailpieces": 5,
- "validatedMailpieces": 95,
- "bytesProcessed": 17628,
- "dateCreated": "2017-09-05T17:47:53.767Z",
- "dateModified": "2017-09-05T17:47:53.767Z",
- "requiredAddressColumnMapping": {
- "name": null,
- "address_line1": null,
- "address_city": null,
- "address_state": null,
- "address_zip": null
}, - "optionalAddressColumnMapping": {
- "address_line2": null,
- "company": null,
- "address_country": null
}, - "mergeVariableColumnMapping": null,
- "metadata": {
- "columns": [ ]
}
}
Retrieves the details of an existing upload. You need only supply the unique upload identifier that was returned upon upload creation.
upl_id required | string (upl_id) ^upl_[a-zA-Z0-9]+$ id of the upload |
campaignId required | string (Campaign id) ^cmp_[a-zA-Z0-9]+$ Unique identifier prefixed with Example Create Request using Sen |
curl https://api.lob.com/v1/uploads/upl_71be866e430b11e9 \ +
curl https://api.lob.com/v1/uploads/upl_71be866e430b11e9 \ -u <YOUR API KEY>: \ -
{- "id": "upl_71be866e430b11e9",
- "accountId": "fa9ea650fc7b31a89f92",
- "campaignId": "cmp_1933ad629bae1408",
- "mode": "live",
- "originalFilename": "my_audience.csv",
- "state": "Draft",
- "totalMailpieces": 100,
- "failedMailpieces": 5,
- "validatedMailpieces": 95,
- "bytesProcessed": 17628,
- "dateCreated": "2017-09-05T17:47:53.767Z",
- "dateModified": "2017-09-05T17:47:53.767Z",
- "requiredAddressColumnMapping": {
- "name": null,
- "address_line1": null,
- "address_city": null,
- "address_state": null,
- "address_zip": null
}, - "optionalAddressColumnMapping": {
- "address_line2": null,
- "company": null,
- "address_country": null
}, - "mergeVariableColumnMapping": null,
- "metadata": {
- "columns": [ ]
}
}
{- "id": "upl_71be866e430b11e9",
- "accountId": "fa9ea650fc7b31a89f92",
- "campaignId": "cmp_1933ad629bae1408",
- "mode": "live",
- "originalFilename": "my_audience.csv",
- "state": "Draft",
- "totalMailpieces": 100,
- "failedMailpieces": 5,
- "validatedMailpieces": 95,
- "bytesProcessed": 17628,
- "dateCreated": "2017-09-05T17:47:53.767Z",
- "dateModified": "2017-09-05T17:47:53.767Z",
- "requiredAddressColumnMapping": {
- "name": null,
- "address_line1": null,
- "address_city": null,
- "address_state": null,
- "address_zip": null
}, - "optionalAddressColumnMapping": {
- "address_line2": null,
- "company": null,
- "address_country": null
}, - "mergeVariableColumnMapping": null,
- "metadata": {
- "columns": [ ]
}
}
Update the details of an existing upload. You need only supply the unique identifier that was returned upon upload creation.
upl_id required | string (upl_id) ^upl_[a-zA-Z0-9]+$ id of the upload |
originalFilename | string (Original Filename) Original filename provided when the upload is created. |
object (Required Address Columns) The mapping of column headers in your file to Lob-required fields for the resource created. See our Campaign Audience Guide for additional details. @@ -5108,27 +5247,27 @@Example Create Request using Sen |
{- "originalFilename": "string",
- "requiredAddressColumnMapping": {
- "name": "recipient_name",
- "address_line1": "primary_line",
- "address_city": "city",
- "address_state": "state",
- "address_zip": "zip_code"
}, - "optionalAddressColumnMapping": {
- "address_line2": "secondary_line",
- "company": "company",
- "address_country": "country,"
}, - "metadata": {
- "columns": [
- "recipient_name"
]
}, - "mergeVariableColumnMapping": {
- "name": "recipient_name",
- "gift_code": "code",
- "qr_code_redirect_url": "redirect_url"
}
}
{- "id": "upl_71be866e430b11e9",
- "accountId": "fa9ea650fc7b31a89f92",
- "campaignId": "cmp_1933ad629bae1408",
- "mode": "live",
- "originalFilename": "my_audience.csv",
- "state": "Draft",
- "totalMailpieces": 100,
- "failedMailpieces": 5,
- "validatedMailpieces": 95,
- "bytesProcessed": 17628,
- "dateCreated": "2017-09-05T17:47:53.767Z",
- "dateModified": "2017-09-05T17:47:53.767Z",
- "requiredAddressColumnMapping": {
- "name": null,
- "address_line1": null,
- "address_city": null,
- "address_state": null,
- "address_zip": null
}, - "optionalAddressColumnMapping": {
- "address_line2": null,
- "company": null,
- "address_country": null
}, - "mergeVariableColumnMapping": null,
- "metadata": {
- "columns": [ ]
}
}
{- "originalFilename": "string",
- "requiredAddressColumnMapping": {
- "name": "recipient_name",
- "address_line1": "primary_line",
- "address_city": "city",
- "address_state": "state",
- "address_zip": "zip_code"
}, - "optionalAddressColumnMapping": {
- "address_line2": "secondary_line",
- "company": "company",
- "address_country": "country,"
}, - "metadata": {
- "columns": [
- "recipient_name"
]
}, - "mergeVariableColumnMapping": {
- "name": "recipient_name",
- "gift_code": "code",
- "qr_code_redirect_url": "redirect_url"
}
}
{- "id": "upl_71be866e430b11e9",
- "accountId": "fa9ea650fc7b31a89f92",
- "campaignId": "cmp_1933ad629bae1408",
- "mode": "live",
- "originalFilename": "my_audience.csv",
- "state": "Draft",
- "totalMailpieces": 100,
- "failedMailpieces": 5,
- "validatedMailpieces": 95,
- "bytesProcessed": 17628,
- "dateCreated": "2017-09-05T17:47:53.767Z",
- "dateModified": "2017-09-05T17:47:53.767Z",
- "requiredAddressColumnMapping": {
- "name": null,
- "address_line1": null,
- "address_city": null,
- "address_state": null,
- "address_zip": null
}, - "optionalAddressColumnMapping": {
- "address_line2": null,
- "company": null,
- "address_country": null
}, - "mergeVariableColumnMapping": null,
- "metadata": {
- "columns": [ ]
}
}
Delete an existing upload. You need only supply the unique identifier that was returned upon upload creation.
upl_id required | string (upl_id) ^upl_[a-zA-Z0-9]+$ id of the upload |
curl -X DELETE https://api.lob.com/v1/uploads/upl_71be866e430b11e9 \ +
curl -X DELETE https://api.lob.com/v1/uploads/upl_71be866e430b11e9 \ -u <YOUR API KEY>: -
Upload an audience file and associate it with an upload.
+Upload an audience file and associate it with an upload.
upl_id required | string (upl_id) ^upl_[a-zA-Z0-9]+$ ID of the upload |
file | string <binary> |
curl -X POST https://api.lob.com/v1/uploads/upl_71be866e430b11e9/file \ +
curl -X POST https://api.lob.com/v1/uploads/upl_71be866e430b11e9/file \ -u <YOUR API KEY>: \ -F file=@<YOUR FILE NAME HERE> -
{- "message": "File uploaded successfully",
- "filename": "string"
}
Campaign Exports can help you understand exactly which records in a campaign could not be created. By initiating and retrieving an export, you will get row-by-row errors for your campaign. For a step-by-step walkthrough of creating a campaign and exporting failures, see our Campaigns Guide.
+{- "message": "File uploaded successfully",
- "filename": "string"
}
Campaign Exports can help you understand exactly which records in a campaign could not be created. By initiating and retrieving an export, you will get row-by-row errors for your campaign. For a step-by-step walkthrough of creating a campaign and exporting failures, see our Campaigns Guide.
Create an export file associated with an upload.
upl_id required | string (upl_id) ^upl_[a-zA-Z0-9]+$ ID of the upload |
type | string Enum: "all" "failures" "successes" |
message required | string (Message) Default: "Export is processing" Value: "Export is processing" |
exportId required | string (Export ID) |
{- "type": "all"
}
{- "message": "Export is processing",
- "exportId": "ex_2dafd758ed3da9c43"
}
Retrieves the line item data for each row from the csv file associated with the upload id record. NOTE: This endpoint is currently feature flagged. Please reach out to Lob's support team if you would like access to this API endpoint.
+{- "type": "all"
}
{- "message": "Export is processing",
- "exportId": "ex_2dafd758ed3da9c43"
}
Retrieves the line item data for each row from the csv file associated with the upload id record. NOTE: This endpoint is currently feature flagged. Please reach out to Lob's support team if you would like access to this API endpoint.
upl_id required | string (upl_id) ^upl_[a-zA-Z0-9]+$ ID of the upload |
status | string Enum: "Validated" "Failed" "Processing" The status of line items to filter and retrieve. By default all line items are returned. |
limit | integer [ 1 .. 100 ] Default: 100 Example: limit=10 How many results to return. @@ -5141,9 +5280,9 @@Example Create Request using Sen |
curl https://api.lob.com/v1/uploads/upl_71be866e430b11e9/report \ +
curl https://api.lob.com/v1/uploads/upl_71be866e430b11e9/report \ -u <YOUR API KEY>: -
{- "id": "ex_6a94fe68fd151e0f8",
- "dateCreated": "2021-07-06T22:51:42.838Z",
- "dateModified": "2022-07-06T22:51:42.838Z",
- "deleted": false,
- "s3Url": null,
- "state": "in_progress",
- "type": "failures",
- "uploadId": "upl_71be866e430b11e9"
}
Retrieves the details of an existing export. You need only supply the unique export identifier that was returned upon export creation. If you try retrieving an export immediately after creating one (i.e., before we're done processing the export), you will get back an export object with state = in_progress
.
{- "id": "ex_6a94fe68fd151e0f8",
- "dateCreated": "2021-07-06T22:51:42.838Z",
- "dateModified": "2022-07-06T22:51:42.838Z",
- "deleted": false,
- "s3Url": null,
- "state": "in_progress",
- "type": "failures",
- "uploadId": "upl_71be866e430b11e9"
}
Retrieves the details of an existing export. You need only supply the unique export identifier that was returned upon export creation. If you try retrieving an export immediately after creating one (i.e., before we're done processing the export), you will get back an export object with state = in_progress
.
upl_id required | string (upl_id) ^upl_[a-zA-Z0-9]+$ ID of the upload |
ex_id required | string (ex_id) ^ex_[a-zA-Z0-9]+$ ID of the export |
The export file type, which can be all
, failures
or successes
.
Unique identifier prefixed with upl_
.
curl https://api.lob.com/v1/uploads/upl_71be866e430b11e9/exports/ex_6a94fe68fd151e0f8 \ +
curl https://api.lob.com/v1/uploads/upl_71be866e430b11e9/exports/ex_6a94fe68fd151e0f8 \ -u <YOUR API KEY>: -
{- "id": "ex_6a94fe68fd151e0f8",
- "dateCreated": "2021-07-06T22:51:42.838Z",
- "dateModified": "2022-07-06T22:51:42.838Z",
- "deleted": false,
- "s3Url": null,
- "state": "in_progress",
- "type": "failures",
- "uploadId": "upl_71be866e430b11e9"
}
{- "id": "ex_6a94fe68fd151e0f8",
- "dateCreated": "2021-07-06T22:51:42.838Z",
- "dateModified": "2022-07-06T22:51:42.838Z",
- "deleted": false,
- "s3Url": null,
- "state": "in_progress",
- "type": "failures",
- "uploadId": "upl_71be866e430b11e9"
}
Validate, automatically correct, and standardize the addresses in your
address book based on USPS's Coding Accuracy Support System (CASS).
required | Array of us_verification (object) or error (object) |
errors required | boolean Indicates whether any errors occurred during the verification process. |
{- "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
@@ -6224,7 +6363,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 @@ -6449,7 +6588,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.
@@ -6464,9 +6603,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. @@ -6482,7 +6621,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 @@ -6561,7 +6700,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. @@ -6586,9 +6725,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 @@ -6616,16 +6755,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 @@ -6705,7 +6844,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. @@ -6727,9 +6866,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 @@ -6754,16 +6893,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!
@@ -6818,9 +6957,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.
@@ -6832,9 +6971,9 @@Unique identifier associated with the account the domain is registered for.
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",
- "account_id": "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. @@ -6842,7 +6981,7 @@Certified Tracking Event Details |
account_id | string Unique identifier associated with the account the domain is registered for. |
{- "id": "string",
- "domain": "string",
- "account_id": "string"
}
{- "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. |
id | string Unique identifier for a domain. @@ -6850,20 +6989,20 @@Certified Tracking Event Details |
account_id | string Unique identifier associated with the account the domain is registered for. |
{- "domain": "lob.st"
}
{- "id": "string",
- "domain": "string",
- "account_id": "string"
}
{- "domain": "lob.st"
}
{- "id": "string",
- "domain": "string",
- "account_id": "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",
- "account_id": "string"
}
]
}
{- "data": [
- {
- "id": "string",
- "domain": "string",
- "account_id": "string"
}
]
}
Delete all associated links for a domain
domain_id required | string Unique identifier for a domain. |
Array of objects (domain_response) List of domains. |
{- "data": [
- {
- "id": "string",
- "domain": "string",
- "account_id": "string"
}
]
}
{- "data": [
- {
- "id": "string",
- "domain": "string",
- "account_id": "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. |
include | Array of strings Request that the response include the total count by specifying Certified Tracking Event Details |
Array of objects (link_response) 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",
- "campaign_id": "string",
- "domain_id": "string",
- "resource_id": "string",
- "redirect_link": "string",
- "short_link": "string",
- "metadata_tag": {
- "property1": "string",
- "property2": "string"
}, - "billing_group_id": "string"
}
]
}
{- "count": 0,
- "limit": 0,
- "offset": 0,
- "data": [
- {
- "id": "string",
- "campaign_id": "string",
- "domain_id": "string",
- "resource_id": "string",
- "redirect_link": "string",
- "short_link": "string",
- "metadata_tag": {
- "property1": "string",
- "property2": "string"
}, - "billing_group_id": "string"
}
]
}
Retrievs a single shortened link.
link_id required | string Unique identifier for a link. |
id | string Unique identifier prefixed with Certified Tracking Event Details |
billing_group_id | string (billing_group_id) An optional string with the billing group ID to tag your usage with. Is used for billing purposes. Requires special activation to use. See Billing Group API for more information. |
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",
- "campaign_id": "string",
- "domain_id": "string",
- "resource_id": "string",
- "redirect_link": "string",
- "short_link": "string",
- "metadata_tag": {
- "property1": "string",
- "property2": "string"
}, - "billing_group_id": "string"
}
{- "id": "string",
- "campaign_id": "string",
- "domain_id": "string",
- "resource_id": "string",
- "redirect_link": "string",
- "short_link": "string",
- "metadata_tag": {
- "property1": "string",
- "property2": "string"
}, - "billing_group_id": "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. |
domain | string The registered domain to be used for the short URL. @@ -6914,7 +7053,7 @@Certified Tracking Event Details |
billing_group_id | string (billing_group_id) An optional string with the billing group ID to tag your usage with. Is used for billing purposes. Requires special activation to use. See Billing Group API for more information. |
{- "resource_id": "ltr_133"
}
{- "id": "string",
- "campaign_id": "string",
- "domain_id": "string",
- "resource_id": "string",
- "redirect_link": "string",
- "short_link": "string",
- "metadata_tag": {
- "property1": "string",
- "property2": "string"
}, - "billing_group_id": "string"
}
{- "resource_id": "ltr_133"
}
{- "id": "string",
- "campaign_id": "string",
- "domain_id": "string",
- "resource_id": "string",
- "redirect_link": "string",
- "short_link": "string",
- "metadata_tag": {
- "property1": "string",
- "property2": "string"
}, - "billing_group_id": "string"
}
Delete the shortened link.
link_id required | string Unique identifier for a link. |
id | string Unique identifier prefixed with Certified Tracking Event Details |
billing_group_id | string (billing_group_id) An optional string with the billing group ID to tag your usage with. Is used for billing purposes. Requires special activation to use. See Billing Group API for more information. |
{- "id": "string",
- "campaign_id": "string",
- "domain_id": "string",
- "resource_id": "string",
- "redirect_link": "string",
- "short_link": "string",
- "metadata_tag": {
- "property1": "string",
- "property2": "string"
}, - "billing_group_id": "string"
}
{- "id": "string",
- "campaign_id": "string",
- "domain_id": "string",
- "resource_id": "string",
- "redirect_link": "string",
- "short_link": "string",
- "metadata_tag": {
- "property1": "string",
- "property2": "string"
}, - "billing_group_id": "string"
}
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. |
domain | string The registered domain to be used for the short URL. |
slug | string The unique path for the shortened URL, if empty a unique path will be used. @@ -6944,7 +7083,7 @@Certified Tracking Event Details |
billing_group_id | string (billing_group_id) An optional string with the billing group ID to tag your usage with. Is used for billing purposes. Requires special activation to use. See Billing Group API for more information. |
{- "slug": "a1b2c3"
}
{- "id": "string",
- "campaign_id": "string",
- "domain_id": "string",
- "resource_id": "string",
- "redirect_link": "string",
- "short_link": "string",
- "metadata_tag": {
- "property1": "string",
- "property2": "string"
}, - "billing_group_id": "string"
}
{- "slug": "a1b2c3"
}
{- "id": "string",
- "campaign_id": "string",
- "domain_id": "string",
- "resource_id": "string",
- "redirect_link": "string",
- "short_link": "string",
- "metadata_tag": {
- "property1": "string",
- "property2": "string"
}, - "billing_group_id": "string"
}
Shortens a list of links in a single request.
redirect_link required | string (redirect_link) The original target URL. |
domain | string The registered domain to be used for the short URL. |
slug | string The unique path for the shortened URL, if empty a unique path will be used. @@ -6957,7 +7096,7 @@Certified Tracking Event Details |
Array of objects (link_response) list of links |
{- "links": [
]
}
{- "count": 0,
- "limit": 0,
- "offset": 0,
- "data": [
- {
- "id": "string",
- "campaign_id": "string",
- "domain_id": "string",
- "resource_id": "string",
- "redirect_link": "string",
- "short_link": "string",
- "metadata_tag": {
- "property1": "string",
- "property2": "string"
}, - "billing_group_id": "string"
}
]
}
At Lob, we pride ourselves on building high quality platform capabilities rapidly +
{- "links": [
]
}
{- "count": 0,
- "limit": 0,
- "offset": 0,
- "data": [
- {
- "id": "string",
- "campaign_id": "string",
- "domain_id": "string",
- "resource_id": "string",
- "redirect_link": "string",
- "short_link": "string",
- "metadata_tag": {
- "property1": "string",
- "property2": "string"
}, - "billing_group_id": "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 @@ -7540,7 +7679,7 @@