TaScan Invoices API
The invoices API from TaScan — 3 operation(s) for invoices.
The invoices API from TaScan — 3 operation(s) for invoices.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/tascan-io:tascan-io-invoices-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: TaScan Invoices API
version: 1.1.0
description: 'TaScan: Task. Scan. Done. Verified Work for humans, AI agents and devices. Create and dispatch work, collect evidence (photos, GPS, NFC/QR/RFID scans, device readings, agent output), verify it under pinned policies, and get a signed Action Receipt anyone can check without trusting TaScan. Covers projects and task lists, workers and payments, zones, tags and assets, evidence ingestion, verifications, receipts, agent coordination (cycles, builds, fan-outs, runs), keys, budgets and delegations. MCP clients should use the native MCP server instead: https://app.tascan.io/mcp (npm: tascan-mcp), which exposes the same capabilities as tools. Protocol spec: https://app.tascan.io/docs/protocol/TASCAN-PROTOCOL-v0.1.md. Independent receipt verifier: npx tascan-verify.'
contact:
name: TaScan
url: https://tascan.io
termsOfService: https://tascan.io/terms
servers:
- url: https://app.tascan.io/api/v1
security:
- apiKey: []
tags:
- name: Invoices
paths:
/invoices:
get:
summary: List Invoices
description: 'List invoices for the org (newest first) with status, client, total, due date and share link. Filter by status (draft/sent/paid/overdue/cancelled) or project. SR-S2 r7 (list level only): rows of lists assigned to another agent are left out IN THE QUERY, before the limit / offset is applied, so a page is never short and never counts them. A project invoice is listed only when its project holds no list hidden from the caller.'
parameters:
- name: status
in: query
required: false
schema:
type: string
enum:
- draft
- sent
- paid
- overdue
- cancelled
- name: project_id
in: query
required: false
schema:
type: string
responses:
'200':
description: 'Success. JSON body: { data: ... } or an error object { error, message }.'
4XX:
description: Client error (validation, auth, scope, rate limit).
operationId: get_invoices
tags:
- Invoices
x-mcp-tools:
- tascan_list_invoices
post:
summary: Create Invoice
description: 'Create a client invoice and get its shareable link. Two ways to bill: (a) pass explicit line_items, or (b) pass project_id or task_list_ids plus hourly_rate (quarter-hour billing from first→last verified completion per list) or flat_rate_per_list, and TaScan builds one line per list from VERIFIED work (" — 7/7 tasks verified · Sep 1 · 1.25h"); lists with no completions are skipped. A single-list invoice also mints a client-facing Service Report (acknowledge → pay) and links it. Returns invoice number, totals, url, and the work it billed. SR-S2 r7 (list level only): a task_list_ids entry naming a list assigned to another agent answers exactly the never-issued-list answer and nothing is built or minted; a project invoice bills only the lists the caller may read.'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
client_name:
type: string
description: Bill-to name (person or company)
client_email:
type: string
client_phone:
type: string
project_id:
type: string
description: Bill every list in this project (auto line items)
task_list_ids:
type: array
items:
type: string
description: Bill just these lists (auto line items)
hourly_rate:
type: number
description: Dollars per hour for auto line items
flat_rate_per_list:
type: number
description: Dollars per list for auto line items (used when no hourly_rate)
min_hours:
type: number
description: Minimum billable hours per list (e.g. 1)
billing:
type: object
description: 'Billing rules for auto line items. mode: hourly (default when hourly_rate given) | day_rate | flat. Overtime/double time are computed PER WORK DAY from verified completions: hours over overtime_after_hours (default 8) bill at overtime_multiplier (1.5×), hours over double_time_after_hours (12) at double_time_multiplier (2×); set overtime:false to disable. per_diem adds one line × work days (or per_diem_days). expenses are pass-through lines.'
properties:
mode:
type: string
enum:
- hourly
- day_rate
- flat
hourly_rate:
type: number
day_rate:
type: number
flat_rate_per_list:
type: number
min_hours:
type: number
overtime:
type: boolean
overtime_after_hours:
type: number
overtime_multiplier:
type: number
double_time_after_hours:
type: number
double_time_multiplier:
type: number
per_diem:
type: number
description: Dollars per work day
per_diem_days:
type: number
expenses:
type: array
items:
type: object
properties:
description:
type: string
amount:
type: number
quantity:
type: number
required:
- description
- amount
line_items:
type: array
description: Explicit lines instead of auto-billing
items:
type: object
properties:
description:
type: string
quantity:
type: number
unit_price:
type: number
required:
- description
- unit_price
tax_rate:
type: number
description: Fraction, e.g. 0.0825 for 8.25%
due_date:
type: string
description: 'YYYY-MM-DD (default: 30 days out)'
notes:
type: string
description: Payment terms / thank-you shown on the invoice
company_name:
type: string
description: Your company name on the attached Service Report (defaults to the org name)
attach_service_report:
type: boolean
description: Mint + link a Service Report for single-list invoices (default true)
payment_options:
type: object
description: 'Pay-how-you-like buttons on the invoice (defaults to the org''s saved handles). Keys: venmo (@handle), cashapp ($cashtag), paypal (paypal.me name), zelle (phone/email), applecash (phone), other (free text e.g. "cash or check"). Stripe card checkout is separate and only shows when the org has invoice_payments enabled.'
properties:
venmo:
type: string
cashapp:
type: string
paypal:
type: string
zelle:
type: string
applecash:
type: string
other:
type: string
status:
type: string
enum:
- draft
- sent
description: Default sent
required:
- client_name
responses:
'200':
description: 'Success. JSON body: { data: ... } or an error object { error, message }.'
4XX:
description: Client error (validation, auth, scope, rate limit).
operationId: post_invoices
tags:
- Invoices
x-mcp-tools:
- tascan_create_invoice
/invoices/{id}:
get:
summary: Invoice
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: 'Success. JSON body: { data: ... } or an error object { error, message }.'
4XX:
description: Client error (validation, auth, scope, rate limit).
operationId: get_invoice
tags:
- Invoices
description: 'An invoice of your org. SR-API2: marking it paid (status paid) writes a receipted ledger event FIRST (action_events via agent_log_event: actor from the credential, invoice id, number, amount_cents, status_before, status_after, paid_at) and answers ledger_event_id; when the event cannot be written nothing changes (503 ledger_write_failed), and the update only lands on the status the event recorded (409 invoice_changed otherwise). A paid invoice is final: PUT, PATCH and DELETE answer 409 invoice_paid_locked (no refunds, edits or deletes). Also accepts an admin portal session (the Supabase JWT of an admin_users row) as the bearer: any admin role may read; every other method needs an owner or admin session. SR-S2 r7 (list level only): an invoice of a list assigned to another agent (a project invoice: of a project holding such a list) answers exactly the missing-invoice answer and nothing is changed.'
put:
summary: Update Invoice
description: 'Update an invoice: mark it paid (records paid_at), overdue, cancelled, or edit client details / notes / due date. SR-API2: marking it paid (status paid) writes a receipted ledger event FIRST (action_events via agent_log_event: actor from the credential, invoice id, number, amount_cents, status_before, status_after, paid_at) and answers ledger_event_id; when the event cannot be written nothing changes (503 ledger_write_failed), and the update only lands on the status the event recorded (409 invoice_changed otherwise). A paid invoice is final: PUT, PATCH and DELETE answer 409 invoice_paid_locked (no refunds, edits or deletes). Also accepts an admin portal session (the Supabase JWT of an admin_users row) as the bearer: any admin role may read; every other method needs an owner or admin session. SR-S2 r7 (list level only): an invoice of a list assigned to another agent (a project invoice: of a project holding such a list) answers exactly the missing-invoice answer and nothing is changed.'
parameters:
- name: id
in: path
required: true
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
invoice_id:
type: string
status:
type: string
enum:
- draft
- sent
- paid
- overdue
- cancelled
paid_at:
type: string
description: ISO timestamp (default now) when status = paid
client_name:
type: string
client_email:
type: string
client_phone:
type: string
notes:
type: string
due_date:
type: string
required:
- invoice_id
responses:
'200':
description: 'Success. JSON body: { data: ... } or an error object { error, message }.'
4XX:
description: Client error (validation, auth, scope, rate limit).
operationId: put_invoice
tags:
- Invoices
x-mcp-tools:
- tascan_update_invoice
patch:
summary: Invoice
parameters:
- name: id
in: path
required: true
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
responses:
'200':
description: 'Success. JSON body: { data: ... } or an error object { error, message }.'
4XX:
description: Client error (validation, auth, scope, rate limit).
operationId: patch_invoice
tags:
- Invoices
description: 'Update an invoice. SR-API2: marking it paid (status paid) writes a receipted ledger event FIRST (action_events via agent_log_event: actor from the credential, invoice id, number, amount_cents, status_before, status_after, paid_at) and answers ledger_event_id; when the event cannot be written nothing changes (503 ledger_write_failed), and the update only lands on the status the event recorded (409 invoice_changed otherwise). A paid invoice is final: PUT, PATCH and DELETE answer 409 invoice_paid_locked (no refunds, edits or deletes). Also accepts an admin portal session (the Supabase JWT of an admin_users row) as the bearer: any admin role may read; every other method needs an owner or admin session. SR-S2 r7 (list level only): an invoice of a list assigned to another agent (a project invoice: of a project holding such a list) answers exactly the missing-invoice answer and nothing is changed.'
x-mcp-tools:
- tascan_update_invoice
delete:
summary: Invoice
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: 'Success. JSON body: { data: ... } or an error object { error, message }.'
4XX:
description: Client error (validation, auth, scope, rate limit).
operationId: delete_invoice
tags:
- Invoices
description: 'Cancel an invoice (status cancelled). SR-API2: marking it paid (status paid) writes a receipted ledger event FIRST (action_events via agent_log_event: actor from the credential, invoice id, number, amount_cents, status_before, status_after, paid_at) and answers ledger_event_id; when the event cannot be written nothing changes (503 ledger_write_failed), and the update only lands on the status the event recorded (409 invoice_changed otherwise). A paid invoice is final: PUT, PATCH and DELETE answer 409 invoice_paid_locked (no refunds, edits or deletes). Also accepts an admin portal session (the Supabase JWT of an admin_users row) as the bearer: any admin role may read; every other method needs an owner or admin session. SR-S2 r7 (list level only): an invoice of a list assigned to another agent (a project invoice: of a project holding such a list) answers exactly the missing-invoice answer and nothing is changed.'
/invoices/compose:
post:
responses:
'200':
description: 'Success. JSON body: { data: ... } or an error object { error, message }.'
4XX:
description: Client error (validation, auth, scope, rate limit).
summary: Compose Draft Invoice
tags:
- Invoices
operationId: post_invoice_compose
x-mcp-tools:
- tascan_create_invoice
description: 'A DRAFT invoice from verified work (SR-API2): the same line builder as POST /invoices (derive_worker_shifts, then worker_shifts; tascan_create_invoice covers it on MCP), over the completions whose local day in zone (default the org time zone, else UTC) is inside [from, to] (at most 366 days). Exactly one of project_id or list_ids (every list in your org). Always status draft: nothing is sent, no Service Report is minted, no payment code runs; send it later with PATCH /invoices/{id} { status: sent }. status other than draft is refused 400; no verified work in the window answers 422 with no row. Answers 201 { data: the invoice, draft: true, work, billing_summary, window: { from, to, zone, timezone_fallback } }. Write tier. Also accepts an admin portal session (the Supabase JWT of an admin_users row) as the bearer: any admin role may read; every other method needs an owner or admin session.'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
project_id:
type: string
list_ids:
type: array
items:
type: string
from:
type: string
description: YYYY-MM-DD
to:
type: string
description: YYYY-MM-DD
zone:
type: string
billing:
type: object
hourly_rate:
type: number
flat_rate_per_list:
type: number
min_hours:
type: number
client_name:
type: string
client_email:
type: string
tax_rate:
type: number
notes:
type: string
required:
- from
- to
components:
securitySchemes:
apiKey:
type: http
scheme: bearer
description: 'API key from the TaScan admin Team page. Format: tsk_live_... Send as: Authorization: Bearer tsk_live_xxx. Rate limit 60 requests/min.'
x-generated:
by: live-event/scripts/gen-agent-docs.js
from:
- api-v1-helpers.js ROUTES
- api-v1.js handler switch
- coord-*-lib.js matchers
- receipt.js
- tascan-mcp/tools.cjs
operations: 218
mcp_tools: 141