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 Purchase Order 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
po_numberstring | null
po_datestring | null
buyer_companystring | null
buyer_namestring | null
buyer_addressstring | null
buyer_phonestring | null
buyer_mobilestring | null
buyer_emailstring | null
seller_namestring | null
seller_addressstring | null
seller_phonestring | null
seller_mobilestring | null
seller_emailstring | null
seller_attentionstring | null
delivery_namestring | null
delivery_addressstring | null
delivery_phonestring | null
delivery_mobilestring | null
delivery_emailstring | null
delivery_attentionstring | null
order_infoArray of Objects
order_info[].order_nostring | null
order_info[].order_descriptionstring | null
order_info[].order_quantitystring | null
order_info[].order_unit_of_measurestring | null
order_info[].order_unit_pricestring | null
order_info[].order_subtotalstring | null
payment_termstring | null
total_discountstring | null
sub_total_amountstring | null
total_tax_percentagestring | null
total_tax_amountstring | null
total_amountstring | 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": "po_number",
            "value": "PO-123456"
        },
        {
            "type": "po_date",
            "value": "2024-01-15"
        },
        {
            "type": "buyer_company",
            "value": "Acme Corp"
        },
        {
            "type": "buyer_name",
            "value": "John Doe"
        },
        {
            "type": "buyer_address",
            "value": "456 Main Street"
        },
        {
            "type": "buyer_phone",
            "value": "555-1234"
        },
        {
            "type": "buyer_email",
            "value": "contact@acmecorp.com"
        },
        {
            "type": "seller_name",
            "value": "Tech Supplies Inc."
        },
        {
            "type": "seller_address",
            "value": "789 Industrial Ave"
        },
        {
            "type": "delivery_name",
            "value": "John Doe"
        },
        {
            "type": "delivery_address",
            "value": "321 Delivery Lane"
        },
        {
            "type": "order_info",
            "value": [
                {
                    "order_no": "Item-001",
                    "order_description": "Laptop",
                    "order_quantity": "2",
                    "order_unit_of_measure": "pcs",
                    "order_unit_price": "800",
                    "order_subtotal": "1600"
                },
                {
                    "order_no": "Item-002",
                    "order_description": "Mouse",
                    "order_quantity": "5",
                    "order_unit_of_measure": "pcs",
                    "order_unit_price": "20",
                    "order_subtotal": "100"
                }
            ]
        },
        {
            "type": "payment_term",
            "value": "Net 30"
        },
        {
            "type": "total_discount",
            "value": "50"
        },
        {
            "type": "sub_total_amount",
            "value": "1650"
        },
        {
            "type": "total_tax_percentage",
            "value": "10"
        },
        {
            "type": "total_tax_amount",
            "value": "165"
        },
        {
            "type": "total_amount",
            "value": "1765"
        }
    ],
    "miscellaneous": {
        "processedTime": 112.345
    }
}
Modified at 2025-08-04 03:23:13
Previous
Extract Price Tag Data
Next
Extract Receipt (General) Data
Built with