بارکدها
GET https://qrfy.ir/api/barcodes/
curl --request GET \
--url 'https://qrfy.ir/api/barcodes/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://qrfy.ir/api/barcodes/' \
--header 'Authorization: Bearer {api_key}' \
پارامتر ها | جزئیات | توضیحات |
---|---|---|
page | اختیاری Integer | شماره صفحه ای که می خواهید از آن نتیجه بگیرید. پیشفرض 1 است. |
results_per_page | اختیاری Integer | در هر صفحه چند نتیجه می خواهید. مقادیر مجاز عبارتند از: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . پیشفرض 25 است. |
{
"data": [
{
"id": 1,
"type": "C32",
"name": "Example name",
"value": "123456",
"barcode": "https://qrfy.ir/uploads/barcode/example.svg",
"settings": {
"foreground_color": "#000000",
"width_scale": 2,
"height": 50,
},
"embedded_data": "123456",
"last_datetime": null,
"datetime": "2025-08-19 03:32:13"
},
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://qrfy.ir/api/barcodes?&page=1",
"last": "https://qrfy.ir/api/barcodes?&page=1",
"next": null,
"prev": null,
"self": "https://qrfy.ir/api/barcodes?&page=1"
}
}
GET https://qrfy.ir/api/barcodes/{barcode_id}
curl --request GET \
--url 'https://qrfy.ir/api/barcodes/{barcode_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://qrfy.ir/api/barcodes/{barcode_id}' \
--header 'Authorization: Bearer {api_key}' \
{
"data": {
"id": 1,
"type": "C32",
"name": "Example name",
"value": "123456",
"barcode": "https://qrfy.ir/uploads/barcode/example.svg",
"settings": {
"foreground_color": "#000000",
"width_scale": 2,
"height": 50,
},
"embedded_data": "123456",
"last_datetime": null,
"datetime": "2025-08-19 03:32:13"
}
}
POST https://qrfy.ir/api/barcodes
پارامتر ها | جزئیات | توضیحات |
---|---|---|
project_id | اختیاری Integer | - |
name | اجباری String | - |
type | اجباری String | مقدار مجاز: 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 | اختیاری Boolean | |
value | اجباری String | - |
foreground_color | اختیاری String | - |
width_scale | اختیاری Integer | 1-10 |
height | اختیاری Integer | 30-1000 |
پارامتر ها | جزئیات | توضیحات |
---|---|---|
curl --request POST \
--url 'https://qrfy.ir/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://qrfy.ir/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://qrfy.ir/api/barcodes/{barcode_id}
پارامتر ها | جزئیات | توضیحات |
---|---|---|
project_id | اختیاری String | - |
name | اختیاری String | - |
type | اختیاری String | مقدار مجاز: 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 | اجباری String | - |
foreground_color | اختیاری String | - |
width_scale | اختیاری Integer | 1-10 |
height | اختیاری Integer | 30-1000 |
curl --request POST \
--url 'https://qrfy.ir/api/barcodes/{barcode_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Las Vegas' \
--url 'https://qrfy.ir/api/barcodes/{barcode_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Las Vegas' \
{
"data": {
"id": 1
}
}
DELETE https://qrfy.ir/api/barcodes/{barcode_id}
curl --request DELETE \
--url 'https://qrfy.ir/api/barcodes/{barcode_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://qrfy.ir/api/barcodes/{barcode_id}' \
--header 'Authorization: Bearer {api_key}' \