> For the complete documentation index, see [llms.txt](https://docs.thewalletcrew.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.thewalletcrew.io/api-reference/tools/barcode.md).

# Barcode

## Generate a barcode image

> Generates a barcode or QR code image in PNG format with customizable colors and dimensions.\
> \
> \## Supported Barcode Types\
> \- \*\*QR Code\*\*: 2D matrix barcode with error correction\
> \- \*\*PDF417\*\*: High-capacity 2D stacked barcode\
> \- \*\*UPC-A/UPC-E\*\*: Universal Product Code for retail\
> \- \*\*EAN-8/EAN-13\*\*: European Article Number for retail\
> \- \*\*Code 39/93/128\*\*: Linear barcodes for various applications\
> \- \*\*ITF-14\*\*: Interleaved 2 of 5 for shipping containers\
> \
> \## Color Parameters\
> \- Colors must be specified as 6-digit hex values (without #)\
> \- Example: \`fg=000000\` for black, \`bg=FFFFFF\` for white\
> \
> \## Dimensions\
> \- For QR codes: width acts as a sizing hint (height is ignored)\
> \- For linear barcodes: both width and height are applied\
> \
> \## Caching\
> Generated images are cached for 100 days based on query parameters.

```json
{"openapi":"3.1.1","info":{"title":"Neostore internal API","version":"v1"},"tags":[{"name":"Barcode"}],"servers":[{"url":"https://app.neostore.cloud","description":"Production Server"},{"url":"https://app-qa.neostore.cloud","description":"Staging Server"}],"paths":{"/api/{tenantId}/barcode/{type}/{data}":{"get":{"tags":["Barcode"],"summary":"Generate a barcode image","description":"Generates a barcode or QR code image in PNG format with customizable colors and dimensions.\n\n## Supported Barcode Types\n- **QR Code**: 2D matrix barcode with error correction\n- **PDF417**: High-capacity 2D stacked barcode\n- **UPC-A/UPC-E**: Universal Product Code for retail\n- **EAN-8/EAN-13**: European Article Number for retail\n- **Code 39/93/128**: Linear barcodes for various applications\n- **ITF-14**: Interleaved 2 of 5 for shipping containers\n\n## Color Parameters\n- Colors must be specified as 6-digit hex values (without #)\n- Example: `fg=000000` for black, `bg=FFFFFF` for white\n\n## Dimensions\n- For QR codes: width acts as a sizing hint (height is ignored)\n- For linear barcodes: both width and height are applied\n\n## Caching\nGenerated images are cached for 100 days based on query parameters.","parameters":[{"name":"data","in":"path","description":"Data to encode.","required":true,"schema":{"type":"string"}},{"name":"type","in":"path","description":"Barcode symbology to generate.","required":true,"schema":{"default":"CODE128","$ref":"#/components/schemas/BarcodeType"}},{"name":"fg","in":"query","description":"Foreground color as HTML hex without the leading #.","schema":{"type":"string","default":"000000"}},{"name":"bg","in":"query","description":"Background color as HTML hex without the leading #.","schema":{"type":"string","default":"FFFFFF"}},{"name":"w","in":"query","description":"Target image width; for QR, acts as a hint.","schema":{"type":"integer","format":"int32","default":300}},{"name":"h","in":"query","description":"Image height; ignored for QR.","schema":{"type":"integer","format":"int32","default":50}},{"name":"tenantId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}}},"components":{"schemas":{"BarcodeType":{"enum":["PDF417","UPCA","UPCE","CODE39","CODE93","CODE128","ITF14","EAN13","EAN8","QRCODE"],"type":"string"}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.thewalletcrew.io/api-reference/tools/barcode.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
