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

# Costs and receipts

> Add task costs with image or PDF receipts.

Requires a [Bearer API token](https://docs.conduit.ai/api-reference/introduction.md#authentication) with write access and **Manage Tasks** permission.

## Create a cost

Call [Create task cost](https://docs.conduit.ai/api-reference/tasks/create-cost.md):

```bash theme={null}
curl -X POST https://api.conduit.ai/v1/tasks/TASK_ID/costs \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: topkey-charge-123-create" \
  -d '{
    "workspace_id": "YOUR_WORKSPACE_ID",
    "description": "Maintenance supplies",
    "note": "Replacement batteries and filters",
    "amount_cents": 4250,
    "provider": "Topkey",
    "bill_to": "owner"
  }'
```

* `description` is the title; `note` holds optional details.
* `amount_cents` includes any markup, in integer cents (`4250` = `42.50`).
* `provider` labels the source, such as `Topkey`. Defaults to `API`.
* `bill_to` accepts `owner` or `property_management_company`. It records the billing recipient without charging them.

Save the returned `data.id` to update or delete the cost.

## Attach a receipt

Each cost supports one receipt up to **10 MB**: PDF, JPEG, PNG, WebP, GIF, AVIF, HEIC, or HEIF. Receipts belong to the cost, separate from task attachments.

1. [Prepare the upload](https://docs.conduit.ai/api-reference/tasks/upload-receipt.md) with `workspace_id`, `filename`, `content_type`, and `size` in bytes.
2. `PUT` the raw bytes to `data.upload_request.url` using the returned headers. The file's type and size must match the request.
3. Pass `data.upload_id` as `photo_upload_id` when creating or updating the cost in the same workspace.

Prepare a new upload for each receipt and use it within one hour.

## Update or remove a cost

Call [Update task cost](https://docs.conduit.ai/api-reference/tasks/update-cost.md) with `workspace_id` and the fields to change. Omitted fields stay unchanged; `null` clears `note` or `photo_upload_id`. The provider cannot change.

Call [Delete task cost](https://docs.conduit.ai/api-reference/tasks/delete-cost.md) with `workspace_id` in the query string. Manage inventory usage through task inventory instead.

## Retry requests

Use an `Idempotency-Key` header for cost writes. Retry with the same key and payload within 90 days; use a new key for each new change.


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