send_document regression in 6.2.0
We upgraded to 6.2.0 yesterday and the send_document API call began to fail with:
ApiTypeError: Invalid type for variable 'id'. Required value type is str and passed type was int at ['received_data']['recipients'][0]['id']
Looks like an issue with therecipients_array that was added in 6.2.0. We had to rollback to 6.0.0
The docs have this field as an int in the response, so it is a client issue https://developers.pandadoc.com/reference/send-document
Thanks
Same issue, the api responds with an int but the SDK wants a str.
Same issue, I created document from template and did not fill out the redirect object and I get this error:
ApiTypeError: Invalid type for variable 'url'. Required value type is str and passed type was NoneType at ['received_data']['recipients'][0]['redirect']['url']
If I make the exact API call using curl, everything works fine, so it is an issue processing the API response in the client SDK. Also works downgrading client to v6.1.0.
Downgrading to v6.1.0 caused this issue. So I looked for another way around my issue here. Even thou redirect doesn't seem the be required, adding it solves the issue I was having.