---
title: "Retrieve product variant printfiles"
method: GET
path: "/mockup-generator/printfiles/{id}"
tags: ["Mockup Generator API"]
---

# Retrieve product variant printfiles

`GET /mockup-generator/printfiles/{id}`

List of printfiles available for products variants. Printfile indicates what file resolution should be used to create a mockup or submit an order.

<div class="alert alert-info">
This endpoint uses DTG as a default printing technique for products
with more than one technique available. For products with DTG and more
techniques available please specify the correct technique in query by using
the `technique` parameter. For more information read the <a href="#tag/Examples/Mockup-Generator-API-examples">examples</a>.
</div>

## Path parameters

- `id` integer, required

## Query parameters

- `orientation` 'horizontal' | 'vertical' — Optional orientation for wall art product printfiles. Allowed values: horizontal, vertical
- `technique` string — Optional technique for product. This can be used in cases where product supports multiple techniques like DTG and embroidery

## Headers

- `X-PF-Store-Id` string

## Response `200`

OK

- object
  - `code` integer — Response status code `200`
  - `result` PrintfileInfo — Printfile info
    - `product_id` integer — Requested product id.
    - `available_placements` object — List of available placements. Key is placement identifier, value is display name. (e.g. {embroidery_front: Front, ..}).
    - `printfiles` Printfile[]
      - `printfile_id` integer — Unique printfile identifier.
      - `width` integer — Width in pixels.
      - `height` integer — Height in pixels.
      - `dpi` integer — Resulting DPI for given width and height.
      - `fill_mode` 'cover' | 'fit' — Indicates if printfile will be used in cover or fit mode. Cover mode can produce cropping if side ratio does not match printfile.
      - `can_rotate` boolean — Indicates if printfile can be rotated horizontally (e.g. for posters).
    - `variant_printfiles` VariantPrintfile[]
      - `variant_id` integer
      - `placements` object — A key-value object mapping placement identifiers to printfile IDs.
    - `option_groups` string[]
    - `options` string[]

## Other responses

- `401` — Unauthorized
- `404` — Not found

---

[API](https://skmtc.net/printful/apis/api-documentation-printful.md) · [All operations](https://skmtc.net/printful/apis/api-documentation-printful/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/printful/api-documentation-printful/revisions/18e2f2e178dd/schema)
