Skip to content

Commit 85aef1c

Browse files
authored
DL-15708 Added 401 error details and Gov-Test-Scenarios to API documentation for Retrieve VAT customer information endpoint. (#1043)
* DL-15708 Added 401 error details to API documentation. * DL-15708 Added CUSTOMER_INFO_NOT_FOUND Gov-Test-Scenario to API documentation. * DL-15708 Added further Gov-Test-Scenarios to API documentation for Retrieve VAT customer information endpoint.
1 parent 3a8cd39 commit 85aef1c

File tree

1 file changed

+40
-7
lines changed

1 file changed

+40
-7
lines changed

resources/public/api/conf/1.0/application.yaml

Lines changed: 40 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1563,6 +1563,22 @@ paths:
15631563
<td><p>DEFAULT</p></td>
15641564
<td><p>The default scenario.</p></td>
15651565
</tr>
1566+
<tr>
1567+
<td><p>CUSTOMER_INFO_NOT_FOUND</p></td>
1568+
<td><p>The scenario where no customer information could be found.</p></td>
1569+
</tr>
1570+
<tr>
1571+
<td><p>NO_EFFECTREGISTRATIONDATE</p></td>
1572+
<td><p>The scenario where the customer has no effective registration date.</p></td>
1573+
</tr>
1574+
<tr>
1575+
<td><p>NO_FLATRATESCHEME</p></td>
1576+
<td><p>The scenario where the customer has not entered the VAT Flat Rate Scheme.</p></td>
1577+
</tr>
1578+
<tr>
1579+
<td><p>NO_EFFECTREGISTRATIONDATE_NO_FRS</p></td>
1580+
<td><p>The scenario where the customer has no effective registration date and has not entered the VAT Flat Rate Scheme.</p></td>
1581+
</tr>
15661582
</tbody>
15671583
</table>
15681584
@@ -1634,7 +1650,7 @@ paths:
16341650
value:
16351651
code: VRN_INVALID
16361652
message: The provided VRN is invalid
1637-
'404':
1653+
'401':
16381654
description: ''
16391655
headers: {}
16401656
content:
@@ -1643,14 +1659,14 @@ paths:
16431659
allOf:
16441660
- $ref: '#/components/schemas/errorResponse'
16451661
- example:
1646-
code: NOT_FOUND
1647-
message: The requested resource could not be found
1662+
code: INVALID_CREDENTIALS
1663+
message: Invalid authentication information provided
16481664
examples:
1649-
invalidNino:
1650-
description: The remote endpoint has indicated that no associated data is found
1665+
invalidCredentials:
1666+
description: 'Invalid authentication information provided.'
16511667
value:
1652-
code: NOT_FOUND
1653-
message: The requested resource could not be found
1668+
code: INVALID_CREDENTIALS
1669+
message: Invalid authentication information provided
16541670
'403':
16551671
description: ''
16561672
headers: {}
@@ -1668,6 +1684,23 @@ paths:
16681684
value:
16691685
code: CLIENT_OR_AGENT_NOT_AUTHORISED
16701686
message: The client and/or agent is not authorised
1687+
'404':
1688+
description: ''
1689+
headers: {}
1690+
content:
1691+
application/json:
1692+
schema:
1693+
allOf:
1694+
- $ref: '#/components/schemas/errorResponse'
1695+
- example:
1696+
code: NOT_FOUND
1697+
message: The requested resource could not be found
1698+
examples:
1699+
invalidNino:
1700+
description: The remote endpoint has indicated that no associated data is found
1701+
value:
1702+
code: NOT_FOUND
1703+
message: The requested resource could not be found
16711704
security:
16721705
- userRestricted: [ read:vat ]
16731706
deprecated: false

0 commit comments

Comments
 (0)