# 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"}}}}}}
```
