Hard Cardboards | Boxes With Hinged Lid | becf-3020a
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-3020a) via the API, please make a
GET request to https://api.diecuttemplates.com/dieline-templates/in/becf-3020a


Code Examples



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


Response

application/json
{
  "dieline_template": {
    "type": "dieline_template",
    "id": "becf-3020a",
    "group": {
      "type": "dieline_template_group",
      "id": "hard_cardboards_boxes_with_hinged_lid",
      "name": "Boxes With Hinged Lid",
      "category": "Hard Cardboards"
    },
    "tags": [],
    "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_68982_a20250213-2-g56s1u.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_68982_b20250213-2-h5r1ui.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_68982_c20250213-2-lkhxbe.svg"
        },
        "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": "direction",
        "description": "direction",
        "data_type": "boolean",
        "required": false,
        "default_value": {
          "value": false
        },
        "allowed_values": [
          true,
          false,
          0,
          1
        ],
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "bottom_inside_flap",
        "description": "bottom inside flap",
        "data_type": "length",
        "required": false,
        "image": {
          "type": "svg",
          "url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_68982_e20250213-2-2bl7ua.svg"
        },
        "default_value": {
          "value": 0.788,
          "unit": "in"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "inside_side_margin",
        "description": "inside side margin",
        "data_type": "length",
        "required": false,
        "image": {
          "type": "svg",
          "url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_68982_x120250213-2-4rikus.svg"
        },
        "default_value": {
          "value": 0.1575,
          "unit": "in"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "bottom_side_flap",
        "description": "bottom side flap",
        "data_type": "length",
        "required": false,
        "image": {
          "type": "svg",
          "url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_68982_y120250213-2-3wadlk.svg"
        },
        "default_value": {
          "value": 0.788,
          "unit": "in"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "number_of_cover_pieces",
        "description": "number of cover pieces",
        "data_type": "integer",
        "required": false,
        "image": {
          "type": "svg",
          "url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_68982_f20250213-2-uk6nxm.svg"
        },
        "default_value": {
          "value": 3
        },
        "allowed_values": [
          2,
          3
        ],
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "cover_protrusion",
        "description": "cover protrusion",
        "data_type": "length",
        "required": false,
        "image": {
          "type": "svg",
          "url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_68982_x320250213-2-jbej69.svg"
        },
        "default_value": {
          "value": 0.2,
          "unit": "in"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "cover_corner_angle",
        "description": "cover corner angle",
        "data_type": "angle",
        "required": false,
        "image": {
          "type": "svg",
          "url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_68982_h20250213-2-pdsp3m.svg"
        },
        "default_value": {
          "value": 20
        },
        "allowed_values": [
          20.0,
          25.0,
          30.0,
          35.0,
          40.0,
          45.0
        ],
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "cover_side_flap_1",
        "description": "cover side flap",
        "data_type": "length",
        "required": false,
        "image": {
          "type": "svg",
          "url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_68982_x220250213-2-6qzw12.svg"
        },
        "default_value": {
          "value": 0.788,
          "unit": "in"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "cover_side_flap_2",
        "description": "cover side flap",
        "data_type": "length",
        "required": false,
        "image": {
          "type": "svg",
          "url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_68982_y220250213-2-4jnmjr.svg"
        },
        "default_value": {
          "value": 0.788,
          "unit": "in"
        },
        "childen": []
      }
    ],
    "links": [
      {
        "rel": "self",
        "href": "/dieline_templates/in/becf-3020a",
        "method": "GET"
      },
      {
        "rel": "web",
        "href": "https://www.diecuttemplates.com/dielines/68982/boxes-with-hinged-lid-becf-3020a",
        "method": "GET"
      }
    ],
    "images": [
      {
        "type": "svg",
        "url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_6898220250213-2-r001kn.svg"
      }
    ]
  }
} 


Read Dielines API documentation