REST API

PDF designs

PDF ticket designs, applied to generated ticket PDFs.

A PDF design defines the visual design applied when generating ticket PDFs. Designs are reusable across events and ticket types. Each company has one company-default PDF design; individual events or ticket types may override it.

The PDF design object

Every field is default: it is returned unless ?fields= names a subset. A PDF design has no include relations.

Field Type Description
id default integer The PDF design ID.
created_at default datetime When the design was created.
updated_at default datetime When the design last changed.
name default string / null The design name.
type default string box, custom, design or pass_design. See Design types.
label_color default string Hex color of field labels on box and custom designs, such as #000000.
text_color default string Hex color of field values on box and custom designs, such as #444444.
barcode_format default string qr or code128. A box design draws that barcode. A custom design draws one large QR code for qr, and a Code 128 barcode beside a small QR code for code128.
date_format default integer How the event date is printed. See Date and venue formats.
venue_format default integer How the venue is printed. See Date and venue formats.
content default string / null Short text printed under the barcode on box designs. Apple Wallet passes for tickets using this design show it on the back of the pass.
fields default array The ticket details a box or custom design prints. See Visible fields.
image default object / null The design’s artwork as { original, thumb } URLs: the banner of a box design, the background of the other types. null when there is none. thumb is left out when the file can’t be resized, such as an SVG.
sample default object / null A sample ticket PDF rendered from the design, as { original, preview }: original is the PDF, preview an image of it. null until the sample has been rendered, which happens shortly after each create and update.
thumb_url default string / null A small image of the design for pickers: the sample if there is one, otherwise the artwork. null when the design has neither.
blocks default array The design’s blocks, in drawing order. Empty for box and custom designs. See Design blocks.
background_fit default string / null page (the background fills the page) or margin_box (it sits inside an 18pt margin). null for box and custom designs.
archived default boolean true when the design has been archived. See Archive PDF design.
default default boolean true when this is the company-default PDF design. See Defaults and usage.
default_impact default object / null { inherit_events_count }: how many active events use the company default because they have no design of their own. null unless default is true.
usage default object { events: [{ id, name }] }: the active events whose own settings choose this design. Events that get it through a ticket type aren’t listed.
pass_default default boolean true when this is the company-default design for passes.
pass_definitions_count default integer How many pass definitions use this design.

Sample PDF design

{
  "id": 31082,
  "created_at": "2026-09-02T14:05:09.881343Z",
  "updated_at": "2026-09-02T14:05:10.082548Z",
  "name": "General admission",
  "label_color": "#000000",
  "text_color": "#444444",
  "barcode_format": "qr",
  "date_format": 0,
  "content": null,
  "venue_format": 0,
  "type": "design",
  "fields": [
    "venue",
    "attendee",
    "starts_at",
    "event"
  ],
  "sample": {
    "original": "https://app.guestmanager.com/rails/active_storage/blobs/redirect/eyJfcmFpbHMi...--77e50bd6/sample.pdf",
    "preview": "https://app.guestmanager.com/rails/active_storage/representations/redirect/eyJfcmFpbHMi...--257f9245/sample.pdf"
  },
  "image": {
    "original": "https://app.guestmanager.com/rails/active_storage/blobs/redirect/eyJfcmFpbHMi...--0ddea7f0/background.jpg",
    "thumb": "https://app.guestmanager.com/rails/active_storage/representations/redirect/eyJfcmFpbHMi...--11d845b7/background.jpg"
  },
  "blocks": [
    {
      "type": "text",
      "field": "{{ ticket.name }}",
      "x": 20,
      "y": 350,
      "font_size": 16,
      "font_color": "#000000",
      "font_style": "normal",
      "align": "left",
      "overflow": null,
      "width": null,
      "height": null,
      "scale": "2.0",
      "minimum_font_size": null,
      "quiet_zone": null
    },
    {
      "type": "barcode",
      "field": "qr",
      "x": 90,
      "y": 120,
      "font_size": 10,
      "font_color": "#000000",
      "font_style": "normal",
      "align": null,
      "overflow": null,
      "width": null,
      "height": null,
      "scale": "2.0",
      "minimum_font_size": null,
      "quiet_zone": 4
    }
  ],
  "background_fit": "page",
  "archived": false,
  "default": false,
  "default_impact": null,
  "thumb_url": "https://app.guestmanager.com/rails/active_storage/representations/redirect/eyJfcmFpbHMi...--ee24b97f/sample.pdf",
  "usage": {
    "events": []
  },
  "pass_default": false,
  "pass_definitions_count": 0
}

