response that we get is in v2 format:
{
“success”: true,
“data”: {
“id”: 48921,
“owner_id”: 18247138,
…
}
}
in v1 response(on different Pipedrive trial instance) owner_id is object as expected:
{
“success”: true,
“data”: {
“id”: 41,
“owner_id”: {
“id”: 21997590,
“name”: “xxx”,
“email”: “xxx”,
“has_pic”: 0,
“pic_hash”: null,
“active_flag”: true,
“value”: 21997590
},
…
}
So are you forcing api v2 response format even when we explicitly specify v1 in endpoint url for some Pipedrive instances? And issue is that our official library throw error in this case, because it expects owner_id to be object, not int.
I also tested via Postman too, and confirm that when accessing organization v1 endpoint only on this Pipedrive instance, we get response in api v2 format.
So my question is if this is configuration thing or is there a way to enable support for v1 too?
I am not applying any query parameters to URL in Postman when I am testing except api token, so whole url is like: https://api.pipedrive.com/v1/organizations/48921?api_token=zzz
And I am getting just owner_id, not whole project.
Issue is on all API calls, and other data too - everything is acting like v1 is replaced with v2 responses.