Bulk codes from a sheet
About this tool
How to use it
- Choose this tool.
- Add your list file with Upload or drag and drop. The first row must hold the column names.
- Choose the column to use and the type of code.
- Press Generate.
- Download the ZIP file.
What you get back
Try Bulk codes from a sheet in the Studio
Use it from your code
cURL
curl -X POST "https://app.h2i.davixlabs.io/v1/images/codes-bulk" \
-H "X-Api-Key: $DAVIX_H2I_API_KEY" \
-F 'data_file=@photo.jpg' \
-F 'column=sku' \
-F 'name_column=product' \
-F 'prefix=label-'Node.js
const { DavixH2I } = require('@davixlabs/h2i-sdk');
const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.images.codesBulk({
"data_file": 'photo.jpg',
"column": "sku",
"name_column": "product",
"prefix": "label-"
});
console.log(result.data, result.requestId);PHP
<?php
require 'vendor/autoload.php';
$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->images()->codesBulk([
'data_file' => 'photo.jpg',
'column' => 'sku',
'name_column' => 'product',
'prefix' => 'label-',
]);
echo $result->requestId;