Missing org_id in https://api.pipedrive.com/v1/persons

Hey,

I’m using the API to get data for a BI. When calling the endpoint persons (i.e. using the page Pipedrive API v1 Reference), I get a list of persons and each person has an item “org_id”. But the records “org_id” are missing the actual “id”.

The response I get:

 "data": [
        {
            "id": 1,
            "company_id": 7800969,       
            "org_id": {
                "name": "my company",
                "people_count": 1,
                "owner_id": 7186474,
                "address": null,
                "active_flag": true,
                "value": 1
            },
            "name": "Name Name",
            "first_name": "Name",
            "last_name": "Name",
            ....
      }
    ]

The response I should get:

  "data": [
        {
            "id": 1,
            "company_id": 7800969,       
            "org_id": {
                "id": 1,
                "name": "my company",
                "people_count": 1,
                "owner_id": 7186474,
                "address": null,
                "active_flag": true,
                "value": 1
            },
            "name": "Name Name",
            "first_name": "Name",
            "last_name": "Name",
            ....
      }
    ]

Thanks in advance

I just realized the field “value” is the one I want. I was looking for a field “id”, because the records for “owner_id” hat the field “id” and “value”, but I saw “id” first :wink:

Thanks

2 Likes