-
Notifications
You must be signed in to change notification settings - Fork 84
/
Copy pathevent-notifications-openapi.yaml
179 lines (179 loc) · 4.95 KB
/
event-notifications-openapi.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
openapi: 3.0.0
info:
title: Event Notification API Specification - TPP Endpoints
description: Swagger for Event Notification API Specification - TPP Endpoints
termsOfService: https://www.openbanking.org.uk/terms
contact:
name: Service Desk
email: [email protected]
license:
name: open-licence
url: https://www.openbanking.org.uk/open-licence
version: 4.0.0
paths:
/event-notifications:
post:
summary: Send an event notification
operationId: CreateEventNotification
tags:
- Event Notification
parameters:
- $ref: '#/components/parameters/x-fapi-financial-id-Param'
- $ref: '#/components/parameters/x-fapi-interaction-id-Param'
requestBody:
content:
application/jwt:
schema:
type: string
format: base64
description: Create an Callback URI
required: true
responses:
'202':
description: Accepted
servers:
- url: /open-banking/v4.0
components:
parameters:
x-fapi-financial-id-Param:
in: header
name: x-fapi-financial-id
required: true
description: >-
The unique id of the ASPSP to which the request is issued. The unique id
will be issued by OB.
schema:
type: string
x-fapi-interaction-id-Param:
in: header
name: x-fapi-interaction-id
required: false
description: An RFC4122 UID used as a correlation id.
schema:
type: string
securitySchemes:
TPPOAuth2Security:
type: oauth2
description: TPP client credential authorisation flow with the ASPSP
flows:
clientCredentials:
tokenUrl: https://authserver.example/token
scopes:
accounts: Ability to read Accounts information
fundsconfirmations: Ability to confirm funds
payments: Generic payment scope
schemas:
OBEvent1:
description: Events.
type: object
properties:
urn:uk:org:openbanking:events:resource-update:
$ref: '#/components/schemas/OBEventResourceUpdate1'
required:
- urn:uk:org:openbanking:events:resource-update
additionalProperties: false
OBEventLink1:
description: Resource links to other available versions of the resource.
type: object
properties:
version:
description: Resource version.
type: string
minLength: 1
maxLength: 10
link:
description: Resource link.
type: string
required:
- version
- link
additionalProperties: false
minProperties: 1
OBEventNotification1:
description: The resource-update event.
type: object
properties:
iss:
description: Issuer.
type: string
iat:
description: 'Issued At. '
type: integer
format: int32
minimum: 0
jti:
description: JWT ID.
type: string
minLength: 1
maxLength: 128
aud:
description: Audience.
type: string
minLength: 1
maxLength: 128
sub:
description: Subject
type: string
format: uri
txn:
description: Transaction Identifier.
type: string
minLength: 1
maxLength: 128
toe:
description: Time of Event.
type: integer
format: int32
minimum: 0
events:
$ref: '#/components/schemas/OBEvent1'
required:
- iss
- iat
- jti
- aud
- sub
- txn
- toe
- events
additionalProperties: false
OBEventResourceUpdate1:
description: Resource-Update Event.
type: object
properties:
subject:
$ref: '#/components/schemas/OBEventSubject1'
required:
- subject
additionalProperties: false
OBEventSubject1:
description: The resource-update event.
type: object
properties:
subject_type:
description: 'Subject type for the updated resource. '
type: string
minLength: 1
maxLength: 128
http://openbanking.org.uk/rid:
description: Resource Id for the updated resource.
type: string
minLength: 1
maxLength: 128
http://openbanking.org.uk/rty:
description: Resource Type for the updated resource.
type: string
minLength: 1
maxLength: 128
http://openbanking.org.uk/rlk:
items:
$ref: '#/components/schemas/OBEventLink1'
type: array
description: Resource links to other available versions of the resource.
minItems: 1
required:
- subject_type
- http://openbanking.org.uk/rid
- http://openbanking.org.uk/rty
- http://openbanking.org.uk/rlk
additionalProperties: false