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.
- getOIDCWellKnowns - Retrieve OpenID connect well-knowns.
- getVersions - Show stack version information
Retrieve OpenID connect well-knowns.
import { SDK } from "@formance/formance-sdk";
const sdk = new SDK({
authorization: "<YOUR_AUTHORIZATION_HERE>",
});
async function run() {
const result = await sdk.getOIDCWellKnowns();
// Handle the result
console.log(result)
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body , are allowed. |
Promise<operations.GetOIDCWellKnownsResponse>
Error Object | Status Code | Content Type |
---|---|---|
errors.SDKError | 4xx-5xx | / |
Show stack version information
import { SDK } from "@formance/formance-sdk";
const sdk = new SDK({
authorization: "<YOUR_AUTHORIZATION_HERE>",
});
async function run() {
const result = await sdk.getVersions();
// Handle the result
console.log(result)
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body , are allowed. |
Promise<operations.GetVersionsResponse>
Error Object | Status Code | Content Type |
---|---|---|
errors.SDKError | 4xx-5xx | / |