# 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
Accounts
- Create - Create account
- Get - Get account
- GetCreateModel - Get create account model
- List - List accounts
BankAccountTransactions
- Create - Create bank account transactions
- GetCreateModel - Get create bank account transactions model
- List - List bank account transactions
BankAccounts
- Create - Create bank account
- Get - Get bank account
- GetCreateUpdateModel - Get create/update bank account model
- List - List bank accounts
- Update - Update bank account
BillCreditNotes
- Create - Create bill credit note
- Get - Get bill credit note
- GetCreateUpdateModel - Get create/update bill credit note model
- List - List bill credit notes
- Update - Update bill credit note
BillPayments
- Create - Create bill payments
- Delete - Delete bill payment
- Get - Get bill payment
- GetCreateModel - Get create bill payment model
- List - List bill payments
Bills
- Create - Create bill
- Delete - Delete bill
- DownloadAttachment - Download bill attachment
- Get - Get bill
- GetAttachment - Get bill attachment
- GetCreateUpdateModel - Get create/update bill model
- List - List bills
- ListAttachments - List bill attachments
- Update - Update bill
- UploadAttachment - Upload bill attachment
CompanyInfo
CreditNotes
- Create - Create credit note
- Get - Get credit note
- GetCreateUpdateModel - Get create/update credit note model
- List - List credit notes
- Update - Update creditNote
Customers
- Create - Create customer
- DownloadAttachment - Download customer attachment
- Get - Get customer
- GetAttachment - Get customer attachment
- GetCreateUpdateModel - Get create/update customer model
- List - List customers
- ListAttachments - List customer attachments
- Update - Update customer
DirectCosts
- Create - Create direct cost
- DownloadAttachment - Download direct cost attachment
- Get - Get direct cost
- GetAttachment - Get direct cost attachment
- GetCreateModel - Get create direct cost model
- List - List direct costs
- ListAttachments - List direct cost attachments
- UploadAttachment - Upload direct cost attachment
DirectIncomes
- Create - Create direct income
- DownloadAttachment - Download direct income attachment
- Get - Get direct income
- GetAttachment - Get direct income attachment
- GetCreateModel - Get create direct income model
- List - List direct incomes
- ListAttachments - List direct income attachments
- UploadAttachment - Create direct income attachment
Invoices
- Create - Create invoice
- Delete - Delete invoice
- DownloadAttachment - Download invoice attachment
- DownloadPdf - Get invoice as PDF
- Get - Get invoice
- GetAttachment - Get invoice attachment
- GetCreateUpdateModel - Get create/update invoice model
- List - List invoices
- ListAttachments - List invoice attachments
- Update - Update invoice
- UploadAttachment - Push invoice attachment
Items
- Create - Create item
- Get - Get item
- GetCreateModel - Get create item model
- List - List items
JournalEntries
- Create - Create journal entry
- Delete - Delete journal entry
- Get - Get journal entry
- GetCreateModel - Get create journal entry model
- List - List journal entries
Journals
- Create - Create journal
- Get - Get journal
- GetCreateModel - Get create journal model
- List - List journals
PaymentMethods
Payments
- Create - Create payment
- Get - Get payment
- GetCreateModel - Get create payment model
- List - List payments
PurchaseOrders
- Create - Create purchase order
- Get - Get purchase order
- GetCreateUpdateModel - Get create/update purchase order model
- List - List purchase orders
- Update - Update purchase order
Reports
- GetAgedCreditorsReport - Aged creditors report
- GetAgedDebtorsReport - Aged debtors report
- GetBalanceSheet - Get balance sheet
- GetCashFlowStatement - Get cash flow statement
- GetProfitAndLoss - Get profit and loss
- IsAgedCreditorsReportAvailable - Aged creditors report available
- IsAgedDebtorReportAvailable - Aged debtors report available
SalesOrders
Suppliers
- Create - Create supplier
- DownloadAttachment - Download supplier attachment
- Get - Get supplier
- GetAttachment - Get supplier attachment
- GetCreateUpdateModel - Get create/update supplier model
- List - List suppliers
- ListAttachments - List supplier attachments
- Update - Update supplier
TaxRates
TrackingCategories
Transfers
- Create - Create transfer
- Get - Get transfer
- GetCreateModel - Get create transfer model
- List - List transfers