> 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

## Render a barcode

> The value is the rest of the path after the type, percent-decoded; it may contain \`/\`.

```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":"Render a barcode","description":"The value is the rest of the path after the type, percent-decoded; it may contain `/`.","parameters":[{"name":"data","in":"path","description":"Value to encode; supplied as the path after the symbology.","required":true,"schema":{"type":"string"}},{"name":"type","in":"path","description":"Symbology; default `CODE128`.","required":true,"schema":{"description":"Barcode symbology; matched case-insensitively in the URL.","default":"CODE128","$ref":"#/components/schemas/BarcodeType"}},{"name":"fg","in":"query","description":"Query `fg`: bar colour, hex `RRGGBB` or `RGB`, `#` optional. Default `000000`.","schema":{"type":"string","default":"000000"}},{"name":"bg","in":"query","description":"Query `bg`: background colour, same format. Default `FFFFFF`.","schema":{"type":"string","default":"FFFFFF"}},{"name":"w","in":"query","description":"Query `w`: width in pixels, at least 1, default 300. A QR code is only approximately this wide.","schema":{"type":"integer","format":"int32","default":300}},{"name":"h","in":"query","description":"Query `h`: height in pixels, at least 1, default 50. Ignored for QR codes, which are square.","schema":{"type":"integer","format":"int32","default":50}},{"name":"tenantId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"PNG image."},"400":{"description":"Unknown type, empty value, value the symbology cannot encode, invalid colour, or width/height below 1.","content":{"text/plain":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}},"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}},"text/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"403":{"description":"Barcodes are not enabled for the tenant."},"429":{"description":"Over 1200 requests per minute to this endpoint for the tenant (default limit); retry after <c>Retry-After</c>.","headers":{"Retry-After":{"description":"Seconds to wait before retrying. Sent when the limiter knows it.","schema":{"type":"integer"}}},"content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}}}}}},"components":{"schemas":{"BarcodeType":{"enum":["PDF417","UPCA","UPCE","CODE39","CODE93","CODE128","ITF14","EAN13","EAN8","QRCODE"],"type":"string","description":"Barcode symbology; matched case-insensitively in the URL."},"ProblemDetails":{"type":"object","properties":{"type":{"type":["null","string"]},"title":{"type":["null","string"]},"status":{"type":["null","integer"],"format":"int32"},"detail":{"type":["null","string"]},"instance":{"type":["null","string"]}},"additionalProperties":{}},"HttpValidationProblemDetails":{"type":"object","allOf":[{"$ref":"#/components/schemas/ProblemDetails"}],"properties":{"errors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}}},"additionalProperties":{}}}}}
```


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
