Categorygithub.com/codatio/client-sdk-go/banking
package
0.21.0
Repository: https://github.com/codatio/client-sdk-go.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

Banking API

Use Codat's API to connect to your SMB customer's banks and pull up-to-date standardized account and transaction data from their bank accounts via our partner providers.

SDK Installation

go get github.com/codatio/client-sdk-go/banking

SDK Example Usage

package main

import(
	"context"
	"log"
	"github.com/codatio/client-sdk-go/banking"
	"github.com/codatio/client-sdk-go/banking/pkg/models/operations"
)

func main() {
    s := codatbanking.New(
        codatbanking.WithSecurity(shared.Security{
            AuthHeader: "Basic BASE_64_ENCODED(API_KEY)",
        }),
    )

    ctx := context.Background()
    res, err := s.AccountBalances.List(ctx, operations.ListAccountBalancesRequest{
        CompanyID: "8a210b68-6988-11ed-a1eb-0242ac120002",
        ConnectionID: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
        OrderBy: codatbanking.String("-modifiedDate"),
        Page: codatbanking.Int(1),
        PageSize: codatbanking.Int(100),
        Query: codatbanking.String("corrupti"),
    })
    if err != nil {
        log.Fatal(err)
    }

    if res.AccountBalances != nil {
        // handle response
    }
}

Available Resources and Operations

AccountBalances

  • List - List account balances

Accounts

  • Get - Get account
  • List - List accounts

TransactionCategories

  • Get - Get transaction category
  • List - List transaction categories

Transactions

  • Get - Get bank transaction
  • List - List transactions
  • ListBankTransactions - List banking transactions :warning: Deprecated - Use List instead.

SDK Generated by Speakeasy