Mã vạch

GET https://urlaz.net/api/barcodes/
curl --request GET \
--url 'https://urlaz.net/api/barcodes/' \
--header 'Authorization: Bearer {api_key}' \
Thông số Chi tiết Mô tả
page Tùy chọn Số nguyên Số trang mà bạn muốn có kết quả từ . Mặc định là 1.
results_per_page Tùy chọn Số nguyên Bạn muốn có bao nhiêu kết quả trên mỗi trang. Các giá trị được phép là: 10 , 25 , 50 , 100 , 250 , 500 , 1000. Mặc định là 25.
{ "data": [ { "id": 1, "type": "C32", "name": "Example name", "value": "123456", "barcode": "https://urlaz.net/uploads/barcode/example.svg", "settings": { "foreground_color": "#000000", "width_scale": 2, "height": 50, }, "embedded_data": "123456", "last_datetime": null, "datetime": "2025-03-13 00:24:50" }, ], "meta": { "page": 1, "results_per_page": 25, "total": 1, "total_pages": 1 }, "links": { "first": "https://urlaz.net/api/barcodes?&page=1", "last": "https://urlaz.net/api/barcodes?&page=1", "next": null, "prev": null, "self": "https://urlaz.net/api/barcodes?&page=1" } }
GET https://urlaz.net/api/barcodes/{barcode_id}
curl --request GET \
--url 'https://urlaz.net/api/barcodes/{barcode_id}' \
--header 'Authorization: Bearer {api_key}' \
{ "data": { "id": 1, "type": "C32", "name": "Example name", "value": "123456", "barcode": "https://urlaz.net/uploads/barcode/example.svg", "settings": { "foreground_color": "#000000", "width_scale": 2, "height": 50, }, "embedded_data": "123456", "last_datetime": null, "datetime": "2025-03-13 00:24:50" } }
POST https://urlaz.net/api/barcodes
Thông số Chi tiết Mô tả
project_id Tùy chọn Số nguyên -
name Bắt ​​buộc Chuỗi -
type Bắt ​​buộc Chuỗi Giá trị được phép: 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 Tùy chọn Boolean
value Bắt ​​buộc Chuỗi -
foreground_color Tùy chọn Chuỗi -
width_scale Tùy chọn Số nguyên 1-10
height Tùy chọn Số nguyên 30-1000
Thông số Chi tiết Mô tả
curl --request POST \
--url 'https://urlaz.net/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://urlaz.net/api/barcodes/{barcode_id}
Thông số Chi tiết Mô tả
project_id Tùy chọn Chuỗi -
name Tùy chọn Chuỗi -
type Tùy chọn Chuỗi Giá trị được phép: 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 Bắt ​​buộc Chuỗi -
foreground_color Tùy chọn Chuỗi -
width_scale Tùy chọn Số nguyên 1-10
height Tùy chọn Số nguyên 30-1000
curl --request POST \
--url 'https://urlaz.net/api/barcodes/{barcode_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Las Vegas' \
{ "data": { "id": 1 } }
DELETE https://urlaz.net/api/barcodes/{barcode_id}
curl --request DELETE \
--url 'https://urlaz.net/api/barcodes/{barcode_id}' \
--header 'Authorization: Bearer {api_key}' \