# 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: 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:

```
GET https://apidocs.akinon.com/commerce-openapis/orders/order-utilities.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
