-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Update invalid (error-triggering) address structure for JSON snippets
- Loading branch information
Showing
13 changed files
with
103 additions
and
207 deletions.
There are no files selected for viewing
45 changes: 10 additions & 35 deletions
45
official/docs/responses/addresses/addresses-create-and-verify.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,14 @@ | ||
{ | ||
"address": { | ||
"id": "adr_0afc56d0ba4c11ee9036ac1f6bc539aa", | ||
"object": "Address", | ||
"created_at": "2024-01-24T00:03:45+00:00", | ||
"updated_at": "2024-01-24T00:03:45+00:00", | ||
"name": null, | ||
"company": "EASYPOST", | ||
"street1": "417 MONTGOMERY ST FL 5", | ||
"street2": "", | ||
"city": "SAN FRANCISCO", | ||
"state": "CA", | ||
"zip": "94104-1129", | ||
"country": "US", | ||
"phone": "4151234567", | ||
"email": null, | ||
"mode": "test", | ||
"carrier_facility": null, | ||
"residential": false, | ||
"federal_tax_id": null, | ||
"state_tax_id": null, | ||
"verifications": { | ||
"zip4": { | ||
"success": true, | ||
"errors": [], | ||
"details": null | ||
}, | ||
"delivery": { | ||
"success": true, | ||
"errors": [], | ||
"details": { | ||
"latitude": 37.79342, | ||
"longitude": -122.40288, | ||
"time_zone": "America/Los_Angeles" | ||
} | ||
"error": { | ||
"code": "ADDRESS.VERIFY.FAILURE", | ||
"message": "Unable to verify address.", | ||
"errors": [ | ||
{ | ||
"code": "E.ADDRESS.NOT_FOUND", | ||
"field": "address", | ||
"message": "Address not found", | ||
"suggestion": null | ||
} | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 11 additions & 56 deletions
67
official/docs/responses/addresses/addresses-verify-failure.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,14 @@ | ||
{ | ||
"id": "adr_0bfc91b4ba4c11ee80c73cecef1b359e", | ||
"object": "Address", | ||
"created_at": "2024-01-24T00:03:47+00:00", | ||
"updated_at": "2024-01-24T00:03:47+00:00", | ||
"name": null, | ||
"company": "EasyPost", | ||
"street1": "UNDELIVERABLE ST", | ||
"street2": null, | ||
"city": "SAN FRANCISCO", | ||
"state": "CA", | ||
"zip": "94104", | ||
"country": "US", | ||
"phone": "4151234567", | ||
"email": null, | ||
"mode": "test", | ||
"carrier_facility": null, | ||
"residential": null, | ||
"federal_tax_id": null, | ||
"state_tax_id": null, | ||
"verifications": { | ||
"zip4": { | ||
"success": false, | ||
"errors": [ | ||
{ | ||
"code": "E.ADDRESS.NOT_FOUND", | ||
"field": "address", | ||
"message": "Address not found", | ||
"suggestion": null | ||
}, | ||
{ | ||
"code": "E.HOUSE_NUMBER.MISSING", | ||
"field": "street1", | ||
"message": "House number is missing", | ||
"suggestion": null | ||
} | ||
], | ||
"details": null | ||
}, | ||
"delivery": { | ||
"success": false, | ||
"errors": [ | ||
{ | ||
"code": "E.ADDRESS.NOT_FOUND", | ||
"field": "address", | ||
"message": "Address not found", | ||
"suggestion": null | ||
}, | ||
{ | ||
"code": "E.HOUSE_NUMBER.MISSING", | ||
"field": "street1", | ||
"message": "House number is missing", | ||
"suggestion": null | ||
} | ||
], | ||
"details": {} | ||
} | ||
"error": { | ||
"code": "ADDRESS.VERIFY.FAILURE", | ||
"message": "Unable to verify address.", | ||
"errors": [ | ||
{ | ||
"code": "E.ADDRESS.NOT_FOUND", | ||
"field": "address", | ||
"message": "Address not found", | ||
"suggestion": null | ||
} | ||
] | ||
} | ||
} |
46 changes: 21 additions & 25 deletions
46
official/docs/responses/addresses/addresses-verify-param.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,47 @@ | ||
{ | ||
"id": "adr_0b28f550ba4c11eea409ac1f6bc53342", | ||
"id": "adr_3a98ffc7bafa11eeb8fcac1f6bc539ae", | ||
"object": "Address", | ||
"created_at": "2024-01-24T00:03:46+00:00", | ||
"updated_at": "2024-01-24T00:03:46+00:00", | ||
"created_at": "2024-01-24T20:50:38+00:00", | ||
"updated_at": "2024-01-24T20:50:38+00:00", | ||
"name": null, | ||
"company": "EASYPOST", | ||
"street1": "417 MONTGOMERY ST FL 5", | ||
"street2": "", | ||
"city": "SAN FRANCISCO", | ||
"state": "CA", | ||
"zip": "94104-1129", | ||
"company": "EasyPost", | ||
"street1": "000 unknown street", | ||
"street2": null, | ||
"city": "Not A City", | ||
"state": "ZZ", | ||
"zip": "00001", | ||
"country": "US", | ||
"phone": "4151234567", | ||
"email": null, | ||
"phone": "5555555555", | ||
"email": "[email protected]", | ||
"mode": "test", | ||
"carrier_facility": null, | ||
"residential": false, | ||
"residential": null, | ||
"federal_tax_id": null, | ||
"state_tax_id": null, | ||
"verifications": { | ||
"zip4": { | ||
"success": true, | ||
"success": false, | ||
"errors": [ | ||
{ | ||
"code": "E.SECONDARY_INFORMATION.INVALID", | ||
"field": "street2", | ||
"message": "Invalid secondary information(Apt/Suite#)", | ||
"code": "E.ADDRESS.NOT_FOUND", | ||
"field": "address", | ||
"message": "Address not found", | ||
"suggestion": null | ||
} | ||
], | ||
"details": null | ||
}, | ||
"delivery": { | ||
"success": true, | ||
"success": false, | ||
"errors": [ | ||
{ | ||
"code": "E.SECONDARY_INFORMATION.INVALID", | ||
"field": "street2", | ||
"message": "Invalid secondary information(Apt/Suite#)", | ||
"code": "E.ADDRESS.NOT_FOUND", | ||
"field": "address", | ||
"message": "Address not found", | ||
"suggestion": null | ||
} | ||
], | ||
"details": { | ||
"latitude": 37.79342, | ||
"longitude": -122.40288, | ||
"time_zone": "America/Los_Angeles" | ||
} | ||
"details": {} | ||
} | ||
} | ||
} |
57 changes: 10 additions & 47 deletions
57
official/docs/responses/addresses/addresses-verify-strict-param.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,14 @@ | ||
{ | ||
"id": "adr_0b5772d2ba4c11ee9064ac1f6bc539aa", | ||
"object": "Address", | ||
"created_at": "2024-01-24T00:03:46+00:00", | ||
"updated_at": "2024-01-24T00:03:46+00:00", | ||
"name": null, | ||
"company": "EASYPOST", | ||
"street1": "417 MONTGOMERY ST FL 5", | ||
"street2": "", | ||
"city": "SAN FRANCISCO", | ||
"state": "CA", | ||
"zip": "94104-1129", | ||
"country": "US", | ||
"phone": "4151234567", | ||
"email": null, | ||
"mode": "test", | ||
"carrier_facility": null, | ||
"residential": false, | ||
"federal_tax_id": null, | ||
"state_tax_id": null, | ||
"verifications": { | ||
"zip4": { | ||
"success": true, | ||
"errors": [ | ||
{ | ||
"code": "E.SECONDARY_INFORMATION.INVALID", | ||
"field": "street2", | ||
"message": "Invalid secondary information(Apt/Suite#)", | ||
"suggestion": null | ||
} | ||
], | ||
"details": null | ||
}, | ||
"delivery": { | ||
"success": true, | ||
"errors": [ | ||
{ | ||
"code": "E.SECONDARY_INFORMATION.INVALID", | ||
"field": "street2", | ||
"message": "Invalid secondary information(Apt/Suite#)", | ||
"suggestion": null | ||
} | ||
], | ||
"details": { | ||
"latitude": 37.79342, | ||
"longitude": -122.40288, | ||
"time_zone": "America/Los_Angeles" | ||
"error": { | ||
"code": "ADDRESS.VERIFY.FAILURE", | ||
"message": "Unable to verify address.", | ||
"errors": [ | ||
{ | ||
"code": "E.ADDRESS.NOT_FOUND", | ||
"field": "address", | ||
"message": "Address not found", | ||
"suggestion": null | ||
} | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,15 +10,15 @@ | |
"company": "EasyPost", | ||
"phone": "415-123-4567" | ||
}, | ||
"create_and_verify": { | ||
"street1": "417 Montgomery Street", | ||
"street2": "FL 5", | ||
"city": "San Francisco", | ||
"state": "CA", | ||
"zip": "94104", | ||
"country": "US", | ||
"incorrect": { | ||
"company": "EasyPost", | ||
"phone": "415-123-4567" | ||
"street1": "000 unknown street", | ||
"city": "Not A City", | ||
"state": "ZZ", | ||
"zip": "00001", | ||
"country": "US", | ||
"email": "[email protected]", | ||
"phone": "5555555555" | ||
} | ||
}, | ||
"carrier_account": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.