API Guide
  1. Malaysia
API Guide
  • Get Started
  • Document AI
    • Malaysia
      • Extract Bank Statement Data
        POST
      • Extract Bill of Lading Data
        POST
      • Extract Business Card Data
        POST
      • Extract Car Meter Data
        POST
      • Extract Cheque (Front) Data
        POST
      • Extract Company Financial Statement Data
        POST
      • Extract Resume Data
        POST
      • Extract E-Invoice Data
        POST
      • Extract Electricity Bill Data
        POST
      • Extract Identity Card Data
        POST
      • Extract Invoice Data
        POST
      • Extract Passport Data
        POST
      • Extract Payslip Data
        POST
      • Extract Price Tag Data
        POST
      • Extract Purchase Order Data
        POST
      • Extract Receipt (General) Data
        POST
      • Extract SSM Documents Data
        POST
      • Extract Water Bill Data
        POST
    • Thailand
      • Extract Business Card Data
      • Extract Identity Card Data
      • Extract Passport Data
      • Extract Receipt Data
    • Vietnam
      • Extract Business Card Data
      • Extract Identity Card Data
      • Extract Passport Data
      • Extract Receipt Data
    • Philippines
      • Extract Business Card Data
      • Extract Identity Card Data
      • Extract Passport Data
      • Extract Receipt Data
  1. Malaysia

Extract Company Financial Statement Data

POST
/document-ai/{model-id}

Extracted Data Types#

The following types will always be present in the API response. If a type parameter is not found in the input, its value will be null.
Parameter NameVariable Type
company_namestring | null
latest_revenuestring | null
previous_revenuestring | null
latest_operating_expensesstring | null
previous_operating_expensesstring | null
latest_profit_from_operationsstring | null
previous_profit_from_operationsstring | null
latest_profit_before_taxationstring | null
previous_profit_before_taxationstring | null
latest_profit_for_the_periodstring | null
previous_profit_for_the_periodstring | null
latest_basic_earnings_per_share_senstring | null
previous_basic_earnings_per_share_senstring | null
latest_fully_diluted_earnings_per_share_senstring | null
previous_fully_diluted_earnings_per_share_senstring | null
latest_total_assetsstring | null
previous_total_assetsstring | null
latest_total_equitystring | null
previous_total_equitystring | null
latest_total_liabilitiesstring | null
previous_total_liabilitiesstring | null
latest_net_assets_per_share_attributable_to_owners_of_the_company_rmstring | null
previous_net_assets_per_share_attributable_to_owners_of_the_company_rmstring | null
latest_net_cash_generated_from_operating_activitiesstring | null
previous_net_cash_generated_from_operating_activitiesstring | null
latest_net_cash_generated_from_used_in_investing_activitiesstring | null
previous_net_cash_generated_from_used_in_investing_activitiesstring | null
latest_net_cash_generated_from_financing_activitiesstring | null
previous_net_cash_generated_from_financing_activitiesstring | null
latest_cash_and_cash_equivalents_at_end_of_periodstring | null
previous_cash_and_cash_equivalents_at_end_of_periodstring | null

Notes#

Each type parameter in the data array will always have the specified type, with the possibility of being null.
If a specific type parameter is not present in the input, its value in the response will be null.

Request

Authorization
Add parameter in header
X-API-KEY
Example:
X-API-KEY: ********************
Path Params
model-id
string 
required
To utilize the Axtraction AI API effectively, you must specify a model ID in your requests. The model ID follows the format model- followed by a 12-characters numbers and alphabet. This ID identifies the specific AI model you want to use for document processing.
If you do not have a model yet, you can create one by visiting the Axtraction AI web app. There, you can set up your model according to your requirements and obtain the corresponding model ID for your API requests.
Example:
model-a1b2c3d4e5f6
Body Params multipart/form-data
file
file 
optional
If fileBase64 is not provided, then file is required. Format: PDF, JPEG, PNG.
fileBase64
string 
optional
If file is not provided, then fileBase64 is required. If both file and fileBase64 are provided, only file will be used.
Example:
JVBERi0xLjMNCiXi48/....
mimeType
string 
optional
Required only when fileBase64 is provided. Supported: application/pdf, image/jpeg, image/jpg, image/png.
Example:
application/pdf

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.axtraction.ai/v1/document/document-ai/model-a1b2c3d4e5f6' \
--header 'X-API-KEY;' \
--form 'file=@""' \
--form 'fileBase64="JVBERi0xLjMNCiXi48/...."' \
--form 'mimeType="application/pdf"'