Design types

Type What it is
box A ticket laid out in boxes, with an optional banner image. fields picks the details it prints.
custom Ticket details printed over a full-page background image. A custom design needs its background: creating one without image returns 422.
design A free-form layout built from blocks, with an optional background.
pass_design A design used for passes.

Changing a design’s type on update removes what only the old type used: a box design’s banner, a custom design’s background, a design’s blocks.

Visible fields

fields lists the ticket details a box or custom design prints, in this order: venue, attendee, email, price, order_number, starts_at, event, ticket_type, tax, product_name, expiration, barcode. barcode applies to box designs only: a custom design always draws its barcode. Designs and pass designs place details with blocks instead and ignore fields.

Sending pdf_design[fields] replaces the whole list: a detail you leave out is hidden.

Date and venue formats

date_format Prints
0 Date and time
1 Date only
2 Time only
3 Date and time, with the end time
4 Time only, with the end time
venue_format Prints
0 Venue name
1 Venue name and full address
2 Venue name and address line 1
3 Venue name, address line 1 and postal code

Design blocks

A design or pass_design returns its blocks in blocks, in drawing order. Box and custom designs return an empty array.

Field Type Description
type string text, image, barcode or answer_list.
field string What the block draws. A text block’s Liquid template, such as {{ ticket.name }}. A barcode block’s format: qr or code128. An image block’s source: list, event or company_logo. An answer_list block doesn’t read it: on a pass design it lists the pass’s question answers as Label: value rows, and it needs width and height.
x integer Horizontal position, in points.
y integer Vertical position, in points.
font_size integer Font size, in points.
font_color string Hex color, such as #000000.
font_style string normal, bold, italic or bold_italic.
align string / null left, center or right.
overflow string / null What a text block does when its text doesn’t fit: shrink_to_fit, truncate or expand.
width integer / null Block width, in points.
height integer / null Block height, in points.
scale decimal A barcode block’s size multiplier.
minimum_font_size integer / null The smallest size a shrink_to_fit block shrinks to. At most font_size, or the request returns 422.
quiet_zone integer / null A barcode block’s blank margin, in modules, from 0 to 20. null keeps the standard 5pt margin.

Defaults and usage

default is true for the one PDF design the company uses for every event that doesn’t choose its own, and pass_default for the one it uses for passes. usage lists the active events whose own settings choose this design. default_impact counts the active events that fall back to the default. A recurring event counts once in both.

To see every event with its own PDF design, use List overrides.

List PDF designs

GET /pdf_designs

Returns a page of PDF design objects under data. Active designs only, unless filter[archived]=true.

curl -X GET \
  'https://app.guestmanager.com/api/public/v2/pdf_designs?page[cursor]=&page[size]=50&sort[name]=asc' \
  -H 'Authorization: Token abcdefg' \
  -H 'Content-Type: application/json'

List parameters

Parameter Type Description
page[cursor] string Opaque cursor token. Send empty for first page. See Pagination.
page[size] integer Records per page. Default 10, maximum 100.
sort[{field}] string Sort by id, created_at, updated_at, name. Value is asc or desc.
fields string Comma separated list of fields to return.
filter[id] string Comma separated PDF design IDs.
filter[search] string Search PDF designs by name (case-insensitive substring match).
filter[type] string box, custom, design or pass_design. Any other value returns 400.
filter[archived] boolean true lists archived PDF designs instead of active ones. Defaults to active only.
filter[created_at][from] date Designs created on or after this date.
filter[created_at][to] date Designs created on or before this date. A date with no time covers that whole day.

Get PDF design

GET /pdf_designs/{id}

Returns a PDF design object.

curl -X GET \
  https://app.guestmanager.com/api/public/v2/pdf_designs/31082 \
  -H 'Authorization: Token abcdefg' \
  -H 'Content-Type: application/json'

Create PDF design

POST /pdf_designs

Creates a PDF design. Returns 201 with the PDF design object.

curl -X POST \
  https://app.guestmanager.com/api/public/v2/pdf_designs \
  -H 'Authorization: Token abcdefg' \
  -H 'Content-Type: application/json' \
  -d '{
    "pdf_design": {
      "name": "General admission",
      "type": "design",
      "ticket_template_fields_attributes": [
        { "type": "text", "field": "{{ ticket.name }}", "x": 20, "y": 350, "font_size": 16 },
        { "type": "barcode", "field": "qr", "x": 90, "y": 120, "scale": 2 }
      ]
    }
  }'

