Invoice by Ouroboros Apps
v1.0.3Freelance invoice line items, rates, due dates, and late terms for AI assistants
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_invoices list invoices
List the signed-in freelancer's invoices. Use a returned id with read_invoice. Do not guess an invoice.
| Parameter | Type | Description |
|---|---|---|
offset | integer |
begin_invoice begin invoice
Start a draft invoice. Draft figures are not an approved commitment until seal_invoice. Currency is a three-letter code. Amounts later are minor units of that currency and are the freelancer's figures.
| Parameter | Type | Description |
|---|---|---|
clientName * | string | |
currency * | string | |
number * | string | |
title * |
read_invoice read invoice
Read the invoice before answering. Quote only this record. Draft status is not an approved commitment. Proposed changes do not authorize a new line, a different rate, a discount, or a new due date.
| Parameter | Type | Description |
|---|---|---|
invoiceId * | string |
place_line place line
Add one line: description, quantity, rate in whole minor units, and unit hour, each, or day. After the invoice is sealed, a new line is refused until accept_invoice_change applies an add_line suggestion.
| Parameter | Type | Description |
|---|---|---|
description * | string | |
invoiceId * | string | |
quantity * | integer | |
rateMinor * | integer | |
unit * | string |
describe_line describe line
Correct a line description while the invoice is still a draft. After approval, a different description is refused. Use suggest_invoice_change with add_line for a different line.
| Parameter | Type | Description |
|---|---|---|
description * | string | |
invoiceId * | string | |
lineId * |
quote_line_rate quote line rate
Set the rate already chosen for one line, as a whole number of minor units in the invoice currency. After the invoice is sealed, a different rate is refused until accept_invoice_change applies a change_rate suggestion.
| Parameter | Type | Description |
|---|---|---|
invoiceId * | string | |
lineId * | ||
rateMinor * | integer |
set_line_quantity set line quantity
Set the quantity on one line. After the invoice is sealed, a different quantity is refused until accept_invoice_change applies an adjust_quantity suggestion.
| Parameter | Type | Description |
|---|---|---|
invoiceId * | string | |
lineId * | ||
quantity * | integer |
set_invoice_due set invoice due
Set the due date as a calendar day in YYYY-MM-DD form. After the invoice is sealed, a different date is refused until accept_invoice_change applies a move_due_date suggestion.
| Parameter | Type | Description |
|---|---|---|
dueOn * | string | |
invoiceId * | string |
write_late_terms write late terms
Record late terms: grace days, and a basis of none, flat_fee, or percent_per_period. flat_fee uses feeMinor and a percent of 0. percent_per_period uses percent and a fee of 0. After approval, a different basis, grace, fee, or percent is refused until an accepted revise_late_terms suggestion.
| Parameter | Type | Description |
|---|---|---|
basis * | string | |
feeMinor * | integer | |
graceDays * | integer | |
invoiceId * | string | |
note * | string | |
percent * | integer |
offer_discount offer discount
Record a discount the freelancer is putting on the invoice. kind none uses value 0. kind percent takes a whole number from 1 to 100. kind fixed takes a whole number of minor units. After the invoice is sealed, a different discount is refused until accept_invoice_change applies an apply_discount suggestion. Do not invent a discount.
| Parameter | Type | Description |
|---|---|---|
invoiceId * | string | |
kind * | string | |
note * | string | |
value * | integer |
seal_invoice seal invoice
Mark the current draft as the approved invoice. Pass confirmed true only after the freelancer explicitly approves the lines, quantities, rates, due date, late terms, and any discount already on the draft.
| Parameter | Type | Description |
|---|---|---|
confirmed * | boolean | |
invoiceId * | string |
suggest_invoice_change suggest invoice change
Record a suggested change. This does not change the invoice. kind add_line requires description, quantity, rateMinor, and unit. kind change_rate requires lineId and rateMinor. kind apply_discount requires discountKind, discountValue, and discountNote. kind move_due_date requires dueOn. kind adjust_quantity requires lineId and quantity. kind revise_late_terms requires graceDays, lateBasis, feeMinor, latePercent, and lateNote.
| Parameter | Type | Description |
|---|---|---|
invoiceId * | string | |
kind * | string | |
summary * | string | |
description | string | |
discountKind | string | |
discountNote | ||
discountValue | integer | |
dueOn | string | |
feeMinor | integer | |
graceDays | integer | |
lateBasis | string | |
lateNote | ||
latePercent | integer | |
lineId | ||
quantity | integer | |
rateMinor | integer | |
unit | string |
accept_invoice_change accept invoice change
Apply one suggested invoice change after the freelancer explicitly approves that change. Pass confirmed true only then. This is the path that may add a line, change a rate, apply a discount, or move the due date. Calling it is not a substitute for the freelancer's approval.
| Parameter | Type | Description |
|---|---|---|
changeId * | ||
confirmed * | boolean | |
invoiceId * | string |