The documentation for the Insolvency endpoint indicates that the address field for practitioners is an array, but for company 00104206 it’s returning a single object.
For example:
Expected (per docs):
JSON
"practitioners": [
{
"address": [ { ... } ],
"role": "practitioner"
}
]
Actual (received):
JSON
"practitioners": [
{
"address": {
"address_line_1": "Po Box 810, 66 Shoe Lane",
"locality": "London",
"postal_code": "EC4A 3WA"
},
"role": "practitioner"
}
]
This caused a parsing error in our client. What’s the expected behavior here? We’re currently proceeding on the assumption that - depending on the data - either a single Object or an Array of Objects will be received.