Formance Stack API: Open, modular foundation for unique payments flows
This API is documented in OpenAPI format.
Formance Stack offers one forms of authentication:
- OAuth2 OAuth2 - an open protocol to allow secure authorization in a simple and standard method from web, mobile and desktop applications.
- GetVersions - Show stack version information
Show stack version information
package main
import(
"github.com/formancehq/formance-sdk-go/v3/pkg/models/shared"
formancesdkgo "github.com/formancehq/formance-sdk-go/v3"
"context"
"log"
)
func main() {
s := formancesdkgo.New(
formancesdkgo.WithSecurity(shared.Security{
ClientID: formancesdkgo.String("<YOUR_CLIENT_ID_HERE>"),
ClientSecret: formancesdkgo.String("<YOUR_CLIENT_SECRET_HERE>"),
}),
)
ctx := context.Background()
res, err := s.GetVersions(ctx)
if err != nil {
log.Fatal(err)
}
if res.GetVersionsResponse != nil {
// handle response
}
}
Parameter | Type | Required | Description |
---|---|---|---|
ctx |
context.Context | ✔️ | The context to use for the request. |
opts |
[]operations.Option | ➖ | The options for this request. |
*operations.GetVersionsResponse, error
Error Type | Status Code | Content Type |
---|---|---|
sdkerrors.SDKError | 4XX, 5XX | */* |