ARITO API Integration Documentation
  • Introduce
  • List API
    • Authentication
    • Import Customer
    • Export Customer
    • Import Goods
    • Export Goods
    • Import Invoice
Powered by GitBook
On this page
  1. List API

Export Customer

Last updated 1 year ago

Used to retrieve a list of customers based on specified conditions

Authorization

Type

Bearer Token

Token

{{access_token}}

Body

{
    "memvars": {
        "ma_kh": "API-KH0001",
        "modifyDateFrom": null,
        "pageIndex": 1
    }
}

Parameter description

Tên
(*)
Kiểu
Description

ma_kh

string

Customer's code

modifyDateFrom

string

Customer creation date

pageIndex

string

When the API returns data, it will provide paginated results, with 'pageIndex' specifying the page to retrieve

{
    "code": 200,
    "msg": "Success",
    "value": null,
    "data": {
        "data": [
            {
                "maKH": "API-KH0001",
                "tenKH": "Công ty TNHH ABC",
                "diaChi": "123 Hùng Vương, Q5. Hồ Chí Minh",
                "nh_kh1": "KHVIP",
                "datetime2": "2023-12-11T15:05:17.72"
            }
        ],
        "pageInfo": [
            {
                "pagecount": 50,
                "page": 1,
                "t_record": 1,
                "t_page": 1,
                "group": ""
            }
        ]
    }
}

Descripsion result

Name
Descripsion

code

When successfully executed, the status code is 200. For other codes, such as 401, 452, it indicates a failed operation, accompanied by a descriptive message explaining the result

msg

Description of API execution results

data.data

JSON array containing customers found based on the conditions specified in the request

data.pageInfo.pagecount

The maximum result per page that can be returned

data.pageInfo.page

The current page number

data.pageInfo.t_record

The total number of results across all pages

data.pageInfo.t_page

The total number of pages containing results

Method

Link

{{host}}/Customer/Export