Skip to content

Latest commit

 

History

History
59 lines (45 loc) · 2.95 KB

File metadata and controls

59 lines (45 loc) · 2.95 KB

LecturaDeBalances

(LecturaDeBalances)

Available Operations

GetAccountBalances

Este servicio permite obtener los balances de una cuenta determinada por su identificador. Como requisito, se asume que el PSU ha dado su consentimiento para este acceso y ha sido almacenado por el ASPSP.

Example Usage

package main

import(
	tjsolerpsd2 "github.com/speakeasy-sdks/tjsoler-psd2"
	"context"
	"github.com/speakeasy-sdks/tjsoler-psd2/pkg/models/operations"
	"log"
)

func main() {
    s := tjsolerpsd2.New()

    ctx := context.Background()
    res, err := s.LecturaDeBalances.GetAccountBalances(ctx, operations.GetAccountBalancesRequest{
        ConsentID: "7890-asdf-4321",
        Digest: "<value>",
        Signature: "<value>",
        TPPSignatureCertificate: "TestTPPCertificate",
        XRequestID: "<value>",
        AccountID: "<value>",
        Aspsp: "<value>",
    })
    if err != nil {
        log.Fatal(err)
    }
    if res != nil {
        // handle response
    }
}

Parameters

Parameter Type Required Description
ctx context.Context ✔️ The context to use for the request.
request operations.GetAccountBalancesRequest ✔️ The request object to use for the request.

Response

*operations.GetAccountBalancesResponse, error

Error Object Status Code Content Type
sdkerrors.SDKError 4xx-5xx /