Responses

🟢200Success
application/json
Body
success
boolean 
required
data
array [object {2}] 
required
type
string 
required
value
string  | integer  | boolean  | array  | object  | number  | null 
required
miscellaneous
object 
required
processedTime
number 
required
Example
{
    "success": true,
    "data": [
        {
            "type": "company_name",
            "value": "Global Freight Ltd."
        },
        {
            "type": "latest_revenue",
            "value": 1500000.5
        },
        {
            "type": "previous_revenue",
            "value": 1450000
        },
        {
            "type": "latest_operating_expenses",
            "value": 800000.25
        },
        {
            "type": "previous_operating_expenses",
            "value": 750000.1
        },
        {
            "type": "latest_profit_from_operations",
            "value": 700000.25
        },
        {
            "type": "previous_profit_from_operations",
            "value": 700000.9
        },
        {
            "type": "latest_profit_before_taxation",
            "value": 600000.3
        },
        {
            "type": "previous_profit_before_taxation",
            "value": 590000.1
        },
        {
            "type": "latest_profit_for_the_period",
            "value": 500000.4
        },
        {
            "type": "previous_profit_for_the_period",
            "value": 490000
        },
        {
            "type": "latest_basic_earnings_per_share_sen",
            "value": 25.5
        },
        {
            "type": "previous_basic_earnings_per_share_sen",
            "value": 24.8
        },
        {
            "type": "latest_fully_diluted_earnings_per_share_sen",
            "value": 24.1
        },
        {
            "type": "previous_fully_diluted_earnings_per_share_sen",
            "value": 23.5
        },
        {
            "type": "latest_total_assets",
            "value": 5000000.75
        },
        {
            "type": "previous_total_assets",
            "value": 4800000.4
        },
        {
            "type": "latest_total_equity",
            "value": 2000000.8
        },
        {
            "type": "previous_total_equity",
            "value": 1900000.6
        },
        {
            "type": "latest_total_liabilities",
            "value": 3000000
        },
        {
            "type": "previous_total_liabilities",
            "value": 2900000.3
        },
        {
            "type": "latest_net_assets_per_share_attributable_to_owners_of_the_company_rm",
            "value": 5.1
        },
        {
            "type": "previous_net_assets_per_share_attributable_to_owners_of_the_company_rm",
            "value": 5
        },
        {
            "type": "latest_net_cash_generated_from_operating_activities",
            "value": 400000.9
        },
        {
            "type": "previous_net_cash_generated_from_operating_activities",
            "value": 390000.75
        },
        {
            "type": "latest_net_cash_generated_from_used_in_investing_activities",
            "value": -100000.3
        },
        {
            "type": "previous_net_cash_generated_from_used_in_investing_activities",
            "value": -95000.1
        },
        {
            "type": "latest_net_cash_generated_from_financing_activities",
            "value": 150000.6
        },
        {
            "type": "previous_net_cash_generated_from_financing_activities",
            "value": 140000.5
        },
        {
            "type": "latest_cash_and_cash_equivalents_at_end_of_period",
            "value": 500000.4
        },
        {
            "type": "previous_cash_and_cash_equivalents_at_end_of_period",
            "value": 450000.2
        }
    ],
    "miscellaneous": {
        "processedTime": 130.8
    }
}
Modified at 2025-05-13 03:41:26
Previous
Extract Cheque (Front) Data
Next
Extract Resume Data
Built with