ਬਾਰਕੋਡ

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 ਰੈਂਡਰ ਹੋਈ ਤਸਵੀਰ ਨਿਯੰਤਰਿਤ ਕਰਦੇ ਹਨ।

ਨਾਮਕਿਸਮਲੋੜੀਂਦਾਡਿਫਾਲਟਵੇਰਵਾ
namestringਹਾਂਸਰੋਤ ਤੇ ਸੰਭਾਲਿਆ ਲੇਬਲ।
typestringਹਾਂC128ਸਿੰਬੋਲੋਜੀ ਕੁੰਜੀ ਜਿਵੇਂ C128, EAN13 ਜਾਂ UPCA।
valuestringਹਾਂਬਾਰਕੋਡ ਵਿੱਚ ਇਨਕੋਡ ਡਾਟਾ। ਚੁਣੀ ਕਿਸਮ ਲਈ ਵੈਧ ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ।
project_idintegerਨਹੀਂਉਹ ਪ੍ਰੋਜੈਕਟ ਜਿਸ ਨਾਲ ਸਰੋਤ ਜੋੜਨਾ ਹੈ।
is_bulkbooleanਨਹੀਂfalseਜੇ true ਹੋਵੇ, value ਦੀ ਹਰ ਲਾਈਨ ਲਈ ਇੱਕ ਬਾਰਕੋਡ ਬਣਦਾ ਹੈ।
foreground_colorstringਨਹੀਂ#000000HEX ਵਜੋਂ ਮੋਡੀਊਲ ਰੰਗ।
background_colorstringਨਹੀਂ#ffffffਪਿਛੋਕੜ HEX ਰੰਗ। ਮੋਡੀਊਲ ਤੋਂ ਹਲਕਾ ਰੱਖੋ।
width_scaleintegerਨਹੀਂ2ਬਾਰ ਚੌੜਾਈ ਗੁਣਕ, 1–10।
heightintegerਨਹੀਂ30ਪਿਕਸਲ ਵਿੱਚ ਬਾਰ ਉਚਾਈ, 30–1000।
display_textbooleanਨਹੀਂ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
ਬਾਰਕੋਡ ਸੂਚੀ
ਨਾਮਕਿਸਮਲੋੜੀਂਦਾਵੇਰਵਾ
pageintegerਨਹੀਂPage number (default 1)
results_per_pageintegerਨਹੀਂItems per page (default 25, max 100)
searchstringਨਹੀਂSearch term
search_bystringਨਹੀਂColumn to search
order_bystringਨਹੀਂSort column
order_typestringਨਹੀਂasc or desc
datetime_startstringਨਹੀਂISO datetime filter start
datetime_endstringਨਹੀਂISO datetime filter end
curl -X GET 'https://forqrcode.com/api/v1/barcodes' \
  -H 'Authorization: Bearer YOUR_API_KEY'
GET/api/v1/barcodes/{id}
ਇੱਕ ਬਾਰਕੋਡ ਪੜ੍ਹੋ
ਨਾਮਕਿਸਮਲੋੜੀਂਦਾਵੇਰਵਾ
idintegerਹਾਂ
curl -X GET 'https://forqrcode.com/api/v1/barcodes/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY'
PATCH/api/v1/barcodes/{id}
ਬਾਰਕੋਡ ਅੱਪਡੇਟ
ਨਾਮਕਿਸਮਲੋੜੀਂਦਾਡਿਫਾਲਟਵੇਰਵਾ
idintegerਹਾਂ
namestringਨਹੀਂਸਰੋਤ ਤੇ ਸੰਭਾਲਿਆ ਲੇਬਲ।
typestringਨਹੀਂC128ਸਿੰਬੋਲੋਜੀ ਕੁੰਜੀ ਜਿਵੇਂ C128, EAN13 ਜਾਂ UPCA।
valuestringਨਹੀਂਬਾਰਕੋਡ ਵਿੱਚ ਇਨਕੋਡ ਡਾਟਾ। ਚੁਣੀ ਕਿਸਮ ਲਈ ਵੈਧ ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ।
project_idintegerਨਹੀਂਉਹ ਪ੍ਰੋਜੈਕਟ ਜਿਸ ਨਾਲ ਸਰੋਤ ਜੋੜਨਾ ਹੈ।
is_bulkbooleanਨਹੀਂfalseਜੇ true ਹੋਵੇ, value ਦੀ ਹਰ ਲਾਈਨ ਲਈ ਇੱਕ ਬਾਰਕੋਡ ਬਣਦਾ ਹੈ।
foreground_colorstringਨਹੀਂ#000000HEX ਵਜੋਂ ਮੋਡੀਊਲ ਰੰਗ।
background_colorstringਨਹੀਂ#ffffffਪਿਛੋਕੜ HEX ਰੰਗ। ਮੋਡੀਊਲ ਤੋਂ ਹਲਕਾ ਰੱਖੋ।
width_scaleintegerਨਹੀਂ2ਬਾਰ ਚੌੜਾਈ ਗੁਣਕ, 1–10।
heightintegerਨਹੀਂ30ਪਿਕਸਲ ਵਿੱਚ ਬਾਰ ਉਚਾਈ, 30–1000।
display_textbooleanਨਹੀਂ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}
ਬਾਰਕੋਡ ਮਿਟਾਓ
ਨਾਮਕਿਸਮਲੋੜੀਂਦਾਵੇਰਵਾ
idintegerਹਾਂ
curl -X DELETE 'https://forqrcode.com/api/v1/barcodes/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY'

ਪੈਰਾਮੀਟਰ ਨਾਮ ਅਤੇ JSON ਉਦਾਹਰਣ ਅੰਗਰੇਜ਼ੀ ਵਿੱਚ ਹਨ। YOUR_API_KEY ਨੂੰ ਆਪਣੀ ਕੁੰਜੀ ਨਾਲ ਬਦਲੋ।