Open Source Ledger for money-moving platforms
Build and track custom fit money flows on a scalable financial infrastructure.
go get github.com/speakeasy-sdks/formance-go-sdkpackage main
import (
"context"
"log"
"github.com/speakeasy-sdks/formance-go-sdk"
"github.com/speakeasy-sdks/formance-go-sdk/pkg/models/shared"
"github.com/speakeasy-sdks/formance-go-sdk/pkg/models/operations"
)
func main() {
s := formance.New(shared.Security{
Authorization: "Bearer YOUR_ACCESS_TOKEN_HERE",
}),
)
ctx := context.Background()
res, err := s.GetServerInfo(ctx)
if err != nil {
log.Fatal(err)
}
if res.ServerInfo != nil {
// handle response
}
}GetServerInfo- Get server infoPaymentsgetServerInfo- Get server infoSearchgetServerInfo- Get server info
AddMetadataToAccount- Add metadata to an accountCountAccounts- Count the accounts from a ledgerGetAccount- Get account by its addressListAccounts- List accounts from a ledger
GetBalances- Get the balances from a ledger's accountGetBalancesAggregated- Get the aggregated balances from selected accounts
AddScopeToClient- Add scope to clientCreateClient- Create clientCreateSecret- Add a secret to a clientDeleteClient- Delete clientDeleteScopeFromClient- Delete scope from clientDeleteSecret- Delete a secret from a clientListClients- List clientsReadClient- Read clientUpdateClient- Update client
GetLedgerInfo- Get information about a ledger
ListLogs- List the logs from a ledger
GetMapping- Get the mapping of a ledgerUpdateMapping- Update the mapping of a ledger
CreateWorkflow- Create workflowGetFlow- Get a flow by idGetWorkflowOccurrence- Get a workflow occurrence by idListFlows- List registered flowsListRuns- List occurrences of a workflowOrchestrationgetServerInfo- Get server infoRunWorkflow- Run workflow
ConnectorsStripeTransfer- Transfer funds between Stripe accountsGetConnectorTask- Read a specific task of the connectorGetPayment- Get a paymentInstallConnector- Install a connectorListAllConnectors- List all installed connectorsListConfigsAvailableConnectors- List the configs of each available connectorListConnectorTasks- List tasks from a connectorListPayments- List paymentsPaymentslistAccounts- List accountsReadConnectorConfig- Read the config of a connectorResetConnector- Reset a connectorUninstallConnector- Uninstall a connector
AddTransientScope- Add a transient scope to a scopeCreateScope- Create scopeDeleteScope- Delete scopeDeleteTransientScope- Delete a transient scope from a scopeListScopes- List scopesReadScope- Read scopeUpdateScope- Update scope
RunScript- Execute a Numscript
Search- Search
GetInfo- Show server information
ReadStats- Get statistics from a ledger
CreateTransactions- Create a new batch of transactions to a ledgerAddMetadataOnTransaction- Set the metadata of a transaction by its IDCountTransactions- Count the transactions from a ledgerCreateTransaction- Create a new transaction to a ledgerGetTransaction- Get transaction from a ledger by its IDListTransactions- List transactions from a ledgerRevertTransaction- Revert a ledger transaction by its ID
ListUsers- List usersReadUser- Read user
ConfirmHold- Confirm a holdCreateBalance- Create a balanceCreateWallet- Create a new walletCreditWallet- Credit a walletDebitWallet- Debit a walletGetBalance- Get detailed balanceGetHold- Get a holdGetHolds- Get all holds for a walletGetTransactionsGetWallet- Get a walletListBalances- List balances of a walletListWallets- List all walletsUpdateWallet- Update a walletVoidHold- Cancel a holdWalletsgetServerInfo- Get server info
ActivateConfig- Activate one configChangeConfigSecret- Change the signing secret of a configDeactivateConfig- Deactivate one configDeleteConfig- Delete one configGetManyConfigs- Get many configsInsertConfig- Insert a new configTestConfig- Test one config