Skip to main content
POST
Preview a mailing PDF

Authorizations

Authorization
string
header
required

Passport bearer token authentication for legacy admin sessions.

Path Parameters

id
integer
required

Id in the current organization.

Body

application/json

Validated request fields for this operation.

source_type
enum<string>
required

Source type. Validation: required; allowed values: donor_rows, donor_filter, sponsorship_rows, all_sponsorships, tax_summary.

Available options:
donor_rows,
donor_filter,
sponsorship_rows,
all_sponsorships,
tax_summary
Example:

"donor_rows"

selection
object
required

Source-specific audience options. Additional donor/relationship worksheet filter keys are forwarded unchanged; ids are resolved inside the current organization.

artifact_kind
enum<string>
required

Artifact kind. Validation: required; allowed values: letter, label, label_sheet.

Available options:
letter,
label,
label_sheet
Example:

"letter"

delivery_mode
enum<string> | null

Defaults none; non-none is permitted only for the system tax_summary renderer.

Available options:
none,
email_admin,
email_selected_donors,
email_explicit,
null
Example:

"none"

label_layout_preset
enum<string> | null

Label layout preset. Validation: nullable; allowed values: single_label, a4_sheet, a3_sheet, letter_85x11_1_up, letter_4x2_10_up, letter_2625x1_30_up, letter_3x2_10_up.

Available options:
single_label,
a4_sheet,
a3_sheet,
letter_85x11_1_up,
letter_4x2_10_up,
letter_2625x1_30_up,
letter_3x2_10_up,
null
Example:

"single_label"

labels_per_sheet
enum<integer> | null

Labels per sheet. Validation: nullable, integer; allowed values: 2, 4, 6, 8, 10, 12, 14, 16.

Available options:
2,
4,
6,
8,
10,
12,
14,
16,
null
Example:

2

border_labels
boolean | null

Border labels. Validation: nullable, boolean.

Example:

true

Response

Inline PDF preview.

The response is of type file.