Barcodes
GET https://sqr.co/api/barcodes/
curl --request GET \
--url 'https://sqr.co/api/barcodes/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://sqr.co/api/barcodes/' \
--header 'Authorization: Bearer {api_key}' \
| Parameters | Details | Beschrijving |
|---|---|---|
| page | Optioneel Geheel getal | Het paginanummer waarvan u resultaten wilt. Standaard ingesteld op 1. |
| results_per_page | Optioneel Geheel getal | Hoeveel resultaten wil je per pagina. Toegestane waarden zijn: 10 , 25 , 50 , 100 , 250 , 500 , 1000. Standaard ingesteld op 25. |
{
"data": [
{
"id": 1,
"type": "C32",
"name": "Example name",
"value": "123456",
"barcode": "https://sqr.co/uploads/barcode/example.svg",
"settings": {
"foreground_color": "#000000",
"width_scale": 2,
"height": 50,
},
"embedded_data": "123456",
"last_datetime": "2021-10-31 09:47:25",
"datetime": "2021-10-29 16:32:25"
},
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://sqr.co/api/barcodes?&page=1",
"last": "https://sqr.co/api/barcodes?&page=1",
"next": null,
"prev": null,
"self": "https://sqr.co/api/barcodes?&page=1"
}
}
GET https://sqr.co/api/barcodes/{barcode_id}
curl --request GET \
--url 'https://sqr.co/api/barcodes/{barcode_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://sqr.co/api/barcodes/{barcode_id}' \
--header 'Authorization: Bearer {api_key}' \
{
"data": {
"id": 1,
"type": "C32",
"name": "Example name",
"value": "123456",
"barcode": "https://sqr.co/uploads/barcode/example.svg",
"settings": {
"foreground_color": "#000000",
"width_scale": 2,
"height": 50,
},
"embedded_data": "123456",
"last_datetime": "2021-10-31 09:47:25",
"datetime": "2021-10-29 16:32:25"
}
}
POST https://sqr.co/api/barcodes
| Parameters | Details | Beschrijving |
|---|---|---|
| project_id | Optioneel Geheel getal | - |
| name | Vereist String | - |
| type | Vereist String | Toegestane waarden: C32, C39, C39+, C39E, C39E+, C93, S25, S25+, I25, I25+, ITF14, C128, C128A, C128B, EAN2, EAN5, EAN8, EAN13, UPCA, UPCE, MSI, MSI+, POSTNET, PLANET, TELEPENALPHA, TELEPENNUMERIC, RMS4CC, KIX, IMB, CODABAR, CODE11, PHARMA, PHARMA2T |
| is_bulk | Optioneel Booleaanse | |
| value | Vereist String | - |
| foreground_color | Optioneel String | - |
| width_scale | Optioneel Geheel getal | 1-10 |
| height | Optioneel Geheel getal | 30-1000 |
| Parameters | Details | Beschrijving |
|---|---|---|
curl --request POST \
--url 'https://sqr.co/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://sqr.co/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://sqr.co/api/barcodes/{barcode_id}
| Parameters | Details | Beschrijving |
|---|---|---|
| project_id | Optioneel String | - |
| name | Optioneel String | - |
| type | Optioneel String | Toegestane waarden: C32, C39, C39+, C39E, C39E+, C93, S25, S25+, I25, I25+, ITF14, C128, C128A, C128B, EAN2, EAN5, EAN8, EAN13, UPCA, UPCE, MSI, MSI+, POSTNET, PLANET, TELEPENALPHA, TELEPENNUMERIC, RMS4CC, KIX, IMB, CODABAR, CODE11, PHARMA, PHARMA2T |
| value | Vereist String | - |
| foreground_color | Optioneel String | - |
| width_scale | Optioneel Geheel getal | 1-10 |
| height | Optioneel Geheel getal | 30-1000 |
curl --request POST \
--url 'https://sqr.co/api/barcodes/{barcode_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Las Vegas' \
--url 'https://sqr.co/api/barcodes/{barcode_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Las Vegas' \
{
"data": {
"id": 1
}
}
DELETE https://sqr.co/api/barcodes/{barcode_id}
curl --request DELETE \
--url 'https://sqr.co/api/barcodes/{barcode_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://sqr.co/api/barcodes/{barcode_id}' \
--header 'Authorization: Bearer {api_key}' \