> ## Documentation Index
> Fetch the complete documentation index at: https://docs.orquestr.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# eleventa_monocaja.sales.create

> Create VENTATICKETS + lines and decrement stock

# `eleventa_monocaja.sales.create`

Create VENTATICKETS + lines and decrement stock

| | |
| - | - |
| **Adapter** | `eleventa_monocaja` |
| **Operation** | `db.query` |
| **SQL policy** | `write` |

## Parameters

| Name | Kind | Required | Notes |
| - | - | - | - |
| `document` | `json` | Yes | Registry write payload |

## Example

```bash theme={"system"}
curl -s -X POST "$API/v1/devices/$DEVICE_ID/functions/eleventa_monocaja.sales.create" \
  -H "Authorization: Bearer $ORQUESTR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"document":{"caja_id":1,"lines":[{"producto_id":10,"cantidad":1,"precio":18.5}]}}}'
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.