Naar inhoud springen
API-documentatie

Streepjescodes

Beheer uw barcodes en hun exportinstellingen.

Authenticatie
Elke aanvraag moet de Authorization-header meesturen met een Bearer-token dat overeenkomt met de admin-API-sleutel. API-sleutel verkrijgen.
API-documentatie

Eindpunt
GET https://rqrcode.com/api/barcodes/
Voorbeeld
curl --request GET \
--url 'https://rqrcode.com/api/barcodes/' \
--header 'Authorization: Bearer {api_key}'
Parameterlijst
Parameterlijst Details bekijken Beschrijving
page
Optioneel ui.admin.api_docs.common.types.Geheel getal
Het paginanummer waarvoor u de resultaten wilt ophalen. Standaard is 1.
results_per_page
Optioneel ui.admin.api_docs.common.types.Geheel getal
Hoeveel resultaten u per pagina wilt. Toegestane waarden zijn: 10, 25, 50, 100, 250, 500, 1000. Standaard is 25.
Voorbeeld van een reactie
{
    "data": [
        {
            "id": 1,
            "type": "C32",
            "name": "Voorbeeldnaam",
            "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": "2026-04-20 07:52:55"
        }
    ],
    "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"
    }
}

Eindpunt
GET https://rqrcode.com/api/barcodes/{barcode_id}
Voorbeeld
curl --request GET \
--url 'https://rqrcode.com/api/barcodes/{barcode_id}' \
--header 'Authorization: Bearer {api_key}'
Parameterlijst
Geen extra parameter.
Voorbeeld van een reactie
{
    "data": {
        "id": 1,
        "type": "C32",
        "name": "Voorbeeldnaam",
        "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": "2026-04-20 07:52:55"
    }
}

Eindpunt
POST https://rqrcode.com/api/barcodes
Voorbeeld
curl --request POST \
--url 'https://rqrcode.com/api/barcodes' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Amsterdam' \
--form 'type=C32' \
--form 'value=123456'
Parameterlijst
Parameterlijst Details bekijken Beschrijving
project_id
Optioneel ui.admin.api_docs.common.types.Geheel getal
name
Verplicht ui.admin.api_docs.common.types.Tekst
type
Verplicht ui.admin.api_docs.common.types.Tekst
Toegestane waarden: 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
Optioneel ui.admin.api_docs.common.types.Waar/onwaar
value
Verplicht ui.admin.api_docs.common.types.Tekst
display_text
Optioneel ui.admin.api_docs.common.types.Waar/onwaar
foreground_color
Optioneel ui.admin.api_docs.common.types.Tekst
background_color
Optioneel ui.admin.api_docs.common.types.Tekst
width_scale
Optioneel ui.admin.api_docs.common.types.Geheel getal
1-10
height
Optioneel ui.admin.api_docs.common.types.Geheel getal
30-1000
Voorbeeld van een reactie
{
    "data": {
        "id": 1
    }
}

Eindpunt
POST https://rqrcode.com/api/barcodes/{barcode_id}
Voorbeeld
curl --request POST \
--url 'https://rqrcode.com/api/barcodes/{barcode_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Rotterdam' \
--form 'value=123456'
Parameterlijst
Parameterlijst Details bekijken Beschrijving
project_id
Optioneel ui.admin.api_docs.common.types.Geheel getal
name
Optioneel ui.admin.api_docs.common.types.Tekst
type
Optioneel ui.admin.api_docs.common.types.Tekst
Toegestane waarden: 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
Verplicht ui.admin.api_docs.common.types.Tekst
display_text
Optioneel ui.admin.api_docs.common.types.Waar/onwaar
foreground_color
Optioneel ui.admin.api_docs.common.types.Tekst
background_color
Optioneel ui.admin.api_docs.common.types.Tekst
width_scale
Optioneel ui.admin.api_docs.common.types.Geheel getal
1-10
height
Optioneel ui.admin.api_docs.common.types.Geheel getal
30-1000
Voorbeeld van een reactie
{
    "data": {
        "id": 1
    }
}

Eindpunt
DELETE https://rqrcode.com/api/barcodes/{barcode_id}
Voorbeeld
curl --request DELETE \
--url 'https://rqrcode.com/api/barcodes/{barcode_id}' \
--header 'Authorization: Bearer {api_key}'
Parameterlijst
Geen extra parameter.
Voorbeeld van een reactie
Lege 200-responsbody bij succes.