Skip to main content
Requires a Bearer API token with write access and Manage Tasks permission.

Create a cost

Call Create task cost:
  • 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 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 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 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.