Last updated 1 year ago
Used to push customer data into the program, either individual customer data or a list of multiple customers
Type
Bearer Token
Token
{{access_token}}
{ "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" } ] } }
ma_kh
string
Customer's code
ten_kh
Customer's name
ma_so_thue
Tax code
nh_kh1
Customer type
gioi_han_no
numeric
Debt limit
dien_thoai
Phone number
{ "code": 200, "msg": "Ok", "value": null, "data": null }
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
POST
Link
{{host}}/Customer/Import