---
title: "Finalize a connection to open banking"
method: GET
path: "/connect/open-banking-finalize"
---

# Finalize a connection to open banking

`GET /connect/open-banking-finalize`

## Request

- Base URL: `https://api.open-finance.ai/v2`
- URL: `https://api.open-finance.ai/v2/connect/open-banking-finalize`
- Auth: none declared

## Query parameters

- `code` string
- `state` string, required
- `error` string

## Response `200`

Response

- ConnectOBFinalizeResponse
  - `connectionId` string: Unique identifier for the connection
  - `connectionStatus` string: Status of the connection (e.g., CONNECTED)
  - `paymentStatus` string: Status of the payment (e.g., ACTC)
  - `orgId` string: Organization identifier
  - `userId` string: User identifier
  - `paymentId` string: Payment identifier
  - `token` string: Token value
  - `isIframe` boolean: Indicates if the connection is using iframe
  - `isPayment` boolean: Indicates if finalizing a payment
  - `psuId` string: PSU (Payment Service User) identifier
  - `redirectUrl` string: The URL to redirect to after finalizing the connection

## Other responses

- `400`: state is required
- `401`: Unauthorized access - Invalid access token
- `403`: Forbidden - Access token missing the required permissions to preform this action
- `404`: Not found - The route or resource were not found
- `500`: Internal server error

---

[API](https://skmtc.dev/open-finance/apis/data.md) - [All operations](https://skmtc.dev/open-finance/apis/data/llms.txt) - [OpenAPI document](https://skmtc.dev/open-finance/apis/data/revisions/c18eafb2a770?raw)
