Create consent
POST/v1/consents
Description​
Create a consent that defines access rights to dedicated accounts. Create a new consent request and automatically expire any existing consent for recurring access on account information for the addressed PSU.
This is the first step in the process where the Third-Party Provider (TPP) requests access to a user account.
Request​
Header Parameters
ID of the request sent to the server, unique to the call, as determined by the initiating party.
The certificate used for signature verification.
The client ID associated with the request.
The Personalized Security User Identification linked to the consent. The PSU's ID, as determined by the PSU. This ID is the identification of the PSU within the ASPSP and contains the username that requests the consent.
A unique identifier related to the registered merchant in the corresponding API environment, available within the application's details.
- application/json
Body parameters
- Array [
- ]
- Array [
- ]
- Array [
- ]
access objectrequiredThe access information granted with the consent.
accounts object[]The accounts linked to the consent.
balances object[]The balances of the accounts that the consent is granted for.
transactions object[]The transactions associated with the consent.
Responses​
- 201
- 400
- 401
- 403
- 404
- 405
- 406
- 409
- 429
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
The status of the consent.
Available options: 0 = "received", 1 = "rejected", 2 = "valid", 3 = "revokedByPsu", 4 = "expired", 5 = "terminatedByTpp".
scaMethods object[]The list of available SCA methods.
The type of the authentication method.
Description: 0 = "SMSOTP", 1 = "CHIPOTP", 2 = "PHOTOOTP", 3 = "PUSHOTP".
Possible values: non-empty
chosenScaMethod object
Possible values: [0, 1, 2, 3]
Description: 0 = "SMSOTP", 1 = "CHIPOTP", 2 = "PHOTOOTP", 3 = "PUSHOTP"
Possible values: non-empty
challengeData object
Possible values: [0, 1]
Description: 0 = "CHARACTERS", 1 = "INTEGER"
links objectLinks or other resources related to the consent.
{
"consentStatus": 0,
"consentId": "string",
"scaMethods": [
{
"authenticationType": 0,
"authenticationVersion": "string",
"authenticationMethodId": "string",
"name": "string",
"explanation": "string"
}
],
"chosenScaMethod": {
"authenticationType": 0,
"authenticationVersion": "string",
"authenticationMethodId": "string",
"name": "string",
"explanation": "string"
},
"challengeData": {
"image": "string",
"data": [
"string"
],
"imageLink": "string",
"otpMaxLength": 0,
"otpFormat": 0,
"additionalInformation": "string"
},
"links": {},
"message": "string"
}
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
tppMessages object[]
Possible values: [0, 1]
Description: 0 = "ERROR", 1 = "WARNING"
Possible values: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
Description: 0 = "FORMATERROREnum", 1 = "PARAMETERNOTCONSISTENTEnum", 2 = "PARAMETERNOTSUPPORTEDEnum", 3 = "SERVICEINVALIDEnum", 4 = "RESOURCEUNKNOWNEnum", 5 = "RESOURCEEXPIREDEnum", 6 = "RESOURCEBLOCKEDEnum", 7 = "TIMESTAMPINVALIDEnum", 8 = "PERIODINVALIDEnum", 9 = "SCAMETHODUNKNOWNEnum", 10 = "CONSENTUNKNOWNEnum", 11 = "SESSIONSNOTSUPPORTEDEnum", 12 = "INVALIDTOTALAMOUNTEnum"
links object
property name object
{
"tppMessages": [
{
"category": 0,
"code": 0,
"path": "string",
"text": "string"
}
],
"links": {}
}
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
tppMessages object[]
Possible values: [0, 1]
Description: 0 = "ERROR", 1 = "WARNING"
Possible values: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
Description: 0 = "CERTIFICATEINVALIDEnum", 1 = "CERTIFICATEEXPIREDEnum", 2 = "CERTIFICATEBLOCKEDEnum", 3 = "CERTIFICATEREVOKEEnum", 4 = "CERTIFICATEMISSINGEnum", 5 = "SIGNATUREINVALIDEnum", 6 = "SIGNATUREMISSINGEnum", 7 = "CORPORATEIDINVALIDEnum", 8 = "PSUCREDENTIALSINVALIDEnum", 9 = "CONSENTINVALIDEnum", 10 = "CONSENTEXPIREDEnum", 11 = "TOKENUNKNOWNEnum", 12 = "TOKENINVALIDEnum", 13 = "TOKENEXPIREDEnum"
links object
property name object
{
"tppMessages": [
{
"category": 0,
"code": 0,
"path": "string",
"text": "string"
}
],
"links": {}
}
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
properties object
items object
tppMessages object[]
Possible values: [0, 1]
Description: 0 = "ERROR", 1 = "WARNING"
Possible values: [0, 1, 2, 3]
Description: 0 = "CONSENTUNKNOWNEnum", 1 = "SERVICEBLOCKEDEnum", 2 = "RESOURCEUNKNOWNEnum", 3 = "RESOURCEEXPIREDEnum"
links object
property name object
{
"authenticationSchemes": [
"string"
],
"properties": {
"items": {}
},
"tppMessages": [
{
"category": 0,
"code": 0,
"path": "string",
"text": "string"
}
],
"links": {}
}
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
tppMessages object[]
Possible values: [0, 1]
Description: 0 = "ERROR", 1 = "WARNING"
Possible values: [0]
Description: 0 = "UNKNOWNEnum"
links object
property name object
{
"statusCode": 0,
"tppMessages": [
{
"category": 0,
"code": 0,
"path": "string",
"text": "string"
}
],
"links": {}
}
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
tppMessages object[]
Possible values: [0, 1]
Description: 0 = "ERROR", 1 = "WARNING"
Possible values: [0]
Description: 0 = "INVALIDEnum"
links object
property name object
{
"tppMessages": [
{
"category": 0,
"code": 0,
"path": "string",
"text": "string"
}
],
"links": {}
}
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
tppMessages object[]
Possible values: [0, 1]
Description: 0 = "ERROR", 1 = "WARNING"
Possible values: [0]
Description: 0 = "INVALIDEnum"
links object
property name object
{
"tppMessages": [
{
"category": 0,
"code": 0,
"path": "string",
"text": "string"
}
],
"links": {}
}
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
tppMessages object[]
Possible values: [0, 1]
Description: 0 = "ERROR", 1 = "WARNING"
Possible values: [0]
Description: 0 = "INVALIDEnum"
links object
property name object
{
"tppMessages": [
{
"category": 0,
"code": 0,
"path": "string",
"text": "string"
}
],
"links": {}
}
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
tppMessages object[]
Possible values: [0, 1]
Description: 0 = "ERROR", 1 = "WARNING"
Possible values: [0]
Description: 0 = "EXCEEDEDEnum"
links object
property name object
{
"tppMessages": [
{
"category": 0,
"code": 0,
"path": "string",
"text": "string"
}
],
"links": {}
}