{"openapi":"3.1.0","info":{"title":"HaraPro API","version":"3.1.51","description":"Access to the books of ONE HaraPro workspace over HTTPS: 24 reads (GET) and 12 writes (POST, which need an API key with the write scope and an Idempotency-Key header). A key belongs to the workspace, not to a person. Money is always an integer in cents (12345 is $123.45), in reads and in writes. Errors are application/problem+json (RFC 9457)."},"servers":[{"url":"https://app.harapro.com"}],"security":[{"bearer":[]}],"paths":{"/api/v1/workspace":{"get":{"operationId":"get_workspace","summary":"This workspace: its name, plan, the active businesses (id and name), today's date and time zone on the server, and the server version","description":"This workspace: its name, plan, the active businesses (id and name), today's date and time zone on the server, and the server version. Call it first.","tags":["workspace"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"The result of the read, in `data`, with `meta`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"400":{"description":"A parameter is missing or invalid; the `errors` list names each one.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or the key is invalid, expired or revoked.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The plan does not include API access, or the credential lacks the scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such route, the read is switched off for this workspace, or the thing asked for does not exist.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"405":{"description":"Only GET is allowed on this path.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many calls with this key this hour; see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"The read failed on the server.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/api/v1/amounts":{"get":{"operationId":"explain_amounts","summary":"How to read what the other tools return: the unit of money, the periods they accept and what is not on the server","description":"How to read what the other tools return: the unit of money, the periods they accept and what is not on the server. Amounts are integers in cents.","tags":["amounts"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"The result of the read, in `data`, with `meta`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"400":{"description":"A parameter is missing or invalid; the `errors` list names each one.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or the key is invalid, expired or revoked.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The plan does not include API access, or the credential lacks the scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such route, the read is switched off for this workspace, or the thing asked for does not exist.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"405":{"description":"Only GET is allowed on this path.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many calls with this key this hour; see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"The read failed on the server.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/api/v1/businesses":{"get":{"operationId":"getBusinesses","summary":"The owner's businesses: id, name, type, ownership, accounting method, active","description":"The owner's businesses: id, name, type, ownership, accounting method, active.","tags":["businesses"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"The result of the read, in `data`, with `meta`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"400":{"description":"A parameter is missing or invalid; the `errors` list names each one.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or the key is invalid, expired or revoked.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The plan does not include API access, or the credential lacks the scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such route, the read is switched off for this workspace, or the thing asked for does not exist.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"405":{"description":"Only GET is allowed on this path.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many calls with this key this hour; see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"The read failed on the server.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/api/v1/businesses/{id}/summary":{"get":{"operationId":"getBusinessSummary","summary":"Cash in, cash out, bank balance, unclassified count, what is due in 7 days and attention items for one business","description":"Cash in, cash out, bank balance, unclassified count, what is due in 7 days and attention items for one business. The result says the year it covers. Amounts are integers in cents.","tags":["businesses"],"security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Fills the \"businessId\" argument of getBusinessSummary.","schema":{"type":"string"}},{"name":"period","in":"query","required":false,"schema":{"type":"string"},"description":"today, this_week, this_month, ytd, YYYY-MM or YYYY-Qn"},{"name":"year","in":"query","required":false,"schema":{"type":"number"},"description":"Only when the owner named a year. Leave it out otherwise: the tool uses the newest year with data and tells you which in `year`. Say that year in the answer."}],"responses":{"200":{"description":"The result of the read, in `data`, with `meta`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"400":{"description":"A parameter is missing or invalid; the `errors` list names each one.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or the key is invalid, expired or revoked.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The plan does not include API access, or the credential lacks the scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such route, the read is switched off for this workspace, or the thing asked for does not exist.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"405":{"description":"Only GET is allowed on this path.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many calls with this key this hour; see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"The read failed on the server.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/api/v1/accounts/balances":{"get":{"operationId":"getAccountBalances","summary":"Live balances of the connected bank accounts, by account and by business, with the last sync time","description":"Live balances of the connected bank accounts, by account and by business, with the last sync time. Amounts are integers in cents.","tags":["accounts"],"security":[{"bearer":[]}],"parameters":[{"name":"year","in":"query","required":false,"schema":{"type":"number"},"description":"Only when the owner named a year. Leave it out otherwise: the tool uses the newest year with data and tells you which in `year`. Say that year in the answer."}],"responses":{"200":{"description":"The result of the read, in `data`, with `meta`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"400":{"description":"A parameter is missing or invalid; the `errors` list names each one.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or the key is invalid, expired or revoked.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The plan does not include API access, or the credential lacks the scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such route, the read is switched off for this workspace, or the thing asked for does not exist.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"405":{"description":"Only GET is allowed on this path.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many calls with this key this hour; see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"The read failed on the server.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/api/v1/transactions":{"get":{"operationId":"searchTransactions","summary":"Find transactions by vendor text, amount, dates, category or business, with the totals in and out; groupBy category, vendor, month or business gives totals per group","description":"Find transactions by vendor text, amount, dates, category or business, with the totals in and out; groupBy category, vendor, month or business gives totals per group. Use it for \"what did I spend on X\", \"find the Amazon charge\" and \"the $450 at Costco\". Amounts are integers in cents.","tags":["transactions"],"security":[{"bearer":[]}],"parameters":[{"name":"text","in":"query","required":false,"schema":{"type":"string"}},{"name":"amountCents","in":"query","required":false,"schema":{"type":"number"}},{"name":"from","in":"query","required":false,"schema":{"type":"string"},"description":"YYYY-MM-DD"},{"name":"to","in":"query","required":false,"schema":{"type":"string"},"description":"YYYY-MM-DD"},{"name":"period","in":"query","required":false,"schema":{"type":"string"},"description":"today, this_week, this_month, ytd, YYYY-MM or YYYY-Qn"},{"name":"category","in":"query","required":false,"schema":{"type":"string"}},{"name":"businessId","in":"query","required":false,"schema":{"type":"string"}},{"name":"direction","in":"query","required":false,"schema":{"type":"string"},"description":"in or out"},{"name":"groupBy","in":"query","required":false,"schema":{"type":"string"},"description":"category, vendor, month or business"},{"name":"year","in":"query","required":false,"schema":{"type":"number"},"description":"Only when the owner named a year. Leave it out otherwise: the tool uses the newest year with data and tells you which in `year`. Say that year in the answer."},{"name":"limit","in":"query","required":false,"schema":{"type":"number"}}],"responses":{"200":{"description":"The result of the read, in `data`, with `meta`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"400":{"description":"A parameter is missing or invalid; the `errors` list names each one.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or the key is invalid, expired or revoked.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The plan does not include API access, or the credential lacks the scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such route, the read is switched off for this workspace, or the thing asked for does not exist.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"405":{"description":"Only GET is allowed on this path.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many calls with this key this hour; see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"The read failed on the server.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/api/v1/transactions/unclassified":{"get":{"operationId":"listUnclassified","summary":"Transactions missing a business, category or tax tag, newest first","description":"Transactions missing a business, category or tax tag, newest first. Amounts are integers in cents.","tags":["transactions"],"security":[{"bearer":[]}],"parameters":[{"name":"businessId","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"number"}}],"responses":{"200":{"description":"The result of the read, in `data`, with `meta`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"400":{"description":"A parameter is missing or invalid; the `errors` list names each one.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or the key is invalid, expired or revoked.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The plan does not include API access, or the credential lacks the scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such route, the read is switched off for this workspace, or the thing asked for does not exist.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"405":{"description":"Only GET is allowed on this path.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many calls with this key this hour; see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"The read failed on the server.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/api/v1/transactions/{id}":{"get":{"operationId":"getTransaction","summary":"One transaction with its category, tax tag, business and the rule that matched it","description":"One transaction with its category, tax tag, business and the rule that matched it. Amounts are integers in cents.","tags":["transactions"],"security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Fills the \"txnId\" argument of getTransaction.","schema":{"type":"string"}}],"responses":{"200":{"description":"The result of the read, in `data`, with `meta`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"400":{"description":"A parameter is missing or invalid; the `errors` list names each one.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or the key is invalid, expired or revoked.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The plan does not include API access, or the credential lacks the scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such route, the read is switched off for this workspace, or the thing asked for does not exist.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"405":{"description":"Only GET is allowed on this path.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many calls with this key this hour; see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"The read failed on the server.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/api/v1/invoices/open":{"get":{"operationId":"listOpenInvoices","summary":"Open invoices grouped by customer with days overdue","description":"Open invoices grouped by customer with days overdue. Amounts are integers in cents.","tags":["invoices"],"security":[{"bearer":[]}],"parameters":[{"name":"businessId","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The result of the read, in `data`, with `meta`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"400":{"description":"A parameter is missing or invalid; the `errors` list names each one.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or the key is invalid, expired or revoked.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The plan does not include API access, or the credential lacks the scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such route, the read is switched off for this workspace, or the thing asked for does not exist.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"405":{"description":"Only GET is allowed on this path.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many calls with this key this hour; see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"The read failed on the server.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/api/v1/invoices/{id}/status":{"get":{"operationId":"getInvoiceStatus","summary":"Status of one invoice by number or id, and the deposit that paid it","description":"Status of one invoice by number or id, and the deposit that paid it. Amounts are integers in cents.","tags":["invoices"],"security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Fills the \"numberOrId\" argument of getInvoiceStatus.","schema":{"type":"string"}}],"responses":{"200":{"description":"The result of the read, in `data`, with `meta`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"400":{"description":"A parameter is missing or invalid; the `errors` list names each one.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or the key is invalid, expired or revoked.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The plan does not include API access, or the credential lacks the scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such route, the read is switched off for this workspace, or the thing asked for does not exist.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"405":{"description":"Only GET is allowed on this path.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many calls with this key this hour; see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"The read failed on the server.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/api/v1/tax/position":{"get":{"operationId":"getTaxPosition","summary":"The projected tax of the year as the Tax Center last saved it (with its age), the quarterly estimates paid so far and the next one still open","description":"The projected tax of the year as the Tax Center last saved it (with its age), the quarterly estimates paid so far and the next one still open. Say the `speech` it returns. Amounts are integers in cents.","tags":["tax"],"security":[{"bearer":[]}],"parameters":[{"name":"year","in":"query","required":false,"schema":{"type":"number"},"description":"Only when the owner named a year. Leave it out otherwise: the tool uses the newest year with data and tells you which in `year`. Say that year in the answer."}],"responses":{"200":{"description":"The result of the read, in `data`, with `meta`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"400":{"description":"A parameter is missing or invalid; the `errors` list names each one.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or the key is invalid, expired or revoked.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The plan does not include API access, or the credential lacks the scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such route, the read is switched off for this workspace, or the thing asked for does not exist.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"405":{"description":"Only GET is allowed on this path.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many calls with this key this hour; see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"The read failed on the server.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/api/v1/tax/quarterly-estimate":{"get":{"operationId":"getQuarterlyEstimate","summary":"One quarterly estimate: the saved amount (null when not calculated yet), the due date and whether it was paid","description":"One quarterly estimate: the saved amount (null when not calculated yet), the due date and whether it was paid. Amounts are integers in cents.","tags":["tax"],"security":[{"bearer":[]}],"parameters":[{"name":"year","in":"query","required":false,"schema":{"type":"number"},"description":"Only when the owner named a year. Leave it out otherwise: the tool uses the newest year with data and tells you which in `year`. Say that year in the answer."},{"name":"quarter","in":"query","required":true,"schema":{"type":"number"}}],"responses":{"200":{"description":"The result of the read, in `data`, with `meta`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"400":{"description":"A parameter is missing or invalid; the `errors` list names each one.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or the key is invalid, expired or revoked.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The plan does not include API access, or the credential lacks the scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such route, the read is switched off for this workspace, or the thing asked for does not exist.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"405":{"description":"Only GET is allowed on this path.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many calls with this key this hour; see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"The read failed on the server.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/api/v1/loans":{"get":{"operationId":"getLoans","summary":"Open loans and mortgages (the result says the year of the paid-this-year and interest figures): balance, rate, monthly payment, paid this year, last payment, estimated next payment, loans due in 30 days and interest paid this year by business","description":"Open loans and mortgages (the result says the year of the paid-this-year and interest figures): balance, rate, monthly payment, paid this year, last payment, estimated next payment, loans due in 30 days and interest paid this year by business. With extraPaymentCents it returns the payoff date and interest saved, computed on the server. Amounts are integers in cents.","tags":["loans"],"security":[{"bearer":[]}],"parameters":[{"name":"businessId","in":"query","required":false,"schema":{"type":"string"}},{"name":"year","in":"query","required":false,"schema":{"type":"number"},"description":"Only when the owner named a year. Leave it out otherwise: the tool uses the newest year with data and tells you which in `year`. Say that year in the answer."},{"name":"loanName","in":"query","required":false,"schema":{"type":"string"},"description":"part of the loan or property name"},{"name":"extraPaymentCents","in":"query","required":false,"schema":{"type":"number"}},{"name":"recurringExtraCents","in":"query","required":false,"schema":{"type":"number"}}],"responses":{"200":{"description":"The result of the read, in `data`, with `meta`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"400":{"description":"A parameter is missing or invalid; the `errors` list names each one.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or the key is invalid, expired or revoked.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The plan does not include API access, or the credential lacks the scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such route, the read is switched off for this workspace, or the thing asked for does not exist.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"405":{"description":"Only GET is allowed on this path.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many calls with this key this hour; see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"The read failed on the server.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"post":{"operationId":"create_loan","summary":"Recording a loan or a line of credit that the business owes","description":"Does this: recording a loan or a line of credit that the business owes. Saves at once, with no confirmation step: the write scope of the key, which only the workspace owner can grant, is the confirmation. Only an API key of the workspace (hara_sk_) can call it; a personal token or an OAuth access token gets 403, because actions of AI assistants go through the MCP, where the owner confirms them. Runs the same checks and the same code as the Approve button of Hara. Amounts are integers in cents (rates in basis points).","tags":["loans"],"security":[{"bearer":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"A unique id you make up for this request (1 to 128 characters). Send the same key again with the same body and you get the same answer, not a second write (Idempotent-Replayed: true). The same key with another body is 422. Kept for 24 hours.","schema":{"type":"string","minLength":1,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"businessId":{"type":"string","description":"The business id or name, as in get_workspace"},"loanType":{"type":"string","enum":["loan","loc"],"description":"loan or line of credit, defaults to loan"},"name":{"type":"string","description":"A name for the loan"},"balanceCents":{"type":"integer","description":"Balance owed (in cents, an integer; 12500 is $125.00)"},"lender":{"type":"string","description":"Lender"},"interestRateBps":{"type":"integer","description":"Yearly rate (in basis points, an integer; 750 is 7.5%)"},"monthlyPaymentCents":{"type":"integer","description":"Monthly payment (in cents, an integer; 12500 is $125.00)"}},"required":["businessId","name","balanceCents"],"additionalProperties":false}}}},"responses":{"201":{"description":"Done. What was created is in `data` (ids included, amounts in cents), with `meta`. A repeat of the same request answers with the same body and Idempotent-Replayed: true.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"400":{"description":"The body is invalid (the `errors` list names each field), or the Idempotency-Key is missing (error missing_idempotency_key).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or the key is invalid, expired or revoked.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is not an API key of the workspace (personal tokens and OAuth tokens write through the MCP), the key has no write scope (insufficient_scope), the plan does not include API access or this feature, or a plan limit was reached.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such route, the action is switched off, or the thing it names does not exist.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"A request with this Idempotency-Key is still running (idempotency_in_progress): retry after 2 minutes. A record that stays in progress for more than 120 seconds is treated as abandoned, and the next call with the same key runs the request again. Also returned when the books refuse the request now (for example a closed month).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"This Idempotency-Key was already used with a different request (idempotency_key_reuse).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many writes with this key this hour; see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"A service the action needs is not available.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/api/v1/loans/calc":{"get":{"operationId":"calcLoan","summary":"Loan arithmetic done on the server: a NEW loan (principalCents, ratePct, years) returns the monthly payment, total interest and payoff date; an existing one (balanceCents, ratePct, monthlyPaymentCents) with an extra payment returns the change","description":"Loan arithmetic done on the server: a NEW loan (principalCents, ratePct, years) returns the monthly payment, total interest and payoff date; an existing one (balanceCents, ratePct, monthlyPaymentCents) with an extra payment returns the change. Never compute a payment yourself. Amounts are integers in cents.","tags":["loans"],"security":[{"bearer":[]}],"parameters":[{"name":"principalCents","in":"query","required":false,"schema":{"type":"number"}},{"name":"ratePct","in":"query","required":false,"schema":{"type":"number"}},{"name":"years","in":"query","required":false,"schema":{"type":"number"}},{"name":"months","in":"query","required":false,"schema":{"type":"number"}},{"name":"balanceCents","in":"query","required":false,"schema":{"type":"number"}},{"name":"monthlyPaymentCents","in":"query","required":false,"schema":{"type":"number"}},{"name":"extraPaymentCents","in":"query","required":false,"schema":{"type":"number"}}],"responses":{"200":{"description":"The result of the read, in `data`, with `meta`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"400":{"description":"A parameter is missing or invalid; the `errors` list names each one.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or the key is invalid, expired or revoked.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The plan does not include API access, or the credential lacks the scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such route, the read is switched off for this workspace, or the thing asked for does not exist.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"405":{"description":"Only GET is allowed on this path.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many calls with this key this hour; see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"The read failed on the server.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/api/v1/loans/for-payment":{"get":{"operationId":"getLoanForPayment","summary":"The loan a payment belongs to, with principal and interest when recorded, balance after, or the candidate loans","description":"The loan a payment belongs to, with principal and interest when recorded, balance after, or the candidate loans. Amounts are integers in cents.","tags":["loans"],"security":[{"bearer":[]}],"parameters":[{"name":"amountCents","in":"query","required":true,"schema":{"type":"number"}},{"name":"dateISO","in":"query","required":true,"schema":{"type":"string"}},{"name":"businessId","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The result of the read, in `data`, with `meta`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"400":{"description":"A parameter is missing or invalid; the `errors` list names each one.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or the key is invalid, expired or revoked.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The plan does not include API access, or the credential lacks the scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such route, the read is switched off for this workspace, or the thing asked for does not exist.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"405":{"description":"Only GET is allowed on this path.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many calls with this key this hour; see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"The read failed on the server.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/api/v1/close/checklist":{"get":{"operationId":"getMonthCloseChecklist","summary":"What is still open before a month can be closed for a business","description":"What is still open before a month can be closed for a business.","tags":["close"],"security":[{"bearer":[]}],"parameters":[{"name":"businessId","in":"query","required":true,"schema":{"type":"string"}},{"name":"month","in":"query","required":true,"schema":{"type":"string"},"description":"YYYY-MM"}],"responses":{"200":{"description":"The result of the read, in `data`, with `meta`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"400":{"description":"A parameter is missing or invalid; the `errors` list names each one.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or the key is invalid, expired or revoked.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The plan does not include API access, or the credential lacks the scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such route, the read is switched off for this workspace, or the thing asked for does not exist.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"405":{"description":"Only GET is allowed on this path.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many calls with this key this hour; see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"The read failed on the server.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/api/v1/declines":{"get":{"operationId":"getDeclineList","summary":"The list of requests Hara declines, with the exact sentence and the screen","description":"The list of requests Hara declines, with the exact sentence and the screen.","tags":["declines"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"The result of the read, in `data`, with `meta`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"400":{"description":"A parameter is missing or invalid; the `errors` list names each one.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or the key is invalid, expired or revoked.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The plan does not include API access, or the credential lacks the scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such route, the read is switched off for this workspace, or the thing asked for does not exist.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"405":{"description":"Only GET is allowed on this path.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many calls with this key this hour; see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"The read failed on the server.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/api/v1/investments":{"get":{"operationId":"getInvestments","summary":"Investment positions with value, cost basis and unrealized gain or loss, open lots with purchase date and basis, realized gains this year, brokerage accounts","description":"Investment positions with value, cost basis and unrealized gain or loss, open lots with purchase date and basis, realized gains this year, brokerage accounts. query filters by name, ticker or account (for example Vanguard). The result says the year of the realized gains. Amounts are integers in cents.","tags":["investments"],"security":[{"bearer":[]}],"parameters":[{"name":"query","in":"query","required":false,"schema":{"type":"string"}},{"name":"year","in":"query","required":false,"schema":{"type":"number"},"description":"Only when the owner named a year. Leave it out otherwise: the tool uses the newest year with data and tells you which in `year`. Say that year in the answer."}],"responses":{"200":{"description":"The result of the read, in `data`, with `meta`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"400":{"description":"A parameter is missing or invalid; the `errors` list names each one.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or the key is invalid, expired or revoked.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The plan does not include API access, or the credential lacks the scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such route, the read is switched off for this workspace, or the thing asked for does not exist.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"405":{"description":"Only GET is allowed on this path.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many calls with this key this hour; see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"The read failed on the server.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/api/v1/assets":{"get":{"operationId":"getAssets","summary":"Properties (cost, value, loan, equity), vehicles, alternative investments (oil and gas, SAFEs, notes, real estate partnerships) with capital in and returned, and the recorded net worth and debt to equity","description":"Properties (cost, value, loan, equity), vehicles, alternative investments (oil and gas, SAFEs, notes, real estate partnerships) with capital in and returned, and the recorded net worth and debt to equity. Amounts are integers in cents.","tags":["assets"],"security":[{"bearer":[]}],"parameters":[{"name":"businessId","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The result of the read, in `data`, with `meta`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"400":{"description":"A parameter is missing or invalid; the `errors` list names each one.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or the key is invalid, expired or revoked.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The plan does not include API access, or the credential lacks the scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such route, the read is switched off for this workspace, or the thing asked for does not exist.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"405":{"description":"Only GET is allowed on this path.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many calls with this key this hour; see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"The read failed on the server.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/api/v1/insurance":{"get":{"operationId":"getInsurance","summary":"Insurance policies recorded: type, carrier, business, premium, renewal date, and common types not on file","description":"Insurance policies recorded: type, carrier, business, premium, renewal date, and common types not on file. Amounts are integers in cents.","tags":["insurance"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"The result of the read, in `data`, with `meta`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"400":{"description":"A parameter is missing or invalid; the `errors` list names each one.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or the key is invalid, expired or revoked.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The plan does not include API access, or the credential lacks the scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such route, the read is switched off for this workspace, or the thing asked for does not exist.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"405":{"description":"Only GET is allowed on this path.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many calls with this key this hour; see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"The read failed on the server.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/api/v1/family":{"get":{"operationId":"getFamily","summary":"The family: people, roles, ages, dependents and the businesses each is linked to","description":"The family: people, roles, ages, dependents and the businesses each is linked to.","tags":["family"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"The result of the read, in `data`, with `meta`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"400":{"description":"A parameter is missing or invalid; the `errors` list names each one.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or the key is invalid, expired or revoked.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The plan does not include API access, or the credential lacks the scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such route, the read is switched off for this workspace, or the thing asked for does not exist.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"405":{"description":"Only GET is allowed on this path.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many calls with this key this hour; see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"The read failed on the server.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/api/v1/depreciation":{"get":{"operationId":"getDepreciation","summary":"The depreciation of a tax year across rentals, equipment and vehicles from the app's own engine: per asset annual, accumulated and net book value, the total, and what was skipped and why","description":"The depreciation of a tax year across rentals, equipment and vehicles from the app's own engine: per asset annual, accumulated and net book value, the total, and what was skipped and why. Says the year. Amounts are integers in cents.","tags":["depreciation"],"security":[{"bearer":[]}],"parameters":[{"name":"year","in":"query","required":false,"schema":{"type":"number"},"description":"Only when the owner named a year. Leave it out otherwise: the tool uses the newest year with data and tells you which in `year`. Say that year in the answer."},{"name":"businessId","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The result of the read, in `data`, with `meta`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"400":{"description":"A parameter is missing or invalid; the `errors` list names each one.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or the key is invalid, expired or revoked.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The plan does not include API access, or the credential lacks the scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such route, the read is switched off for this workspace, or the thing asked for does not exist.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"405":{"description":"Only GET is allowed on this path.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many calls with this key this hour; see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"The read failed on the server.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/api/v1/fixed-assets":{"get":{"operationId":"getFixedAssets","summary":"The vehicles and the equipment of the books, one row each: cost, the date it went into service, the depreciation method and life, and the depreciation of the year, the accumulated amount and the net book value, computed by the same function as the Form 4562","description":"The vehicles and the equipment of the books, one row each: cost, the date it went into service, the depreciation method and life, and the depreciation of the year, the accumulated amount and the net book value, computed by the same function as the Form 4562. Use it for any question about depreciation, a vehicle, a truck, a machine, equipment or section 179. Says the year. Amounts are integers in cents.","tags":["fixed-assets"],"security":[{"bearer":[]}],"parameters":[{"name":"businessId","in":"query","required":false,"schema":{"type":"string"}},{"name":"year","in":"query","required":false,"schema":{"type":"number"},"description":"Only when the owner named a year. Leave it out otherwise: the tool uses the newest year with data and tells you which in `year`. Say that year in the answer."},{"name":"kind","in":"query","required":false,"schema":{"type":"string"},"description":"vehicle or equipment; leave out for both"}],"responses":{"200":{"description":"The result of the read, in `data`, with `meta`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"400":{"description":"A parameter is missing or invalid; the `errors` list names each one.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or the key is invalid, expired or revoked.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The plan does not include API access, or the credential lacks the scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such route, the read is switched off for this workspace, or the thing asked for does not exist.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"405":{"description":"Only GET is allowed on this path.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many calls with this key this hour; see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"The read failed on the server.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/api/v1/estate/coverage":{"get":{"operationId":"getEstateCoverage","summary":"Estate documents on file by type, which types are missing, and which businesses are owned by a trust","description":"Estate documents on file by type, which types are missing, and which businesses are owned by a trust. Unlimited plan only.","tags":["estate"],"security":[{"bearer":[]}],"parameters":[{"name":"state","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The result of the read, in `data`, with `meta`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"400":{"description":"A parameter is missing or invalid; the `errors` list names each one.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or the key is invalid, expired or revoked.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The plan does not include API access, or the credential lacks the scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such route, the read is switched off for this workspace, or the thing asked for does not exist.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"405":{"description":"Only GET is allowed on this path.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many calls with this key this hour; see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"The read failed on the server.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/api/v1/documents":{"get":{"operationId":"getDocuments","summary":"Search the documents on file (uploaded documents, tax forms, estate drafts: the Vault index) by words in the title, type or year: returns title, kind, year and date","description":"Search the documents on file (uploaded documents, tax forms, estate drafts: the Vault index) by words in the title, type or year: returns title, kind, year and date. Never claim a document exists unless it is returned here.","tags":["documents"],"security":[{"bearer":[]}],"parameters":[{"name":"query","in":"query","required":false,"schema":{"type":"string"}},{"name":"type","in":"query","required":false,"schema":{"type":"string"}},{"name":"year","in":"query","required":false,"schema":{"type":"number"}},{"name":"limit","in":"query","required":false,"schema":{"type":"number"}}],"responses":{"200":{"description":"The result of the read, in `data`, with `meta`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"400":{"description":"A parameter is missing or invalid; the `errors` list names each one.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or the key is invalid, expired or revoked.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The plan does not include API access, or the credential lacks the scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such route, the read is switched off for this workspace, or the thing asked for does not exist.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"405":{"description":"Only GET is allowed on this path.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many calls with this key this hour; see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"The read failed on the server.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/api/v1/customers":{"post":{"operationId":"create_customer","summary":"Adding a customer or a vendor to the workspace","description":"Does this: adding a customer or a vendor to the workspace. Saves at once, with no confirmation step: the write scope of the key, which only the workspace owner can grant, is the confirmation. Only an API key of the workspace (hara_sk_) can call it; a personal token or an OAuth access token gets 403, because actions of AI assistants go through the MCP, where the owner confirms them. Runs the same checks and the same code as the Approve button of Hara. Amounts are integers in cents (rates in basis points).","tags":["customers"],"security":[{"bearer":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"A unique id you make up for this request (1 to 128 characters). Send the same key again with the same body and you get the same answer, not a second write (Idempotent-Replayed: true). The same key with another body is 422. Kept for 24 hours.","schema":{"type":"string","minLength":1,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"displayName":{"type":"string","description":"Name"},"role":{"type":"string","enum":["customer","vendor"],"description":"Defaults to customer"},"email":{"type":"string","description":"Billing email"},"phone":{"type":"string","description":"Phone"},"address":{"type":"string","description":"Billing address"}},"required":["displayName"],"additionalProperties":false}}}},"responses":{"201":{"description":"Done. What was created is in `data` (ids included, amounts in cents), with `meta`. A repeat of the same request answers with the same body and Idempotent-Replayed: true.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"400":{"description":"The body is invalid (the `errors` list names each field), or the Idempotency-Key is missing (error missing_idempotency_key).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or the key is invalid, expired or revoked.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is not an API key of the workspace (personal tokens and OAuth tokens write through the MCP), the key has no write scope (insufficient_scope), the plan does not include API access or this feature, or a plan limit was reached.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such route, the action is switched off, or the thing it names does not exist.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"A request with this Idempotency-Key is still running (idempotency_in_progress): retry after 2 minutes. A record that stays in progress for more than 120 seconds is treated as abandoned, and the next call with the same key runs the request again. Also returned when the books refuse the request now (for example a closed month).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"This Idempotency-Key was already used with a different request (idempotency_key_reuse).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many writes with this key this hour; see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"A service the action needs is not available.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/api/v1/invoices":{"post":{"operationId":"create_invoice","summary":"A DRAFT invoice","description":"Does this: a DRAFT invoice. It is not sent, has no number and no payment link until it is issued. Saves at once, with no confirmation step: the write scope of the key, which only the workspace owner can grant, is the confirmation. Only an API key of the workspace (hara_sk_) can call it; a personal token or an OAuth access token gets 403, because actions of AI assistants go through the MCP, where the owner confirms them. Runs the same checks and the same code as the Approve button of Hara. Amounts are integers in cents (rates in basis points).","tags":["invoices"],"security":[{"bearer":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"A unique id you make up for this request (1 to 128 characters). Send the same key again with the same body and you get the same answer, not a second write (Idempotent-Replayed: true). The same key with another body is 422. Kept for 24 hours.","schema":{"type":"string","minLength":1,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"businessId":{"type":"string","description":"The business id or name, as in get_workspace"},"customerName":{"type":"string","description":"Customer name"},"customerEmail":{"type":"string","description":"Customer email"},"lines":{"type":"array","description":"Line items (1 to 25)","items":{"type":"object","properties":{"description":{"type":"string","description":"What it is"},"quantity":{"type":"number","description":"Defaults to 1"},"unitPriceCents":{"type":"integer","description":"Price of one unit (in cents, an integer; 12500 is $125.00)"},"category":{"type":"string","description":"A category of the books, for example Revenue/Income"},"taxable":{"type":"boolean","description":"Whether sales tax applies (invoices only)"}},"required":["description","unitPriceCents"]}},"issueDate":{"type":"string","description":"YYYY-MM-DD, defaults to today"},"dueDate":{"type":"string","description":"YYYY-MM-DD, defaults to the business payment terms"}},"required":["businessId","customerName","lines"],"additionalProperties":false}}}},"responses":{"201":{"description":"Done. What was created is in `data` (ids included, amounts in cents), with `meta`. A repeat of the same request answers with the same body and Idempotent-Replayed: true.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"400":{"description":"The body is invalid (the `errors` list names each field), or the Idempotency-Key is missing (error missing_idempotency_key).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or the key is invalid, expired or revoked.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is not an API key of the workspace (personal tokens and OAuth tokens write through the MCP), the key has no write scope (insufficient_scope), the plan does not include API access or this feature, or a plan limit was reached.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such route, the action is switched off, or the thing it names does not exist.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"A request with this Idempotency-Key is still running (idempotency_in_progress): retry after 2 minutes. A record that stays in progress for more than 120 seconds is treated as abandoned, and the next call with the same key runs the request again. Also returned when the books refuse the request now (for example a closed month).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"This Idempotency-Key was already used with a different request (idempotency_key_reuse).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many writes with this key this hour; see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"A service the action needs is not available.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/api/v1/invoices/{id}/issue":{"post":{"operationId":"issue_invoice","summary":"Issuing an existing draft invoice: it gets its number and can be emailed","description":"Does this: issuing an existing draft invoice: it gets its number and can be emailed. Saves at once, with no confirmation step: the write scope of the key, which only the workspace owner can grant, is the confirmation. Only an API key of the workspace (hara_sk_) can call it; a personal token or an OAuth access token gets 403, because actions of AI assistants go through the MCP, where the owner confirms them. Runs the same checks and the same code as the Approve button of Hara. Amounts are integers in cents (rates in basis points).","tags":["invoices"],"security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Fills the \"invoiceId\" field of issue_invoice.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"A unique id you make up for this request (1 to 128 characters). Send the same key again with the same body and you get the same answer, not a second write (Idempotent-Replayed: true). The same key with another body is 422. Kept for 24 hours.","schema":{"type":"string","minLength":1,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"businessId":{"type":"string","description":"The business id or name, as in get_workspace"},"customerName":{"type":"string","description":"Or the customer name, to find the draft"},"sendTo":{"type":"string","description":"Email the issued invoice to this address"}},"required":["businessId"],"additionalProperties":false}}}},"responses":{"201":{"description":"Done. What was created is in `data` (ids included, amounts in cents), with `meta`. A repeat of the same request answers with the same body and Idempotent-Replayed: true.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"400":{"description":"The body is invalid (the `errors` list names each field), or the Idempotency-Key is missing (error missing_idempotency_key).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or the key is invalid, expired or revoked.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is not an API key of the workspace (personal tokens and OAuth tokens write through the MCP), the key has no write scope (insufficient_scope), the plan does not include API access or this feature, or a plan limit was reached.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such route, the action is switched off, or the thing it names does not exist.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"A request with this Idempotency-Key is still running (idempotency_in_progress): retry after 2 minutes. A record that stays in progress for more than 120 seconds is treated as abandoned, and the next call with the same key runs the request again. Also returned when the books refuse the request now (for example a closed month).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"This Idempotency-Key was already used with a different request (idempotency_key_reuse).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many writes with this key this hour; see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"A service the action needs is not available.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/api/v1/invoices/{id}/send":{"post":{"operationId":"send_invoice","summary":"Emailing an invoice that is already issued","description":"Does this: emailing an invoice that is already issued. Saves at once, with no confirmation step: the write scope of the key, which only the workspace owner can grant, is the confirmation. Only an API key of the workspace (hara_sk_) can call it; a personal token or an OAuth access token gets 403, because actions of AI assistants go through the MCP, where the owner confirms them. Runs the same checks and the same code as the Approve button of Hara. Amounts are integers in cents (rates in basis points).","tags":["invoices"],"security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Fills the \"invoiceId\" field of send_invoice.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"A unique id you make up for this request (1 to 128 characters). Send the same key again with the same body and you get the same answer, not a second write (Idempotent-Replayed: true). The same key with another body is 422. Kept for 24 hours.","schema":{"type":"string","minLength":1,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"to":{"type":"string","description":"Recipient email"},"cc":{"type":"string","description":"Copy to this email"},"message":{"type":"string","description":"A short note, up to 500 characters"}},"required":["to"],"additionalProperties":false}}}},"responses":{"201":{"description":"Done. What was created is in `data` (ids included, amounts in cents), with `meta`. A repeat of the same request answers with the same body and Idempotent-Replayed: true.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"400":{"description":"The body is invalid (the `errors` list names each field), or the Idempotency-Key is missing (error missing_idempotency_key).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or the key is invalid, expired or revoked.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is not an API key of the workspace (personal tokens and OAuth tokens write through the MCP), the key has no write scope (insufficient_scope), the plan does not include API access or this feature, or a plan limit was reached.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such route, the action is switched off, or the thing it names does not exist.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"A request with this Idempotency-Key is still running (idempotency_in_progress): retry after 2 minutes. A record that stays in progress for more than 120 seconds is treated as abandoned, and the next call with the same key runs the request again. Also returned when the books refuse the request now (for example a closed month).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"This Idempotency-Key was already used with a different request (idempotency_key_reuse).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many writes with this key this hour; see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"A service the action needs is not available.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/api/v1/recurring-invoices":{"post":{"operationId":"create_recurring_invoice","summary":"A recurring invoice","description":"Does this: a recurring invoice. Nothing is issued or charged automatically. Saves at once, with no confirmation step: the write scope of the key, which only the workspace owner can grant, is the confirmation. Only an API key of the workspace (hara_sk_) can call it; a personal token or an OAuth access token gets 403, because actions of AI assistants go through the MCP, where the owner confirms them. Runs the same checks and the same code as the Approve button of Hara. Amounts are integers in cents (rates in basis points).","tags":["recurring-invoices"],"security":[{"bearer":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"A unique id you make up for this request (1 to 128 characters). Send the same key again with the same body and you get the same answer, not a second write (Idempotent-Replayed: true). The same key with another body is 422. Kept for 24 hours.","schema":{"type":"string","minLength":1,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"businessId":{"type":"string","description":"The business id or name, as in get_workspace"},"customerName":{"type":"string","description":"Customer name"},"customerEmail":{"type":"string","description":"Customer email"},"lines":{"type":"array","description":"Line items (1 to 25)","items":{"type":"object","properties":{"description":{"type":"string","description":"What it is"},"quantity":{"type":"number","description":"Defaults to 1"},"unitPriceCents":{"type":"integer","description":"Price of one unit (in cents, an integer; 12500 is $125.00)"},"category":{"type":"string","description":"A category of the books, for example Revenue/Income"},"taxable":{"type":"boolean","description":"Whether sales tax applies (invoices only)"}},"required":["description","unitPriceCents"]}},"unit":{"type":"string","enum":["week","month","quarter","year"],"description":"Defaults to month"},"every":{"type":"number","description":"Every N units, defaults to 1"},"startDate":{"type":"string","description":"YYYY-MM-DD"}},"required":["businessId","customerName","lines","startDate"],"additionalProperties":false}}}},"responses":{"201":{"description":"Done. What was created is in `data` (ids included, amounts in cents), with `meta`. A repeat of the same request answers with the same body and Idempotent-Replayed: true.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"400":{"description":"The body is invalid (the `errors` list names each field), or the Idempotency-Key is missing (error missing_idempotency_key).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or the key is invalid, expired or revoked.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is not an API key of the workspace (personal tokens and OAuth tokens write through the MCP), the key has no write scope (insufficient_scope), the plan does not include API access or this feature, or a plan limit was reached.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such route, the action is switched off, or the thing it names does not exist.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"A request with this Idempotency-Key is still running (idempotency_in_progress): retry after 2 minutes. A record that stays in progress for more than 120 seconds is treated as abandoned, and the next call with the same key runs the request again. Also returned when the books refuse the request now (for example a closed month).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"This Idempotency-Key was already used with a different request (idempotency_key_reuse).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many writes with this key this hour; see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"A service the action needs is not available.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/api/v1/purchase-orders":{"post":{"operationId":"create_purchase_order","summary":"A DRAFT purchase order","description":"Does this: a DRAFT purchase order. It gets its number when approved in HaraPro. Saves at once, with no confirmation step: the write scope of the key, which only the workspace owner can grant, is the confirmation. Only an API key of the workspace (hara_sk_) can call it; a personal token or an OAuth access token gets 403, because actions of AI assistants go through the MCP, where the owner confirms them. Runs the same checks and the same code as the Approve button of Hara. Amounts are integers in cents (rates in basis points).","tags":["purchase-orders"],"security":[{"bearer":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"A unique id you make up for this request (1 to 128 characters). Send the same key again with the same body and you get the same answer, not a second write (Idempotent-Replayed: true). The same key with another body is 422. Kept for 24 hours.","schema":{"type":"string","minLength":1,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"businessId":{"type":"string","description":"The business id or name, as in get_workspace"},"vendorName":{"type":"string","description":"Vendor name"},"date":{"type":"string","description":"YYYY-MM-DD, defaults to today"},"lines":{"type":"array","description":"Line items (1 to 25)","items":{"type":"object","properties":{"description":{"type":"string","description":"What it is"},"quantity":{"type":"number","description":"Defaults to 1"},"unitPriceCents":{"type":"integer","description":"Price of one unit (in cents, an integer; 12500 is $125.00)"},"category":{"type":"string","description":"A category of the books, for example Revenue/Income"},"taxable":{"type":"boolean","description":"Whether sales tax applies (invoices only)"}},"required":["description","unitPriceCents"]}}},"required":["businessId","vendorName","lines"],"additionalProperties":false}}}},"responses":{"201":{"description":"Done. What was created is in `data` (ids included, amounts in cents), with `meta`. A repeat of the same request answers with the same body and Idempotent-Replayed: true.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"400":{"description":"The body is invalid (the `errors` list names each field), or the Idempotency-Key is missing (error missing_idempotency_key).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or the key is invalid, expired or revoked.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is not an API key of the workspace (personal tokens and OAuth tokens write through the MCP), the key has no write scope (insufficient_scope), the plan does not include API access or this feature, or a plan limit was reached.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such route, the action is switched off, or the thing it names does not exist.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"A request with this Idempotency-Key is still running (idempotency_in_progress): retry after 2 minutes. A record that stays in progress for more than 120 seconds is treated as abandoned, and the next call with the same key runs the request again. Also returned when the books refuse the request now (for example a closed month).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"This Idempotency-Key was already used with a different request (idempotency_key_reuse).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many writes with this key this hour; see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"A service the action needs is not available.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/api/v1/purchase-orders/{id}/approve":{"post":{"operationId":"approve_purchase_order","summary":"Approving an existing draft purchase order","description":"Does this: approving an existing draft purchase order. Saves at once, with no confirmation step: the write scope of the key, which only the workspace owner can grant, is the confirmation. Only an API key of the workspace (hara_sk_) can call it; a personal token or an OAuth access token gets 403, because actions of AI assistants go through the MCP, where the owner confirms them. Runs the same checks and the same code as the Approve button of Hara. Amounts are integers in cents (rates in basis points).","tags":["purchase-orders"],"security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Fills the \"poId\" field of approve_purchase_order.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"A unique id you make up for this request (1 to 128 characters). Send the same key again with the same body and you get the same answer, not a second write (Idempotent-Replayed: true). The same key with another body is 422. Kept for 24 hours.","schema":{"type":"string","minLength":1,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"businessId":{"type":"string","description":"The business id or name, as in get_workspace"},"vendorName":{"type":"string","description":"Or the vendor name, to find the draft"}},"required":["businessId"],"additionalProperties":false}}}},"responses":{"201":{"description":"Done. What was created is in `data` (ids included, amounts in cents), with `meta`. A repeat of the same request answers with the same body and Idempotent-Replayed: true.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"400":{"description":"The body is invalid (the `errors` list names each field), or the Idempotency-Key is missing (error missing_idempotency_key).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or the key is invalid, expired or revoked.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is not an API key of the workspace (personal tokens and OAuth tokens write through the MCP), the key has no write scope (insufficient_scope), the plan does not include API access or this feature, or a plan limit was reached.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such route, the action is switched off, or the thing it names does not exist.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"A request with this Idempotency-Key is still running (idempotency_in_progress): retry after 2 minutes. A record that stays in progress for more than 120 seconds is treated as abandoned, and the next call with the same key runs the request again. Also returned when the books refuse the request now (for example a closed month).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"This Idempotency-Key was already used with a different request (idempotency_key_reuse).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many writes with this key this hour; see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"A service the action needs is not available.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/api/v1/journal-entries":{"post":{"operationId":"create_journal_entry","summary":"A manual journal entry (one debit and one credit)","description":"Does this: a manual journal entry (one debit and one credit). Saves at once, with no confirmation step: the write scope of the key, which only the workspace owner can grant, is the confirmation. Only an API key of the workspace (hara_sk_) can call it; a personal token or an OAuth access token gets 403, because actions of AI assistants go through the MCP, where the owner confirms them. Runs the same checks and the same code as the Approve button of Hara. Amounts are integers in cents (rates in basis points).","tags":["journal-entries"],"security":[{"bearer":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"A unique id you make up for this request (1 to 128 characters). Send the same key again with the same body and you get the same answer, not a second write (Idempotent-Replayed: true). The same key with another body is 422. Kept for 24 hours.","schema":{"type":"string","minLength":1,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"businessId":{"type":"string","description":"The business id or name, as in get_workspace"},"date":{"type":"string","description":"YYYY-MM-DD"},"description":{"type":"string","description":"What it is"},"debitCategory":{"type":"string","description":"A category of the books"},"creditCategory":{"type":"string","description":"A category of the books"},"amountCents":{"type":"integer","description":"Amount, above zero (in cents, an integer; 12500 is $125.00)"},"notes":{"type":"string","description":"Notes"}},"required":["businessId","date","description","debitCategory","creditCategory","amountCents"],"additionalProperties":false}}}},"responses":{"201":{"description":"Done. What was created is in `data` (ids included, amounts in cents), with `meta`. A repeat of the same request answers with the same body and Idempotent-Replayed: true.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"400":{"description":"The body is invalid (the `errors` list names each field), or the Idempotency-Key is missing (error missing_idempotency_key).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or the key is invalid, expired or revoked.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is not an API key of the workspace (personal tokens and OAuth tokens write through the MCP), the key has no write scope (insufficient_scope), the plan does not include API access or this feature, or a plan limit was reached.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such route, the action is switched off, or the thing it names does not exist.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"A request with this Idempotency-Key is still running (idempotency_in_progress): retry after 2 minutes. A record that stays in progress for more than 120 seconds is treated as abandoned, and the next call with the same key runs the request again. Also returned when the books refuse the request now (for example a closed month).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"This Idempotency-Key was already used with a different request (idempotency_key_reuse).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many writes with this key this hour; see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"A service the action needs is not available.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/api/v1/safes":{"post":{"operationId":"create_safe","summary":"Recording a SAFE or a similar investment the business made","description":"Does this: recording a SAFE or a similar investment the business made. Saves at once, with no confirmation step: the write scope of the key, which only the workspace owner can grant, is the confirmation. Only an API key of the workspace (hara_sk_) can call it; a personal token or an OAuth access token gets 403, because actions of AI assistants go through the MCP, where the owner confirms them. Runs the same checks and the same code as the Approve button of Hara. Amounts are integers in cents (rates in basis points).","tags":["safes"],"security":[{"bearer":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"A unique id you make up for this request (1 to 128 characters). Send the same key again with the same body and you get the same answer, not a second write (Idempotent-Replayed: true). The same key with another body is 422. Kept for 24 hours.","schema":{"type":"string","minLength":1,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"businessId":{"type":"string","description":"The business id or name, as in get_workspace"},"issuingCompany":{"type":"string","description":"The company that issued it"},"name":{"type":"string","description":"A name"},"amountCents":{"type":"integer","description":"Amount invested (in cents, an integer; 12500 is $125.00)"},"investmentType":{"type":"string","description":"The type of investment, defaults to safe"},"investmentDate":{"type":"string","description":"YYYY-MM-DD"},"maturityDate":{"type":"string","description":"YYYY-MM-DD"},"interestRateBps":{"type":"integer","description":"Rate (in basis points, an integer; 750 is 7.5%)"},"discountRateBps":{"type":"integer","description":"Rate (in basis points, an integer; 750 is 7.5%)"},"valuationCapCents":{"type":"integer","description":"Valuation cap (in cents, an integer; 12500 is $125.00)"}},"required":["businessId","issuingCompany","amountCents"],"additionalProperties":false}}}},"responses":{"201":{"description":"Done. What was created is in `data` (ids included, amounts in cents), with `meta`. A repeat of the same request answers with the same body and Idempotent-Replayed: true.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"400":{"description":"The body is invalid (the `errors` list names each field), or the Idempotency-Key is missing (error missing_idempotency_key).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or the key is invalid, expired or revoked.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is not an API key of the workspace (personal tokens and OAuth tokens write through the MCP), the key has no write scope (insufficient_scope), the plan does not include API access or this feature, or a plan limit was reached.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such route, the action is switched off, or the thing it names does not exist.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"A request with this Idempotency-Key is still running (idempotency_in_progress): retry after 2 minutes. A record that stays in progress for more than 120 seconds is treated as abandoned, and the next call with the same key runs the request again. Also returned when the books refuse the request now (for example a closed month).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"This Idempotency-Key was already used with a different request (idempotency_key_reuse).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many writes with this key this hour; see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"A service the action needs is not available.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/api/v1/vehicles":{"post":{"operationId":"create_vehicle","summary":"Recording a vehicle the business owns or leases","description":"Does this: recording a vehicle the business owns or leases. Saves at once, with no confirmation step: the write scope of the key, which only the workspace owner can grant, is the confirmation. Only an API key of the workspace (hara_sk_) can call it; a personal token or an OAuth access token gets 403, because actions of AI assistants go through the MCP, where the owner confirms them. Runs the same checks and the same code as the Approve button of Hara. Amounts are integers in cents (rates in basis points).","tags":["vehicles"],"security":[{"bearer":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"A unique id you make up for this request (1 to 128 characters). Send the same key again with the same body and you get the same answer, not a second write (Idempotent-Replayed: true). The same key with another body is 422. Kept for 24 hours.","schema":{"type":"string","minLength":1,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"businessId":{"type":"string","description":"The business id or name, as in get_workspace"},"year":{"type":"number","description":"Model year"},"make":{"type":"string","description":"Make"},"model":{"type":"string","description":"Model"},"vin":{"type":"string","description":"VIN"},"purchaseDate":{"type":"string","description":"YYYY-MM-DD"},"purchasePriceCents":{"type":"integer","description":"Purchase price (in cents, an integer; 12500 is $125.00)"},"financeType":{"type":"string","enum":["cash","loan","lease"],"description":"How it was paid for"},"lender":{"type":"string","description":"Lender"},"loanBalanceCents":{"type":"integer","description":"Loan balance (in cents, an integer; 12500 is $125.00)"},"interestRateBps":{"type":"integer","description":"Rate (in basis points, an integer; 750 is 7.5%)"},"monthlyPaymentCents":{"type":"integer","description":"Monthly payment (in cents, an integer; 12500 is $125.00)"},"turoListed":{"type":"boolean","description":"True only if the user says the vehicle is listed for rental"}},"required":["businessId","make","model"],"additionalProperties":false}}}},"responses":{"201":{"description":"Done. What was created is in `data` (ids included, amounts in cents), with `meta`. A repeat of the same request answers with the same body and Idempotent-Replayed: true.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"400":{"description":"The body is invalid (the `errors` list names each field), or the Idempotency-Key is missing (error missing_idempotency_key).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or the key is invalid, expired or revoked.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is not an API key of the workspace (personal tokens and OAuth tokens write through the MCP), the key has no write scope (insufficient_scope), the plan does not include API access or this feature, or a plan limit was reached.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such route, the action is switched off, or the thing it names does not exist.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"A request with this Idempotency-Key is still running (idempotency_in_progress): retry after 2 minutes. A record that stays in progress for more than 120 seconds is treated as abandoned, and the next call with the same key runs the request again. Also returned when the books refuse the request now (for example a closed month).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"This Idempotency-Key was already used with a different request (idempotency_key_reuse).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many writes with this key this hour; see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"A service the action needs is not available.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/api/v1/entities":{"post":{"operationId":"create_entity","summary":"Adding a business to the workspace (subject to the limit of the plan)","description":"Does this: adding a business to the workspace (subject to the limit of the plan). Saves at once, with no confirmation step: the write scope of the key, which only the workspace owner can grant, is the confirmation. Only an API key of the workspace (hara_sk_) can call it; a personal token or an OAuth access token gets 403, because actions of AI assistants go through the MCP, where the owner confirms them. Runs the same checks and the same code as the Approve button of Hara. Amounts are integers in cents (rates in basis points).","tags":["entities"],"security":[{"bearer":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"A unique id you make up for this request (1 to 128 characters). Send the same key again with the same body and you get the same answer, not a second write (Idempotent-Replayed: true). The same key with another body is 422. Kept for 24 hours.","schema":{"type":"string","minLength":1,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Business name"},"entityType":{"type":"string","description":"Business type, required. One of: living_trust, revocable_trust, s_corp, c_corp, llc_single, llc_multi, llc_series, lp, sole_prop, trust, partnership, estate, re_llc, international"},"state":{"type":"string","description":"State of formation"},"ein":{"type":"string","description":"EIN"}},"required":["name","entityType"],"additionalProperties":false}}}},"responses":{"201":{"description":"Done. What was created is in `data` (ids included, amounts in cents), with `meta`. A repeat of the same request answers with the same body and Idempotent-Replayed: true.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"400":{"description":"The body is invalid (the `errors` list names each field), or the Idempotency-Key is missing (error missing_idempotency_key).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or the key is invalid, expired or revoked.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is not an API key of the workspace (personal tokens and OAuth tokens write through the MCP), the key has no write scope (insufficient_scope), the plan does not include API access or this feature, or a plan limit was reached.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such route, the action is switched off, or the thing it names does not exist.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"A request with this Idempotency-Key is still running (idempotency_in_progress): retry after 2 minutes. A record that stays in progress for more than 120 seconds is treated as abandoned, and the next call with the same key runs the request again. Also returned when the books refuse the request now (for example a closed month).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"This Idempotency-Key was already used with a different request (idempotency_key_reuse).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many writes with this key this hour; see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"A service the action needs is not available.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}}},"webhooks":{"ping":{"post":{"operationId":"webhook_ping","summary":"ping","description":"Sent when you press Send test on an endpoint. Only that endpoint gets it. Answer with any 2xx within 10 seconds. Anything else is retried after 1 minute, 5 minutes, 30 minutes, 2 hours and 12 hours; the 6th failure is final. Amounts are integers in cents.","tags":["webhooks"],"parameters":[{"name":"HaraPro-Signature","in":"header","required":true,"description":"t=<unix seconds>,v1=<hex HMAC-SHA256 of t + \".\" + rawBody with the endpoint secret>. During the 24 hours after a secret rotation there are two v1 values (new and old): accept if any matches. Reject a t more than 5 minutes from your clock.","schema":{"type":"string"}},{"name":"HaraPro-Event-Id","in":"header","required":true,"description":"The event id (evt_...). The same event keeps the same id on every retry: use it to deduplicate.","schema":{"type":"string"}},{"name":"HaraPro-Event-Type","in":"header","required":true,"schema":{"type":"string"}},{"name":"HaraPro-Delivery-Id","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","type","createdAt","tenantId","data","money","version"],"properties":{"id":{"type":"string","description":"evt_ + 24 hex characters."},"type":{"type":"string","enum":["ping"]},"createdAt":{"type":"string","format":"date-time"},"tenantId":{"type":"string"},"data":{"type":"object","properties":{"message":{"type":"string"}}},"money":{"type":"string","enum":["cents"],"description":"Amounts in the payload are integers in cents."},"version":{"type":"integer"}}}}}},"responses":{"2XX":{"description":"Received."}}}},"invoice.paid":{"post":{"operationId":"webhook_invoice_paid","summary":"invoice.paid","description":"An invoice was paid in full (a Stripe payment recorded on the invoice). Answer with any 2xx within 10 seconds. Anything else is retried after 1 minute, 5 minutes, 30 minutes, 2 hours and 12 hours; the 6th failure is final. Amounts are integers in cents.","tags":["webhooks"],"parameters":[{"name":"HaraPro-Signature","in":"header","required":true,"description":"t=<unix seconds>,v1=<hex HMAC-SHA256 of t + \".\" + rawBody with the endpoint secret>. During the 24 hours after a secret rotation there are two v1 values (new and old): accept if any matches. Reject a t more than 5 minutes from your clock.","schema":{"type":"string"}},{"name":"HaraPro-Event-Id","in":"header","required":true,"description":"The event id (evt_...). The same event keeps the same id on every retry: use it to deduplicate.","schema":{"type":"string"}},{"name":"HaraPro-Event-Type","in":"header","required":true,"schema":{"type":"string"}},{"name":"HaraPro-Delivery-Id","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","type","createdAt","tenantId","data","money","version"],"properties":{"id":{"type":"string","description":"evt_ + 24 hex characters."},"type":{"type":"string","enum":["invoice.paid"]},"createdAt":{"type":"string","format":"date-time"},"tenantId":{"type":"string"},"data":{"type":"object","required":["invoiceId","amountCents","paidAt","method"],"properties":{"invoiceId":{"type":"string"},"number":{"type":["integer","string","null"]},"customerId":{"type":["string","null"]},"customerName":{"type":["string","null"]},"amountCents":{"type":"integer","description":"Cents."},"paidAt":{"type":"string","format":"date-time"},"method":{"type":"string","enum":["stripe"]}}},"money":{"type":"string","enum":["cents"],"description":"Amounts in the payload are integers in cents."},"version":{"type":"integer"}}}}}},"responses":{"2XX":{"description":"Received."}}}},"transaction.imported":{"post":{"operationId":"webhook_transaction_imported","summary":"transaction.imported","description":"A bank sync imported new transactions. One event per import. Answer with any 2xx within 10 seconds. Anything else is retried after 1 minute, 5 minutes, 30 minutes, 2 hours and 12 hours; the 6th failure is final. Amounts are integers in cents.","tags":["webhooks"],"parameters":[{"name":"HaraPro-Signature","in":"header","required":true,"description":"t=<unix seconds>,v1=<hex HMAC-SHA256 of t + \".\" + rawBody with the endpoint secret>. During the 24 hours after a secret rotation there are two v1 values (new and old): accept if any matches. Reject a t more than 5 minutes from your clock.","schema":{"type":"string"}},{"name":"HaraPro-Event-Id","in":"header","required":true,"description":"The event id (evt_...). The same event keeps the same id on every retry: use it to deduplicate.","schema":{"type":"string"}},{"name":"HaraPro-Event-Type","in":"header","required":true,"schema":{"type":"string"}},{"name":"HaraPro-Delivery-Id","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","type","createdAt","tenantId","data","money","version"],"properties":{"id":{"type":"string","description":"evt_ + 24 hex characters."},"type":{"type":"string","enum":["transaction.imported"]},"createdAt":{"type":"string","format":"date-time"},"tenantId":{"type":"string"},"data":{"type":"object","required":["source","count"],"properties":{"source":{"type":"string","enum":["plaid","statement","csv"]},"businessId":{"type":["string","null"]},"accountId":{"type":["string","null"]},"count":{"type":"integer"},"from":{"type":["string","null"],"description":"Earliest date imported (YYYY-MM-DD)."},"to":{"type":["string","null"],"description":"Latest date imported (YYYY-MM-DD)."}}},"money":{"type":"string","enum":["cents"],"description":"Amounts in the payload are integers in cents."},"version":{"type":"integer"}}}}}},"responses":{"2XX":{"description":"Received."}}}},"action.confirmed":{"post":{"operationId":"webhook_action_confirmed","summary":"action.confirmed","description":"A change was confirmed and saved: a REST write, an MCP confirm_action, or the Approve button in the app. Answer with any 2xx within 10 seconds. Anything else is retried after 1 minute, 5 minutes, 30 minutes, 2 hours and 12 hours; the 6th failure is final. Amounts are integers in cents.","tags":["webhooks"],"parameters":[{"name":"HaraPro-Signature","in":"header","required":true,"description":"t=<unix seconds>,v1=<hex HMAC-SHA256 of t + \".\" + rawBody with the endpoint secret>. During the 24 hours after a secret rotation there are two v1 values (new and old): accept if any matches. Reject a t more than 5 minutes from your clock.","schema":{"type":"string"}},{"name":"HaraPro-Event-Id","in":"header","required":true,"description":"The event id (evt_...). The same event keeps the same id on every retry: use it to deduplicate.","schema":{"type":"string"}},{"name":"HaraPro-Event-Type","in":"header","required":true,"schema":{"type":"string"}},{"name":"HaraPro-Delivery-Id","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","type","createdAt","tenantId","data","money","version"],"properties":{"id":{"type":"string","description":"evt_ + 24 hex characters."},"type":{"type":"string","enum":["action.confirmed"]},"createdAt":{"type":"string","format":"date-time"},"tenantId":{"type":"string"},"data":{"type":"object","required":["action","source"],"properties":{"action":{"type":"string"},"source":{"type":"string","enum":["api","mcp","app"]},"recordType":{"type":["string","null"]},"recordId":{"type":["string","null"]},"summary":{"type":"string"},"amountCents":{"type":"integer","description":"Cents."}}},"money":{"type":"string","enum":["cents"],"description":"Amounts in the payload are integers in cents."},"version":{"type":"integer"}}}}}},"responses":{"2XX":{"description":"Received."}}}}},"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","bearerFormat":"hara_sk_...","description":"Authorization: Bearer hara_sk_... (an API key made in Settings > Developers). A personal token (hara_pat_) or an OAuth access token (hara_oat_) also works for the reads, never for a POST. Every POST needs an API key with the write scope: only the workspace owner can make a key that writes."}},"schemas":{"Envelope":{"type":"object","required":["data","meta"],"properties":{"data":{"description":"What the read returned. Money inside is in cents."},"meta":{"type":"object","required":["tenantId","tool","money","version","requestId"],"properties":{"tenantId":{"type":"string"},"tool":{"type":"string"},"money":{"type":"string","enum":["cents"]},"version":{"type":"string"},"requestId":{"type":"string"}}}}},"Problem":{"type":"object","required":["type","title","status","detail","instance"],"properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"instance":{"type":"string","description":"The request id, also in the X-Request-Id header."},"errors":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"message":{"type":"string"}}}}}}}}}