Open Banking

Create bank checkout session

post

Starts a new bank checkout session for the payment.

This endpoint is available only for customer-initiated payments.

Path parameters
paymentIdstring · max: 64Required

Unique ID of the payment

versionstringRequired
Header parameters
X-Request-Idstring · uuidRequired

ID of the request, unique to the call, as determined by the initiating party

Body
browserIpstring · max: 45Required

User's browser IP address

browserUserAgentstring · min: 1Required

Exact content of the HTTP user-agent header

preferredLocalestring · enumOptional

Preferred locale for the checkout page, defaults to the locale sent in payment initiation request

Possible values:
Responses
200
OK
application/json
post
POST /egw/{version}/payments/{paymentId}/sessions/bank HTTP/1.1
Host: hostname
X-Request-Id: 123e4567-e89b-12d3-a456-426614174000
Content-Type: application/json
Accept: */*
Content-Length: 94

{
  "bank": {
    "bankId": "text"
  },
  "browserIp": "text",
  "browserUserAgent": "text",
  "preferredLocale": "cz"
}
{
  "sessionId": "text",
  "sessionStatus": "INITIALIZED",
  "action": {
    "type": "REDIRECT_TO_SCA",
    "_links": {
      "scaRedirect": {
        "href": "text"
      }
    }
  }
}
patch

Create consent for the payment, after completing pre-step SCA

Path parameters
paymentIdstring · max: 64Required

Unique ID of the payment

sessionIdstring · max: 64Required

Unique ID of the checkout session

versionstringRequired
Header parameters
X-Request-Idstring · uuidRequired

ID of the request, unique to the call, as determined by the initiating party

Body
preferredLocalestring · enumOptional

Preferred locale for the checkout page, defaults to the locale sent in payment initiation request

Possible values:
Responses
200
OK
application/json
patch
PATCH /egw/{version}/payments/{paymentId}/sessions/{sessionId}/bank/consent HTTP/1.1
Host: hostname
X-Request-Id: 123e4567-e89b-12d3-a456-426614174000
Content-Type: application/json
Accept: */*
Content-Length: 24

{
  "preferredLocale": "cz"
}
{
  "sessionId": "text",
  "sessionStatus": "INITIALIZED",
  "action": {
    "type": "REDIRECT_TO_SCA",
    "_links": {
      "scaRedirect": {
        "href": "text"
      }
    }
  }
}

Get bank accounts

get

Get available bank accounts for the user

Path parameters
paymentIdstring · max: 64Required

Unique ID of the payment

sessionIdstring · max: 64Required

Unique ID of the checkout session

versionstringRequired
Header parameters
X-Request-Idstring · uuidRequired

ID of the request, unique to the call, as determined by the initiating party

Responses
200
OK
application/json
get
GET /egw/{version}/payments/{paymentId}/sessions/{sessionId}/bank/accounts HTTP/1.1
Host: hostname
X-Request-Id: 123e4567-e89b-12d3-a456-426614174000
Accept: */*
{
  "sessionId": "text",
  "sessionStatus": "INITIALIZED",
  "action": {
    "type": "SELECT_ACCOUNT",
    "accounts": [
      {
        "displayName": "text",
        "iban": "text",
        "balance": "text",
        "currency": "text",
        "ownerName": "text"
      }
    ]
  }
}

Confirm payment

patch

Confirm and initiate the payment

Path parameters
paymentIdstring · max: 64Required

Unique ID of the payment

sessionIdstring · max: 64Required

Unique ID of the checkout session

versionstringRequired
Header parameters
X-Request-Idstring · uuidRequired

ID of the request, unique to the call, as determined by the initiating party

Body
ibanstring · max: 34Optional

International Bank Account Number of the bank account to be used for the payment

preferredLocalestring · enumOptional

Preferred language for the checkout page. Defaults to language sent in one-off or CIT request, if missing

Possible values:
Responses
200
OK
application/json
patch
PATCH /egw/{version}/payments/{paymentId}/sessions/{sessionId}/bank/confirm HTTP/1.1
Host: hostname
X-Request-Id: 123e4567-e89b-12d3-a456-426614174000
Content-Type: application/json
Accept: */*
Content-Length: 38

{
  "iban": "text",
  "preferredLocale": "cz"
}
{
  "sessionId": "text",
  "sessionStatus": "INITIALIZED",
  "action": {
    "type": "REDIRECT_TO_SCA",
    "_links": {
      "scaRedirect": {
        "href": "text"
      }
    }
  }
}

Complete payment

patch

Check the status of the payment and mark as completed

Path parameters
paymentIdstring · max: 64Required

Unique ID of the payment

sessionIdstring · max: 64Required

Unique ID of the checkout session

versionstringRequired
Header parameters
X-Request-Idstring · uuidRequired

ID of the request, unique to the call, as determined by the initiating party

Responses
200
OK
application/json
patch
PATCH /egw/{version}/payments/{paymentId}/sessions/{sessionId}/bank/complete HTTP/1.1
Host: hostname
X-Request-Id: 123e4567-e89b-12d3-a456-426614174000
Accept: */*
{
  "sessionId": "text",
  "sessionStatus": "INITIALIZED",
  "completionStatus": "SUCCESS",
  "action": {
    "type": "REDIRECT_TO_SHOP",
    "_links": {
      "shopRedirect": {
        "href": "text"
      }
    }
  }
}

Last updated

Was this helpful?