Record Sale
record_saleRecord a sale by marking inventory as sold and storing proceeds with gain/loss calculation. Provide inventory ID and sale amount to update records.
Instructions
Mark inventory sold + record sale proceeds with gain/loss. ($0.10; API key required)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | ||
| sold_at | No | ||
| currency | No | ||
| request_id | No | Client idempotency key (retries return original result). | |
| inventory_id | Yes | ||
| idempotency_key | No | Alias for request_id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | No | ||
| expense_id | No | ||
| inventory_id | No | ||
| realized_gain_loss | No |