Colleagues,
{
"entityType": "individual",
"taxpayerIdentificationNumber": "000666666",
"nationalProviderIdentifier": "0123012301",
"performanceYear": 2017
}
That text when submitted to the Swagger site here:
https://qpp-submissions-sandbox.navapbc.com/#/ works like a gem and I get a "201" code back and all is well. However, when I submit the same text from my server I get this header info back:
HTTP/1.1 422 Unprocessable Entity
Access-Control-Allow-Headers: Content-Type, X-Requested-With, Authorization
Access-Control-Allow-Methods: PUT, PATCH, GET, POST, DELETE, OPTIONS
Access-Control-Allow-Origin: *
Content-Type: application/json; charset=utf-8
Date: Thu, 04 Jan 2018 14:19:41 GMT
ETag: W/"1f9-eNxckKKpqPRHw5q2nhPDbjAwksU"
Vary: Accept
X-Powered-By: Express
Content-Length: 505
Connection: keep-alive
And I get this in my output file:
{
"error": {
"type": "ValidationError",
"message": "invalid submission object",
"details": [
{
"message": "field 'entityType' in Submission is missing",
"path": "$.entityType"
},
{
"message": "field 'taxpayerIdentificationNumber' in Submission is missing",
"path": "$.taxpayerIdentificationNumber"
},
{
"message": "field 'performanceYear' in Submission is missing",
"path": "$.performanceYear"
}
]
}
}
Does anyone have any suggestions? I am able to GET data readily from the test bed, but I can't POST due to the above.
Thanks,
Jack