Kartonlar | Sargı etiketler | becf-12501

Bu dokümantasyon sayfası, Dielines API'i sistemlerine entegre etmek isteyen yazılım geliştiriciler için tasarlanmıştır. Herhangi bir sorunuz varsa lütfen iletişime geçin.

Die Cut Templates, HTTPS üzerinden erişilebilen barındırılan bir API sağlar.

Dielines API, 3D mockup'ların yanı sıra PDF, DXF ve SVG formatlarında özel dieline'lar oluşturmanıza olanak tanır.

API dokümantasyon sayfası Ingilizcedir.

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


Code Examples



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

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-12501",
  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-12501",
    "group": {
      "type": "dieline_template_group",
      "id": "cartons_wrap_around_labels",
      "name": "Wrap Around Labels",
      "category": "Cartons"
    },
    "tags": [],
    "variables": [
      {
        "type": "dieline_template_variable",
        "name": "top_diameter",
        "description": "üst çap",
        "data_type": "length",
        "required": true,
        "image": {
          "type": "svg",
          "url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_51516_a20250213-2-h32a9r.svg"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "bottom_diameter",
        "description": "alt çap",
        "data_type": "length",
        "required": true,
        "image": {
          "type": "svg",
          "url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_51516_b20250213-2-nd4s8l.svg"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "height",
        "description": "yükseklik",
        "data_type": "length",
        "required": true,
        "image": {
          "type": "svg",
          "url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_51516_c20250213-2-myxiuk.svg"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "direction",
        "description": "yön",
        "data_type": "boolean",
        "required": false,
        "default_value": {
          "value": false
        },
        "allowed_values": [
          true,
          false,
          0,
          1
        ],
        "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-12501",
        "method": "GET"
      },
      {
        "rel": "web",
        "href": "https://www.diecuttemplates.com/dielines/51516/sargi-etiketler-becf-12501",
        "method": "GET"
      }
    ],
    "images": [
      {
        "type": "svg",
        "url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_5151620250213-2-o90104.svg"
      }
    ]
  }
} 


Read Dielines API documentation