|
2 | 2 | --- |
3 | 3 |
|
4 | 4 | title: VAT (MTD) |
5 | | -version: 0.1 |
| 5 | +version: 1.0 |
6 | 6 | protocols: [ HTTPS ] |
7 | 7 | baseUri: https://api.service.hmrc.gov.uk/ |
8 | 8 | mediaType: application/json |
@@ -39,14 +39,15 @@ traits: |
39 | 39 | type: string |
40 | 40 | example: "123456789" |
41 | 41 | /obligations: |
42 | | - displayName: Retrieve all VAT obligations 1 |
43 | | - description: Retrieve all VAT obligations 2 |
44 | | - (annotations.sandboxData): !include scenarios/vat-obligation-scenarios.md |
45 | | - is: [headers.acceptHeader, contentType, testScenarioHeader] |
46 | | - (annotations.scope): "read:vat" |
47 | | - securedBy: [ sec.oauth_2_0: { scopes: [ "read:vat" ] } ] |
| 42 | + displayName: Retrieve all VAT obligations. |
| 43 | + description: Retrieve all VAT obligations. |
48 | 44 | get: |
| 45 | + displayName: Retrieve all VAT obligations. |
49 | 46 | description: Retrieve all VAT obligations. |
| 47 | + (annotations.sandboxData): !include scenarios/vat-obligation-scenarios.md |
| 48 | + is: [headers.acceptHeader, contentType, testScenarioHeader] |
| 49 | + (annotations.scope): "read:vat" |
| 50 | + securedBy: [ sec.oauth_2_0: { scopes: [ "read:vat" ] } ] |
50 | 51 | queryParameters: |
51 | 52 | from: |
52 | 53 | description: Obligations to return from date |
@@ -99,18 +100,19 @@ traits: |
99 | 100 | value: |
100 | 101 | code: INVALID_STATUS |
101 | 102 | /periods/{periodKey}: |
102 | | - displayName: Submit VAT return for period 3. |
103 | | - description: Submit VAT return for period 4. |
104 | | - is: [headers.acceptHeader, contentType, testScenarioHeader] |
105 | | - (annotations.scope): "write:vat" |
106 | | - securedBy: [ sec.oauth_2_0: { scopes: [ "write:vat" ] } ] |
| 103 | + displayName: Submit VAT return for period. |
| 104 | + description: Submit VAT return for period. |
107 | 105 | uriParameters: |
108 | 106 | periodKey: |
109 | 107 | description: Identifier for the period of the VAT return |
110 | 108 | type: string |
111 | 109 | example: "#001" |
112 | 110 | post: |
| 111 | + displayName: Submit VAT return for period. |
113 | 112 | description: Submit VAT return for period. |
| 113 | + is: [headers.acceptHeader, contentType, testScenarioHeader] |
| 114 | + (annotations.scope): "write:vat" |
| 115 | + securedBy: [ sec.oauth_2_0: { scopes: [ "write:vat" ] } ] |
114 | 116 | body: |
115 | 117 | application/json: |
116 | 118 | type: !include schemas/submitVatReturn.json |
|
0 commit comments