Banca abierta
Starts a new bank checkout session for the payment.
This endpoint is available only for customer-initiated payments.
This API uses OAuth 2 with the client credentials flow. More info
Unique ID of the payment
ID of the request, unique to the call, as determined by the initiating party
User's browser IP address
Exact content of the HTTP user-agent header
Preferred locale for the checkout page, defaults to the locale sent in payment initiation request
OK
Unique ID of the checkout session
Status of the checkout session
Bad Request
Forbidden
Not Found
Conflict
Service Unavailable
POST /egw/{version}/payments/{paymentId}/sessions/bank HTTP/1.1
Host: sandbox-api.ecomm.api.tietoevry.com
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"
}{
"action": {
"_links": {
"scaRedirect": {
"href": "text"
}
},
"type": "REDIRECT_TO_SCA"
},
"sessionId": "text",
"sessionStatus": "INITIALIZED"
}Create consent for the payment, after completing pre-step SCA
This API uses OAuth 2 with the client credentials flow. More info
Unique ID of the payment
Unique ID of the checkout session
ID of the request, unique to the call, as determined by the initiating party
Preferred locale for the checkout page, defaults to the locale sent in payment initiation request
OK
Response with Strong Customer Authentication redirect URL for creating a consent for the payment
Unique ID of the checkout session
Status of the checkout session
Bad Request
Forbidden
Not Found
Conflict
Service Unavailable
PATCH /egw/{version}/payments/{paymentId}/sessions/{sessionId}/bank/consent HTTP/1.1
Host: sandbox-api.ecomm.api.tietoevry.com
X-Request-Id: 123e4567-e89b-12d3-a456-426614174000
Content-Type: application/json
Accept: */*
Content-Length: 24
{
"preferredLocale": "cz"
}{
"action": {
"_links": {
"scaRedirect": {
"href": "text"
}
},
"type": "REDIRECT_TO_SCA"
},
"sessionId": "text",
"sessionStatus": "INITIALIZED"
}Get available bank accounts for the user
This API uses OAuth 2 with the client credentials flow. More info
Unique ID of the payment
Unique ID of the checkout session
ID of the request, unique to the call, as determined by the initiating party
OK
Response containing a list of available bank accounts
Unique ID of the checkout session
Status of the checkout session
Bad Request
Forbidden
Not Found
Conflict
Service Unavailable
GET /egw/{version}/payments/{paymentId}/sessions/{sessionId}/bank/accounts HTTP/1.1
Host: sandbox-api.ecomm.api.tietoevry.com
X-Request-Id: 123e4567-e89b-12d3-a456-426614174000
Accept: */*
{
"action": {
"accounts": [
{
"balance": "text",
"currency": "text",
"displayName": "text",
"iban": "text",
"ownerName": "text"
}
],
"type": "SELECT_ACCOUNT"
},
"sessionId": "text",
"sessionStatus": "INITIALIZED"
}Confirm and initiate the payment
This API uses OAuth 2 with the client credentials flow. More info
Unique ID of the payment
Unique ID of the checkout session
ID of the request, unique to the call, as determined by the initiating party
International Bank Account Number of the bank account to be used for the payment
Preferred language for the checkout page. Defaults to language sent in one-off or CIT request, if missing
OK
Response with Strong Customer Authentication redirect URL for confirming the payment
Unique ID of the checkout session
Status of the checkout session
Bad Request
Forbidden
Not Found
Conflict
Service Unavailable
PATCH /egw/{version}/payments/{paymentId}/sessions/{sessionId}/bank/confirm HTTP/1.1
Host: sandbox-api.ecomm.api.tietoevry.com
X-Request-Id: 123e4567-e89b-12d3-a456-426614174000
Content-Type: application/json
Accept: */*
Content-Length: 38
{
"iban": "text",
"preferredLocale": "cz"
}{
"action": {
"_links": {
"scaRedirect": {
"href": "text"
}
},
"type": "REDIRECT_TO_SCA"
},
"sessionId": "text",
"sessionStatus": "INITIALIZED"
}Check the status of the payment and mark as completed
This API uses OAuth 2 with the client credentials flow. More info
Unique ID of the payment
Unique ID of the checkout session
ID of the request, unique to the call, as determined by the initiating party
OK
Response containing the status of the payment
Status of the payment
Unique ID of the checkout session
Status of the checkout session
Bad Request
Forbidden
Not Found
Conflict
Service Unavailable
PATCH /egw/{version}/payments/{paymentId}/sessions/{sessionId}/bank/complete HTTP/1.1
Host: sandbox-api.ecomm.api.tietoevry.com
X-Request-Id: 123e4567-e89b-12d3-a456-426614174000
Accept: */*
{
"action": {
"type": "REDIRECT_TO_SHOP",
"_links": {
"shopRedirect": {
"href": "text"
}
}
},
"completionStatus": "SUCCESS",
"sessionId": "text",
"sessionStatus": "INITIALIZED"
}Última actualización
¿Te fue útil?