Page 1 of 1

How do you set whether a customer is a company or individual?

Posted: Tue Mar 23, 2021 12:22 am
by ndunn
Am trying to set a customer to be a company or an individual. When retrieving a customer, the GET request has an attribute called IsCompany (true/false) but this can't be set in a POST.

unnamed.png
unnamed.png (9.41 KiB) Viewed 3887 times

Anyone have any ideas?

Thanks

Re: How do you set whether a customer is a company or individual?

Posted: Tue Mar 23, 2021 1:14 am
by BrettCrowley
Hi ndun,

The API documentation really is quite good.

See here for customers: https://developer.simprogroup.com/apido ... f87e04cd88

And see here for creation specifics:

Company: https://developer.simprogroup.com/apido ... bdea233fc3
Individual: https://developer.simprogroup.com/apido ... 96883a171c

Re: How do you set whether a customer is a company or individual?

Posted: Mon Mar 29, 2021 9:50 am
by ndunn
Sorry, should've pointed out, this is on the old APIs, not the new ones. Thanks.

Re: How do you set whether a customer is a company or individual?

Posted: Tue Mar 30, 2021 6:03 am
by Muqeet
In old api, look for a field `isCompany`to determine customer type.

Re: How do you set whether a customer is a company or individual?

Posted: Tue Mar 30, 2021 10:23 am
by ndunn
That tells me if they are a customer or individual. How do I set this field, as you can't set it, through the API it seems.

Re: How do you set whether a customer is a company or individual?

Posted: Tue Mar 30, 2021 11:02 pm
by Muqeet
I ll forward this issue to the concerned team who looks after our old api, which is not in active development anymore. However we still patch any bugs/issues when reported.

I ll get back to you with any update on the issue here.