(Payments.V1)
- PaymentsgetServerInfo - Get server info
- CreatePayment - Create a payment
- ListPayments - List payments
- GetPayment - Get a payment
- UpdateMetadata - Update metadata
- ListTransferInitiations - List Transfer Initiations
- CreateTransferInitiation - Create a TransferInitiation
- GetTransferInitiation - Get a transfer initiation
- DeleteTransferInitiation - Delete a transfer initiation
- UdpateTransferInitiationStatus - Update the status of a transfer initiation
- ReverseTransferInitiation - Reverse a transfer initiation
- RetryTransferInitiation - Retry a failed transfer initiation
- ListPools - List Pools
- CreatePool - Create a Pool
- GetPool - Get a Pool
- DeletePool - Delete a Pool
- AddAccountToPool - Add an account to a pool
- RemoveAccountFromPool - Remove an account from a pool
- GetPoolBalances - Get pool balances
- CreateAccount - Create an account
- PaymentslistAccounts - List accounts
- PaymentsgetAccount - Get an account
- GetAccountBalances - Get account balances
- CreateBankAccount - Create a BankAccount in Payments and on the PSP
- ListBankAccounts - List bank accounts created by user on Formance
- GetBankAccount - Get a bank account created by user on Formance
- ForwardBankAccount - Forward a bank account to a connector
- UpdateBankAccountMetadata - Update metadata of a bank account
- ListAllConnectors - List all installed connectors
- ListConfigsAvailableConnectors - List the configs of each available connector
- InstallConnector - Install a connector
UninstallConnector- Uninstall a connector⚠️ Deprecated- UninstallConnectorV1 - Uninstall a connector
ReadConnectorConfig- Read the config of a connector⚠️ Deprecated- UpdateConnectorConfigV1 - Update the config of a connector
- ReadConnectorConfigV1 - Read the config of a connector
ResetConnector- Reset a connector⚠️ Deprecated- ResetConnectorV1 - Reset a connector
ListConnectorTasks- List tasks from a connector⚠️ Deprecated- ListConnectorTasksV1 - List tasks from a connector
GetConnectorTask- Read a specific task of the connector⚠️ Deprecated- GetConnectorTaskV1 - Read a specific task of the connector
- ConnectorsTransfer - Transfer funds between Connector accounts
Get server info
using formance;
using formance.Models.Components;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
var res = await sdk.Payments.V1.PaymentsgetServerInfoAsync();
// handle response
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.PaymentsErrorResponse | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
Create a payment
using formance;
using formance.Models.Components;
using System.Numerics;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
PaymentRequest req = new PaymentRequest() {
Reference = "<value>",
ConnectorID = "<id>",
CreatedAt = System.DateTime.Parse("2024-11-09T01:03:21.011Z"),
Amount = 100,
Type = formance.Models.Components.PaymentType.Other,
Status = formance.Models.Components.PaymentStatus.RefundedFailure,
Scheme = formance.Models.Components.PaymentScheme.SepaDebit,
Asset = "USD",
};
var res = await sdk.Payments.V1.CreatePaymentAsync(req);
// handle response
Parameter | Type | Required | Description |
---|---|---|---|
request |
PaymentRequest | ✔️ | The request object to use for the request. |
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.PaymentsErrorResponse | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
List payments
using formance;
using formance.Models.Requests;
using System.Collections.Generic;
using formance.Models.Components;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
var res = await sdk.Payments.V1.ListPaymentsAsync(
pageSize: 100,
cursor: "aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ==",
sort: new List<string>() {
"date:asc",
"status:desc",
},
query: "<value>"
);
// handle response
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
PageSize |
long | ➖ | The maximum number of results to return per page. |
100 |
Cursor |
string | ➖ | Parameter used in pagination requests. Maximum page size is set to 15. Set to the value of next for the next page of results. Set to the value of previous for the previous page of results. No other parameters can be set when this parameter is set. |
aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ== |
Sort |
List<string> | ➖ | Fields used to sort payments (default is date:desc). | [ "date:asc", "status:desc" ] |
Query |
string | ➖ | Filters used to filter resources. |
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.PaymentsErrorResponse | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
Get a payment
using formance;
using formance.Models.Requests;
using formance.Models.Components;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
var res = await sdk.Payments.V1.GetPaymentAsync(paymentId: "XXX");
// handle response
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
PaymentId |
string | ✔️ | The payment ID. | XXX |
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.PaymentsErrorResponse | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
Update metadata
using formance;
using formance.Models.Requests;
using System.Collections.Generic;
using formance.Models.Components;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
var res = await sdk.Payments.V1.UpdateMetadataAsync(
paymentId: "XXX",
requestBody: new Dictionary<string, string>() {
{ "key", "<value>" },
}
);
// handle response
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
PaymentId |
string | ✔️ | The payment ID. | XXX |
RequestBody |
Dictionary<String, string> | ✔️ | N/A |
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.PaymentsErrorResponse | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
List Transfer Initiations
using formance;
using formance.Models.Requests;
using System.Collections.Generic;
using formance.Models.Components;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
var res = await sdk.Payments.V1.ListTransferInitiationsAsync(
pageSize: 100,
cursor: "aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ==",
sort: new List<string>() {
"date:asc",
"status:desc",
},
query: "<value>"
);
// handle response
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
PageSize |
long | ➖ | The maximum number of results to return per page. |
100 |
Cursor |
string | ➖ | Parameter used in pagination requests. Maximum page size is set to 15. Set to the value of next for the next page of results. Set to the value of previous for the previous page of results. No other parameters can be set when this parameter is set. |
aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ== |
Sort |
List<string> | ➖ | Fields used to sort payments (default is date:desc). | [ "date:asc", "status:desc" ] |
Query |
string | ➖ | Filters used to filter resources. |
ListTransferInitiationsResponse
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.PaymentsErrorResponse | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
Create a transfer initiation
using formance;
using formance.Models.Components;
using System.Numerics;
using System.Collections.Generic;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
TransferInitiationRequest req = new TransferInitiationRequest() {
Reference = "XXX",
ScheduledAt = System.DateTime.Parse("2022-10-09T08:11:40.585Z"),
Description = "worthy pace vague ick liberalize between um",
SourceAccountID = "<id>",
DestinationAccountID = "<id>",
Type = formance.Models.Components.TransferInitiationRequestType.Payout,
Amount = 847873,
Asset = "USD",
Validated = false,
};
var res = await sdk.Payments.V1.CreateTransferInitiationAsync(req);
// handle response
Parameter | Type | Required | Description |
---|---|---|---|
request |
TransferInitiationRequest | ✔️ | The request object to use for the request. |
CreateTransferInitiationResponse
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.PaymentsErrorResponse | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
Get a transfer initiation
using formance;
using formance.Models.Requests;
using formance.Models.Components;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
var res = await sdk.Payments.V1.GetTransferInitiationAsync(transferId: "XXX");
// handle response
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
TransferId |
string | ✔️ | The transfer ID. | XXX |
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.PaymentsErrorResponse | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
Delete a transfer initiation by its id.
using formance;
using formance.Models.Requests;
using formance.Models.Components;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
var res = await sdk.Payments.V1.DeleteTransferInitiationAsync(transferId: "XXX");
// handle response
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
TransferId |
string | ✔️ | The transfer ID. | XXX |
DeleteTransferInitiationResponse
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.PaymentsErrorResponse | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
Update a transfer initiation status
using formance;
using formance.Models.Requests;
using formance.Models.Components;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
var res = await sdk.Payments.V1.UdpateTransferInitiationStatusAsync(
transferId: "XXX",
updateTransferInitiationStatusRequest: new UpdateTransferInitiationStatusRequest() {
Status = formance.Models.Components.Status.Validated,
}
);
// handle response
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
TransferId |
string | ✔️ | The transfer ID. | XXX |
UpdateTransferInitiationStatusRequest |
UpdateTransferInitiationStatusRequest | ✔️ | N/A |
UdpateTransferInitiationStatusResponse
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.PaymentsErrorResponse | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
Reverse transfer initiation
using formance;
using formance.Models.Requests;
using formance.Models.Components;
using System.Numerics;
using System.Collections.Generic;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
var res = await sdk.Payments.V1.ReverseTransferInitiationAsync(
transferId: "XXX",
reverseTransferInitiationRequest: new Models.Components.ReverseTransferInitiationRequest() {
Reference = "XXX",
Description = "emerge whose mechanically outside kissingly",
Amount = 978360,
Asset = "USD",
Metadata = new Dictionary<string, string>() {
{ "key", "<value>" },
},
}
);
// handle response
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
TransferId |
string | ✔️ | The transfer ID. | XXX |
ReverseTransferInitiationRequest |
Models.Components.ReverseTransferInitiationRequest | ✔️ | N/A |
ReverseTransferInitiationResponse
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.PaymentsErrorResponse | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
Retry a failed transfer initiation
using formance;
using formance.Models.Requests;
using formance.Models.Components;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
var res = await sdk.Payments.V1.RetryTransferInitiationAsync(transferId: "XXX");
// handle response
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
TransferId |
string | ✔️ | The transfer ID. | XXX |
RetryTransferInitiationResponse
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.PaymentsErrorResponse | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
List Pools
using formance;
using formance.Models.Requests;
using System.Collections.Generic;
using formance.Models.Components;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
var res = await sdk.Payments.V1.ListPoolsAsync(
pageSize: 100,
cursor: "aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ==",
sort: new List<string>() {
"date:asc",
"status:desc",
},
query: "<value>"
);
// handle response
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
PageSize |
long | ➖ | The maximum number of results to return per page. |
100 |
Cursor |
string | ➖ | Parameter used in pagination requests. Maximum page size is set to 15. Set to the value of next for the next page of results. Set to the value of previous for the previous page of results. No other parameters can be set when this parameter is set. |
aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ== |
Sort |
List<string> | ➖ | Fields used to sort payments (default is date:desc). | [ "date:asc", "status:desc" ] |
Query |
string | ➖ | Filters used to filter resources. |
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.PaymentsErrorResponse | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
Create a Pool
using formance;
using formance.Models.Components;
using System.Collections.Generic;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
PoolRequest req = new PoolRequest() {
Name = "<value>",
AccountIDs = new List<string>() {
"<value>",
},
};
var res = await sdk.Payments.V1.CreatePoolAsync(req);
// handle response
Parameter | Type | Required | Description |
---|---|---|---|
request |
PoolRequest | ✔️ | The request object to use for the request. |
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.PaymentsErrorResponse | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
Get a Pool
using formance;
using formance.Models.Requests;
using formance.Models.Components;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
var res = await sdk.Payments.V1.GetPoolAsync(poolId: "XXX");
// handle response
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
PoolId |
string | ✔️ | The pool ID. | XXX |
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.PaymentsErrorResponse | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
Delete a pool by its id.
using formance;
using formance.Models.Requests;
using formance.Models.Components;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
var res = await sdk.Payments.V1.DeletePoolAsync(poolId: "XXX");
// handle response
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
PoolId |
string | ✔️ | The pool ID. | XXX |
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.PaymentsErrorResponse | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
Add an account to a pool
using formance;
using formance.Models.Requests;
using formance.Models.Components;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
var res = await sdk.Payments.V1.AddAccountToPoolAsync(
poolId: "XXX",
addAccountToPoolRequest: new Models.Components.AddAccountToPoolRequest() {
AccountID = "<id>",
}
);
// handle response
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
PoolId |
string | ✔️ | The pool ID. | XXX |
AddAccountToPoolRequest |
Models.Components.AddAccountToPoolRequest | ✔️ | N/A |
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.PaymentsErrorResponse | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
Remove an account from a pool by its id.
using formance;
using formance.Models.Requests;
using formance.Models.Components;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
var res = await sdk.Payments.V1.RemoveAccountFromPoolAsync(
poolId: "XXX",
accountId: "XXX"
);
// handle response
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
PoolId |
string | ✔️ | The pool ID. | XXX |
AccountId |
string | ✔️ | The account ID. | XXX |
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.PaymentsErrorResponse | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
Get pool balances
using formance;
using formance.Models.Requests;
using formance.Models.Components;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
var res = await sdk.Payments.V1.GetPoolBalancesAsync(
poolId: "XXX",
at: System.DateTime.Parse("2023-05-05T06:40:23.119Z")
);
// handle response
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
PoolId |
string | ✔️ | The pool ID. | XXX |
At |
DateTime | ✔️ | Filter balances by date. |
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.PaymentsErrorResponse | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
Create an account
using formance;
using formance.Models.Components;
using System.Collections.Generic;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
AccountRequest req = new AccountRequest() {
Reference = "<value>",
ConnectorID = "<id>",
CreatedAt = System.DateTime.Parse("2024-08-19T02:15:08.152Z"),
Type = formance.Models.Components.AccountType.Internal,
};
var res = await sdk.Payments.V1.CreateAccountAsync(req);
// handle response
Parameter | Type | Required | Description |
---|---|---|---|
request |
AccountRequest | ✔️ | The request object to use for the request. |
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.PaymentsErrorResponse | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
List accounts
using formance;
using formance.Models.Requests;
using System.Collections.Generic;
using formance.Models.Components;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
PaymentslistAccountsRequest req = new PaymentslistAccountsRequest() {
PageSize = 100,
Cursor = "aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ==",
Sort = new List<string>() {
"date:asc",
"status:desc",
},
};
var res = await sdk.Payments.V1.PaymentslistAccountsAsync(req);
// handle response
Parameter | Type | Required | Description |
---|---|---|---|
request |
PaymentslistAccountsRequest | ✔️ | The request object to use for the request. |
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.PaymentsErrorResponse | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
Get an account
using formance;
using formance.Models.Requests;
using formance.Models.Components;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
var res = await sdk.Payments.V1.PaymentsgetAccountAsync(accountId: "XXX");
// handle response
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
AccountId |
string | ✔️ | The account ID. | XXX |
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.PaymentsErrorResponse | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
Get account balances
using formance;
using formance.Models.Requests;
using System.Collections.Generic;
using formance.Models.Components;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
GetAccountBalancesRequest req = new GetAccountBalancesRequest() {
AccountId = "XXX",
PageSize = 100,
Cursor = "aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ==",
Sort = new List<string>() {
"date:asc",
"status:desc",
},
};
var res = await sdk.Payments.V1.GetAccountBalancesAsync(req);
// handle response
Parameter | Type | Required | Description |
---|---|---|---|
request |
GetAccountBalancesRequest | ✔️ | The request object to use for the request. |
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.PaymentsErrorResponse | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
Create a bank account in Payments and on the PSP.
using formance;
using formance.Models.Components;
using System.Collections.Generic;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
BankAccountRequest req = new BankAccountRequest() {
Country = "GB",
ConnectorID = "<id>",
Name = "My account",
};
var res = await sdk.Payments.V1.CreateBankAccountAsync(req);
// handle response
Parameter | Type | Required | Description |
---|---|---|---|
request |
BankAccountRequest | ✔️ | The request object to use for the request. |
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.PaymentsErrorResponse | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
List all bank accounts created by user on Formance.
using formance;
using formance.Models.Requests;
using System.Collections.Generic;
using formance.Models.Components;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
var res = await sdk.Payments.V1.ListBankAccountsAsync(
pageSize: 100,
cursor: "aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ==",
sort: new List<string>() {
"date:asc",
"status:desc",
}
);
// handle response
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
PageSize |
long | ➖ | The maximum number of results to return per page. |
100 |
Cursor |
string | ➖ | Parameter used in pagination requests. Maximum page size is set to 15. Set to the value of next for the next page of results. Set to the value of previous for the previous page of results. No other parameters can be set when this parameter is set. |
aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ== |
Sort |
List<string> | ➖ | Fields used to sort payments (default is date:desc). | [ "date:asc", "status:desc" ] |
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.PaymentsErrorResponse | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
Get a bank account created by user on Formance
using formance;
using formance.Models.Requests;
using formance.Models.Components;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
var res = await sdk.Payments.V1.GetBankAccountAsync(bankAccountId: "XXX");
// handle response
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
BankAccountId |
string | ✔️ | The bank account ID. | XXX |
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.PaymentsErrorResponse | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
Forward a bank account to a connector
using formance;
using formance.Models.Requests;
using formance.Models.Components;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
var res = await sdk.Payments.V1.ForwardBankAccountAsync(
bankAccountId: "XXX",
forwardBankAccountRequest: new Models.Components.ForwardBankAccountRequest() {
ConnectorID = "<id>",
}
);
// handle response
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
BankAccountId |
string | ✔️ | The bank account ID. | XXX |
ForwardBankAccountRequest |
Models.Components.ForwardBankAccountRequest | ✔️ | N/A |
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.PaymentsErrorResponse | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
Update metadata of a bank account
using formance;
using formance.Models.Requests;
using formance.Models.Components;
using System.Collections.Generic;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
var res = await sdk.Payments.V1.UpdateBankAccountMetadataAsync(
bankAccountId: "XXX",
updateBankAccountMetadataRequest: new Models.Components.UpdateBankAccountMetadataRequest() {
Metadata = new Dictionary<string, string>() {
{ "key", "<value>" },
},
}
);
// handle response
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
BankAccountId |
string | ✔️ | The bank account ID. | XXX |
UpdateBankAccountMetadataRequest |
Models.Components.UpdateBankAccountMetadataRequest | ✔️ | N/A |
UpdateBankAccountMetadataResponse
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.PaymentsErrorResponse | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
List all installed connectors.
using formance;
using formance.Models.Components;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
var res = await sdk.Payments.V1.ListAllConnectorsAsync();
// handle response
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.PaymentsErrorResponse | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
List the configs of each available connector.
using formance;
using formance.Models.Components;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
var res = await sdk.Payments.V1.ListConfigsAvailableConnectorsAsync();
// handle response
ListConfigsAvailableConnectorsResponse
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.PaymentsErrorResponse | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
Install a connector by its name and config.
using formance;
using formance.Models.Requests;
using formance.Models.Components;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
var res = await sdk.Payments.V1.InstallConnectorAsync(
connector: formance.Models.Components.Connector.Wise,
connectorConfig: ConnectorConfig.CreateAtlarConfig(
new AtlarConfig() {
Name = "My Atlar Account",
BaseUrl = "https://api.example.com",
PollingPeriod = "60s",
TransferInitiationStatusPollingPeriod = "60s",
AccessKey = "XXX",
Secret = "XXX",
PageSize = 50,
}
)
);
// handle response
Parameter | Type | Required | Description |
---|---|---|---|
Connector |
Connector | ✔️ | The name of the connector. |
ConnectorConfig |
ConnectorConfig | ✔️ | N/A |
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.PaymentsErrorResponse | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
Uninstall a connector by its name.
⚠️ DEPRECATED: This will be removed in a future release, please migrate away from it as soon as possible.
using formance;
using formance.Models.Requests;
using formance.Models.Components;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
var res = await sdk.Payments.V1.UninstallConnectorAsync(connector: formance.Models.Components.Connector.Modulr);
// handle response
Parameter | Type | Required | Description |
---|---|---|---|
Connector |
Connector | ✔️ | The name of the connector. |
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.PaymentsErrorResponse | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
Uninstall a connector by its name.
using formance;
using formance.Models.Requests;
using formance.Models.Components;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
var res = await sdk.Payments.V1.UninstallConnectorV1Async(
connector: formance.Models.Components.Connector.Generic,
connectorId: "XXX"
);
// handle response
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Connector |
Connector | ✔️ | The name of the connector. | |
ConnectorId |
string | ✔️ | The connector ID. | XXX |
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.PaymentsErrorResponse | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
Read connector config
⚠️ DEPRECATED: This will be removed in a future release, please migrate away from it as soon as possible.
using formance;
using formance.Models.Requests;
using formance.Models.Components;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
var res = await sdk.Payments.V1.ReadConnectorConfigAsync(connector: formance.Models.Components.Connector.Generic);
// handle response
Parameter | Type | Required | Description |
---|---|---|---|
Connector |
Connector | ✔️ | The name of the connector. |
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.PaymentsErrorResponse | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
Update connector config
using formance;
using formance.Models.Requests;
using formance.Models.Components;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
var res = await sdk.Payments.V1.UpdateConnectorConfigV1Async(
connector: formance.Models.Components.Connector.Stripe,
connectorId: "XXX",
connectorConfig: ConnectorConfig.CreateAdyenConfig(
new AdyenConfig() {
Name = "My Adyen Account",
ApiKey = "XXX",
HmacKey = "XXX",
LiveEndpointPrefix = "XXX",
PollingPeriod = "60s",
}
)
);
// handle response
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Connector |
Connector | ✔️ | The name of the connector. | |
ConnectorId |
string | ✔️ | The connector ID. | XXX |
ConnectorConfig |
ConnectorConfig | ✔️ | N/A |
UpdateConnectorConfigV1Response
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.PaymentsErrorResponse | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
Read connector config
using formance;
using formance.Models.Requests;
using formance.Models.Components;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
var res = await sdk.Payments.V1.ReadConnectorConfigV1Async(
connector: formance.Models.Components.Connector.CurrencyCloud,
connectorId: "XXX"
);
// handle response
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Connector |
Connector | ✔️ | The name of the connector. | |
ConnectorId |
string | ✔️ | The connector ID. | XXX |
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.PaymentsErrorResponse | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
Reset a connector by its name. It will remove the connector and ALL PAYMENTS generated with it.
⚠️ DEPRECATED: This will be removed in a future release, please migrate away from it as soon as possible.
using formance;
using formance.Models.Requests;
using formance.Models.Components;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
var res = await sdk.Payments.V1.ResetConnectorAsync(connector: formance.Models.Components.Connector.Atlar);
// handle response
Parameter | Type | Required | Description |
---|---|---|---|
Connector |
Connector | ✔️ | The name of the connector. |
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.PaymentsErrorResponse | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
Reset a connector by its name. It will remove the connector and ALL PAYMENTS generated with it.
using formance;
using formance.Models.Requests;
using formance.Models.Components;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
var res = await sdk.Payments.V1.ResetConnectorV1Async(
connector: formance.Models.Components.Connector.Generic,
connectorId: "XXX"
);
// handle response
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Connector |
Connector | ✔️ | The name of the connector. | |
ConnectorId |
string | ✔️ | The connector ID. | XXX |
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.PaymentsErrorResponse | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
List all tasks associated with this connector.
⚠️ DEPRECATED: This will be removed in a future release, please migrate away from it as soon as possible.
using formance;
using formance.Models.Requests;
using formance.Models.Components;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
var res = await sdk.Payments.V1.ListConnectorTasksAsync(
connector: formance.Models.Components.Connector.Modulr,
pageSize: 100,
cursor: "aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ=="
);
// handle response
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Connector |
Connector | ✔️ | The name of the connector. | |
PageSize |
long | ➖ | The maximum number of results to return per page. |
100 |
Cursor |
string | ➖ | Parameter used in pagination requests. Maximum page size is set to 15. Set to the value of next for the next page of results. Set to the value of previous for the previous page of results. No other parameters can be set when this parameter is set. |
aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ== |
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.PaymentsErrorResponse | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
List all tasks associated with this connector.
using formance;
using formance.Models.Requests;
using formance.Models.Components;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
var res = await sdk.Payments.V1.ListConnectorTasksV1Async(
connector: formance.Models.Components.Connector.BankingCircle,
connectorId: "XXX",
pageSize: 100,
cursor: "aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ=="
);
// handle response
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Connector |
Connector | ✔️ | The name of the connector. | |
ConnectorId |
string | ✔️ | The connector ID. | XXX |
PageSize |
long | ➖ | The maximum number of results to return per page. |
100 |
Cursor |
string | ➖ | Parameter used in pagination requests. Maximum page size is set to 15. Set to the value of next for the next page of results. Set to the value of previous for the previous page of results. No other parameters can be set when this parameter is set. |
aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ== |
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.PaymentsErrorResponse | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
Get a specific task associated to the connector.
⚠️ DEPRECATED: This will be removed in a future release, please migrate away from it as soon as possible.
using formance;
using formance.Models.Requests;
using formance.Models.Components;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
var res = await sdk.Payments.V1.GetConnectorTaskAsync(
connector: formance.Models.Components.Connector.Adyen,
taskId: "task1"
);
// handle response
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Connector |
Connector | ✔️ | The name of the connector. | |
TaskId |
string | ✔️ | The task ID. | task1 |
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.PaymentsErrorResponse | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
Get a specific task associated to the connector.
using formance;
using formance.Models.Requests;
using formance.Models.Components;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
var res = await sdk.Payments.V1.GetConnectorTaskV1Async(
connector: formance.Models.Components.Connector.BankingCircle,
connectorId: "XXX",
taskId: "task1"
);
// handle response
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Connector |
Connector | ✔️ | The name of the connector. | |
ConnectorId |
string | ✔️ | The connector ID. | XXX |
TaskId |
string | ✔️ | The task ID. | task1 |
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.PaymentsErrorResponse | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
Execute a transfer between two accounts.
using formance;
using formance.Models.Requests;
using formance.Models.Components;
using System.Numerics;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
var res = await sdk.Payments.V1.ConnectorsTransferAsync(
connector: formance.Models.Components.Connector.BankingCircle,
transferRequest: new TransferRequest() {
Amount = 100,
Asset = "USD",
Destination = "acct_1Gqj58KZcSIg2N2q",
Source = "acct_1Gqj58KZcSIg2N2q",
}
);
// handle response
Parameter | Type | Required | Description |
---|---|---|---|
Connector |
Connector | ✔️ | The name of the connector. |
TransferRequest |
TransferRequest | ✔️ | N/A |
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.PaymentsErrorResponse | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |