Skip to main content

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.

CommandHTTPDescription
imports listGET /v1/importsList imports
imports createPOST /v1/importsCreate import
imports getGET /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​