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

Import Customer

Last updated 1 year ago

Used to push customer data into the program, either individual customer data or a list of multiple customers

Authorization

Type

Bearer Token

Token

{{access_token}}

Body

{
    "memvars": {
        "data": [
            {
                "ma_kh": "API-KH0001",
                "ten_kh": "Công ty TNHH ABC",
                "dia_chi": "123 Hùng Vương, Q5. Hồ Chí Minh",
                "ma_so_thue": "0313610123",
                "nh_kh1": "KHVIP",
                "gioi_han_no": 10000000,
                "dien_thoai": "0909123456"
            }
        ]
    }
}

Parameter description

Name
(*)
Datatype
Descripsion

ma_kh

string

Customer's code

ten_kh

string

Customer's name

ma_so_thue

string

Tax code

nh_kh1

string

Customer type

gioi_han_no

numeric

Debt limit

dien_thoai

string

Phone number

{
    "code": 200,
    "msg": "Ok",
    "value": null,
    "data": null
}

Describe the results

Tên
Diễn giải

code

When the import is successful, 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

Method

Link

{{host}}/Customer/Import