Skip to content

Commit fc5b4e8

Browse files
authored
Merge pull request #12 from LandRegistry/release/notifications-table
docs: add notification type table
2 parents b71c46a + a25ac22 commit fc5b4e8

File tree

3 files changed

+234
-1
lines changed

3 files changed

+234
-1
lines changed

_site/apis/notifications/1.0/technical-guide/index.html

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,121 @@ <h3 class="govuk-heading-s" id="recieve-notifications" tabindex="-1" class="govu
195195
<p class="govuk-body">Duplicate events will have the same <code class="app-code app-code--inline">event_datetime</code> field and <code class="app-code app-code--inline">notification_type</code> which can be used to locate and ignore duplicates when receiving notifications. Notifications will continue to be returned by the endpoint until they are acknowledged.</p>
196196
<h3 class="govuk-heading-s" id="acknowledge-notifications" tabindex="-1" class="govuk-heading-m">Acknowledge notifications</h3>
197197
<p class="govuk-body">Once a notification has been processed by your system, the notification should be acknowledged. To do this, send a list of <code class="app-code app-code--inline">notification_ids</code> to the Acknowledge notifications API as a POST request. This will change the status of those notifications to <code class="app-code app-code--inline">ACKNOWLEDGED</code>.</p>
198+
<br>
199+
<h3 class="govuk-heading-s" id="notification-types" tabindex="-1" class="govuk-heading-m">Notification types</h3>
200+
<table class="govuk-table">
201+
<caption class="govuk-table__caption govuk-table__caption--s">Order validation and submission</caption>
202+
<thead class="govuk-table__head">
203+
<tr class="govuk-table__row">
204+
<th scope="col" class="govuk-table__header">Notication type</th>
205+
<th scope="col" class="govuk-table__header">Scenario</th>
206+
<th scope="col" class="govuk-table__header">Response</th>
207+
</tr>
208+
</thead>
209+
<tbody class="govuk-table__body">
210+
<tr class="govuk-table__row">
211+
<td class="govuk-table__cell" style="width:20%">Application failed validation</td>
212+
<td class="govuk-table__cell">An application is submitted, but mandatory fields are missing or incorrectly formatted. The system validates the input and rejects the application, triggering this notification
213+
</td>
214+
<td class="govuk-table__cell govuk-!-width-one-third" style="white-space:pre-wrap; word-break:break-all"><code class="app-code app-code--inline">applications.creation.application.failed-validation</code>
215+
</td>
216+
</tr>
217+
<tr class="govuk-table__row">
218+
<td class="govuk-table__cell">Application accepted awaiting priority</td>
219+
<td class="govuk-table__cell">An application submitted outside business hours passes initial validation, is accepted, and awaits addition to the Daylist
220+
</td>
221+
<td class="govuk-table__cell govuk-!-width-one-third" style="white-space:pre-wrap; word-break:break-all"><code class="app-code app-code--inline">applications.creation.application.accepted-awaiting-priority</code>
222+
</td>
223+
</tr>
224+
<tr class="govuk-table__row">
225+
<td class="govuk-table__cell">System error</td>
226+
<td class="govuk-table__cell">There is an attempt to create an application, but a system-level error occurs. The application cannot be processed, and this notification is sent to alert the integrator
227+
</td>
228+
<td class="govuk-table__cell govuk-!-width-one-third" style="white-space:pre-wrap; word-break:break-all"><code class="app-code app-code--inline">applications.creation.application.error</code>
229+
</td>
230+
</tr>
231+
<tr class="govuk-table__row">
232+
<td class="govuk-table__cell">Application accepted priority protected</td>
233+
<td class="govuk-table__cell">An application submitted passes initial validation, is accepted, and added to the Daylist
234+
</td>
235+
<td class="govuk-table__cell govuk-!-width-one-third" style="white-space:pre-wrap; word-break:break-all"><code class="app-code app-code--inline">applications.processing.application.accepted-priority-protected</code>
236+
</td>
237+
</tr>
238+
</tbody>
239+
</table>
240+
<table class="govuk-table">
241+
<caption class="govuk-table__caption govuk-table__caption--s">Order proccessing and completion</caption>
242+
<thead class="govuk-table__head">
243+
<tr class="govuk-table__row">
244+
<th scope="col" class="govuk-table__header">Notication type</th>
245+
<th scope="col" class="govuk-table__header">Scenario</th>
246+
<th scope="col" class="govuk-table__header">Response</th>
247+
</tr>
248+
</thead>
249+
<tbody class="govuk-table__body">
250+
<tr class="govuk-table__row">
251+
<td class="govuk-table__cell">Application requisitioned</td>
252+
<td class="govuk-table__cell">A caseworker raises a requisition on an application requesting a response or document</td>
253+
<td class="govuk-table__cell govuk-!-width-one-third" style="white-space:pre-wrap; word-break:break-all"><code class="app-code app-code--inline">applications.processing.correspondence-despatched</code>
254+
</td>
255+
</tr>
256+
<tr class="govuk-table__row">
257+
<td class="govuk-table__cell">Application completed</td>
258+
<td class="govuk-table__cell">The application has successfully passed all processing steps, including validation and approval
259+
</td>
260+
<td class="govuk-table__cell govuk-!-width-one-third" style="white-space:pre-wrap; word-break:break-all"><code class="app-code app-code--inline">applications.processing.application.completed</code>
261+
</td>
262+
</tr>
263+
<tr class="govuk-table__row">
264+
<td class="govuk-table__cell">Application cancelled</td>
265+
<td class="govuk-table__cell">The application was in processing but was cancelled
266+
</td>
267+
<td class="govuk-table__cell govuk-!-width-one-third" style="white-space:pre-wrap; word-break:break-all"><code class="app-code app-code--inline">applications.processing.application.cancelled</code>
268+
</td>
269+
</tr>
270+
</tbody>
271+
</table>
272+
<table class="govuk-table">
273+
<caption class="govuk-table__caption govuk-table__caption--s">Response and document upload for applications</caption>
274+
<thead class="govuk-table__head">
275+
<tr class="govuk-table__row">
276+
<th scope="col" class="govuk-table__header">Notication type</th>
277+
<th scope="col" class="govuk-table__header">Scenario</th>
278+
<th scope="col" class="govuk-table__header">Response</th>
279+
</tr>
280+
</thead>
281+
<tbody class="govuk-table__body">
282+
<tr class="govuk-table__row">
283+
<td class="govuk-table__cell">Document successfully attached</td>
284+
<td class="govuk-table__cell">A user uploads a required document to an application during processing. The system successfully attaches the file and sends this notification
285+
</td>
286+
<td class="govuk-table__cell govuk-!-width-one-third" style="white-space:pre-wrap; word-break:break-all"><code class="app-code app-code--inline">applications.processing.attachment-success</code>
287+
</td>
288+
</tr>
289+
<tr class="govuk-table__row">
290+
<td class="govuk-table__cell">Document attached failed validation</td>
291+
<td class="govuk-table__cell">A user uploads an attachment, but the file fails validation due to issues such as incorrect format, corrupted file, or missing mandatory details. The system rejects the attachment and triggers this notification
292+
</td>
293+
<td class="govuk-table__cell govuk-!-width-one-third" style="white-space:pre-wrap; word-break:break-all"><code class="app-code app-code--inline">applications.processing.attachment-failed</code>
294+
</td>
295+
</tr>
296+
<tr class="govuk-table__row">
297+
<td class="govuk-table__cell">Message successfully attached</td>
298+
<td class="govuk-table__cell">A message is successfully added to the application during processing and the system confirms the attachment
299+
</td>
300+
<td class="govuk-table__cell govuk-!-width-one-third" style="white-space:pre-wrap; word-break:break-all"><code class="app-code app-code--inline">applications.processing.message-success</code>
301+
</td>
302+
</tr>
303+
<tr class="govuk-table__row">
304+
<td class="govuk-table__cell">Message failed validation</td>
305+
<td class="govuk-table__cell">A message intended for the application fails validation because it violates formatting rules. The system rejects the message and sends this notification
306+
</td>
307+
<td class="govuk-table__cell govuk-!-width-one-third" style="white-space:pre-wrap; word-break:break-all"><code class="app-code app-code--inline">applications.processing.message-failed</code>
308+
</td>
309+
</tr>
310+
</tbody>
311+
</table>
312+
<br>
198313
</section>
199314
<section>
200315
<h2 class="govuk-heading-m" id="validation-rules" tabindex="-1" class="govuk-heading-l">Validation rules</h2>

