LettrLabs Public API Documentation.
LettrLabs Public API Documentation (1.0.0)
- Mock serverhttps://docs.lettrlabs.com/_mock/lettrlabs_api_reference/v1/order
- https://app.lettrlabs.com/api/v1/order
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.lettrlabs.com/_mock/lettrlabs_api_reference/v1/order \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: YOUR_API_KEY_HERE' \
-d '{
"templateId": 0
}'{ "profile": { "id": 0, "aadId": "1cbad290-069a-4527-be23-a0c144b5302d", "email": "string", "firstName": "string", "lastName": "string", "company": "string", "created": "2019-08-24T14:15:22Z", "shouldProcessQrCodes": true }, "payload": { "orderId": 0, "status": "string" }, "errors": [ "string" ], "hasErrors": true, "warnings": [ "string" ], "hasWarnings": true, "metadata": { "property1": {}, "property2": {} } }
- Mock serverhttps://docs.lettrlabs.com/_mock/lettrlabs_api_reference/v1/order
- https://app.lettrlabs.com/api/v1/order
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.lettrlabs.com/_mock/lettrlabs_api_reference/v1/order?OrderIds=0&OrderStatus=string&Paid=true&ProductType=string&PostageType=string&ShowRecipients=true&Skip=0&Take=0' \
-H 'X-API-KEY: YOUR_API_KEY_HERE'- Mock serverhttps://docs.lettrlabs.com/_mock/lettrlabs_api_reference/v1/order/{id}
- https://app.lettrlabs.com/api/v1/order/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://docs.lettrlabs.com/_mock/lettrlabs_api_reference/v1/order/{id}?Id=0' \
-H 'X-API-KEY: YOUR_API_KEY_HERE'{ "profile": { "id": 0, "aadId": "1cbad290-069a-4527-be23-a0c144b5302d", "email": "string", "firstName": "string", "lastName": "string", "company": "string", "created": "2019-08-24T14:15:22Z", "shouldProcessQrCodes": true }, "payload": { "orderId": 0, "status": "string" }, "errors": [ "string" ], "hasErrors": true, "warnings": [ "string" ], "hasWarnings": true, "metadata": { "property1": {}, "property2": {} } }
- Mock serverhttps://docs.lettrlabs.com/_mock/lettrlabs_api_reference/v1/order/{id}/proof/{recipient?}
- https://app.lettrlabs.com/api/v1/order/{id}/proof/{recipient?}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.lettrlabs.com/_mock/lettrlabs_api_reference/v1/order/{id}/proof/{recipient?}=&Id=0&Recipient=0' \
-H 'X-API-KEY: YOUR_API_KEY_HERE'- Mock serverhttps://docs.lettrlabs.com/_mock/lettrlabs_api_reference/v1/order/{id}/analytics
- https://app.lettrlabs.com/api/v1/order/{id}/analytics
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.lettrlabs.com/_mock/lettrlabs_api_reference/v1/order/{id}/analytics?Id=0' \
-H 'X-API-KEY: YOUR_API_KEY_HERE'{ "profile": { "id": 0, "aadId": "1cbad290-069a-4527-be23-a0c144b5302d", "email": "string", "firstName": "string", "lastName": "string", "company": "string", "created": "2019-08-24T14:15:22Z", "shouldProcessQrCodes": true }, "payload": { "qrCode": { … }, "orderId": 0, "status": "string" }, "errors": [ "string" ], "hasErrors": true, "warnings": [ "string" ], "hasWarnings": true, "metadata": { "property1": {}, "property2": {} } }
- Mock serverhttps://docs.lettrlabs.com/_mock/lettrlabs_api_reference/v1/order/{id}/transaction
- https://app.lettrlabs.com/api/v1/order/{id}/transaction
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.lettrlabs.com/_mock/lettrlabs_api_reference/v1/order/{id}/transaction?Id=0' \
-H 'X-API-KEY: YOUR_API_KEY_HERE'{ "profile": { "id": 0, "aadId": "1cbad290-069a-4527-be23-a0c144b5302d", "email": "string", "firstName": "string", "lastName": "string", "company": "string", "created": "2019-08-24T14:15:22Z", "shouldProcessQrCodes": true }, "payload": { "volume": 0, "totalPrice": 0.1, "costPerPiece": 0.1, "detail": { … }, "discount": { … }, "orderId": 0, "status": "string" }, "errors": [ "string" ], "hasErrors": true, "warnings": [ "string" ], "hasWarnings": true, "metadata": { "property1": {}, "property2": {} } }
- Mock serverhttps://docs.lettrlabs.com/_mock/lettrlabs_api_reference/v1/order/{id}/checkout
- https://app.lettrlabs.com/api/v1/order/{id}/checkout
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.lettrlabs.com/_mock/lettrlabs_api_reference/v1/order/{id}/checkout?Id=0&PostageType=string&ProductionSpeed=string&HoldUntilDate=2019-08-24T14%3A15%3A22Z' \
-H 'X-API-KEY: YOUR_API_KEY_HERE'{ "profile": { "id": 0, "aadId": "1cbad290-069a-4527-be23-a0c144b5302d", "email": "string", "firstName": "string", "lastName": "string", "company": "string", "created": "2019-08-24T14:15:22Z", "shouldProcessQrCodes": true }, "payload": { "lineItems": [ … ], "credits": [ … ], "totalCharges": 0.1, "totalTax": 0.1, "totalCredits": 0.1, "balance": 0.1, "productionSpeeds": { … }, "productionSpeedPrices": { … }, "postageTypePrices": { … }, "estimatedDeliveryDateMin": "2019-08-24T14:15:22Z", "estimatedDeliveryDateMax": "2019-08-24T14:15:22Z", "orderId": 0, "status": "string" }, "errors": [ "string" ], "hasErrors": true, "warnings": [ "string" ], "hasWarnings": true, "metadata": { "property1": {}, "property2": {} } }
The body of the checkout request including postage type, production speed, and hold until date.
The speed of production for the order. Available values: Normal, ExpeditedFaster, ExpeditedFastest.
The date to hold order production until. This date must be further in the future than the normal estimated production completion date.
- Mock serverhttps://docs.lettrlabs.com/_mock/lettrlabs_api_reference/v1/order/{id}/checkout
- https://app.lettrlabs.com/api/v1/order/{id}/checkout
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://docs.lettrlabs.com/_mock/lettrlabs_api_reference/v1/order/{id}/checkout?Id=0' \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: YOUR_API_KEY_HERE' \
-d '{
"postageType": "string",
"productionSpeed": "string",
"holdUntilDate": "2019-08-24T14:15:22Z",
"autoBill": true
}'{ "profile": { "id": 0, "aadId": "1cbad290-069a-4527-be23-a0c144b5302d", "email": "string", "firstName": "string", "lastName": "string", "company": "string", "created": "2019-08-24T14:15:22Z", "shouldProcessQrCodes": true }, "payload": { "orderId": 0, "status": "string" }, "errors": [ "string" ], "hasErrors": true, "warnings": [ "string" ], "hasWarnings": true, "metadata": { "property1": {}, "property2": {} } }
- Mock serverhttps://docs.lettrlabs.com/_mock/lettrlabs_api_reference/v1/order/{id}/recipients
- https://app.lettrlabs.com/api/v1/order/{id}/recipients
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.lettrlabs.com/_mock/lettrlabs_api_reference/v1/order/{id}/recipients?Id=0&Query=string&Skip=0&Take=0' \
-H 'X-API-KEY: YOUR_API_KEY_HERE'- Mock serverhttps://docs.lettrlabs.com/_mock/lettrlabs_api_reference/v1/order/{id}/recipients
- https://app.lettrlabs.com/api/v1/order/{id}/recipients
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://docs.lettrlabs.com/_mock/lettrlabs_api_reference/v1/order/{id}/recipients' \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: YOUR_API_KEY_HERE' \
-d '{
"recipientsIds": [
0
]
}'{ "payload": { "orderId": 0, "status": "string" }, "errors": [ "string" ], "warnings": [ "string" ], "hasErrors": true, "hasWarnings": true }
Request
Add recipients to a specified order in draft or edits needed status. Recipients will run through address validation, and the response will return how many are valid. Any recipients that have incomplete addresses will not be added to the order. Define mail-merge, image-merge, return address override, and other metadata at the recipient level.
List of Recipients to add to order.
Array of recipient Ids to add to order.
Recipient Mailing Address. Where the piece will be mailed to.
Recipient Personal Information
- Mock serverhttps://docs.lettrlabs.com/_mock/lettrlabs_api_reference/v1/order/{id}/recipients:append
- https://app.lettrlabs.com/api/v1/order/{id}/recipients:append
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://docs.lettrlabs.com/_mock/lettrlabs_api_reference/v1/order/{id}/recipients:append?Id=0' \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: YOUR_API_KEY_HERE' \
-d '{
"recipients": [
{
"id": 0,
"address": {
"address1": "string",
"address2": "string",
"city": "string",
"state": "string",
"zipCode": "string",
"zip4": "string",
"zip2": "string",
"country": "string"
},
"personal": {
"firstName": "string",
"lastName": "string",
"toOrganization": "string",
"salutation": "string"
},
"metadata": {
"dpvConfirmationCode": "string",
"custom1": "string",
"custom2": "string",
"custom3": "string",
"custom4": "string",
"custom5": "string",
"custom6": "string",
"image1": "string",
"image2": "string",
"image3": "string",
"image4": "string",
"image5": "string",
"image6": "string",
"salutation": "string",
"returnTitle": "string",
"returnFirstName": "string",
"returnLastName": "string",
"returnOrganization": "string",
"returnAddress1": "string",
"returnAddress2": "string",
"returnCity": "string",
"returnZip": "string",
"returnState": "string",
"email": "string",
"qrUrl": "string",
"text": "string",
"text2": "string",
"radiusPinStreet": "string",
"radiusPinAddress": "string",
"fullAddress": "string"
}
}
]
}'{ "profile": { "id": 0, "aadId": "1cbad290-069a-4527-be23-a0c144b5302d", "email": "string", "firstName": "string", "lastName": "string", "company": "string", "created": "2019-08-24T14:15:22Z", "shouldProcessQrCodes": true }, "payload": { "totalRecipients": 0, "deliverable": { … }, "undeliverable": { … }, "orderId": 0, "status": "string" }, "errors": [ "string" ], "hasErrors": true, "warnings": [ "string" ], "hasWarnings": true, "metadata": { "property1": {}, "property2": {} } }