I've been having a rough time invoking the POST draft-share-invite-bank API. Whatever I do, it won't accept the content of the "share_detail" element. When I send it as an empty object, it (rightfully) responds with errors instructing me to provide exactly one "share object" - which makes perfect sense, of course:
Request:
{
"status": "ACTIVE",
"expiration": "2021-07-19T18:25:43.511Z",
"draft_share_settings": {
"share_detail": {}
}
}
Response:
{
"Error": [
{
"error_description": "Exactly one share object must be specified.",
"error_description_translated": "Exactly one share object must be specified."
},
{
"error_description": "Exactly one share object must be specified.",
"error_description_translated": "Exactly one share object must be specified."
},
{
"error_description": "Invalid share role \"\"",
"error_description_translated": "Invalid share role \"\""
}
]
}
According to the API documentation, the "share_detail" object has three optional properties: "payment", "read_only" or "draft_payment". But if I provide any of these properties, it always responds with an error as if it is an unknown property for the "share_detail" object:
Request:
{
"status": "ACTIVE",
"expiration": "2021-07-19T18:25:43.511Z",
"draft_share_settings": {
"share_detail": {
"payment": {
"make_draft_payments": true,
"make_payments": true,
"view_balance": true,
"view_new_events": true,
"view_old_events": false
}
}
}
}
Response:
{
"Error": [
{
"error_description": "Superfluous field \"payment\".",
"error_description_translated": "Superfluous field \"payment\"."
}
]
}
It doesn't even matter what I put in the "payment" object, or even if I leave it empty, the error is always the same. Dito for the other two properties ("read_only" and "draft_payment") the API documentation says it should accept.
I am truly at a loss here. Any help would be greatly appreciated.
P.S. I am not using any of the SDK's, but the problem reproduces in POSTMAN as well. Also, this is the only endpoint I've had any problems with, everything else I've used so far works fine.