_site/search-index.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@
285285
"description": "Use this service to get updates about multiple applications submitted by the same business unit",
286286
"section": "Notifications API v1.0",
287287
"url": "/apis/notifications/1.0/technical-guide/",
288-
"tokens": "how use notifications api recieve get request fetch all takes following url query parameters which are optional created after only retrieve with timestamp this date before status specific either new acknowledged occured event notification type subject additional provider filter that match provided limit maximum number return single response related applications submitted by business unit id will returned delivery least once meaning time may result one more e duplicate same events have datetime field can used locate ignore duplicates when receiving continue endpoint until they acknowledge been processed your system should send list ids post change those validation rules there implementing example requests responses examples payloads produced during application submission view submit v1 2025 01 01t00 00 http 1 copy code data 3fa85f64 5717 4562 b3fc 2c963f66afa6 03 06t14 32 55 295z payload schema https com string additionalprop1 additionalprop2 additionalprop3"
288+
"tokens": "how use notifications api recieve get request fetch all takes following url query parameters which are optional created after only retrieve with timestamp this date before status specific either new acknowledged occured event notification type subject additional provider filter that match provided limit maximum number return single response related applications submitted by business unit id will returned delivery least once meaning time may result one more e duplicate same events have datetime field can used locate ignore duplicates when receiving continue endpoint until they acknowledge been processed your system should send list ids post change those types order validation submission notication scenario application failed mandatory fields missing incorrectly formatted validates input rejects triggering creation accepted awaiting priority outside hours passes initial awaits addition daylist error there attempt create level occurs cannot sent alert integrator protected added processing proccessing completion requisitioned caseworker raises requisition requesting document correspondence despatched completed successfully passed steps including approval cancelled upload attached user uploads required during attaches file sends attachment success fails due issues such incorrect format corrupted details triggers message confirms intended because violates formatting rules implementing example requests responses examples payloads produced view submit v1 2025 01 01t00 00 http 1 copy code data 3fa85f64 5717 4562 b3fc 2c963f66afa6 03 06t14 32 55 295z payload schema https com string additionalprop1 additionalprop2 additionalprop3"
289289
},
290290
{
291291
"title": "Send a document API Technical guide",

app/apis/notifications/1.0/technical-guide.md

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,124 @@ Duplicate events will have the same `event_datetime` field and `notification_typ
7474

7575
Once a notification has been processed by your system, the notification should be acknowledged. To do this, send a list of `notification_ids` to the Acknowledge notifications API as a POST request. This will change the status of those notifications to `ACKNOWLEDGED`.
7676

77+
<br>
78+
79+
### Notification types {.govuk-heading-s}
80+
<table class="govuk-table">
81+
<caption class="govuk-table__caption govuk-table__caption--s">Order validation and submission</caption>
82+
<thead class="govuk-table__head">
83+
<tr class="govuk-table__row">
84+
<th scope="col" class="govuk-table__header">Notication type</th>
85+
<th scope="col" class="govuk-table__header">Scenario</th>
86+
<th scope="col" class="govuk-table__header">Response</th>
87+
</tr>
88+
</thead>
89+
<tbody class="govuk-table__body">
90+
<tr class="govuk-table__row">
91+
<td class="govuk-table__cell" style="width:20%">Application failed validation</td>
92+
<td class="govuk-table__cell">An application is submitted, but mandatory fields are missing or incorrectly formatted. The system validates the input and rejects the application, triggering this notification
93+
</td>
94+
<td class="govuk-table__cell govuk-!-width-one-third" style="white-space:pre-wrap; word-break:break-all"><code class="app-code app-code--inline">applications.creation.application.failed-validation</code>
95+
</td>
96+
</tr>
97+
<tr class="govuk-table__row">
98+
<td class="govuk-table__cell">Application accepted awaiting priority</td>
99+
<td class="govuk-table__cell">An application submitted outside business hours passes initial validation, is accepted, and awaits addition to the Daylist
100+
</td>
101+
<td class="govuk-table__cell govuk-!-width-one-third" style="white-space:pre-wrap; word-break:break-all"><code class="app-code app-code--inline">applications.creation.application.accepted-awaiting-priority</code>
102+
</td>
103+
</tr>
104+
<tr class="govuk-table__row">
105+
<td class="govuk-table__cell">System error</td>
106+
<td class="govuk-table__cell">There is an attempt to create an application, but a system-level error occurs. The application cannot be processed, and this notification is sent to alert the integrator
107+
</td>
108+
<td class="govuk-table__cell govuk-!-width-one-third" style="white-space:pre-wrap; word-break:break-all"><code class="app-code app-code--inline">applications.creation.application.error</code>
109+
</td>
110+
</tr>
111+
<tr class="govuk-table__row">
112+
<td class="govuk-table__cell">Application accepted priority protected</td>
113+
<td class="govuk-table__cell">An application submitted passes initial validation, is accepted, and added to the Daylist
114+
</td>
115+
<td class="govuk-table__cell govuk-!-width-one-third" style="white-space:pre-wrap; word-break:break-all"><code class="app-code app-code--inline">applications.processing.application.accepted-priority-protected</code>
116+
</td>
117+
</tr>
118+
</tbody>
119+
</table>
120+
121+
<table class="govuk-table">
122+
<caption class="govuk-table__caption govuk-table__caption--s">Order proccessing and completion</caption>
123+
<thead class="govuk-table__head">
124+
<tr class="govuk-table__row">
125+
<th scope="col" class="govuk-table__header">Notication type</th>
126+
<th scope="col" class="govuk-table__header">Scenario</th>
127+
<th scope="col" class="govuk-table__header">Response</th>
128+
</tr>
129+
</thead>
130+
<tbody class="govuk-table__body">
131+
<tr class="govuk-table__row">
132+
<td class="govuk-table__cell">Application requisitioned</td>
133+
<td class="govuk-table__cell">A caseworker raises a requisition on an application requesting a response or document</td>
134+
<td class="govuk-table__cell govuk-!-width-one-third" style="white-space:pre-wrap; word-break:break-all"><code class="app-code app-code--inline">applications.processing.correspondence-despatched</code>
135+
</td>
136+
</tr>
137+
<tr class="govuk-table__row">
138+
<td class="govuk-table__cell">Application completed</td>
139+
<td class="govuk-table__cell">The application has successfully passed all processing steps, including validation and approval
140+
</td>
141+
<td class="govuk-table__cell govuk-!-width-one-third" style="white-space:pre-wrap; word-break:break-all"><code class="app-code app-code--inline">applications.processing.application.completed</code>
142+
</td>
143+
</tr>
144+
<tr class="govuk-table__row">
145+
<td class="govuk-table__cell">Application cancelled</td>
146+
<td class="govuk-table__cell">The application was in processing but was cancelled
147+
</td>
148+
<td class="govuk-table__cell govuk-!-width-one-third" style="white-space:pre-wrap; word-break:break-all"><code class="app-code app-code--inline">applications.processing.application.cancelled</code>
149+
</td>
150+
</tr>
151+
</tbody>
152+
</table>
153+
154+
<table class="govuk-table">
155+
<caption class="govuk-table__caption govuk-table__caption--s">Response and document upload for applications</caption>
156+
<thead class="govuk-table__head">
157+
<tr class="govuk-table__row">
158+
<th scope="col" class="govuk-table__header">Notication type</th>
159+
<th scope="col" class="govuk-table__header">Scenario</th>
160+
<th scope="col" class="govuk-table__header">Response</th>
161+
</tr>
162+
</thead>
163+
<tbody class="govuk-table__body">
164+
<tr class="govuk-table__row">
165+
<td class="govuk-table__cell">Document successfully attached</td>
166+
<td class="govuk-table__cell">A user uploads a required document to an application during processing. The system successfully attaches the file and sends this notification
167+
</td>
168+
<td class="govuk-table__cell govuk-!-width-one-third" style="white-space:pre-wrap; word-break:break-all"><code class="app-code app-code--inline">applications.processing.attachment-success</code>
169+
</td>
170+
</tr>
171+
<tr class="govuk-table__row">
172+
<td class="govuk-table__cell">Document attached failed validation</td>
173+
<td class="govuk-table__cell">A user uploads an attachment, but the file fails validation due to issues such as incorrect format, corrupted file, or missing mandatory details. The system rejects the attachment and triggers this notification
174+
</td>
175+
<td class="govuk-table__cell govuk-!-width-one-third" style="white-space:pre-wrap; word-break:break-all"><code class="app-code app-code--inline">applications.processing.attachment-failed</code>
176+
</td>
177+
</tr>
178+
<tr class="govuk-table__row">
179+
<td class="govuk-table__cell">Message successfully attached</td>
180+
<td class="govuk-table__cell">A message is successfully added to the application during processing and the system confirms the attachment
181+
</td>
182+
<td class="govuk-table__cell govuk-!-width-one-third" style="white-space:pre-wrap; word-break:break-all"><code class="app-code app-code--inline">applications.processing.message-success</code>
183+
</td>
184+
</tr>
185+
<tr class="govuk-table__row">
186+
<td class="govuk-table__cell">Message failed validation</td>
187+
<td class="govuk-table__cell">A message intended for the application fails validation because it violates formatting rules. The system rejects the message and sends this notification
188+
</td>
189+
<td class="govuk-table__cell govuk-!-width-one-third" style="white-space:pre-wrap; word-break:break-all"><code class="app-code app-code--inline">applications.processing.message-failed</code>
190+
</td>
191+
</tr>
192+
</tbody>
193+
</table>
194+
<br>
77195
</section>
78196
<section>
79197

0 commit comments

Comments
 (0)