This guide walks you through how to create and submit a print order via the LettrLabs API.
- A valid LettrLabs API key (pass via the
Authorizationheader). - A design template ID available from within your account.
- Any custom merge fields or variable images used in your template should be known up front.
Endpoint:POST /v1/order
Description:
Create a new order using an existing template.
Request Body:
{
"templateId": 12345
}Response:
{
"orderId": 67890,
"status": "Draft"
}Endpoint:PUT /v1/order/{id}/recipients:append
Notes:
- You can send up to 1000 recipients per request.
- Each recipient will have their address validated.
- You can include:
- Custom mail merge fields (e.g.,
{{FirstName}}) - Variable images (
image1βimage6) using publicly accessible URLs - Custom QR code URLs with the
qrUrlfield
- Custom mail merge fields (e.g.,
Example Request:
{
"recipients": [
{
"firstName": "Jane",
"lastName": "Doe",
"address1": "123 Main St",
"city": "Austin",
"state": "TX",
"zip": "78701",
"customField1": "Welcome!",
"image1": "https://yourdomain.com/image1.jpg",
"qrUrl": "https://example.com/custom-qr"
}
]
}Response (summary):
{
"totalRecipients": 1000,
"deliverable": {
"addressValidated": 980,
"addressInvalidated": 20
}
}Endpoint:GET /v1/order/{id}/checkout
Use this to:
- See line item costs
- Review production speed and postage options
- Estimate delivery windows
Optional Query Params:
PostageType:StandardorFirstClassProductionSpeed:Normal,ExpeditedFaster,ExpeditedFastestHoldUntilDate: future date in ISO 8601 format
Endpoint:POST /v1/order/{id}/checkout
Description:
Locks the order and submits it to production. All recipients and designs are now final. You will be charged.
Request Body Example:
{
"postageType": "Standard",
"productionSpeed": "Normal",
"holdUntilDate": "2025-06-15T00:00:00Z"
}Note: This call cannot be undone. Be sure your design and recipient list are correct.
Endpoint:GET /v1/order/{id}/proof
- Returns a PDF proof for each recipient.
- You may preview merge results before checkout.
- You are not required to call this endpointβby checking out, you confirm the design is ready for print.
- π Use mail-merge fields consistently. Ensure recipients include values for any merge tags in your design.
- πΌοΈ For variable images, use HTTPS URLs for fields
image1throughimage6. - π Customize the QR code for each recipient using the
qrUrlfield. - π Avoid resubmitting after
POST /checkoutβthe order is locked and production starts immediately.