Create parameters

Parameter Type Description
pdf_design[type] string Required. box, custom, design or pass_design. See Design types.
pdf_design[name] string The design name.
pdf_design[image] string The artwork, as a direct upload signed_id: a box design’s banner (JPEG), or the background of the other types (JPEG or SVG). Up to 1 MB. Required for custom.
pdf_design[remove_image] boolean true removes the artwork. A custom design can’t drop its background: the request returns 422.
pdf_design[fields] array The details a box or custom design prints. See Visible fields.
pdf_design[label_color] string Hex color, such as #000000. A value that isn’t a 6-digit hex color is saved as #000000.
pdf_design[text_color] string Hex color, such as #444444. A value that isn’t a 6-digit hex color is saved as #444444.
pdf_design[barcode_format] string qr or code128.
pdf_design[date_format] integer See Date and venue formats.
pdf_design[venue_format] integer See Date and venue formats.
pdf_design[content] string Text printed under the barcode on box designs.
pdf_design[background_fit] string page or margin_box. Designs and pass designs only. Any other value returns 422.
pdf_design[ticket_template_fields_attributes] array Design blocks, for design and pass_design. Each takes the fields in Design blocks.

A create with no type, or a type that isn’t one of the four values, returns 400 with an invalid parameter error naming type, and nothing is saved.

A design block’s type is one of text, image, barcode or answer_list, the same names reads return in blocks. The longer names TicketTemplateField::Text, TicketTemplateField::Image, TicketTemplateField::Barcode and TicketTemplateField::AnswerList are also accepted. If a block has any other type, or a new block has no type, create and update return 422 with a validation error on the ticket_template_fields attribute and nothing is saved.

Update PDF design

PATCH /pdf_designs/{id}

Updates a PDF design. Returns the PDF design object.

curl -X PATCH \
  https://app.guestmanager.com/api/public/v2/pdf_designs/31082 \
  -H 'Authorization: Token abcdefg' \
  -H 'Content-Type: application/json' \
  -d '{ "pdf_design": { "name": "VIP", "background_fit": "margin_box" } }'

Update parameters

The same parameters as create, none of them required. Pass only the fields you want to change.

Sending pdf_design[ticket_template_fields_attributes] replaces every block on the design with the ones you send, so send the full list. Leave it out to keep the blocks as they are. If any block is invalid, nothing is saved and the old blocks stay.

Changing type removes what only the old type used. See Design types.

Duplicate PDF design

POST /pdf_designs/{id}/duplicate

Creates a copy of the PDF design named <name> (Copy) and returns it with 201 Created. Design blocks, box sections and images are copied too. The copy is active even when the original is archived, and it isn’t assigned to any event, ticket type or default.

Delete PDF design

DELETE /pdf_designs/{id}

Permanently deletes the PDF design. Returns 204 No Content. Deleting is allowed even while the design is in use: every event, ticket type and pass definition that used it is left without it, and if it was the company default or the pass default, the company is left without that default. To take a design out of use safely, archive it instead.

Archive PDF design

PATCH /pdf_designs/{id}/archive

Archives the PDF design and returns it. Archived designs are excluded from GET /pdf_designs by default; pass filter[archived]=true to list them.

The request returns 422 with errors.blockers, and changes nothing, when any of these hold:

Blocker Meaning
is_default The design is the company default or the pass default.
shared_ticket_type A ticket type that active events use has this design.
in_use_by_definitions A pass definition uses this design.
no_default Active events use this design and the company has no default to reset them to.

Otherwise active events using it are reset to the company default and past events are left unchanged. Use Archive preview to check first.

Restore PDF design

PATCH /pdf_designs/{id}/restore

Restores a previously archived PDF design and returns it. Does not re-attach events that were reset to the default during archive.

Archive preview PDF design

GET /pdf_designs/{id}/archive_preview

Returns whether the PDF design can be archived and what archiving would change, without changing anything: { archivable, blockers, active_events: [{ id, name }], active_events_count, past_events_count }. blockers uses the values in Archive PDF design.

List overrides

GET /pdf_designs/overrides

Lists the active events whose own settings choose a PDF design, even when it’s the company default: { data: [{ event: { id, name }, design: { id, name, type, created_at, updated_at } }] }. A recurring event is listed once. The list isn’t paginated.