Data Ingestion

Data ingestion templates let you bring customer, transaction, event, and user data into the Capillary platform from FTP or SFTP locations on a schedule. Each template provides a pre-configured block sequence for a specific ingestion use case. You select a template, configure the block details for your environment, and deploy the dataflow.

The following templates are available for data ingestion.

Force generate barcode

Use this template to generate barcodes in bulk for existing customers. The template reads customer identifiers from a source file and calls the Capillary barcode generation API for each record.

Use case

A brand migrating customers from a legacy system needs to generate barcodes in bulk for existing loyalty members who do not yet have one in the Capillary platform. The customer identifiers are provided in a file and the template runs the generation API for each record in a single scheduled operation.

Block configuration

The following table lists the blocks in the Force generate barcode template, describes what each block does, and provides the configured values for each field.

Block NameConfiguration FieldConfigured Value
Connect-to-source
Type: sftp_read
Hostnamedata.capillarydata.com
Usernamenull
Source directory/tmp/
Filename pattern.*.csv. Matches all CSV files.
Processed directorynull
Unzip filesfalse
API error file pathnull
Search directory recursivelyfalse
Port22
File delimiter,
Report status codeall
Decrypt-data
Type: decrypt_content
Encryption algorithmPGP
Private key fileRedacted
Private passphraseRedacted
Is enabledfalse
Ok-file
Type: ok_file_3
Transform-data
Type: barocde_generate
Filter-data
Type: filter_on_condition_hidden
Filter condition${"${header_value:equals('true'): or(${header_value:isEmpty()})}"}
Connect-to-destination
Type: http_write
Client keynull
Client secretRedacted
API endpoint/v2/customers/barcode/forceGenerate?source=INSTORE&format=json
API base URLhttps://crm-nightly-new.cc.capillarytech.com
API methodPOST
OAuth base URLhttps://crm-nightly-new.cc.capillarytech.com
Parse responsetrue
Bulk supportfalse
Request split path$
Response split path$
Recoverable error codes502,504,520,521
Parse path map{"status_code": "$.['errors']._.code", "error_message": "$.['errors']._.message"}
Yielding error codes429
Maximum retries3
Additional headersnull
Rate1000
Period1
Time unitMINUTES