GET api/SalesUnits/GetSalesUnitsInUse?companyId={companyId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
companyId

integer

Required

Body Parameters

None.

Response Information

Resource Description

SalesUnit
NameDescriptionTypeAdditional information
SalesUnitId

integer

None.

SalesUnitDescriptionLanguage01

string

Required

String length: inclusive between 0 and 20

SalesUnitDescriptionLanguage02

string

String length: inclusive between 0 and 20

SalesUnitDescriptionLanguage03

string

String length: inclusive between 0 and 20

SalesUnitDescriptionLanguage04

string

String length: inclusive between 0 and 20

SalesUnitDescriptionLanguage05

string

String length: inclusive between 0 and 20

SalesUnitDescriptionLanguage06

string

String length: inclusive between 0 and 20

IsInUse

boolean

None.

CompanyId

integer

None.

ObjectState

ObjectState

None.

Response Formats

application/json, text/json

Sample:
{
  "salesUnitId": 1,
  "salesUnitDescriptionLanguage01": "sample string 2",
  "salesUnitDescriptionLanguage02": "sample string 3",
  "salesUnitDescriptionLanguage03": "sample string 4",
  "salesUnitDescriptionLanguage04": "sample string 5",
  "salesUnitDescriptionLanguage05": "sample string 6",
  "salesUnitDescriptionLanguage06": "sample string 7",
  "isInUse": true,
  "companyId": 9,
  "objectState": 0
}

application/xml, text/xml

Sample:
<SalesUnit 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>
  <CompanyId>9</CompanyId>
  <IsInUse>true</IsInUse>
  <SalesUnitDescriptionLanguage01>sample string 2</SalesUnitDescriptionLanguage01>
  <SalesUnitDescriptionLanguage02>sample string 3</SalesUnitDescriptionLanguage02>
  <SalesUnitDescriptionLanguage03>sample string 4</SalesUnitDescriptionLanguage03>
  <SalesUnitDescriptionLanguage04>sample string 5</SalesUnitDescriptionLanguage04>
  <SalesUnitDescriptionLanguage05>sample string 6</SalesUnitDescriptionLanguage05>
  <SalesUnitDescriptionLanguage06>sample string 7</SalesUnitDescriptionLanguage06>
  <SalesUnitId>1</SalesUnitId>
</SalesUnit>