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 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
document_titlestring | null
vendor_namestring | null
vendor_addressstring | null
sst_numberstring | null
invoice_numberstring | null
invoice_datestring | null
invoice_currencystring | null
purchase_order_numberstring | null
salespersonstring | null
payment_termsstring | null
vendor_registration_numberstring | null
billingArray of Objects
billing[].billing_addressstring | null
billing[].billing_phonestring | null
billing[].billing_faxstring | null
billing[].billing_attentionstring | null
shippingArray of Objects
shipping[].shipping_addressstring | null
shipping[].shipping_phonestring | null
shipping[].shipping_faxstring | null
shipping[].shipping_datestring | null
shipping[].shipping_attentionstring | null
itemArray of Objects
item[].item_codestring | null
item[].item_descriptionstring | null
item[].item_quantitystring | null
item[].item_unit_of_measurementstring | null
item[].item_unit_pricestring | null
item[].item_tax_ratestring | null
item[].item_tax_amountstring | null
item[].item_tax_codestring | null
item[].item_subtotalstring | null
item[].item_discountstring | null
item[].item_total_amountstring | null
invoice_memostring | null
invoice_subtotalstring | null
invoice_sst_ratestring | null
invoice_sst_amountstring | null
invoice_totalstring | 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": "document_title",
            "value": "Invoice"
        },
        {
            "type": "vendor_name",
            "value": "Tech Supplies Inc."
        },
        {
            "type": "vendor_address",
            "value": "789 Industrial Ave"
        },
        {
            "type": "sst_number",
            "value": "SST-987654321"
        },
        {
            "type": "invoice_number",
            "value": "INV-2024-001"
        },
        {
            "type": "invoice_date",
            "value": "2024-01-15"
        },
        {
            "type": "invoice_currency",
            "value": "USD"
        },
        {
            "type": "purchase_order_number",
            "value": "PO-123456"
        },
        {
            "type": "salesperson",
            "value": "Alice Johnson"
        },
        {
            "type": "payment_terms",
            "value": "Net 30"
        },
        {
            "type": "vendor_registration_number",
            "value": "REG-123456"
        },
        {
            "type": "billing",
            "value": [
                {
                    "billing_address": "456 Main Street",
                    "billing_phone": "555-1234",
                    "billing_fax": "555-5678",
                    "billing_attention": "Accounts Payable"
                },
                {
                    "billing_address": "789 Secondary St.",
                    "billing_phone": "555-8765",
                    "billing_fax": "555-4321",
                    "billing_attention": "Finance Department"
                }
            ]
        },
        {
            "type": "shipping",
            "value": [
                {
                    "shipping_address": "321 Delivery Lane",
                    "shipping_phone": "555-8765",
                    "shipping_fax": "555-4321",
                    "shipping_date": "2024-01-16",
                    "shipping_attention": "John Doe"
                }
            ]
        },
        {
            "type": "item",
            "value": [
                {
                    "item_code": "ITEM-001",
                    "item_description": "Laptop",
                    "item_quantity": "2",
                    "item_unit_of_measurement": "pcs",
                    "item_unit_price": "800",
                    "item_tax_rate": "10",
                    "item_tax_amount": "160",
                    "item_tax_code": "TAX-001",
                    "item_subtotal": "1600",
                    "item_discount": "50",
                    "item_total_amount": "1550"
                },
                {
                    "item_code": "ITEM-002",
                    "item_description": "Mouse",
                    "item_quantity": "5",
                    "item_unit_of_measurement": "pcs",
                    "item_unit_price": "20",
                    "item_tax_rate": "10",
                    "item_tax_amount": "10",
                    "item_tax_code": "TAX-002",
                    "item_subtotal": "100",
                    "item_discount": "0",
                    "item_total_amount": "100"
                }
            ]
        },
        {
            "type": "invoice_memo",
            "value": "Thank you for your business!"
        },
        {
            "type": "invoice_subtotal",
            "value": "1650"
        },
        {
            "type": "invoice_sst_rate",
            "value": "10"
        },
        {
            "type": "invoice_sst_amount",
            "value": "165"
        },
        {
            "type": "invoice_total",
            "value": "1815"
        }
    ],
    "miscellaneous": {
        "processedTime": 112.345
    }
}
Modified at 2025-08-04 03:23:13
Previous
Extract Internet Bill Data
Next
Extract Passport Data
Built with