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

# Packages

No description provided by the author

# README

Accounting API

Codat's Accounting API is a flexible API for pulling and pushing up-to-date accounting data to your customer's accounting software. It gives you a simple way to view, create, update adn delete data without having to worry about each platform's specific complexities.

SDK Installation

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

SDK Example Usage

package main

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

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

    ctx := context.Background()
    res, err := s.AccountTransactions.Get(ctx, operations.GetAccountTransactionRequest{
        AccountTransactionID: "corrupti",
        CompanyID: "8a210b68-6988-11ed-a1eb-0242ac120002",
        ConnectionID: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
    })
    if err != nil {
        log.Fatal(err)
    }

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

Available Resources and Operations

AccountTransactions

  • Get - Get account transaction
  • List - List account transactions

Accounts

BankAccountTransactions

  • Create - Create bank account transactions
  • GetCreateModel - Get create bank account transactions model
  • List - List bank account transactions

BankAccounts

BillCreditNotes

BillPayments

Bills

CompanyInfo

  • Get - Get company info
  • Refresh - Refresh company info

CreditNotes

Customers

DirectCosts

DirectIncomes

Invoices

Items

JournalEntries

Journals

PaymentMethods

  • Get - Get payment method
  • List - List payment methods

Payments

PurchaseOrders

Reports

SalesOrders

  • Get - Get sales order
  • List - List sales orders

Suppliers

TaxRates

  • Get - Get tax rate
  • List - List all tax rates

TrackingCategories

  • Get - Get tracking categories
  • List - List tracking categories

Transfers

SDK Generated by Speakeasy