action nbg_get_accounts_account_id_statements { label: "Get Statements" description: "Get Statements by Account ID" provider: nbg method: GET path: "/accounts/{accountId}/statements" encoding: json input: { type: "object" properties: { accountId: { type: "string" description: "AccountId" } fromStatementDateTime: { type: "string" format: "date-time" description: "The UTC ISO 8601 Date Time to filter statements FROM NB Time component is optional - set to 00:00:00 for just Date. If the Date Time contains a timezone, the ASPSP must ignore the timezone component." } "sandbox-id": { type: "string" } toStatementDateTime: { type: "string" format: "date-time" description: "The UTC ISO 8601 Date Time to filter statements TO NB Time component is optional - set to 00:00:00 for just Date. If the Date Time contains a timezone, the ASPSP must ignore the timezone component." } "x-customer-user-agent": { type: "string" } "x-fapi-auth-date": { type: "string" } "x-fapi-customer-ip-address": { type: "string" } "x-fapi-interaction-id": { type: "string" } } required: ["accountId", "sandbox-id"] additionalProperties: false } output: { type: "object" required: ["Data"] properties: { Data: { type: "object" properties: { Statement: { type: "array" description: "Provides further details on a statement resource." items: { type: "object" description: "Provides further details on a statement resource." required: ["AccountId", "CreationDateTime", "EndDateTime", "StartDateTime", "Type"] properties: { AccountId: { type: "string" description: "A unique and immutable identifier used to identify the account resource. This identifier has no meaning to the account owner." } CreationDateTime: { type: "string" format: "date-time" description: "Date and time at which the statement period starts.All dates in the JSON payloads are represented in ISO 8601 date-time format. \nAll date-time fields in responses must include the timezone.An example is below: \n2017-04-05T10:43:07+00:00" } EndDateTime: { type: "string" format: "date-time" description: "Date and time at which the statement period starts.All dates in the JSON payloads are represented in ISO 8601 date-time format. \nAll date-time fields in responses must include the timezone.An example is below: \n2017-04-05T10:43:07+00:00" } StartDateTime: { type: "string" format: "date-time" description: "Date and time at which the statement period starts.All dates in the JSON payloads are represented in ISO 8601 date-time format. \nAll date-time fields in responses must include the timezone.An example is below: \n2017-04-05T10:43:07+00:00" } StatementId: { type: "string" description: "Unique identifier for the statement resource within an servicing institution. This identifier is both unique and immutable." } StatementReference: { type: "string" description: "Unique reference for the statement. This reference may be optionally populated if available." } Type: { type: "string" enum: ["AccountClosure", "AccountOpening", "Annual", "Interim", "RegularPeriodic"] } } additionalProperties: false } } } additionalProperties: false } Links: { type: "object" description: "Links relevant to the payload" required: ["Self"] properties: { First: { type: "string" } Last: { type: "string" } Next: { type: "string" } Prev: { type: "string" } Self: { type: "string" } } additionalProperties: false } Meta: { type: "object" description: "Meta Data relevant to the payload" properties: { FirstAvailableDateTime: { type: "string" description: "All dates in the JSON payloads are represented in ISO 8601 date-time format. \nAll date-time fields in responses must include the timezone.An example is below: \n2017-04-05T10:43:07+00:00" } LastAvailableDateTime: { type: "string" description: "All dates in the JSON payloads are represented in ISO 8601 date-time format. \nAll date-time fields in responses must include the timezone.An example is below: \n2017-04-05T10:43:07+00:00" } TotalPages: { type: "integer" format: "int32" } } additionalProperties: false } } additionalProperties: false } }