@@ -313,6 +313,11 @@ <h2 id="v1-prison-prisonid-prisoners-hmppsid-balances">/v1/prison/{prisonId}/pri
313
313
314
314
< h3 id ="v1-prison-prisonid-prisoners-hmppsid-balances-get "> get</ h3 >
315
315
316
+ < p > < em > Returns a all accounts for a prisoner that they have at a prison.</ em > </ p >
317
+
318
+
319
+ < p > < b > Applicable filters</ b > : < ul > < li > prisons</ li > </ ul > </ p >
320
+
316
321
317
322
318
323
@@ -359,7 +364,7 @@ <h4 id="v1-prison-prisonid-prisoners-hmppsid-balances-get-responses">Responses</
359
364
< tr >
360
365
< td > 200</ td >
361
366
< td >
362
- < p > OK </ p >
367
+ < p > Successfully found a prisoner’s accounts. </ p >
363
368
364
369
365
370
@@ -371,19 +376,69 @@ <h4 id="v1-prison-prisonid-prisoners-hmppsid-balances-get-responses">Responses</
371
376
"amount": "integer"
372
377
}
373
378
]
374
- },
375
- "errors": [
376
- {
377
- "causedBy": "string",
378
- "type": "string",
379
- "description": "string"
380
- }
381
- ]
379
+ }
380
+ }</ code > </ pre >
381
+
382
+ </ td >
383
+ < td >
384
+ < a href ='#schema-dataresponsebalances '> DataResponseBalances</ a >
385
+ </ td >
386
+ </ tr >
387
+
388
+ < tr >
389
+ < td > 400</ td >
390
+ < td >
391
+ < p > The HMPPS ID provided has an invalid format or the prisoner does hot have accounts at the specified prison.</ p >
392
+
393
+
394
+
395
+ < pre > < code > {
396
+ "status": 400,
397
+ "userMessage": "Validation failure: No query parameters specified.",
398
+ "developerMessage": "No query parameters specified."
399
+ }</ code > </ pre >
400
+
401
+ </ td >
402
+ < td >
403
+ < a href ='#schema-badrequest '> BadRequest</ a >
404
+ </ td >
405
+ </ tr >
406
+
407
+ < tr >
408
+ < td > 404</ td >
409
+ < td >
410
+ < p > Not Found</ p >
411
+
412
+
413
+
414
+ < pre > < code > {
415
+ "status": 404,
416
+ "userMessage": "404 Not found error: Could not find person with HMPPS id: 2003/0011991D.",
417
+ "developerMessage": "Could not find person with HMPPS id: 2003/0011991D."
382
418
}</ code > </ pre >
383
419
384
420
</ td >
385
421
< td >
386
- < a href ='#schema-responsebalances '> ResponseBalances</ a >
422
+ < a href ='#schema-personnotfound '> PersonNotFound</ a >
423
+ </ td >
424
+ </ tr >
425
+
426
+ < tr >
427
+ < td > 500</ td >
428
+ < td >
429
+ < p > Internal Server Error</ p >
430
+
431
+
432
+
433
+ < pre > < code > {
434
+ "status": 500,
435
+ "userMessage": "Internal Server Error",
436
+ "developerMessage": "Unable to complete request as an upstream service is not responding."
437
+ }</ code > </ pre >
438
+
439
+ </ td >
440
+ < td >
441
+ < a href ='#schema-internalservererror '> InternalServerError</ a >
387
442
</ td >
388
443
</ tr >
389
444
@@ -5524,10 +5579,10 @@ <h3 id="schema-balances">Balances</h3>
5524
5579
</ tbody >
5525
5580
</ table >
5526
5581
5527
- < h3 id ="schema-responsebalances " > ResponseBalances </ h3 >
5582
+ < h3 id ="schema-dataresponsebalances " > DataResponseBalances </ h3 >
5528
5583
5529
5584
5530
- < table class ='schema-responsebalances '>
5585
+ < table class ='schema-dataresponsebalances '>
5531
5586
< thead >
5532
5587
< tr > < th > Name</ th > < th > Type</ th > < th > Required</ th > < th > Description</ th > < th > Schema</ th > </ tr >
5533
5588
</ thead >
@@ -5543,58 +5598,6 @@ <h3 id="schema-responsebalances">ResponseBalances</h3>
5543
5598
</ td >
5544
5599
</ tr >
5545
5600
5546
- < tr >
5547
- < td > errors</ td >
5548
- < td > array</ td >
5549
- < td > true</ td >
5550
- < td > </ td >
5551
- < td >
5552
- < a href ='#schema-upstreamapierror '> UpstreamApiError</ a >
5553
- </ td >
5554
- </ tr >
5555
-
5556
- </ tbody >
5557
- </ table >
5558
-
5559
- < h3 id ="schema-upstreamapierror "> UpstreamApiError</ h3 >
5560
-
5561
-
5562
- < table class ='schema-upstreamapierror '>
5563
- < thead >
5564
- < tr > < th > Name</ th > < th > Type</ th > < th > Required</ th > < th > Description</ th > < th > Schema</ th > </ tr >
5565
- </ thead >
5566
- < tbody >
5567
-
5568
- < tr >
5569
- < td > causedBy</ td >
5570
- < td > string</ td >
5571
- < td > true</ td >
5572
- < td > </ td >
5573
- < td >
5574
-
5575
- </ td >
5576
- </ tr >
5577
-
5578
- < tr >
5579
- < td > type</ td >
5580
- < td > string</ td >
5581
- < td > true</ td >
5582
- < td > </ td >
5583
- < td >
5584
-
5585
- </ td >
5586
- </ tr >
5587
-
5588
- < tr >
5589
- < td > description</ td >
5590
- < td > string</ td >
5591
- < td > false</ td >
5592
- < td > </ td >
5593
- < td >
5594
-
5595
- </ td >
5596
- </ tr >
5597
-
5598
5601
</ tbody >
5599
5602
</ table >
5600
5603
@@ -11495,6 +11498,48 @@ <h3 id="schema-response">Response</h3>
11495
11498
</ tbody >
11496
11499
</ table >
11497
11500
11501
+ < h3 id ="schema-upstreamapierror "> UpstreamApiError</ h3 >
11502
+
11503
+
11504
+ < table class ='schema-upstreamapierror '>
11505
+ < thead >
11506
+ < tr > < th > Name</ th > < th > Type</ th > < th > Required</ th > < th > Description</ th > < th > Schema</ th > </ tr >
11507
+ </ thead >
11508
+ < tbody >
11509
+
11510
+ < tr >
11511
+ < td > causedBy</ td >
11512
+ < td > string</ td >
11513
+ < td > true</ td >
11514
+ < td > </ td >
11515
+ < td >
11516
+
11517
+ </ td >
11518
+ </ tr >
11519
+
11520
+ < tr >
11521
+ < td > type</ td >
11522
+ < td > string</ td >
11523
+ < td > true</ td >
11524
+ < td > </ td >
11525
+ < td >
11526
+
11527
+ </ td >
11528
+ </ tr >
11529
+
11530
+ < tr >
11531
+ < td > description</ td >
11532
+ < td > string</ td >
11533
+ < td > false</ td >
11534
+ < td > </ td >
11535
+ < td >
11536
+
11537
+ </ td >
11538
+ </ tr >
11539
+
11540
+ </ tbody >
11541
+ </ table >
11542
+
11498
11543
< h3 id ="schema-dataresponsenomisnumber "> DataResponseNomisNumber</ h3 >
11499
11544
11500
11545
0 commit comments