Barcodes

GET https://9qrcode.com/api/barcodes/
curl --request GET \
--url 'https://9qrcode.com/api/barcodes/' \
--header 'Authorization: Bearer {api_key}' \
Parameter Rincian Deskripsi
page Opsional Bilangan bulat Nomor halaman yang Anda inginkan hasilnya dari. Defaultnya adalah 1.
results_per_page Opsional Bilangan bulat How many results you want per page. Allowed values are: 10 , 25 , 50 , 100 , 250 , 500 , 1000. Defaults to 25.
{ "data": [ { "id": 1, "type": "C32", "name": "Example name", "value": "123456", "barcode": "https://9qrcode.com/uploads/barcode/example.svg", "settings": { "foreground_color": "#000000", "width_scale": 2, "height": 50, }, "embedded_data": "123456", "last_datetime": null, "datetime": "2025-04-04 12:19:54" }, ], "meta": { "page": 1, "results_per_page": 25, "total": 1, "total_pages": 1 }, "links": { "first": "https://9qrcode.com/api/barcodes?&page=1", "last": "https://9qrcode.com/api/barcodes?&page=1", "next": null, "prev": null, "self": "https://9qrcode.com/api/barcodes?&page=1" } }
GET https://9qrcode.com/api/barcodes/{barcode_id}
curl --request GET \
--url 'https://9qrcode.com/api/barcodes/{barcode_id}' \
--header 'Authorization: Bearer {api_key}' \
{ "data": { "id": 1, "type": "C32", "name": "Example name", "value": "123456", "barcode": "https://9qrcode.com/uploads/barcode/example.svg", "settings": { "foreground_color": "#000000", "width_scale": 2, "height": 50, }, "embedded_data": "123456", "last_datetime": null, "datetime": "2025-04-04 12:19:54" } }
POST https://9qrcode.com/api/barcodes
Parameter Rincian Deskripsi
project_id Opsional Bilangan bulat -
name Diperlukan Teks -
type Diperlukan Teks Nilai yang diperbolehkan: C32, C39, C39+, C39E, C39E+, C93, S25, S25+, I25, I25+, ITF14, C128, C128A, C128B, C128C, EAN2, EAN5, EAN8, EAN13, UPCA, UPCE, MSI, MSI+, POSTNET, PLANET, TELEPENALPHA, TELEPENNUMERIC, RMS4CC, KIX, IMB, CODABAR, CODE11, PHARMA, PHARMA2T
is_bulk Opsional Boolean
value Diperlukan Teks -
foreground_color Opsional Teks -
width_scale Opsional Bilangan bulat 1-10
height Opsional Bilangan bulat 30-1000
Parameter Rincian Deskripsi
curl --request POST \
--url 'https://9qrcode.com/api/barcodes' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=New York' \
--form 'type=text' \
--form 'text=Hello!' \
{ "data": { "id": 1 } }
POST https://9qrcode.com/api/barcodes/{barcode_id}
Parameter Rincian Deskripsi
project_id Opsional Teks -
name Opsional Teks -
type Opsional Teks Nilai yang diperbolehkan: C32, C39, C39+, C39E, C39E+, C93, S25, S25+, I25, I25+, ITF14, C128, C128A, C128B, C128C, EAN2, EAN5, EAN8, EAN13, UPCA, UPCE, MSI, MSI+, POSTNET, PLANET, TELEPENALPHA, TELEPENNUMERIC, RMS4CC, KIX, IMB, CODABAR, CODE11, PHARMA, PHARMA2T
value Diperlukan Teks -
foreground_color Opsional Teks -
width_scale Opsional Bilangan bulat 1-10
height Opsional Bilangan bulat 30-1000
curl --request POST \
--url 'https://9qrcode.com/api/barcodes/{barcode_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Las Vegas' \
{ "data": { "id": 1 } }
DELETE https://9qrcode.com/api/barcodes/{barcode_id}
curl --request DELETE \
--url 'https://9qrcode.com/api/barcodes/{barcode_id}' \
--header 'Authorization: Bearer {api_key}' \