Postcards API
The Oppizi Postcards API allows you to send physical postcards to your customers. The API integrates with ClickSend and H-Pod services to handle the printing and delivery of postcards.
Note: Currently, this service is only available for addresses within the European Union.
Send postcard
Send a physical postcard to one or more recipients.
Endpoint
POST https://developer-api.oppizi.com/postcards
Parameters
fileUrls
required
Array of URLs to PDF files containing the postcard design. Currently supports one URL.
recipients
required
Array of recipient objects containing the following fields:
addressName
required - Full name of the recipientaddressLine1
required - First line of the addressaddressLine2
optional - Second line of the addressaddressCity
required - CityaddressState
required - State/ProvinceaddressPostalCode
required - Postal/ZIP codeaddressCountry
required - Two-letter country code (e.g., 'GB' for United Kingdom)
Note: Currently only EU addresses are supported.
Request body
{
"fileUrls": ["https://example.com/postcard.pdf"],
"recipients": [
{
"addressName": "John Smith",
"addressLine1": "42 Oxford Street",
"addressLine2": "Flat 3B",
"addressCity": "London",
"addressState": "Greater London",
"addressPostalCode": "W1D 2DZ",
"addressCountry": "GB"
}
]
}
Response
{
"success": true,
"data": {
"JobGuid": "job-guid",
"submissionId": "submission-id",
"status": "status",
"estimatedCompletionDate": "date"
}
}
Example
fetch('https://developer-api.oppizi.com/postcards', {
method: 'POST',
headers: new Headers({
'Content-Type': 'application/json',
Authorization: 'Bearer YOUR_SECRET_KEY',
}),
body: JSON.stringify({
fileUrls: ['https://example.com/postcard.pdf'],
recipients: [
{
addressName: 'John Smith',
addressLine1: '42 Oxford Street',
addressLine2: 'Flat 3B',
addressCity: 'London',
addressState: 'Greater London',
addressPostalCode: 'W1D 2DZ',
addressCountry: 'GB'
}
]
}),
});
Error Response
{
"success": false,
"error": "Failed to create postcard"
}
Last updated on May 28, 2025