JSON API » customers » customers/import
Imports customers and their taxes liable from a CSV file.
Input parameters
Requires authentication and the system owner role privilege.
| Name | Type | Description | Required | Default value |
|---|---|---|---|---|
| auth_username | String | Authentication username. | Yes | |
| auth_password | String | Authentication password. | Yes | |
| csv | String | The contents of the CSV file. | Yes |
Responses
| Code | Description |
|---|---|
| 200 | Success. |
| 400 | Invalid input parameters specified. Check the key and message fields for more details. |
| 401 | The authentication details provided are invalid. |
| 402 | Your role does not allow this. |
Data returned
The number of customers created.
Example: With required parameters (csv field omitted for brevity)
http://enswitch.example.com/api/json/codes/import/?auth_username=user;auth_password=password;csv=...{ "responses":[ { "code":"200", "key":"", "message":"OK" } ], "data":{ "count":123 } }
Change history
| Version | Changes |
|---|---|
| 4.0 | Function added. |
