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 Internet Bill 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 E-Invoice 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
supplier_namestring | null
buyer_namestring | null
supplier_tinstring | null
supplier_registration_numberstring | null
supplier_sst_registration_numberstring | null
supplier_tourism_tax_registration_numberstring | null
supplier_emailstring | null
supplier_msic_codestring | null
supplier_business_activity_descriptionstring | null
buyer_tinstring | null
buyer_registration_numberstring | null
buyer_sst_registration_numberstring | null
buyer_emailstring | null
supplier_addressstring | null
buyer_addressstring | null
supplier_contact_numberstring | null
buyer_contact_numberstring | null
e_invoice_versionstring | null
e_invoice_typestring | null
e_invoice_codestring | null
originale_invoice_reference_numberstring | null
e_invoice_date_timestring | null
issuer_digital_signaturestring | null
invoice_currency_codestring | null
currency_exchange_ratestring | null
frequency_of_billingstring | null
billing_periodstring | null
classificationstring | null
product_list[]Array of Objects
product_list[].description_of_product_or_servicestring | null
product_list[].unit_pricestring | null
product_list[].measurementstring | null
product_list[].quantitystring | null
product_list[].product_total_pricestring | null
tax_typestring | null
tax_ratestring | null
tax_amountstring | null
details_of_tax_exemptionstring | null
amount_exempted_from_taxstring | null
subtotalstring | null
total_excluding_taxstring | null
total_including_taxstring | null
total_net_amountstring | null
total_payable_amountstring | null
rounding_amountstring | null
total_taxable_amount_per_tax_typestring | null
discount_ratestring | null
discount_amountstring | null
fee_charge_ratestring | null
fee_charge_amountstring | null
payment_modestring | null
supplier_bank_account_numberstring | null
payment_termsstring | null
prepayment_amountstring | null
prepayment_datestring | null
prepayment_reference_numberstring | null
bill_reference_numberstring | null
customs_form_reference_numberstring | null
shipping_recipient_namestring | null
shipping_recipient_addressstring | null
shipping_recipient_tinstring | null
shipping_recipient_registration_numberstring | null
incotermsstring | null
product_tariff_codestring | null
free_trade_agreement_informationstring | null
authorisation_number_for_certified_exporterstring | null
customs_form_reference_number_for_exportstring | null
country_of_originstring | null
details_of_other_chargesstring | 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

Body Params multipart/form-data

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

