Skip to main content

kobana banking imports

Commands of kobana banking imports. Every global option (Global options) applies here.

CommandHTTPDescription
imports listGET /v1/imports/{collection_name}List Imports
imports createPOST /v1/imports/{collection_name}Import
imports getGET /v1/imports/{collection_name}/{id}View Import

imports list​

List Imports

kobana banking imports list [COLLECTION_NAME] [OPTIONS]

GET /v1/imports/{collection_name}

Lists the imports performed for a specific type of resource (customers, subscriptions, billets or carnês).

Path arguments: collection_name

Query parameters

NameTypeRequiredDescription
pageintegernoPage Number
per_pageintegernoNumber of records per page

Responses

HTTPDescription
200Imports found

imports create​

Import

kobana banking imports create [COLLECTION_NAME] [OPTIONS]

POST /v1/imports/{collection_name}

Imports resources (customers, subscriptions, billets or carnês) through a CSV file. Processing is done asynchronously.

Asynchronous Processing: This endpoint is processed asynchronously.

The Import is done asynchronously, that is, when receiving the request, our API saves the request parameters and processes the import in the background. After the import is processed, the records will be associated with your Account. You receive in this request response the ID of the Import created and can consult it at any time.

Webhook Events

When the request is made, an import.created event is triggered. Our server then begins processing the import. After processing is complete, the import.processed event is triggered.

Path arguments: collection_name

Request body

Sent as a multipart/form-data form: files go in --file FIELD=PATH.

NameTypeRequiredDescription
sourcestring (binary)yesFile for import.

More fields and nested objects: kobana schema banking.imports.create.

Responses

HTTPDescription
201Import created
422An import is already in progress or completed for this file
503Could not check for duplicate imports right now — please try again

imports get​

View Import

kobana banking imports get [COLLECTION_NAME] [ID] [OPTIONS]

GET /v1/imports/{collection_name}/{id}

Query specific information from an Import.

Path arguments: collection_name, id

Responses

HTTPDescription
200Import found
404Account not found