ਬਾਰਕੋਡ
34 ਸਿੰਬੋਲੋਜੀਆਂ ਵਿੱਚ ਬਾਰਕੋਡ ਬਣਾਓ, ਰੰਗ, ਆਕਾਰ ਅਤੇ ਲੇਬਲ ਵਿਕਲਪਾਂ ਨਾਲ।
ਸਮਰਥਿਤ ਕਿਸਮਾਂ
type ਇਹਨਾਂ ਸਿੰਬੋਲੋਜੀ ਕੁੰਜੀਆਂ ਵਿੱਚੋਂ ਇੱਕ ਦਿਓ। value ਉਸ ਕਿਸਮ ਦੇ ਨਿਯਮਾਂ ਨਾਲ ਮੇਲ ਖਾਣਾ ਚਾਹੀਦਾ ਹੈ।
- 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
POST/api/v1/barcodesਬਾਰਕੋਡ ਬਣਾਓ
name, type ਅਤੇ value ਨਾਲ JSON ਭੇਜੋ। type ਸਿੰਬੋਲੋਜੀ ਕੁੰਜੀ ਹੈ ਜਿਵੇਂ C128 ਜਾਂ EAN13। ਰੰਗ, width_scale, height ਅਤੇ display_text ਰੈਂਡਰ ਹੋਈ ਤਸਵੀਰ ਨਿਯੰਤਰਿਤ ਕਰਦੇ ਹਨ।
| ਨਾਮ | ਕਿਸਮ | ਲੋੜੀਂਦਾ | ਡਿਫਾਲਟ | ਵੇਰਵਾ |
|---|---|---|---|---|
| name | string | ਹਾਂ | — | ਸਰੋਤ ਤੇ ਸੰਭਾਲਿਆ ਲੇਬਲ। |
| type | string | ਹਾਂ | C128 | ਸਿੰਬੋਲੋਜੀ ਕੁੰਜੀ ਜਿਵੇਂ C128, EAN13 ਜਾਂ UPCA। |
| value | string | ਹਾਂ | — | ਬਾਰਕੋਡ ਵਿੱਚ ਇਨਕੋਡ ਡਾਟਾ। ਚੁਣੀ ਕਿਸਮ ਲਈ ਵੈਧ ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ। |
| project_id | integer | ਨਹੀਂ | — | ਉਹ ਪ੍ਰੋਜੈਕਟ ਜਿਸ ਨਾਲ ਸਰੋਤ ਜੋੜਨਾ ਹੈ। |
| is_bulk | boolean | ਨਹੀਂ | false | ਜੇ true ਹੋਵੇ, value ਦੀ ਹਰ ਲਾਈਨ ਲਈ ਇੱਕ ਬਾਰਕੋਡ ਬਣਦਾ ਹੈ। |
| foreground_color | string | ਨਹੀਂ | #000000 | HEX ਵਜੋਂ ਮੋਡੀਊਲ ਰੰਗ। |
| background_color | string | ਨਹੀਂ | #ffffff | ਪਿਛੋਕੜ HEX ਰੰਗ। ਮੋਡੀਊਲ ਤੋਂ ਹਲਕਾ ਰੱਖੋ। |
| width_scale | integer | ਨਹੀਂ | 2 | ਬਾਰ ਚੌੜਾਈ ਗੁਣਕ, 1–10। |
| height | integer | ਨਹੀਂ | 30 | ਪਿਕਸਲ ਵਿੱਚ ਬਾਰ ਉਚਾਈ, 30–1000। |
| display_text | boolean | ਨਹੀਂ | false | ਜੇ true ਹੋਵੇ, ਬਾਰਾਂ ਹੇਠਾਂ value ਛਪਦਾ ਹੈ। |
ਬੇਨਤੀ ਦੀ ਉਦਾਹਰਨ
curl -X POST 'https://forqrcode.com/api/v1/barcodes' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"name": "Product SKU",
"type": "C128",
"value": "FORQR-1001",
"foreground_color": "#17191c",
"background_color": "#ffffff",
"width_scale": 2,
"height": 80,
"display_text": true
}'ਹੋਰ ਉਦਾਹਰਨਾਂ
EAN-13
curl -X POST 'https://forqrcode.com/api/v1/barcodes' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"name": "Retail EAN-13",
"type": "EAN13",
"value": "5901234123457",
"height": 70,
"display_text": true
}'ਜਵਾਬ ਉਦਾਹਰਣ
{
"data": {
"id": 1,
"type": "C128",
"name": "Product SKU",
"value": "FORQR-1001",
"barcode": "https://…/barcodes/…/barcode.svg"
}
}GET/api/v1/barcodesਬਾਰਕੋਡ ਸੂਚੀ
| ਨਾਮ | ਕਿਸਮ | ਲੋੜੀਂਦਾ | ਵੇਰਵਾ |
|---|---|---|---|
| page | integer | ਨਹੀਂ | Page number (default 1) |
| results_per_page | integer | ਨਹੀਂ | Items per page (default 25, max 100) |
| search | string | ਨਹੀਂ | Search term |
| search_by | string | ਨਹੀਂ | Column to search |
| order_by | string | ਨਹੀਂ | Sort column |
| order_type | string | ਨਹੀਂ | asc or desc |
| datetime_start | string | ਨਹੀਂ | ISO datetime filter start |
| datetime_end | string | ਨਹੀਂ | ISO datetime filter end |
curl -X GET 'https://forqrcode.com/api/v1/barcodes' \ -H 'Authorization: Bearer YOUR_API_KEY'
GET/api/v1/barcodes/{id}ਇੱਕ ਬਾਰਕੋਡ ਪੜ੍ਹੋ
| ਨਾਮ | ਕਿਸਮ | ਲੋੜੀਂਦਾ | ਵੇਰਵਾ |
|---|---|---|---|
| id | integer | ਹਾਂ | — |
curl -X GET 'https://forqrcode.com/api/v1/barcodes/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY'PATCH/api/v1/barcodes/{id}ਬਾਰਕੋਡ ਅੱਪਡੇਟ
| ਨਾਮ | ਕਿਸਮ | ਲੋੜੀਂਦਾ | ਡਿਫਾਲਟ | ਵੇਰਵਾ |
|---|---|---|---|---|
| id | integer | ਹਾਂ | — | — |
| name | string | ਨਹੀਂ | — | ਸਰੋਤ ਤੇ ਸੰਭਾਲਿਆ ਲੇਬਲ। |
| type | string | ਨਹੀਂ | C128 | ਸਿੰਬੋਲੋਜੀ ਕੁੰਜੀ ਜਿਵੇਂ C128, EAN13 ਜਾਂ UPCA। |
| value | string | ਨਹੀਂ | — | ਬਾਰਕੋਡ ਵਿੱਚ ਇਨਕੋਡ ਡਾਟਾ। ਚੁਣੀ ਕਿਸਮ ਲਈ ਵੈਧ ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ। |
| project_id | integer | ਨਹੀਂ | — | ਉਹ ਪ੍ਰੋਜੈਕਟ ਜਿਸ ਨਾਲ ਸਰੋਤ ਜੋੜਨਾ ਹੈ। |
| is_bulk | boolean | ਨਹੀਂ | false | ਜੇ true ਹੋਵੇ, value ਦੀ ਹਰ ਲਾਈਨ ਲਈ ਇੱਕ ਬਾਰਕੋਡ ਬਣਦਾ ਹੈ। |
| foreground_color | string | ਨਹੀਂ | #000000 | HEX ਵਜੋਂ ਮੋਡੀਊਲ ਰੰਗ। |
| background_color | string | ਨਹੀਂ | #ffffff | ਪਿਛੋਕੜ HEX ਰੰਗ। ਮੋਡੀਊਲ ਤੋਂ ਹਲਕਾ ਰੱਖੋ। |
| width_scale | integer | ਨਹੀਂ | 2 | ਬਾਰ ਚੌੜਾਈ ਗੁਣਕ, 1–10। |
| height | integer | ਨਹੀਂ | 30 | ਪਿਕਸਲ ਵਿੱਚ ਬਾਰ ਉਚਾਈ, 30–1000। |
| display_text | boolean | ਨਹੀਂ | false | ਜੇ true ਹੋਵੇ, ਬਾਰਾਂ ਹੇਠਾਂ value ਛਪਦਾ ਹੈ। |
ਬੇਨਤੀ ਦੀ ਉਦਾਹਰਨ
curl -X PATCH 'https://forqrcode.com/api/v1/barcodes/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"value": "FORQR-2002",
"height": 90
}'DELETE/api/v1/barcodes/{id}ਬਾਰਕੋਡ ਮਿਟਾਓ
| ਨਾਮ | ਕਿਸਮ | ਲੋੜੀਂਦਾ | ਵੇਰਵਾ |
|---|---|---|---|
| id | integer | ਹਾਂ | — |
curl -X DELETE 'https://forqrcode.com/api/v1/barcodes/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY'ਪੈਰਾਮੀਟਰ ਨਾਮ ਅਤੇ JSON ਉਦਾਹਰਣ ਅੰਗਰੇਜ਼ੀ ਵਿੱਚ ਹਨ। YOUR_API_KEY ਨੂੰ ਆਪਣੀ ਕੁੰਜੀ ਨਾਲ ਬਦਲੋ।