Example
{
    "success": true,
    "data": [
        {
            "type": "supplier_name",
            "value": "Tech Solutions Ltd."
        },
        {
            "type": "buyer_name",
            "value": "Innovative Enterprises Inc."
        },
        {
            "type": "supplier_tin",
            "value": "123456789"
        },
        {
            "type": "supplier_registration_number",
            "value": "REG-00123456"
        },
        {
            "type": "supplier_sst_registration_number",
            "value": "SST-123456789"
        },
        {
            "type": "supplier_tourism_tax_registration_number",
            "value": "TAX-987654321"
        },
        {
            "type": "supplier_email",
            "value": "contact@techsolutions.com"
        },
        {
            "type": "supplier_msic_code",
            "value": "62012"
        },
        {
            "type": "supplier_business_activity_description",
            "value": "IT Consulting and Software Development"
        },
        {
            "type": "buyer_tin",
            "value": "987654321"
        },
        {
            "type": "buyer_registration_number",
            "value": "BUYER-123456"
        },
        {
            "type": "buyer_sst_registration_number",
            "value": "BUYER-SST-987654321"
        },
        {
            "type": "buyer_email",
            "value": "accounts@innovativeenterprises.com"
        },
        {
            "type": "supplier_address",
            "value": "123 Tech Park, Silicon Valley, CA"
        },
        {
            "type": "buyer_address",
            "value": "789 Business Plaza, New York, NY"
        },
        {
            "type": "supplier_contact_number",
            "value": "555-1234"
        },
        {
            "type": "buyer_contact_number",
            "value": "555-5678"
        },
        {
            "type": "e_invoice_version",
            "value": "1.0"
        },
        {
            "type": "e_invoice_type",
            "value": "Standard"
        },
        {
            "type": "e_invoice_code",
            "value": "EINV-2024-001"
        },
        {
            "type": "originale_invoice_reference_number",
            "value": "INV-2024-123"
        },
        {
            "type": "e_invoice_date_time",
            "value": "2024-01-15T10:30:00Z"
        },
        {
            "type": "issuer_digital_signature",
            "value": "xyzabc123digitalsignature"
        },
        {
            "type": "invoice_currency_code",
            "value": "USD"
        },
        {
            "type": "currency_exchange_rate",
            "value": "1.00"
        },
        {
            "type": "frequency_of_billing",
            "value": "Monthly"
        },
        {
            "type": "billing_period",
            "value": "2024-01-01 to 2024-01-31"
        },
        {
            "type": "classification",
            "value": "Standard"
        },
        {
            "type": "product_list",
            "value": [
                {
                    "description_of_product_or_service": "Software Development Services",
                    "unit_price": "5000",
                    "measurement": "Hours",
                    "quantity": "40",
                    "product_total_price": "200000"
                },
                {
                    "description_of_product_or_service": "IT Consulting",
                    "unit_price": "1500",
                    "measurement": "Hours",
                    "quantity": "20",
                    "product_total_price": "30000"
                }
            ]
        },
        {
            "type": "tax_type",
            "value": "Standard Tax"
        },
        {
            "type": "tax_rate",
            "value": "10"
        },
        {
            "type": "tax_amount",
            "value": "23000"
        },
        {
            "type": "details_of_tax_exemption",
            "value": "None"
        },
        {
            "type": "amount_exempted_from_tax",
            "value": "0"
        },
        {
            "type": "subtotal",
            "value": "230000"
        },
        {
            "type": "total_excluding_tax",
            "value": "230000"
        },
        {
            "type": "total_including_tax",
            "value": "253000"
        },
        {
            "type": "total_net_amount",
            "value": "253000"
        },
        {
            "type": "total_payable_amount",
            "value": "253000"
        },
        {
            "type": "rounding_amount",
            "value": "0"
        },
        {
            "type": "total_taxable_amount_per_tax_type",
            "value": "230000"
        },
        {
            "type": "discount_rate",
            "value": "5"
        },
        {
            "type": "discount_amount",
            "value": "11500"
        },
        {
            "type": "fee_charge_rate",
            "value": "2"
        },
        {
            "type": "fee_charge_amount",
            "value": "4600"
        },
        {
            "type": "payment_mode",
            "value": "Bank Transfer"
        },
        {
            "type": "supplier_bank_account_number",
            "value": "9876543210"
        },
        {
            "type": "payment_terms",
            "value": "Net 30"
        },
        {
            "type": "prepayment_amount",
            "value": "50000"
        },
        {
            "type": "prepayment_date",
            "value": "2024-01-10"
        },
        {
            "type": "prepayment_reference_number",
            "value": "PREP-12345"
        },
        {
            "type": "bill_reference_number",
            "value": "BRN-2024-789"
        },
        {
            "type": "customs_form_reference_number",
            "value": "CFN-2024-001"
        },
        {
            "type": "shipping_recipient_name",
            "value": "Innovative Enterprises"
        },
        {
            "type": "shipping_recipient_address",
            "value": "789 Business Plaza, New York, NY"
        },
        {
            "type": "shipping_recipient_tin",
            "value": "987654321"
        },
        {
            "type": "shipping_recipient_registration_number",
            "value": "SHIP-123456"
        },
        {
            "type": "incoterms",
            "value": "FOB"
        },
        {
            "type": "product_tariff_code",
            "value": "IT1234"
        },
        {
            "type": "free_trade_agreement_information",
            "value": "NAFTA"
        },
        {
            "type": "authorisation_number_for_certified_exporter",
            "value": "A12345"
        },
        {
            "type": "customs_form_reference_number_for_export",
            "value": "CFN-EXP-001"
        },
        {
            "type": "country_of_origin",
            "value": "USA"
        },
        {
            "type": "details_of_other_charges",
            "value": "Shipping Charge: 500"
        }
    ],
    "miscellaneous": {
        "processedTime": 150.123
    }
}
Modified at 2025-08-04 03:23:13
Previous
Extract Resume Data
Next
Extract Electricity Bill Data
Built with