Create client
bsale_create_clientWRITE: create a new customer in Bsale (it is visible to every user of the instance). Give at least a first name or a company. Bsale rejects a second client with the same tax id. POST /v1/clients.json.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | ||
| code | No | Tax id (RUT in Chile, RUC in Peru, RFC in Mexico). Validate it first. | |
| note | No | ||
| No | |||
| phone | No | ||
| address | No | ||
| company | No | ||
| activity | No | Giro / business activity. | |
| district | No | Colonia / district (Mexico). Chile and Peru: use municipality. | |
| last_name | No | ||
| first_name | No | ||
| is_foreigner | No | true for a foreign client (Bsale assigns tax id 55555555-5 unless you also pass code). | |
| municipality | No | Comuna (Chile) or municipality (Peru). Mexican accounts: use district. |