Page 1 of 1

Add the ability to get "Profile" of customer from the customers/individuals api

Posted: Mon Mar 21, 2022 3:50 am
by rish
Hi,

I am unable to add "Profile" and "Tags" column as a part of the /api/v1.0/companies/{companyID}/customers/individuals/ endpoint

the query param "column" can only have the following values => FamilyName, GivenName, phone etc.

But I'm unable to fetch "Profile" and "Tags" of every customer when fetching multiple customers.

Can we please add "Profile" and "Tags" as well ?

Thanks.

Re: Add the ability to get "Profile" of customer from the customers/individuals api

Posted: Mon Mar 21, 2022 5:30 am
by PremMarkeli
Hi Rish,

Adding Columns Profile, Tags in the URL should work without any issues. Please request the URL as follows

Code: Select all

/api/v1.0/companies/0/customers/individuals/?columns=ID,GivenName,FamilyName,Profile,Tags
Response:

Code: Select all

[
    {
        "ID": 2400,
        "GivenName": "Sunny",
        "FamilyName": "Gavaskar comm111",
        "Profile": {
            "Notes": "",
            "CustomerProfile": null,
            "CustomerGroup": null,
            "AccountManager": null,
            "Currency": {
                "ID": "NZD",
                "Name": "New Zealand Dollar",
                "Visible": true
            },
            "ServiceJobCostCenter": null
        },
        "Tags": []
    },
    ...
 ]

Regards.