Method | HTTP request | Description |
---|---|---|
DownloadStatementPdf | Get /users/{user_guid}/members/{member_guid}/statements/{statement_guid}.pdf | Download statement PDF |
FetchStatements | Post /users/{user_guid}/members/{member_guid}/fetch_statements | Fetch statements |
ListMemberStatements | Get /users/{user_guid}/members/{member_guid}/statements | List member statements |
ReadMemberStatement | Get /users/{user_guid}/members/{member_guid}/statements/{statement_guid} | Read statement JSON |
*os.File DownloadStatementPdf(ctx, memberGUID, userGUID, statementGUID) Download statement PDF
Use this endpoint to download a specified statement. The endpoint URL is the same as the URI given in each statement
object.
package main
import (
"context"
"fmt"
"github.com/mxenabled/atrium-go/v2"
)
func main() {
client := atrium.AtriumClient("YOUR_API_KEY", "YOUR_CLIENT_ID")
ctx := context.Background()
memberGUID := "MBR-123" // string | The unique identifier for a `member`.
userGUID := "USR-123" // string | The unique identifier for a `user`.
statementGUID := "STA-123" // string | The unique identifier for an `statement`.
response, _, err := client.Statements.DownloadStatementPdf(ctx, memberGUID, userGUID, statementGUID)
if err != nil {
fmt.Printf("Error: %v\n", err)
} else {
fmt.Printf("Response: %s\n", response)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
memberGUID | string | The unique identifier for a `member`. | |
userGUID | string | The unique identifier for a `user`. | |
statementGUID | string | The unique identifier for an `statement`. |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MemberResponseBody FetchStatements(ctx, memberGUID, userGUID) Fetch statements
The fetch statements endpoint begins fetching statements for a member.
package main
import (
"context"
"fmt"
"github.com/mxenabled/atrium-go/v2"
)
func main() {
client := atrium.AtriumClient("YOUR_API_KEY", "YOUR_CLIENT_ID")
ctx := context.Background()
memberGUID := "MBR-123" // string | The unique identifier for a `member`.
userGUID := "USR-123" // string | The unique identifier for a `user`.
response, _, err := client.Statements.FetchStatements(ctx, memberGUID, userGUID, )
if err != nil {
fmt.Printf("Error: %v\n", err)
} else {
fmt.Printf("Response: %s\n", response)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
memberGUID | string | The unique identifier for a `member`. | |
userGUID | string | The unique identifier for a `user`. |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
StatementsResponseBody ListMemberStatements(ctx, memberGUID, userGUID, optional) List member statements
Certain institutions in Atrium allow developers to access account statements associated with a particular member
. Use this endpoint to get an array of available statements. Before this endpoint can be used, fetch_statements
should be performed on the relevant member
.
package main
import (
"context"
"fmt"
"github.com/mxenabled/atrium-go/v2"
"github.com/antihax/optional"
)
func main() {
client := atrium.AtriumClient("YOUR_API_KEY", "YOUR_CLIENT_ID")
ctx := context.Background()
memberGUID := "MBR-123" // string | The unique identifier for a `member`.
userGUID := "USR-123" // string | The unique identifier for a `user`.
opts := &atrium.ListMemberStatementsOpts{
Page: optional.NewInt32(1), // int32 | Specify current page.
RecordsPerPage: optional.NewInt32(12), // int32 | Specify records per page.
}
response, _, err := client.Statements.ListMemberStatements(ctx, memberGUID, userGUID, , opts)
if err != nil {
fmt.Printf("Error: %v\n", err)
} else {
fmt.Printf("Response: %s\n", response)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
memberGUID | string | The unique identifier for a `member`. | |
userGUID | string | The unique identifier for a `user`. | |
optional | *ListMemberStatementsOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a ListMemberStatementsOpts struct
Name | Type | Description | Notes |
---|
page | optional.Int32| Specify current page. | recordsPerPage | optional.Int32| Specify records per page. |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
StatementResponseBody ReadMemberStatement(ctx, memberGUID, userGUID, statementGUID) Read statement JSON
Use this endpoint to download a specified statement. The endpoint URL is the same as the URI given in each statement
object.
package main
import (
"context"
"fmt"
"github.com/mxenabled/atrium-go/v2"
)
func main() {
client := atrium.AtriumClient("YOUR_API_KEY", "YOUR_CLIENT_ID")
ctx := context.Background()
memberGUID := "MBR-123" // string | The unique identifier for a `member`.
userGUID := "USR-123" // string | The unique identifier for a `user`.
statementGUID := "STA-123" // string | The unique identifier for an `statement`.
response, _, err := client.Statements.ReadMemberStatement(ctx, memberGUID, userGUID, statementGUID)
if err != nil {
fmt.Printf("Error: %v\n", err)
} else {
fmt.Printf("Response: %s\n", response)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
memberGUID | string | The unique identifier for a `member`. | |
userGUID | string | The unique identifier for a `user`. | |
statementGUID | string | The unique identifier for an `statement`. |
[Back to top] [Back to API list] [Back to Model list] [Back to README]