Type Alias MockupTemplates

MockupTemplates: {
    background_color: number | null;
    background_url: string | null;
    catalog_variant_ids: number[];
    image_url: string;
    orientation: orientation;
    placement: string;
    print_area_height: number;
    print_area_left: number;
    print_area_top: number;
    print_area_width: number;
    role?: MockupTemplates.role;
    technique: string;
    template_height: number;
    template_positioning: template_positioning;
    template_type?: template_type | null;
    template_width: number;
}

Data containing information about the available mockup templates which can be used for user-side positioning. For example for intention of generating mockups without the use of Printful's mockup generator.

Type declaration

  • background_color: number | null

    HEX color code that should be used as a background color of image_url.

  • background_url: string | null

    Background image URL (optional). Used for certain mockups e.g. a wall behind hanged poster. If it's defined it is intended to be layered under the image defined in image_url.

  • catalog_variant_ids: number[]

    A list of variant IDs for which the positions apply.

  • image_url: string

    Semi-transparent main template image URL.

  • orientation: orientation

    Wall art product orientation. Possible values: horizontal, vertical, any

  • placement: string

    Catalog product placement that is used for the design.

  • print_area_height: number

    Print area height (image is positioned in this area).

  • print_area_left: number

    Print area left offset (offset in template).

  • print_area_top: number

    Print area top offset (offset in template).

  • print_area_width: number

    Print area width (image is positioned in this area).

  • Optionalrole?: MockupTemplates.role

    Mockup template role.

  • technique: string

    Catalog product technique that is used for the design.

  • template_height: number

    Height of the whole template in pixels.

  • template_positioning: template_positioning

    Should the main template image (image_url) be used as an overlay or as a background.

  • Optionaltemplate_type?: template_type | null

    Type of inside label used, "native" refers to labels that have preset information, "custom" are fully customizable and require the user to supply country of manufacturing origin, original garment size, and material information. "advanced" is for products like for products like AOP Tote. "color_group" for the new inside labels where there are multiple designs for the overlay.

  • template_width: number

    Width of the whole template in pixels.