Function ACHFilesApiFactory

ACHFilesApi - factory interface

  • Parameters

    • Optionalconfiguration: Configuration
    • OptionalbasePath: string
    • Optionalaxios: AxiosInstance

    Returns {
        addBatchToFile(fileID: string, batch: Batch, xRequestID?: string, options?: any): AxiosPromise<void>;
        buildFile(fileID: string, xRequestID?: string, options?: any): AxiosPromise<any>;
        checkFile(fileID: string, skipAll?: boolean, requireABAOrigin?: boolean, bypassOriginValidation?: boolean, bypassDestinationValidation?: boolean, customTraceNumbers?: boolean, allowZeroBatches?: boolean, allowMissingFileHeader?: boolean, allowMissingFileControl?: boolean, bypassCompanyIdentificationMatch?: boolean, customReturnCodes?: boolean, unequalServiceClassCode?: boolean, allowUnorderedBatchNumbers?: boolean, allowInvalidCheckDigit?: boolean, unequalAddendaCounts?: boolean, preserveSpaces?: boolean, allowInvalidAmounts?: boolean, xRequestID?: string, options?: any): AxiosPromise<Error>;
        createFile(fileID: string, body: string, xRequestID?: string, skipAll?: boolean, requireABAOrigin?: boolean, bypassOrigin?: boolean, bypassOriginValidation?: boolean, bypassDestination?: boolean, bypassDestinationValidation?: boolean, customTraceNumbers?: boolean, allowZeroBatches?: boolean, allowMissingFileHeader?: boolean, allowMissingFileControl?: boolean, bypassCompanyIdentificationMatch?: boolean, customReturnCodes?: boolean, unequalServiceClassCode?: boolean, unorderedBatchNumbers?: boolean, allowUnorderedBatchNumbers?: boolean, allowInvalidCheckDigit?: boolean, unequalAddendaCounts?: boolean, preserveSpaces?: boolean, allowInvalidAmounts?: boolean, options?: any): AxiosPromise<CreateFileResponse>;
        deleteACHFile(fileID: string, xRequestID?: string, options?: any): AxiosPromise<void>;
        deleteFileBatch(fileID: string, batchID: string, xRequestID?: string, options?: any): AxiosPromise<void>;
        flattenFile(fileID: string, xRequestID?: string, options?: any): AxiosPromise<FlattenFileResponse>;
        getFileBatch(fileID: string, batchID: string, xRequestID?: string, options?: any): AxiosPromise<Batch>;
        getFileBatches(fileID: string, xRequestID?: string, options?: any): AxiosPromise<Batch[]>;
        getFileByID(fileID: string, xRequestID?: string, options?: any): AxiosPromise<any>;
        getFileContents(fileID: string, xRequestID?: string, xLineEnding?: "LF" | "CRLF", options?: any): AxiosPromise<string>;
        getFiles(xRequestID?: string, options?: any): AxiosPromise<any[]>;
        ping(options?: any): AxiosPromise<void>;
        segmentFile(xRequestID?: string, body?: string, options?: any): AxiosPromise<SegmentedFiles>;
        segmentFileID(fileID: string, xRequestID?: string, body?: any, options?: any): AxiosPromise<SegmentedFiles>;
        validateFile(fileID: string, skipAll?: boolean, requireABAOrigin?: boolean, bypassOriginValidation?: boolean, bypassDestinationValidation?: boolean, customTraceNumbers?: boolean, allowZeroBatches?: boolean, allowMissingFileHeader?: boolean, allowMissingFileControl?: boolean, bypassCompanyIdentificationMatch?: boolean, customReturnCodes?: boolean, unequalServiceClassCode?: boolean, allowUnorderedBatchNumbers?: boolean, allowInvalidCheckDigit?: boolean, unequalAddendaCounts?: boolean, preserveSpaces?: boolean, allowInvalidAmounts?: boolean, xRequestID?: string, validateOpts?: ValidateOpts, options?: any): AxiosPromise<Error>;
    }

    • addBatchToFile:function
      • Append a Batch record to the specified File.

        Parameters

        • fileID: string

          File ID

        • batch: Batch
        • OptionalxRequestID: string

          Optional Request ID allows application developer to trace requests through the system&#39;s logs

        • Optionaloptions: any

          Override http request option.

        Returns AxiosPromise<void>

        Append Batch to File

    • buildFile:function
      • Assembles the existing File (batches and controls) records, computes sequence numbers and totals. Returns JSON formatted file.

        Parameters

        • fileID: string

          File ID

        • OptionalxRequestID: string

          Optional Request ID allows application developer to trace requests through the system&#39;s logs

        • Optionaloptions: any

          Override http request option.

        Returns AxiosPromise<any>

        Build File

    • checkFile:function
      • Validates the existing File. You need only supply the unique File identifier that was returned upon creation.

        Parameters

        • fileID: string

          File ID

        • OptionalskipAll: boolean

          Optional parameter to disable all validation checks for a File

        • OptionalrequireABAOrigin: boolean

          Optional parameter to configure ImmediateOrigin validation

        • OptionalbypassOriginValidation: boolean

          Optional parameter to configure ImmediateOrigin validation

        • OptionalbypassDestinationValidation: boolean

          Optional parameter to configure ImmediateDestination validation

        • OptionalcustomTraceNumbers: boolean

          Optional parameter to configure ImmediateDestination validation

        • OptionalallowZeroBatches: boolean

          Optional parameter to configure ImmediateDestination validation

        • OptionalallowMissingFileHeader: boolean

          Optional parameter to configure ImmediateDestination validation

        • OptionalallowMissingFileControl: boolean

          Optional parameter to configure ImmediateDestination validation

        • OptionalbypassCompanyIdentificationMatch: boolean

          Optional parameter to configure ImmediateDestination validation

        • OptionalcustomReturnCodes: boolean

          Optional parameter to configure ImmediateDestination validation

        • OptionalunequalServiceClassCode: boolean

          Optional parameter to configure ImmediateDestination validation

        • OptionalallowUnorderedBatchNumbers: boolean

          Allow a file to be read with unordered batch numbers.

        • OptionalallowInvalidCheckDigit: boolean

          Allow the CheckDigit field in EntryDetail to differ from the expected calculation

        • OptionalunequalAddendaCounts: boolean

          Optional parameter to configure UnequalAddendaCounts validation

        • OptionalpreserveSpaces: boolean

          Optional parameter to save all padding spaces

        • OptionalallowInvalidAmounts: boolean

          Optional parameter to save all padding spaces

        • OptionalxRequestID: string

          Optional Request ID allows application developer to trace requests through the system&#39;s logs

        • Optionaloptions: any

          Override http request option.

        Returns AxiosPromise<Error>

        Validate File

    • createFile:function
      • Create a new File object from either the plaintext or JSON representation.

        Parameters

        • fileID: string

          File ID

        • body: string

          Content of the ACH file (in json or raw text)

        • OptionalxRequestID: string

          Optional Request ID allows application developer to trace requests through the system&#39;s logs

        • OptionalskipAll: boolean

          Optional parameter to disable all validation checks for a File

        • OptionalrequireABAOrigin: boolean

          Optional parameter to configure ImmediateOrigin validation

        • OptionalbypassOrigin: boolean

          Optional parameter to configure ImmediateOrigin validation

        • OptionalbypassOriginValidation: boolean

          Optional parameter to configure ImmediateOrigin validation

        • OptionalbypassDestination: boolean

          Optional parameter to configure ImmediateDestination validation

        • OptionalbypassDestinationValidation: boolean

          Optional parameter to configure ImmediateDestination validation

        • OptionalcustomTraceNumbers: boolean

          Optional parameter to configure ImmediateDestination validation

        • OptionalallowZeroBatches: boolean

          Optional parameter to configure ImmediateDestination validation

        • OptionalallowMissingFileHeader: boolean

          Optional parameter to configure ImmediateDestination validation

        • OptionalallowMissingFileControl: boolean

          Optional parameter to configure ImmediateDestination validation

        • OptionalbypassCompanyIdentificationMatch: boolean

          Optional parameter to configure ImmediateDestination validation

        • OptionalcustomReturnCodes: boolean

          Optional parameter to configure ImmediateDestination validation

        • OptionalunequalServiceClassCode: boolean

          Optional parameter to configure ImmediateDestination validation

        • OptionalunorderedBatchNumbers: boolean

          Allow a file to be read with unordered batch numbers.

        • OptionalallowUnorderedBatchNumbers: boolean

          Allow a file to be read with unordered batch numbers.

        • OptionalallowInvalidCheckDigit: boolean

          Allow the CheckDigit field in EntryDetail to differ from the expected calculation

        • OptionalunequalAddendaCounts: boolean

          Optional parameter to configure UnequalAddendaCounts validation

        • OptionalpreserveSpaces: boolean

          Optional parameter to save all padding spaces

        • OptionalallowInvalidAmounts: boolean

          Optional parameter to save all padding spaces

        • Optionaloptions: any

          Override http request option.

        Returns AxiosPromise<CreateFileResponse>

        Create File

    • deleteACHFile:function
      • Permanently deletes a File and associated Batches. It cannot be undone.

        Parameters

        • fileID: string

          File ID

        • OptionalxRequestID: string

          Optional Request ID allows application developer to trace requests through the system&#39;s logs

        • Optionaloptions: any

          Override http request option.

        Returns AxiosPromise<void>

        Delete File

    • deleteFileBatch:function
      • Delete a Batch from a File.

        Parameters

        • fileID: string

          File ID

        • batchID: string

          Batch ID

        • OptionalxRequestID: string

          Optional Request ID allows application developer to trace requests through the system&#39;s logs

        • Optionaloptions: any

          Override http request option.

        Returns AxiosPromise<void>

        Delete Batch

    • flattenFile:function
      • Consolidate Batches and Entries into the minimum number of Batches needed.

        Parameters

        • fileID: string

          File ID

        • OptionalxRequestID: string

          Optional Request ID allows application developer to trace requests through the system&#39;s logs

        • Optionaloptions: any

          Override http request option.

        Returns AxiosPromise<FlattenFileResponse>

        Flatten Batches

    • getFileBatch:function
      • Get a specific Batch on a File.

        Parameters

        • fileID: string

          File ID

        • batchID: string

          Batch ID

        • OptionalxRequestID: string

          Optional Request ID allows application developer to trace requests through the system&#39;s logs

        • Optionaloptions: any

          Override http request option.

        Returns AxiosPromise<Batch>

        Get Batch

    • getFileBatches:function
      • Get the Batches on a File.

        Parameters

        • fileID: string

          File ID

        • OptionalxRequestID: string

          Optional Request ID allows application developer to trace requests through the system&#39;s logs

        • Optionaloptions: any

          Override http request option.

        Returns AxiosPromise<Batch[]>

        Get Batches

    • getFileByID:function
      • Get the details of an existing File using the unique File identifier that was returned upon creation.

        Parameters

        • fileID: string

          File ID

        • OptionalxRequestID: string

          Optional Request ID allows application developer to trace requests through the system&#39;s logs

        • Optionaloptions: any

          Override http request option.

        Returns AxiosPromise<any>

        Retrieve File

    • getFileContents:function
      • Assembles the existing File (batches and controls) records, computes sequence numbers and totals. Returns plaintext file.

        Parameters

        • fileID: string

          File ID

        • OptionalxRequestID: string

          Optional Request ID allows application developer to trace requests through the system&#39;s logs

        • OptionalxLineEnding: "LF" | "CRLF"

          Optional Line Ending allows application developer to alter line ending of the file data returned. Supported choices are LF (Line Feed) and CRLF (Carriage Return Line Feed).

        • Optionaloptions: any

          Override http request option.

        Returns AxiosPromise<string>

        Get File Contents

    • getFiles:function
      • List all ACH Files created with the ACH service. These Files are not persisted through multiple runs of the service.

        Parameters

        • OptionalxRequestID: string

          Optional Request ID allows application developer to trace requests through the system&#39;s logs

        • Optionaloptions: any

          Override http request option.

        Returns AxiosPromise<any[]>

        List Files

    • ping:function
      • Check if the ACH service is running.

        Parameters

        • Optionaloptions: any

          Override http request option.

        Returns AxiosPromise<void>

        Ping ACH service

    • segmentFile:function
      • Split one File into two. One with only debits and one with only credits.

        Parameters

        • OptionalxRequestID: string

          Optional Request ID allows application developer to trace requests through the system&#39;s logs

        • Optionalbody: string

          ACH file (in Nacha or JSON formatting) along with optional segment configuration

        • Optionaloptions: any

          Override http request option.

        Returns AxiosPromise<SegmentedFiles>

        Segment File

    • segmentFileID:function
      • Split one FileID into two. One with only debits and one with only credits.

        Parameters

        • fileID: string

          File ID

        • OptionalxRequestID: string

          Optional Request ID allows application developer to trace requests through the system&#39;s logs

        • Optionalbody: any

          Optional configuration for segmenting files

        • Optionaloptions: any

          Override http request option.

        Returns AxiosPromise<SegmentedFiles>

        Segment FileID

    • validateFile:function
      • Validates the existing File. You need only supply the unique File identifier that was returned upon creation.

        Parameters

        • fileID: string

          File ID

        • OptionalskipAll: boolean

          Optional parameter to disable all validation checks for a File

        • OptionalrequireABAOrigin: boolean

          Optional parameter to configure ImmediateOrigin validation

        • OptionalbypassOriginValidation: boolean

          Optional parameter to configure ImmediateOrigin validation

        • OptionalbypassDestinationValidation: boolean

          Optional parameter to configure ImmediateDestination validation

        • OptionalcustomTraceNumbers: boolean

          Optional parameter to configure ImmediateDestination validation

        • OptionalallowZeroBatches: boolean

          Optional parameter to configure ImmediateDestination validation

        • OptionalallowMissingFileHeader: boolean

          Optional parameter to configure ImmediateDestination validation

        • OptionalallowMissingFileControl: boolean

          Optional parameter to configure ImmediateDestination validation

        • OptionalbypassCompanyIdentificationMatch: boolean

          Optional parameter to configure ImmediateDestination validation

        • OptionalcustomReturnCodes: boolean

          Optional parameter to configure ImmediateDestination validation

        • OptionalunequalServiceClassCode: boolean

          Optional parameter to configure ImmediateDestination validation

        • OptionalallowUnorderedBatchNumbers: boolean

          Allow a file to be read with unordered batch numbers.

        • OptionalallowInvalidCheckDigit: boolean

          Allow the CheckDigit field in EntryDetail to differ from the expected calculation

        • OptionalunequalAddendaCounts: boolean

          Optional parameter to configure UnequalAddendaCounts validation

        • OptionalpreserveSpaces: boolean

          Optional parameter to save all padding spaces

        • OptionalallowInvalidAmounts: boolean

          Optional parameter to save all padding spaces

        • OptionalxRequestID: string

          Optional Request ID allows application developer to trace requests through the system&#39;s logs

        • OptionalvalidateOpts: ValidateOpts
        • Optionaloptions: any

          Override http request option.

        Returns AxiosPromise<Error>

        Validate File (Custom)