🇬🇪 Georgia v0.8 - Update PSU Data for consents
With redirect over OAuth, the authorisation is created together with the consent, so there is nothing to update.
PUT https://open-banking-api.paysera.com/xs2a/georgia/0.8/v1/consents/{consentId}/authorisations/{authorisationId}
This method update PSU data on the consents resource if needed. It may authorise a consent within the Embedded SCA Approach where needed.
Independently from the SCA Approach it supports e.g. the selection of the authentication method and a non-SCA PSU authentication.
This methods updates PSU data on the cancellation authorisation resource if needed.
There are several possible update PSU data requests in the context of a consent request if needed, which depends on the SCA approach:
- Redirect SCA Approach:
A specific Update PSU data request is applicable for
- the selection of authentication methods, before choosing the actual SCA approach.
- Decoupled SCA Approach:
A specific update PSU data request is only applicable for
- adding the PSU Identification, if not provided yet in the payment initiation request or the Account Information Consent Request, or if no OAuth2 access token is used, or
- the selection of authentication methods.
- Embedded SCA Approach:
The Update PSU data request might be used
- to add credentials as a first factor authentication data of the PSU and
- to select the authentication method and
- transaction authorisation.
The SCA Approach might depend on the chosen SCA method. For that reason, the following possible update PSU data request can apply to all SCA approaches:
- Select an SCA method in case of several SCA methods are available for the customer.
There are the following request types on this access path:
- Update PSU identification
- Update PSU authentication
- Select PSU autorization method WARNING: This method needs a reduced header, therefore many optional elements are not present. Maybe in a later version the access path will change.
- Transaction Authorisation WARNING: This method needs a reduced header, therefore many optional elements are not present. Maybe in a later version the access path will change.
Authorization​
This endpoint requires mTLS (Mutual TLS) authentication using a valid QWAC certificate.
Consent and payment endpoints authenticate on the certificate alone: no access token or
Consent-ID header is needed.
Requirements:
- Valid QWAC certificate issued by a qualified trust service provider (QTSP)
- Certificate must be registered with Paysera
- Certificate organization identifier must match your TPP registration in the EBA register
X-Request-IDheader with a UUID on every request
Request signing: not used. This API does not read the Digest, x-jws-signature or
TPP-Signature-Certificate headers — see
Security.
For detailed authentication guide, see Authentication.
Parameters​
Path Parameters​
| Name | Type | Required | Description |
|---|---|---|---|
consentId | string | ✓ | ID of the corresponding consent object as returned by an account information consent request. |
authorisationId | string | ✓ | Resource identification of the related SCA. |
Request Body​
Errors​
This endpoint may return the following errors. The list is shared by every endpoint of this API, so not every code applies to every endpoint.
Every error listed below is returned with a tppMessages array. Each message has a category and a code, and may add a path (the header or field at fault) and a text.
400 - Bad Request​
The request could not be understood by the server due to malformed syntax or invalid parameters.
Common error codes:
CONSENT_UNKNOWN- The consent in theConsent-IDheader is unknown or cannot be used by this TPPFORMAT_ERROR- Invalid request format or syntax, for example a malformed body field or anX-Request-IDthat is not a UUIDFORMAT_INVALID- The mandatoryConsent-IDheader is missingPARAMETER_NOT_SUPPORTED- Request contains unsupported parametersPERIOD_INVALID- The requested consent validity period is outside the allowed rangeSERVICE_INVALID- The addressed service is not valid for the addressed resourcesSESSIONS_NOT_SUPPORTED- Combined AIS and PIS sessions (combinedServiceIndicator) are not supported
Example response:
{
"tppMessages": [
{
"category": "ERROR",
"code": "FORMAT_ERROR",
"path": "X-Request-ID",
"text": "Request ID must be a valid UUID string."
}
]
}
401 - Unauthorized​
The certificate, the access token or the consent could not be used to authenticate the request.
Common error codes:
CERTIFICATE_INVALID- The TPP certificate is not valid or is not registered with PayseraCERTIFICATE_MISSING- The TPP certificate is missing in the requestCONSENT_EXPIRED- The consent has expired and can no longer be usedCONSENT_INVALID- The consent is invalid for this operationROLE_INVALID- The TPP certificate does not have the role this endpoint requires (AIS or PIS)TOKEN_INVALID- The access token does not carry the scope this endpoint requiresTOKEN_EXPIRED- The access token has expired, has been revoked or could not be verifiedTOKEN_UNKNOWN- The access token is unknown or invalid
Example response:
{
"tppMessages": [
{
"category": "ERROR",
"code": "CERTIFICATE_INVALID"
}
]
}
403 - Forbidden​
The TPP does not have the necessary permissions or the resource access is forbidden.
Common error codes:
CONSENT_UNKNOWN- The addressed consent is unknown to this TPP, or the TPP may not perform this consent operationRESOURCE_UNKNOWN- The addressed resource is unknown to this TPP
Example response:
{
"tppMessages": [
{
"category": "ERROR",
"code": "CONSENT_UNKNOWN"
}
]
}
404 - Not Found​
The requested resource could not be found.
Common error codes:
RESOURCE_UNKNOWN- The addressed resource is not found or does not existSERVICE_INVALID- The request path does not match any endpoint of this API
Example response:
{
"tppMessages": [
{
"category": "ERROR",
"code": "RESOURCE_UNKNOWN"
}
]
}
405 - Method Not Allowed​
The HTTP method used is not allowed for this endpoint.
Common error codes:
SERVICE_INVALID- The HTTP method is not supported for this service
Example response:
{
"tppMessages": [
{
"category": "ERROR",
"code": "SERVICE_INVALID"
}
]
}
429 - Too Many Requests​
The TPP has used up the account data accesses its consent allows.
Each consent allows its agreed frequencyPerDay accesses (4 by default, or a higher value agreed with Paysera) to each account data resource per 24 hours. Requests sent with the PSU-IP-Address header under a recurring consent do not count towards the limit.
Common error codes:
ACCESS_EXCEEDED- The consent'sfrequencyPerDaylimit for this resource has been reached
Example response:
{
"tppMessages": [
{
"category": "ERROR",
"code": "ACCESS_EXCEEDED"
}
]
}
500 - Internal Server Error​
An unexpected error occurred on the server side. This indicates a problem with the ASPSP's system. Please try again later or contact Paysera support if the issue persists.
Common error codes:
INTERNAL_SERVER_ERROR- The request could not be completed; try again laterINVALID_TPP_CONFIGURATION- The TPP's configuration at Paysera is invalid; contact Paysera support
Example response:
{
"tppMessages": [
{
"category": "ERROR",
"code": "INTERNAL_SERVER_ERROR"
}
]
}
AUTHORIZATION: HTTP
REQUEST
RESPONSE
{}