{"openapi":"3.1.0","info":{"title":"Rebel Work Accounting API","version":"1.0.0","description":"Company-scoped bookkeeping API. Requires an admin-enabled company (DB as source of truth) and a bearer API key. Company id is taken from the key."},"servers":[{"url":"/api/v1"}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}}},"security":[{"bearerAuth":[]}],"paths":{"/openapi.json":{"get":{"summary":"This document","security":[],"responses":{"200":{"description":"OpenAPI document"}}}},"/accounting/me":{"get":{"summary":"Company and fiscal years for this key","responses":{"200":{"description":"Profile"}}}},"/accounting/accounts":{"get":{"summary":"Chart of accounts","responses":{"200":{"description":"Accounts"}}}},"/accounting/accounts/{account}/ledger":{"get":{"summary":"Account ledger","responses":{"200":{"description":"Ledger"}}}},"/accounting/trial-balance":{"get":{"summary":"Trial balance","responses":{"200":{"description":"Trial balance"}}}},"/accounting/summary":{"get":{"summary":"Result summary for a date range","responses":{"200":{"description":"Summary"}}}},"/accounting/verifications":{"get":{"summary":"List verifications","responses":{"200":{"description":"Verifications"}}},"post":{"summary":"Book a balanced voucher. serie is optional and defaults to the company API series (R unless changed).","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Booked"}}}},"/accounting/verifications/{serie}/{number}":{"get":{"summary":"Look up a verification. matches lists every fiscal year that uses this serie and number.","responses":{"200":{"description":"Verification"}}}},"/accounting/verifications/{serie}/{number}/corrections":{"post":{"summary":"Reverse one voucher. serie and number repeat every fiscal year, so year (calendar year of the voucher date) or date (YYYY-MM-DD) is required. The call is rejected when more than one voucher matches.","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Correction posted"}}}},"/accounting/export/sie":{"get":{"summary":"Export SIE with DB vouchers overlaid","responses":{"200":{"description":"SIE text"}}}}}}