Imports
Bulk loading of customers or charges from a CSV, processed asynchronously. create sends the CSV as text in the content field; get shows the progress and per-line errors.
| Command | HTTP | Description |
|---|---|---|
imports list | GET /v1/imports | List imports |
imports create | POST /v1/imports | Create import |
imports get | GET /v1/imports/{id} | Get import |
Examples​
--params carries query, path and header parameters (id, page, filters, X-Workspace-Id); --json carries the request body; --fields limits which fields come back — worth using on every list/get to save context. See Global flags for the full reference.
# Import customers from a CSV
kobana dunning imports create \
--json "$(jq -n --rawfile csv clientes.csv '{resource_type: "people", file_name: "clientes.csv", content: $csv}')"
# Track the import
kobana dunning imports get \
--params '{"id": "IMPORT_ID"}' \
--fields "id,status,processed_rows,total_rows,error_count"
Next steps​
- Exports
- Schema introspection — every parameter this resource accepts.