GET api/AccountSegments/GetAccountSegments?companyId={companyId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
companyId

integer

Required

Body Parameters

None.

Response Information

Resource Description

AccountSegment
NameDescriptionTypeAdditional information
AccountSegmentId

integer

None.

AccountSegmentName

string

Required

String length: inclusive between 0 and 100

AccountSegmentIsInUse

boolean

None.

CompanyId

integer

None.

ObjectState

ObjectState

None.

Response Formats

application/json, text/json

Sample:
{
  "accountSegmentId": 1,
  "accountSegmentName": "sample string 2",
  "accountSegmentIsInUse": true,
  "companyId": 4,
  "objectState": 0
}

application/xml, text/xml

Sample:
<AccountSegment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Gruo.Core.Models">
  <ObjectState xmlns="http://schemas.datacontract.org/2004/07/Gruo.Core.Repository">Unchanged</ObjectState>
  <AccountSegmentId>1</AccountSegmentId>
  <AccountSegmentIsInUse>true</AccountSegmentIsInUse>
  <AccountSegmentName>sample string 2</AccountSegmentName>
  <CompanyId>4</CompanyId>
</AccountSegment>