> For the complete documentation index, see [llms.txt](https://apidocs.akinon.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://apidocs.akinon.com/commerce-openapis/orders/order-utilities.md).

# Order Utilities

Utility endpoints for orders (barcode, etc.)

## Generate Order Barcode

> Generates a barcode image for the specified order.\
> \
> \*\*Business Logic:\*\*\
> \- Validates the signed order number.\
> \- The signature has an expiration time (default: 30 minutes) for security.\
> \- Returns an HTML page with the barcode image.\
> \
> \*\*Use Cases:\*\*\
> \- In-store pickup verification.\
> \- Order tracking at physical locations.\
> \- Warehouse order processing.

```json
{"openapi":"3.1.0","info":{"title":"Orders API","version":"1.0.0"},"tags":[{"name":"Order Utilities","description":"Utility endpoints for orders (barcode, etc.)"}],"servers":[{"description":"Server base URL","url":"https://{commerce_url}","variables":{"commerce_url":{"default":"sandbox.akinon.com","description":"Commerce server URL"}}}],"security":[],"paths":{"/orders/barcode/{signed_order_number}/":{"get":{"tags":["Order Utilities"],"summary":"Generate Order Barcode","description":"Generates a barcode image for the specified order.\n\n**Business Logic:**\n- Validates the signed order number.\n- The signature has an expiration time (default: 30 minutes) for security.\n- Returns an HTML page with the barcode image.\n\n**Use Cases:**\n- In-store pickup verification.\n- Order tracking at physical locations.\n- Warehouse order processing.","operationId":"generateOrderBarcode","parameters":[{"name":"signed_order_number","in":"path","required":true,"schema":{"type":"string"},"description":"Signed order number (time-limited signature for security)."}],"responses":{"200":{"description":"HTML page with barcode image","content":{"text/html":{"schema":{"type":"string"}}}},"404":{"description":"Signature expired or invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}}}}},"components":{"schemas":{"ValidationErrorResponse":{"type":"object","description":"Standard DRF validation error response","additionalProperties":{"type":"array","items":{"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://apidocs.akinon.com/commerce-openapis/orders/order-utilities.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.
