Renders a PDF using a template, placeholder values, optional uploaded files, and optional JSON data. Multipart parts (order not strict): 1. documentID (text, required), 2. placeholders (JSON; may be {}), 3. zero or more file parts named file.<fieldName> (PNG images), 4. zero or more data parts named data.<fieldName> (JSON objects for HTML templates only).
Template types: - PDF templates: Support placeholders and file.* parts only. Reject data.* parts. - HTML templates: Support placeholders, file.* parts, and data.* parts.
The entire request body must not exceed 10 MiB.
Identifier of the template to render.
"mailParkingNotice"
JSON object mapping placeholder names to string values. May be empty ({}).
{
"url": "https://portal.arb.inc",
"inviteCode": "ABC-123-XYZ",
"qrCodeBase64": "iVBORw0KGgoAAAANSUhEUgAA..."
}
Dynamic JSON data parts (HTML templates only): zero or more parts named data.<fieldName> (e.g. data.content, data.ticket). Each part contains JSON-encoded data (objects, arrays, primitives). PDF templates will reject data.* parts.
{
"content": {
"ticketNumber": "ABC123",
"licensePlate": "XYZ9999",
"state": "XX",
"lotName": "Test Parking Lot",
"lotStreet": "123 Example Street",
"lotCity": "Sample City",
"lotState": "XX",
"lotZip": "12345",
"entryPlateImageUrl": "https://example.com/images/plate1.jpg",
"entryVehicleImageUrl": "https://example.com/images/vehicle1.jpg",
"exitPlateImageUrl": "https://example.com/images/plate2.jpg",
"exitVehicleImageUrl": "https://example.com/images/vehicle2.jpg",
"totalAmount": "99.99"
}
}
Dynamic file parts: zero or more parts named file.<fieldName> (e.g. file.qrCode, file.attachment). For PDF templates: must match template field names. For HTML templates: available as {fieldName}Base64 in template.
PDF successfully rendered.
The response is of type file.