Cartons | Tuck End Boxes | becf-10315
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-10315) via the API, please make a
GET request to https://api.diecuttemplates.com/dieline-templates/in/becf-10315


Code Examples



curl -i -X GET \
https://api.diecuttemplates.com/dieline-templates/in/becf-10315 \
  -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-10315')

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-10315",
  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-10315",
    "group": {
      "type": "dieline_template_group",
      "id": "cartons_tuck_end_boxes",
      "name": "Tuck End Boxes",
      "category": "Cartons"
    },
    "flap": {
      "type": "flap",
      "id": "uni_tuck_flap",
      "image": "https://d2atdwxjx7uc4i.cloudfront.net/images/tags/flap_4.png"
    },
    "tuck": {
      "type": "tuck",
      "id": "sit_lock_tuck",
      "image": "https://d2atdwxjx7uc4i.cloudfront.net/images/tags/tuck_4.png"
    },
    "dust_flap": {
      "type": "dust_flap",
      "id": "slit_lock_dust_flap",
      "image": "https://d2atdwxjx7uc4i.cloudfront.net/images/tags/dust_flap_4.png"
    },
    "tags": [
      "hanger_tab",
      "bottom_postal_lock"
    ],
    "variables": [
      {
        "type": "dieline_template_variable",
        "name": "length",
        "description": "length",
        "data_type": "length",
        "required": true,
        "image": {
          "type": "svg",
          "url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_39861_a20250213-2-5ue988.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_39861_b20250213-2-8i5794.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_39861_c20250213-2-mwekci.svg"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "overflow",
        "description": "overflow",
        "data_type": "boolean",
        "required": false,
        "default_value": {
          "value": false
        },
        "allowed_values": [
          true,
          false,
          0,
          1
        ],
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "overflow_margin",
        "description": "overflow margin",
        "data_type": "length",
        "required": false,
        "image": {
          "type": "svg",
          "url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_39861_p20250213-2-i0l2ug.svg"
        },
        "default_value": {
          "value": 0.0,
          "unit": "in"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "glue_margin",
        "description": "glue margin",
        "data_type": "boolean",
        "required": false,
        "default_value": {
          "value": false
        },
        "allowed_values": [
          true,
          false,
          0,
          1
        ],
        "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": "hanger_tab_heigt",
        "description": "hanger tab heigt",
        "data_type": "length",
        "required": false,
        "image": {
          "type": "svg",
          "url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_39861_f20250213-2-vn218l.svg"
        },
        "default_value": {
          "value": 1.2,
          "unit": "in"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "hanger_tab_window",
        "description": "hanger tab window",
        "data_type": "length",
        "required": false,
        "image": {
          "type": "svg",
          "url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_39861_g20250213-2-r23421.svg"
        },
        "default_value": {
          "value": 2.0,
          "unit": "in"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "hanger_tab_diameter",
        "description": "hanger tab diameter",
        "data_type": "length",
        "required": false,
        "image": {
          "type": "svg",
          "url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_39861_i20250213-2-ikgo9p.svg"
        },
        "default_value": {
          "value": 0.4,
          "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_39861__kulak20250213-2-nxq8aa.svg"
        },
        "default_value": {
          "value": 0.5,
          "unit": "in"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "top_tuck_flap",
        "description": "top tuck flap",
        "data_type": "length",
        "required": false,
        "image": {
          "type": "svg",
          "url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_39861__dil20250213-2-n5p63y.svg"
        },
        "default_value": {
          "value": 0.6,
          "unit": "in"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "dust_flap",
        "description": "dust flap",
        "data_type": "length",
        "required": false,
        "image": {
          "type": "svg",
          "url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_39861__flap20250213-2-n8qoar.svg"
        },
        "default_value": {
          "value": 1.2795,
          "unit": "in"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "postal_lock_length",
        "description": "postal lock length",
        "data_type": "length",
        "required": false,
        "image": {
          "type": "svg",
          "url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_39861_d20250213-2-s6fvnn.svg"
        },
        "default_value": {
          "value": 1.33,
          "unit": "in"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "postal_lock_width",
        "description": "postal lock width",
        "data_type": "length",
        "required": false,
        "image": {
          "type": "svg",
          "url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_39861_e20250213-2-9ejdld.svg"
        },
        "default_value": {
          "value": 1.0,
          "unit": "in"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "dimension_texts",
        "description": "",
        "data_type": "boolean",
        "required": false,
        "allowed_values": [
          true,
          false
        ],
        "default_value": {
          "value": true
        }
      }
    ],
    "links": [
      {
        "rel": "self",
        "href": "/dieline_templates/in/becf-10315",
        "method": "GET"
      },
      {
        "rel": "web",
        "href": "https://www.diecuttemplates.com/dielines/39861/tuck-end-boxes-becf-10315",
        "method": "GET"
      },
      {
        "rel": "remove_hanger_tab",
        "href": "/dieline_templates/in/becf-1031c",
        "method": "GET"
      },
      {
        "rel": "remove_bottom_postal_lock",
        "href": "/dieline_templates/in/becf-1030d",
        "method": "GET"
      },
      {
        "rel": "change_flap",
        "name": "friction_fit_tuck_in_flap",
        "href": "/dieline_templates/in/becf-10317",
        "method": "GET"
      },
      {
        "rel": "change_dust_flap",
        "name": "full_angled_dust_flap",
        "href": "/dieline_templates/in/becf-10316",
        "method": "GET"
      }
    ],
    "images": [
      {
        "type": "svg",
        "url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_3986120250213-2-gv1yj5.svg"
      }
    ]
  }
} 


Read Dielines API documentation