{"openapi":"3.0.3","info":{"title":"ZakFin public API","version":"1","description":"Read-only. Every call needs a scoped API key made by the workspace owner or an admin. Money fields are numbers in the currency shown; dates are ISO 8601."},"servers":[{"url":"https://zakfin.com/api/v1"}],"x-scopes":{"companies:read":"List the companies this key may see.","receivables:read":"Open customer invoices, aged, with totals per currency.","credit:read":"Customer credit exposure and payment behaviour.","books:read":"Open invoices or bills of one company in ZakFin Books."},"x-webhook-events":{"ping":"A test message you ask for.","invoice.issued":"An invoice was issued in ZakFin Books.","invoice.voided":"An invoice was voided.","payment.recorded":"A payment was recorded against an invoice or bill.","bill.created":"A supplier bill was recorded.","action.proposed":"ZakFin prepared an action that waits for approval.","action.approved":"A person approved an action."},"x-versions":{"1":{"status":"current","since":"2026-11","sunset":null}},"components":{"securitySchemes":{"bearerKey":{"type":"http","scheme":"bearer","description":"zka_... key"}}},"paths":{"/companies":{"get":{"summary":"List companies","description":"Needs the `companies:read` scope.","security":[{"bearerKey":[]}],"parameters":[],"responses":{"200":{"description":"The answer, as JSON."},"401":{"description":"Missing, wrong, expired or revoked key."},"403":{"description":"The key lacks the scope, or the plan has no API access."},"429":{"description":"Rate limit reached. See Retry-After."}}}},"/receivables":{"get":{"summary":"Open invoices, aged","description":"Needs the `receivables:read` scope.","security":[{"bearerKey":[]}],"parameters":[{"name":"company","in":"query","description":"Only this company id","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"At most this many invoices per company (default 1000)","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The answer, as JSON."},"401":{"description":"Missing, wrong, expired or revoked key."},"403":{"description":"The key lacks the scope, or the plan has no API access."},"429":{"description":"Rate limit reached. See Retry-After."}}}},"/credit":{"get":{"summary":"Customer credit exposure","description":"Needs the `credit:read` scope.","security":[{"bearerKey":[]}],"parameters":[{"name":"company","in":"query","description":"Only this company id","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"At most this many invoices per company","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The answer, as JSON."},"401":{"description":"Missing, wrong, expired or revoked key."},"403":{"description":"The key lacks the scope, or the plan has no API access."},"429":{"description":"Rate limit reached. See Retry-After."}}}},"/books/documents":{"get":{"summary":"Open invoices or bills of one company","description":"Needs the `books:read` scope.","security":[{"bearerKey":[]}],"parameters":[{"name":"company","in":"query","description":"Company id (required)","required":true,"schema":{"type":"string"}},{"name":"kind","in":"query","description":"invoice (default) or bill","required":false,"schema":{"type":"string"}},{"name":"currency","in":"query","description":"Only this currency","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","description":"Search text","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The answer, as JSON."},"401":{"description":"Missing, wrong, expired or revoked key."},"403":{"description":"The key lacks the scope, or the plan has no API access."},"429":{"description":"Rate limit reached. See Retry-After."}}}}}}