Create customer
kiotviet_create_customerWRITE: create a new customer in the shop (name required; code is generated by KiotViet if omitted). Always check with the user first, and look the customer up by phone before creating a duplicate. POST /customers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Customer code (optional; KiotViet generates one). | |
| name | Yes | Customer name. | |
| No | Email address. | ||
| address | No | Street address. | |
| comments | No | Note on the customer. | |
| tax_code | No | Tax code (ma so thue). | |
| group_ids | No | Customer group ids. | |
| birth_date | No | Date 2026-10-01 or date-time 2026-10-01T08:00:00 (shop local time). | |
| organization | No | Company name. | |
| contact_number | No | Phone number. |