GET api/SIMS/GetStockUnits?stockCode={stockCode}&companyKey={companyKey}

Gets all the stock units for a specific stock code

Request Information

URI Parameters

NameDescriptionTypeAdditional information
stockCode

The stock code to retrieve the stock units for

string

Required

companyKey

The company key if the service is connected to multiple SIMS companies (Optional)

string

Default value is

Body Parameters

N/A


Response Information

Resource Description

List of Stock Units

Collection of StockUnit
NameDescriptionTypeAdditional information
TranNum

The Transaction Number of the stock unit

string

N/A

StkCode

The Stock Code of the unit

string

N/A

UnitCode

The Unit Code of the stock unit

string

N/A

UnitValue

The value of the stock unit

decimal number

N/A

LDefault

The LDefault value

boolean

N/A

LDefaultPo

The LDefaultPo value

boolean

N/A

LDefaultWs

The LDefaultWs value

boolean

N/A

SpNo

The SpNo value

decimal number

N/A

CltCateg

The CltCateg value

string

N/A

Publish

Whether the stock unit should be published or not

boolean

N/A

SpNoB2c

The SpNoB2c value

decimal number

N/A

ReplicId

The ReplicId of the unit

string

N/A

Response Formats

application/json, text/json

Sample:
[
  {
    "TranNum": "sample string 1",
    "StkCode": "sample string 2",
    "UnitCode": "sample string 3",
    "UnitValue": 4.0,
    "LDefault": true,
    "LDefaultPo": true,
    "LDefaultWs": true,
    "SpNo": 8.0,
    "CltCateg": "sample string 9",
    "Publish": true,
    "SpNoB2c": 11.0,
    "ReplicId": "sample string 12"
  },
  {
    "TranNum": "sample string 1",
    "StkCode": "sample string 2",
    "UnitCode": "sample string 3",
    "UnitValue": 4.0,
    "LDefault": true,
    "LDefaultPo": true,
    "LDefaultWs": true,
    "SpNo": 8.0,
    "CltCateg": "sample string 9",
    "Publish": true,
    "SpNoB2c": 11.0,
    "ReplicId": "sample string 12"
  }
]