GET api/getProductServicesByCompany/{page}?version={version}&type={type}&sellOnline={sellOnline}&locationId={locationId}&includeAttributes={includeAttributes}&getDeleted={getDeleted}&orderByVersion={orderByVersion}&includeImage={includeImage}&getOnlyStock={getOnlyStock}&pageSize={pageSize}&includeGlCodes={includeGlCodes}
Get Company Products / Services
Request Information
Allows access to child location using parent company token, in this case use location id parameter
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| page |
Zero-based page index, required |
integer |
Required |
| version |
Database version, optional |
integer |
None. |
| type |
Use it to load only products, services or both. (null - both, 0 - products only, 1 - services only) |
boolean |
None. |
| sellOnline |
If true - return only items with sell online option |
boolean |
None. |
| locationId |
Optional store id, get from token location if not set |
integer |
None. |
| includeAttributes |
If true - return also attributes |
boolean |
Default value is True |
| getDeleted |
If true - return also removed products |
boolean |
Default value is False |
| orderByVersion |
If true - order by record version |
boolean |
Default value is False |
| includeImage |
If true - return also product images |
boolean |
Default value is False |
| getOnlyStock |
If true - return only stock quantities |
boolean |
Default value is False |
| pageSize |
Number of items returned by a single page. Default value is 50. Max value is 500 |
integer |
Default value is 50 |
| includeGlCodes |
If true - return also Gl codes |
boolean |
Default value is False |
Body Parameters
None.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |