create_purchase
Record a purchase expense against a project or task to track costs outside declared time, with optional budget counting.
Instructions
Record a purchase (an expense outside declared time) against exactly one project or one task, both accepted by name or id. Use it to add a cost; use update_purchase to change an existing one. Creates a new record on every call, so check list_purchases first to avoid duplicates. billing_policy add counts it in the budget, ignore records it only. Requires Gryzzly's budget offer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | What was bought. | |
| task | No | The task it is charged to, by name or id. One of project or task. | |
| paid_at | No | When it was paid. | |
| project | No | The project it is charged to, by name, code or id. One of project or task. | |
| billed_at | No | When it was billed. | |
| paid_price | No | What it cost. | |
| billed_price | No | What it is billed for. | |
| billing_policy | No | Whether it counts in the budget. Defaults to `add`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The purchase's identifier. | |
| name | No | What was bought. | |
| paid_at | No | When it was paid. | |
| task_id | No | The task it is charged to. | |
| billed_at | No | When it was billed. | |
| created_at | No | When the purchase was created. | |
| paid_price | No | What it cost. | |
| project_id | No | The project it is charged to. | |
| updated_at | No | When the purchase was last updated. | |
| billed_price | No | What it was billed for. | |
| billing_policy | No | `add` or `ignore`, how it weighs on the budget. |