{"source":"firmafakta","operation":"get_company_last_financial_statement","description":"The open section contains key figures from the most recently submitted annual financial statements,\nwhile the closed section contains almost all figures from the past three annual financial statements,\nincluding those from the consolidated accounts. Signature: get_company_last_financial_statement(organization_id: string, required; limit: integer, items, optional, default 25; offset: integer, items, optional, default 0).","signature":"get_company_last_financial_statement(organization_id: string, required; limit: integer, items, optional, default 25; offset: integer, items, optional, default 0)","parameters":[{"name":"organization_id","type":"string","schema":{"description":"Norwegian organization number (9 digits).","maxLength":9,"minLength":9,"type":"string"},"required":true,"default":null,"description":"The organization number of the company.","unit":null},{"name":"limit","type":"integer","schema":{"type":"integer","minimum":1,"maximum":100,"default":25},"display_type":"integer","required":false,"default":25,"description":"Maximum list items returned by the gateway (default 25, maximum 100).","unit":"items"},{"name":"offset","type":"integer","schema":{"type":"integer","minimum":0,"default":0},"display_type":"integer","required":false,"default":0,"description":"Number of list items to skip before returning the page.","unit":"items"}],"json_get_url_template":"https://allemannsdata.com/wiki/api/v1/kilder/firmafakta/get_company_last_financial_statement?organization_id={organization_id}&limit=25&offset=0","schema_scope":"#/data in the successful operation envelope","response_schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"journalnr":{"type":["string","null"]},"regnskapstype":{"type":["string","null"]},"virksomhet":{"type":"object","properties":{"organization_id":{"type":["string","null"]},"organisasjonsform":{"type":["string","null"]},"morselskap":{"type":["boolean","null"]}}},"regnskapsperiode":{"type":"object","properties":{"fraDato":{"type":["string","null"],"format":"date"},"tilDato":{"type":["string","null"],"format":"date"}}},"valuta":{"type":["string","null"]},"avviklingsregnskap":{"type":["boolean","null"]},"oppstillingsplan":{"type":["string","null"]},"revisjon":{"type":"object","properties":{"ikkeRevidertAarsregnskap":{"type":["boolean","null"]},"fravalgRevisjon":{"type":["boolean","null"]}}},"regnkapsprinsipper":{"type":"object","properties":{"smaaForetak":{"type":["boolean","null"]},"regnskapsregler":{"type":["string","null"]}}},"egenkapitalGjeld":{"type":"object","properties":{"sumEgenkapitalGjeld":{"type":["number","null"]},"egenkapital":{"type":"object","properties":{"sumEgenkapital":{"type":["number","null"]}}},"gjeldOversikt":{"type":"object","properties":{"sumGjeld":{"type":["number","null"]}}}}},"eiendeler":{"type":"object","properties":{"sumEiendeler":{"type":["number","null"]},"omloepsmidler":{"type":"object","properties":{"sumOmloepsmidler":{"type":["number","null"]}}},"anleggsmidler":{"type":"object","properties":{"sumAnleggsmidler":{"type":["number","null"]}}}}},"resultatregnskapResultat":{"type":"object","properties":{"ordinaertResultatFoerSkattekostnad":{"type":["number","null"]},"aarsresultat":{"type":["number","null"]},"finansresultat":{"type":"object","properties":{"nettoFinans":{"type":["number","null"]}}},"driftsresultat":{"type":"object","properties":{"driftsresultat":{"type":["number","null"]},"driftsinntekter":{"type":"object","properties":{"sumDriftsinntekter":{"type":["number","null"]}}},"driftskostnad":{"type":"object","properties":{"sumDriftskostnad":{"type":["number","null"]}}}}}}}},"required":["regnskapstype","regnskapsperiode"]}},"response_schema_status":{"status":"declared","codegen_safe":true,"description":"Maintained response contract."},"entity_projection":{"status":"projected","entity_types":["organization"],"description":"Recognized records and stable operation identifiers are projected; an empty array means the successful payload contained no recognizable entity."},"error_contract":{"scope":"top-level HTTP error response; never part of a success payload","schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"retryable":{"type":"boolean"},"details":{"type":"object"}},"additionalProperties":false,"required":["code","message","retryable"]},"suggestion":{"type":"string"},"_meta":{"type":"object","properties":{"retrieved_at":{"type":"string","format":"date-time"},"language":{"type":"string","const":"en"},"content_languages":{"type":"array","items":{"type":"string"}},"sources":{"type":"array","items":{"type":"object"}}},"required":["retrieved_at","language","content_languages","sources"]},"_links":{"type":"object","properties":{"self":{"type":"string","format":"uri"},"api_index":{"type":"string","format":"uri"},"feedback":{"type":"string","format":"uri"}},"required":["self","api_index","feedback"],"additionalProperties":false}},"additionalProperties":false,"required":["error","suggestion","_meta","_links"]},"statuses":{"400":{"codes":["MISSING_PARAMETER","INVALID_PARAMETER","INVALID_REQUEST"],"retryable":false},"404":{"codes":["SOURCE_NOT_FOUND","OPERATION_NOT_FOUND","ENTITY_NOT_FOUND"],"retryable":false},"429":{"codes":["RATE_LIMITED","GATEWAY_RATE_LIMITED"],"retryable":true},"502":{"codes":["SOURCE_UNAVAILABLE"],"retryable":true},"500":{"codes":["INTERNAL_ERROR"],"retryable":true}}},"_links":{"self":"https://allemannsdata.com/wiki/api/v1/kilder/firmafakta/get_company_last_financial_statement/schema","operation":"https://allemannsdata.com/wiki/api/v1/kilder/firmafakta/get_company_last_financial_statement","source":"https://allemannsdata.com/wiki/api/v1/kilder/firmafakta","feedback":"https://allemannsdata.com/wiki/api/v1/feedback"},"output_fields":["[].id","[].journalnr","[].regnskapstype","[].virksomhet","[].virksomhet.organization_id","[].virksomhet.organisasjonsform","[].virksomhet.morselskap","[].regnskapsperiode","[].regnskapsperiode.fraDato","[].regnskapsperiode.tilDato","[].valuta","[].avviklingsregnskap","[].oppstillingsplan","[].revisjon","[].revisjon.ikkeRevidertAarsregnskap","[].revisjon.fravalgRevisjon","[].regnkapsprinsipper","[].regnkapsprinsipper.smaaForetak","[].regnkapsprinsipper.regnskapsregler","[].egenkapitalGjeld","[].egenkapitalGjeld.sumEgenkapitalGjeld","[].egenkapitalGjeld.egenkapital","[].egenkapitalGjeld.egenkapital.sumEgenkapital","[].egenkapitalGjeld.gjeldOversikt","[].egenkapitalGjeld.gjeldOversikt.sumGjeld","[].eiendeler","[].eiendeler.sumEiendeler","[].eiendeler.omloepsmidler","[].eiendeler.omloepsmidler.sumOmloepsmidler","[].eiendeler.anleggsmidler"],"output_fields_truncated":true,"canonical_field_aliases":{"identifier":["[].id"]},"response_example":{"source":"firmafakta","operation":"get_company_last_financial_statement","parameters":{"organization_id":"example-id"},"data":[{"id":1,"journalnr":"example value","regnskapstype":"example value","virksomhet":{"organization_id":"example-id","organisasjonsform":"example value","morselskap":true},"regnskapsperiode":{"fraDato":"2026-01-15","tilDato":"2026-01-15"},"valuta":"example value","avviklingsregnskap":true,"oppstillingsplan":"example value","revisjon":{"ikkeRevidertAarsregnskap":true,"fravalgRevisjon":true},"regnkapsprinsipper":{"smaaForetak":true,"regnskapsregler":"example value"},"egenkapitalGjeld":{"sumEgenkapitalGjeld":1.0,"egenkapital":{"sumEgenkapital":1.0},"gjeldOversikt":{"sumGjeld":1.0}},"eiendeler":{"sumEiendeler":1.0,"omloepsmidler":{"sumOmloepsmidler":1.0},"anleggsmidler":{"sumAnleggsmidler":1.0}},"resultatregnskapResultat":{"ordinaertResultatFoerSkattekostnad":1.0,"aarsresultat":1.0,"finansresultat":{"nettoFinans":1.0},"driftsresultat":{"driftsresultat":1.0,"driftsinntekter":{"sumDriftsinntekter":1.0},"driftskostnad":{"sumDriftskostnad":1.0}}}}],"entities":[{"type":"organization","id":"example-id","source":"firmafakta","description":"Organization used as the operation input."}],"_meta":{"retrieved_at":"2026-01-15T12:00:00Z","language":"en","content_languages":["en"],"sources":[{"id":"firmafakta","name":"Firmafakta","description":"Norwegian businesses, people, roles, owners, accounts, grants, jobs and intellectual property.","cache_ttl_seconds":60}]},"_provenance":{"data":{"source":"firmafakta","source_api":"https://allemannsdata.com/wiki/api/v1/kilder/firmafakta"},"entities":{"source":"firmafakta","source_api":"https://allemannsdata.com/wiki/api/v1/kilder/firmafakta","derived_from":"#/data","description":"Normalized projection of data."}},"_links":{"self":"https://allemannsdata.com/wiki/api/v1/kilder/firmafakta/get_company_last_financial_statement","source":"https://allemannsdata.com/wiki/api/v1/kilder/firmafakta","wiki":"https://allemannsdata.com/wiki/kilder/firmafakta/get_company_last_financial_statement/","feedback":"https://allemannsdata.com/wiki/api/v1/feedback"}}}
