Constructors

Properties

httpRequest: BaseHttpRequest

Methods

  • Retrieve a list of catalog categories Returns list of all categories that are present in the catalog. The categories specify the type of the product that is associated with it. For example, the category "Men’s T-shirts" indicates that the product is a subgroup of T-shirts specifically targeted at Men. Categories can be used to filter the product list by specific tags See categories_ids

    Returns CancelablePromise<any>

    any OK

    ApiError

  • Retrieve a list of catalog product categories To retrieve information about a particular products categories, use this feature. It returns details about the catalog categories associated with the catalog product. Categories help identify the type of product associated with them. For instance, the category "Men's T-shirts" denotes that the product is a subgroup of T-shirts intended for men.

    Parameters

    • id: number

      Product ID.

    Returns CancelablePromise<any>

    any OK

    ApiError

  • Retrieve information about specific category Returns information about a specific catalog category. The categories specify the type of the product that is associated with it. For example, the category "Men’s T-shirts" indicates that the product is a subgroup of T-shirts specifically targeted at Men. Categories can be used to filter the product list by specific tags See categories_ids

    Parameters

    • id: number

      Category ID

    Returns CancelablePromise<any>

    any OK

    ApiError

  • Retrieve catalog product mockup templates Returns positional data for specified catalog product mockups. The data from this endpoint could be used to generate your own mockups without the need to use Printful's mockup generator. Mockup template

    Parameters

    • id: number

      Product ID.

    • Optionalplacements: string[]

      One or more identifiers of a placement to return only products with variants that have that placement. The complete list of placements can be found here.

    • sellingRegionName:
          | "worldwide"
          | "north_america"
          | "canada"
          | "europe"
          | "spain"
          | "latvia"
          | "uk"
          | "france"
          | "australia"
          | "japan"
          | "new_zealand"
          | "italy"
          | "brazil"
          | "southeast_asia"
          | "republic_of_korea"
          | "english_speaking_regions" = 'worldwide'

      Only returns the products that can be sold in the specified region.

    • limit: number = 20

      The number of results to return per page.

    • Optionaloffset: number

      The number of results to not include in the response starting from the beginning of the list.

      This can be used to return results after the initial 100. For example, sending offset 100

    Returns CancelablePromise<any>

    any OK

    ApiError

  • Retrieve a single catalog product Returns information about a single specified catalog product. See catalog product

    Parameters

    • id: number

      Product ID.

    • sellingRegionName:
          | "worldwide"
          | "north_america"
          | "canada"
          | "europe"
          | "spain"
          | "latvia"
          | "uk"
          | "france"
          | "australia"
          | "japan"
          | "new_zealand"
          | "italy"
          | "brazil"
          | "southeast_asia"
          | "republic_of_korea"
          | "english_speaking_regions" = 'worldwide'

      Only returns the products that can be sold in the specified region.

    Returns CancelablePromise<any>

    any OK

    ApiError

  • Retrieve blank images for a catalog product This feature helps to fetch blank images for a catalog product. These blank images are always white and semi-transparent and can be colored by the user on the client-side as per the specified color in the data.color field. The endpoint allows filtering of the result based on the type of the mockup, the placement, and the color of the product.

    Parameters

    • id: number

      Product ID.

    • OptionalmockupStyleIds: number

      Used to specify style of images For example:

    • Optionalcolors: string

      String values separated by comma. You can specify multiple variant colors filters.

    • Optionalplacement: string

      Filters result by specified placement

    Returns CancelablePromise<any>

    any OK

    ApiError

  • Retrieve catalog product prices Calculates prices for specific catalog product based on selling region and specified currency. Calculations also include Store discounts. Selling region is used to specify product production currency, that is the price that the product is natively manufactured in. Different selling regions might affect the overall price amount. Currency parameter is used only to define the currency that the prices will be displayed in.

    Parameters

    • id: number

      Product ID.

    • OptionalsellingRegionName: string

      Specifies the region production currency that the product prices will be calculated in

    • Optionalcurrency: string

      The currency (3-letter code) used to determine currency in which the prices will be displayed. The store currency will be used by default. The format is compliant with ISO 4217 standard.

    Returns CancelablePromise<any>

    any OK

    ApiError

  • Retrieve size guide for a catalog product Returns information about the size guide for a specific product.

    Parameters

    • id: number

      Product ID.

    • Optionalunit: string

      A comma-separated list of measurement unit in which size tables are to be returned (inches or cm). The default value is determined based on the locale country. The inches are used for United States, Liberia and Myanmar, for other countries the unit defaults to centimeters.

    Returns CancelablePromise<any>

    any OK

    ApiError

  • Retrieve catalog product stock availability Provides information about the catalog product stock status. Stock availability is grouped by variants → techniques → selling regions.

    Parameters

    • id: number

      Product ID.

    • Optionaltechniques: TechniqueEnum[]

      One or more techniques to return only products with variants that can be printed using one of the techniques.

    • sellingRegionName:
          | "worldwide"
          | "north_america"
          | "canada"
          | "europe"
          | "spain"
          | "latvia"
          | "uk"
          | "france"
          | "australia"
          | "japan"
          | "new_zealand"
          | "italy"
          | "brazil"
          | "southeast_asia"
          | "republic_of_korea"
          | "english_speaking_regions" = 'worldwide'

      Only returns the products that can be sold in the specified region.

    • limit: number = 20

      The number of results to return per page.

    • Optionaloffset: number

      The number of results to not include in the response starting from the beginning of the list.

      This can be used to return results after the initial 100. For example, sending offset 100

    Returns CancelablePromise<any>

    any OK

    ApiError

  • Retrieve a list of catalog products This endpoint retrieves a list of the products available in Printful's catalog. The list is paginated and can be filtered using various filters. The information returned includes details on how each product can be designed, such as the available placements, techniques, and additional options. For a visual representation of the design data, please see the following diagram:

    Parameters

    • OptionalcategoryIds: number[]

      One or more category IDs to return only products in those categories. The IDs can be found in the response of the operation Get Categories.

    • Optionalcolors: string[]

      One or more color names to return only products with variants of one the those colors.

    • limit: number = 20

      The number of results to return per page.

    • _new: boolean = false

      If true only new Products will be returned.

    • Optionaloffset: number

      The number of results to not include in the response starting from the beginning of the list.

      This can be used to return results after the initial 100. For example, sending offset 100

    • Optionalplacements: string[]

      One or more identifiers of a placement to return only products with variants that have that placement. The complete list of placements can be found here.

    • sellingRegionName:
          | "worldwide"
          | "north_america"
          | "canada"
          | "europe"
          | "spain"
          | "latvia"
          | "uk"
          | "france"
          | "australia"
          | "japan"
          | "new_zealand"
          | "italy"
          | "brazil"
          | "southeast_asia"
          | "republic_of_korea"
          | "english_speaking_regions" = 'worldwide'

      Only returns the products that can be sold in the specified region.

    • sortDirection: "ascending" | "descending" = 'descending'

      This parameter only is used if sort_type is also present and it changes the order of the returned products. The exact meaning varies depending on the value of sort_type:

      • sort_type=new
      • ascending sorts from newest to oldest.
      • descending sorts from oldest to newest.
      • sort_type=rating
      • ascending from lowest to highest rated.
      • descending from highest to lowest rated.
      • sort_type=price
      • ascending from lowest to highest price.
      • descending from highest to lowest price.
    • OptionalsortType: "new" | "rating" | "price"

      The sorting strategy to use when sorting the result. When it's not present, no specific order is guaranteed.

    • Optionaltechniques: TechniqueEnum[]

      One or more techniques to return only products with variants that can be printed using one of the techniques.

    Returns CancelablePromise<any>

    any OK

    ApiError

  • Retrieve blank images for a catalog variant Returns images for a specified Variant.

    Parameters

    • id: number

      Variant ID

    • OptionalmockupStyleIds: number

      Used to specify style of images For example:

    • Optionalplacement: string

      Filters result by specified placement

    Returns CancelablePromise<any>

    any OK

    ApiError

  • Retrieve pricing information for the catalog variant Return pricing information from a single variant and the parent product

    Parameters

    • id: number

      Variant ID

    • OptionalsellingRegionName: string

      Specifies the region production currency that the product prices will be calculated in

    • Optionalcurrency: string

      The currency (3-letter code) used to determine currency in which the prices will be displayed. The store currency will be used by default. The format is compliant with ISO 4217 standard.

    Returns CancelablePromise<any>

    any OK

    ApiError

  • Retrieve catalog variant stock availability Provides information about the catalog variant stock status. Stock availability is grouped by variants → techniques → selling regions.

    Parameters

    • id: number

      Variant ID

    • Optionaltechniques: TechniqueEnum[]

      One or more techniques to return only products with variants that can be printed using one of the techniques.

    • sellingRegionName:
          | "worldwide"
          | "north_america"
          | "canada"
          | "europe"
          | "spain"
          | "latvia"
          | "uk"
          | "france"
          | "australia"
          | "japan"
          | "new_zealand"
          | "italy"
          | "brazil"
          | "southeast_asia"
          | "republic_of_korea"
          | "english_speaking_regions" = 'worldwide'

      Only returns the products that can be sold in the specified region.

    Returns CancelablePromise<any>

    any OK

    ApiError

  • Retrieve catalog product mockup styles Returns information about available mockup styles for specified catalog product.

    Parameters

    • id: number

      Product ID.

    • Optionalplacements: string[]

      One or more placement idenitifiers used to filter in mockup styles that match a given placement. The complete list of placements can be found here.

    • sellingRegionName:
          | "worldwide"
          | "north_america"
          | "canada"
          | "europe"
          | "spain"
          | "latvia"
          | "uk"
          | "france"
          | "australia"
          | "japan"
          | "new_zealand"
          | "italy"
          | "brazil"
          | "southeast_asia"
          | "republic_of_korea"
          | "english_speaking_regions" = 'worldwide'

      Only returns the products that can be sold in the specified region.

    • Optionaloffset: number

      Result set offset

    • Optionallimit: number

      Number of items per page (max 100)

    Returns CancelablePromise<any>

    any OK

    ApiError