Corrugated Cardboards | Special Boxes | becf-21e28
3D Mockup

This documentation page is intended for developers looking to integrate the Dielines API into their systems. If you have any questions, please get in touch.

Die Cut Templates provides a hosted API available via HTTPS.

Dielines API allows for generating custom dielines in PDF, DXF, and SVG formats, along with 3D mockups.

To fetch the dieline template (becf-21e28) via the API, please make a
GET request to https://api.diecuttemplates.com/dieline-templates/in/becf-21e28


Code Examples



curl -i -X GET \
https://api.diecuttemplates.com/dieline-templates/in/becf-21e28 \
  -H 'Authorization: Bearer <YOUR_DIELINES_API_KEY_HERE>' \
  -H 'Dielines-Api-Version: 1.0'


require 'uri'
require 'net/http'
require 'openssl'

url = URI('https://api.diecuttemplates.com/dieline-templates/in/becf-21e28')

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request['Dielines-Api-Version'] = '1.0'
request['Authorization'] = 'Bearer <YOUR_DIELINES_API_KEY_HERE>'

response = http.request(request)
puts response.read_body


$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_HTTPHEADER => [
    "Authorization: Bearer  <YOUR_DIELINES_API_KEY_HERE>",
    "Dielines-Api-Version: 1.0"
  ],
  CURLOPT_URL => "https://api.diecuttemplates.com/dieline-templates/in/becf-21e28",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$error = curl_error($curl);

curl_close($curl);

if ($error) {
  echo "cURL Error #:" . $error;
} else {
  echo $response;
}

Response

application/json
{
  "dieline_template": {
    "type": "dieline_template",
    "id": "becf-21e28",
    "group": {
      "type": "dieline_template_group",
      "id": "corrugated_cardboards_special_boxes",
      "name": "Special Boxes",
      "category": "Corrugated Cardboards"
    },
    "style": "no_postal_lock",
    "tags": [],
    "variables": [
      {
        "type": "dieline_template_variable",
        "name": "dimension_type",
        "description": "",
        "data_type": "string",
        "required": false,
        "allowed_values": [
          "external",
          "internal"
        ],
        "default_value": {
          "value": "external"
        }
      },
      {
        "type": "dieline_template_variable",
        "name": "length",
        "description": "length ",
        "data_type": "length",
        "required": true,
        "image": {
          "type": "svg",
          "url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_69128_a20250213-2-dq6w1x.svg"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "width",
        "description": "width",
        "data_type": "length",
        "required": true,
        "image": {
          "type": "svg",
          "url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_69128_b20250213-2-pxp93f.svg"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "height",
        "description": "height",
        "data_type": "length",
        "required": true,
        "image": {
          "type": "svg",
          "url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_69128_c20250213-2-sibreq.svg"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "direction",
        "description": "direction",
        "data_type": "boolean",
        "required": false,
        "default_value": {
          "value": false
        },
        "allowed_values": [
          true,
          false,
          0,
          1
        ],
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "cross",
        "description": "cross",
        "data_type": "boolean",
        "required": false,
        "default_value": {
          "value": false
        },
        "allowed_values": [
          true,
          false,
          0,
          1
        ],
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "hand_holding_margin",
        "description": "hand holding margin",
        "data_type": "length",
        "required": false,
        "image": {
          "type": "svg",
          "url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_69128_f20250213-2-ank92l.svg"
        },
        "default_value": {
          "value": 1.18,
          "unit": "in"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "hand_holding_length",
        "description": "hand holding length",
        "data_type": "length",
        "required": false,
        "image": {
          "type": "svg",
          "url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_69128_x20250213-2-eews0q.svg"
        },
        "default_value": {
          "value": 3.543,
          "unit": "in"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "hand_holding_width",
        "description": "hand holding width",
        "data_type": "length",
        "required": false,
        "image": {
          "type": "svg",
          "url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_69128_y20250213-2-fo0p5c.svg"
        },
        "default_value": {
          "value": 0.985,
          "unit": "in"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "hand_holding_area",
        "description": "hand holding area",
        "data_type": "length",
        "required": false,
        "image": {
          "type": "svg",
          "url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_69128_y120250213-2-5dxb7o.svg"
        },
        "default_value": {
          "value": 2.756,
          "unit": "in"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "lock_area",
        "description": "lock area",
        "data_type": "length",
        "required": false,
        "image": {
          "type": "svg",
          "url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_69128_z20250213-2-eu0f98.svg"
        },
        "default_value": {
          "value": 1.378,
          "unit": "in"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "lock_width",
        "description": "lock width",
        "data_type": "length",
        "required": false,
        "image": {
          "type": "svg",
          "url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_69128_r120250213-2-xvvddr.svg"
        },
        "default_value": {
          "value": 0.689,
          "unit": "in"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "glue_flap",
        "description": "glue flap",
        "data_type": "length",
        "required": false,
        "image": {
          "type": "svg",
          "url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_69128__kulak20250213-2-bencmo.svg"
        },
        "default_value": {
          "value": 1.2,
          "unit": "in"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "bottom_tuck_flap",
        "description": "bottom tuck flap",
        "data_type": "length",
        "required": false,
        "image": {
          "type": "svg",
          "url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_69128__dip20250213-2-ic4o4c.svg"
        },
        "default_value": {
          "value": 1.0,
          "unit": "in"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "printing_method",
        "description": "Offset (material is squeezed) or Flexo (material is not squeezed)",
        "data_type": "string",
        "required": false,
        "allowed_values": [
          "offset",
          "flexo"
        ],
        "default_value": {
          "value": "offset"
        }
      }
    ],
    "links": [
      {
        "rel": "self",
        "href": "/dieline_templates/in/becf-21e28",
        "method": "GET"
      },
      {
        "rel": "web",
        "href": "https://www.diecuttemplates.com/dielines/69128/special-boxes-becf-21e28",
        "method": "GET"
      },
      {
        "rel": "change_style",
        "name": "postal_lock",
        "href": "/dieline_templates/in/becf-21e20",
        "method": "GET"
      }
    ],
    "images": [
      {
        "type": "svg",
        "url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_6912820250213-2-8avfj4.svg"
      }
    ]
  }
} 


Read Dielines API documentation