Barcodes

GET https://9qrcode.com/api/barcodes/
curl --request GET \
--url 'https://9qrcode.com/api/barcodes/' \
--header 'Authorization: Bearer {api_key}' \
參數 細節 描述
page 選擇性 整數 您想要結果的頁碼。預設為1
results_per_page 選擇性 整數 您想要每頁顯示多少個結果。允許的值為:10 , 25 , 50 , 100 , 250 , 500 , 1000。默認為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-11 03:19:43" }, ], "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-11 03:19:43" } }
POST https://9qrcode.com/api/barcodes
參數 細節 描述
project_id 選擇性 整數 -
name 必要 字串 -
type 必要 字串 允許的值: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 選擇性 布林值
value 必要 字串 -
foreground_color 選擇性 字串 -
width_scale 選擇性 整數 1-10
height 選擇性 整數 30-1000
參數 細節 描述
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}
參數 細節 描述
project_id 選擇性 字串 -
name 選擇性 字串 -
type 選擇性 字串 允許的值: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 必要 字串 -
foreground_color 選擇性 字串 -
width_scale 選擇性 整數 1-10
height 選擇性 整數 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}' \