The official Gocardless API definition indicates that transactions are directly output to an array. Instead, they are wrapped in a transactions key. This made the code fail to retrieve transactions, because they could not be correctly serialized. This is now fixed in the API definition, and the API code is also regenerated. Signed-off-by: Jacob Kiers <code@kiers.eu>
3.7 KiB
\AccountsApi
All URIs are relative to https://bankaccountdata.gocardless.com
Method | HTTP request | Description |
---|---|---|
retrieve_account_balances | GET /api/v2/accounts/{id}/balances/ | |
retrieve_account_details | GET /api/v2/accounts/{id}/details/ | |
retrieve_account_metadata | GET /api/v2/accounts/{id}/ | |
retrieve_account_transactions | GET /api/v2/accounts/{id}/transactions/ |
retrieve_account_balances
models::AccountBalance retrieve_account_balances(id)
Access account balances. Balances will be returned in Berlin Group PSD2 format.
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
id | String | [required] |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
retrieve_account_details
models::AccountDetail retrieve_account_details(id)
Access account details. Account details will be returned in Berlin Group PSD2 format.
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
id | String | [required] |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
retrieve_account_metadata
models::Account retrieve_account_metadata(id)
Access account metadata. Information about the account record, such as the processing status and IBAN. Account status is recalculated based on the error count in the latest req.
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
id | String | [required] |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
retrieve_account_transactions
models::BankTransactions retrieve_account_transactions(id, date_from, date_to)
Access account transactions. Transactions will be returned in Berlin Group PSD2 format.
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
id | String | [required] | ||
date_from | Option<String> | |||
date_to | Option<String> |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]