vippsas/vipps-partner-api

Documentation: v1/product/orders is missing documentation for response code 422

Opened this issue · 4 comments

If you send a malformed value in settlementAccountNumber you will get response code 422 back with this JSON (see the error field):

{
"type": "https://httpstatuses.com/422",
"title": "One or more validation errors occurred.",
"errors": {
"settlementAccountNumber": [
"The field SettlementAccountNumber must match the regular expression '^[0-9]{11,11}$'.",
"The field SettlementAccountNumber must be a string with a minimum length of 11 and a maximum length of 11."
]
},
"status": 422,
"traceId": "00-a0ddc7c1c6c43141880f70f2e778bc2f-460db95465ec6084-01"
}

Can't find this in the documentation.

Thanks for this!

Will add the 422 response.

Fixed: 0a3000c

Thanks for adding the 422 response. However, you return a schema with a field called errors, and that is not included in the Problem schema.

Ouch. That is bad. I'll ask the developers to have another look. Sorry.