process_order
Atomically create an order and decrement inventory using customer ID, SKU, quantity, and an idempotency key to prevent duplicates.
Instructions
Create an order atomically and decrement inventory. Requires order:write.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sku | Yes | ||
| quantity | Yes | ||
| customer_id | Yes | ||
| idempotency_key | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||