Codici a barre
GET https://rqrcode.com/api/barcodes/
curl --request GET \
--url 'https://rqrcode.com/api/barcodes/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://rqrcode.com/api/barcodes/' \
--header 'Authorization: Bearer {api_key}' \
Parametri | Dettagli | Descrizione |
---|---|---|
page | Opzionale Integer | Il numero di pagina da cui desideri ottenere i risultati. Predefinito a 1 . |
results_per_page | Opzionale Integer | Quanti risultati desideri per pagina. I valori consentiti sono: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . Predefinito a 25 . |
{ "data": [ { "id": 1, "type": "C32", "name": "Example name", "value": "123456", "barcode": "https://rqrcode.com/uploads/barcode/example.svg", "settings": { "foreground_color": "#000000", "width_scale": 2, "height": 50, }, "embedded_data": "123456", "last_datetime": null, "datetime": "2025-06-10 10:27:08" }, ], "meta": { "page": 1, "results_per_page": 25, "total": 1, "total_pages": 1 }, "links": { "first": "https://rqrcode.com/api/barcodes?&page=1", "last": "https://rqrcode.com/api/barcodes?&page=1", "next": null, "prev": null, "self": "https://rqrcode.com/api/barcodes?&page=1" } }
GET https://rqrcode.com/api/barcodes/{barcode_id}
curl --request GET \
--url 'https://rqrcode.com/api/barcodes/{barcode_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://rqrcode.com/api/barcodes/{barcode_id}' \
--header 'Authorization: Bearer {api_key}' \
{ "data": { "id": 1, "type": "C32", "name": "Example name", "value": "123456", "barcode": "https://rqrcode.com/uploads/barcode/example.svg", "settings": { "foreground_color": "#000000", "width_scale": 2, "height": 50, }, "embedded_data": "123456", "last_datetime": null, "datetime": "2025-06-10 10:27:08" } }
POST https://rqrcode.com/api/barcodes
Parametri | Dettagli | Descrizione |
---|---|---|
project_id | Opzionale Integer | - |
name | Richiesto Stringa | - |
type | Richiesto Stringa | Valori consentiti: 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 | Opzionale Boolean | |
value | Richiesto Stringa | - |
display_text | Opzionale Boolean | - |
foreground_color | Opzionale Stringa | - |
background_color | Opzionale Stringa | - |
width_scale | Opzionale Integer | 1-10 |
height | Opzionale Integer | 30-1000 |
Parametri | Dettagli | Descrizione |
---|---|---|
curl --request POST \
--url 'https://rqrcode.com/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://rqrcode.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://rqrcode.com/api/barcodes/{barcode_id}
Parametri | Dettagli | Descrizione |
---|---|---|
project_id | Opzionale Stringa | - |
name | Opzionale Stringa | - |
type | Opzionale Stringa | Valori consentiti: 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 | Richiesto Stringa | - |
display_text | Opzionale Boolean | - |
foreground_color | Opzionale Stringa | - |
background_color | Opzionale Stringa | - |
width_scale | Opzionale Integer | 1-10 |
height | Opzionale Integer | 30-1000 |
curl --request POST \
--url 'https://rqrcode.com/api/barcodes/{barcode_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Las Vegas' \
--url 'https://rqrcode.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://rqrcode.com/api/barcodes/{barcode_id}
curl --request DELETE \
--url 'https://rqrcode.com/api/barcodes/{barcode_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://rqrcode.com/api/barcodes/{barcode_id}' \
--header 'Authorization: Bearer {api_key}' \