Skip to content

Commit 4b76649

Browse files
Update sandbox and OAS descriptions
1 parent 740bc69 commit 4b76649

File tree

12 files changed

+81
-14
lines changed

12 files changed

+81
-14
lines changed

sandbox/data/examples/patchLetter/requests/patchLetter_CANCELLED.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"data": {
33
"attributes": {
4-
"reasonCode": "R01",
5-
"reasonText": "failed validation",
4+
"reasonCode": "R10",
5+
"reasonText": "Miscellaneous",
66
"status": "CANCELLED"
77
},
88
"id": "2WL5eYSWGzCHlGmzNxuqVusPxDg",

sandbox/data/examples/patchLetter/requests/patchLetter_FAILED.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"data": {
33
"attributes": {
4-
"reasonCode": "R01",
5-
"reasonText": "failed validation",
4+
"reasonCode": "R10",
5+
"reasonText": "Miscellaneous",
66
"status": "FAILED"
77
},
88
"id": "2WL5eYSWGzCHlGmzNxuqVusPxDg",

sandbox/data/examples/patchLetter/requests/patchLetter_REJECTED.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"data": {
33
"attributes": {
4-
"reasonCode": "R01",
5-
"reasonText": "failed validation",
4+
"reasonCode": "R07",
5+
"reasonText": "No such address",
66
"status": "REJECTED"
77
},
88
"id": "2WL5eYSWGzCHlGmzNxuqVusPxDg",

sandbox/data/examples/patchLetter/requests/patchLetter_RETURNED.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"data": {
33
"attributes": {
44
"reasonCode": "R01",
5-
"reasonText": "failed validation",
5+
"reasonText": "Addressee gone away",
66
"status": "REJECTED"
77
},
88
"id": "2WL5eYSWGzCHlGmzNxuqVusPxDg",

sandbox/data/examples/patchLetter/responses/patchLetter_CANCELLED.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"data": {
33
"attributes": {
4-
"reasonCode": "R01",
5-
"reasonText": "failed validation",
4+
"reasonCode": "R10",
5+
"reasonText": "Miscellaneous",
66
"specificationId": "2WL5eYSWGzCHlGmzNxuqVusPxDg",
77
"status": "CANCELLED"
88
},

sandbox/data/examples/patchLetter/responses/patchLetter_FAILED.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"data": {
33
"attributes": {
4-
"reasonCode": "R01",
5-
"reasonText": "failed validation",
4+
"reasonCode": "R10",
5+
"reasonText": "Miscellaneous",
66
"specificationId": "2WL5eYSWGzCHlGmzNxuqVusPxDg",
77
"status": "FAILED"
88
},

sandbox/data/examples/patchLetter/responses/patchLetter_REJECTED.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"data": {
33
"attributes": {
4-
"reasonCode": "R01",
5-
"reasonText": "failed validation",
4+
"reasonCode": "R07",
5+
"reasonText": "No such address",
66
"specificationId": "2WL5eYSWGzCHlGmzNxuqVusPxDg",
77
"status": "REJECTED"
88
},

sandbox/data/examples/patchLetter/responses/patchLetter_RETURNED.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"data": {
33
"attributes": {
44
"reasonCode": "R01",
5-
"reasonText": "failed validation",
5+
"reasonText": "Addressee gone away",
66
"specificationId": "2WL5eYSWGzCHlGmzNxuqVusPxDg",
77
"status": "RETURNED"
88
},
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
## Example Error Codes
2+
3+
Examples of reason codes and text that may be returned include (but are not limited to)
4+
5+
| Reason Code | Reason Text |
6+
|-------------|----------------------------|
7+
|R01 |Addressee gone away |
8+
|R02 |Address incomplete |
9+
|R03 |Address inaccessible |
10+
|R04 |Addressee unknown |
11+
|R05 |Addressee gone away/Refused |
12+
|R06 |Not called for |
13+
|R07 |No such address |
14+
|R08 |No reason given |
15+
|R09 |Deceased |
16+
|R10 |Miscellaneous |

specification/api/components/documentation/getLetterStatus.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,20 @@ You can test the following scenarios in our sandbox environment
2020
| Retrieve a CANCELLED letter status | `2XL5eYSWGzCHlGmzNxuqVusPxDg`|
2121
| Retrieve a FAILED letter status | `2YL5eYSWGzCHlGmzNxuqVusPxDg`|
2222
| Retrieve a RETURNED letter status | `2ZL5eYSWGzCHlGmzNxuqVusPxDg`|
23+
24+
### Example Error Codes
25+
26+
Examples of reason codes and text that may be returned include (but are not limited to)
27+
28+
| Reason Code | Reason Text |
29+
|-------------|----------------------------|
30+
|R01 |Addressee gone away |
31+
|R02 |Address incomplete |
32+
|R03 |Address inaccessible |
33+
|R04 |Addressee unknown |
34+
|R05 |Addressee gone away/Refused |
35+
|R06 |Not called for |
36+
|R07 |No such address |
37+
|R08 |No reason given |
38+
|R09 |Deceased |
39+
|R10 |Miscellaneous |

0 commit comments

Comments
 (0)