Human judgements
Some decisions in the books need a person. The books refuse them from an API key, an OAuth client or an AI assistant, whatever the permissions of the caller:
- an exemption, and a change or removal of one;
- a classification of money received, and a change or removal of one;
- a chosen exchange rate (
exchange_rate_id), a VAT code marked as a person's choice (vat_code_source: "manual"); - a default of a party, a dimension rule;
- the reopening of a period.
A person answers for these in the books. So the books record a person as the author of each one, never a program.
What your integration gets
A call that makes such a decision gets 403 human_actor_required:
{
"type": "https://oscaraccountant.com/errors/human_actor_required",
"title": "A person must make this decision",
"status": 403,
"code": "human_actor_required",
"detail": "..."
}
Do not retry it. Most calls of the public API never need a judgement. When one does, send the call without the judgement, or leave the decision to a person in the Oscar app.
A VAT code on an invoice line is not a judgement. Only
vat_code_source: "manual" makes it one:
- A line of a sales invoice: leave
vat_codeout and Oscar fills the code that it detects, or send a code of the company (GET /).api/ companies/ {company_id}/ vat-codes/ - A line of a purchase invoice or of a credit note: send a code of the company, unless the party has a default VAT code.
See Sales invoices.
Proposals
Oscar can record a proposal: the decision as the program proposes it, which a person then confirms or rejects in the app. The command then runs with that person as its author. The agent of the Oscar app does this. An AI assistant connected over MCP has no proposal tool: it leaves the decision to a person in the Oscar app. The proposal operations are not yet part of the public API.