บาร์โค้ด
GET https://77qr.io/api/barcodes/
curl --request GET \
--url 'https://77qr.io/api/barcodes/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://77qr.io/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://77qr.io/uploads/barcode/example.svg",
"settings": {
"foreground_color": "#000000",
"width_scale": 2,
"height": 50,
},
"embedded_data": "123456",
"last_datetime": null,
"datetime": "2025-12-05 08:10:36"
},
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://77qr.io/api/barcodes?&page=1",
"last": "https://77qr.io/api/barcodes?&page=1",
"next": null,
"prev": null,
"self": "https://77qr.io/api/barcodes?&page=1"
}
}
GET https://77qr.io/api/barcodes/{barcode_id}
curl --request GET \
--url 'https://77qr.io/api/barcodes/{barcode_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://77qr.io/api/barcodes/{barcode_id}' \
--header 'Authorization: Bearer {api_key}' \
{
"data": {
"id": 1,
"type": "C32",
"name": "Example name",
"value": "123456",
"barcode": "https://77qr.io/uploads/barcode/example.svg",
"settings": {
"foreground_color": "#000000",
"width_scale": 2,
"height": 50,
},
"embedded_data": "123456",
"last_datetime": null,
"datetime": "2025-12-05 08:10:36"
}
}
POST https://77qr.io/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://77qr.io/api/barcodes' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=New York' \
--form 'type=text' \
--form 'text=Hello!' \
--url 'https://77qr.io/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://77qr.io/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://77qr.io/api/barcodes/{barcode_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Las Vegas' \
--url 'https://77qr.io/api/barcodes/{barcode_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Las Vegas' \
{
"data": {
"id": 1
}
}
DELETE https://77qr.io/api/barcodes/{barcode_id}
curl --request DELETE \
--url 'https://77qr.io/api/barcodes/{barcode_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://77qr.io/api/barcodes/{barcode_id}' \
--header 'Authorization: Bearer {api_key}' \