Create a cost
Call Create task cost:descriptionis the title;noteholds optional details.amount_centsincludes any markup, in integer cents (4250=42.50).providerlabels the source, such asTopkey. Defaults toAPI.bill_toacceptsownerorproperty_management_company. It records the billing recipient without charging them.
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.- Prepare the upload with
workspace_id,filename,content_type, andsizein bytes. PUTthe raw bytes todata.upload_request.urlusing the returned headers. The file’s type and size must match the request.- Pass
data.upload_idasphoto_upload_idwhen creating or updating the cost in the same workspace.
Update or remove a cost
Call Update task cost withworkspace_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 anIdempotency-Key header for cost writes. Retry with the same key and payload within 90 days; use a new key for each new change.