Skip to content

Simple Mockup-Tasks

Here you will find a list of example calls to create the usual mockup task. You can find a detailed explanation here.

Getting all mockups of all product variants using only the productId

json
{
  "format": "jpeg",
  "requestedProducts": [
    {
      "catalogProductId": "e2c2e18c-9626-4463-acfa-d5d5610f6c3a",
      "placements": [
        {
          "layers": [
            {
              "url": "https://d3r2wt7l0tcdny.cloudfront.net/products/mug_heart/print_source.jpg",
              "type": "file"
            }
          ],
          "technique": "direct_print",
          "type": "main"
        }
      ]
    }
  ]
}

Getting the mockups of certain variants of a product by specifying the variant IDs

json
{
  "format": "jpeg",
  "requestedProducts": [
    {
      "catalogVariantIds": ["590f1af7-75f6-46c8-bab3-60b109a66371"],
      "placements": [
        {
          "layers": [
            {
              "url": "https://d3r2wt7l0tcdny.cloudfront.net/products/mug_heart/print_source.jpg",
              "type": "file"
            }
          ],
          "technique": "direct_print",
          "type": "main"
        }
      ]
    }
  ]
}