GET api/NSNItem/{id}/LookupNSN
Get the NSN(s) for a given input.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
Input String such as NIIN, NSN or Partnumber |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of GetNSNName | Description | Type | Additional information |
---|---|---|---|
NIIN | string |
Matching regular expression pattern: ^\d{2}(\-)?\d{3}(\-)?\d{4}$ String length: inclusive between 0 and 9 |
|
NSN | string |
Matching regular expression pattern: ^\d{4}(\-)?\d{2}(\-)?\d{3}(\-)?\d{4}$ String length: inclusive between 0 and 13 |
|
N_S_N | string |
String length: inclusive between 0 and 16 |
|
NAME | string |
String length: inclusive between 0 and 255 |
|
FSC | string |
String length: inclusive between 0 and 4 |
|
NiinStatus | string |
None. |
|
NiinStatusDescription | string |
None. |
|
RecordUpdated | date |
None. |
Response Formats
application/json, text/json
Sample:
[ { "niin": "sample string 1", "nsn": "sample string 2", "n_S_N": "sample string 3", "name": "sample string 4", "fsc": "sample string 5", "niinStatus": "sample string 6", "niinStatusDescription": "sample string 7", "recordUpdated": "2024-12-22T18:34:03.6970255-05:00" }, { "niin": "sample string 1", "nsn": "sample string 2", "n_S_N": "sample string 3", "name": "sample string 4", "fsc": "sample string 5", "niinStatus": "sample string 6", "niinStatusDescription": "sample string 7", "recordUpdated": "2024-12-22T18:34:03.6970255-05:00" } ]
application/xml, text/xml
Sample:
<ArrayOfGetNSN xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ISOWebAPI.Models"> <GetNSN> <FSC>sample string 5</FSC> <NAME>sample string 4</NAME> <NIIN>sample string 1</NIIN> <NSN>sample string 2</NSN> <N_S_N>sample string 3</N_S_N> <NiinStatus>sample string 6</NiinStatus> <NiinStatusDescription>sample string 7</NiinStatusDescription> <RecordUpdated>2024-12-22T18:34:03.6970255-05:00</RecordUpdated> </GetNSN> <GetNSN> <FSC>sample string 5</FSC> <NAME>sample string 4</NAME> <NIIN>sample string 1</NIIN> <NSN>sample string 2</NSN> <N_S_N>sample string 3</N_S_N> <NiinStatus>sample string 6</NiinStatus> <NiinStatusDescription>sample string 7</NiinStatusDescription> <RecordUpdated>2024-12-22T18:34:03.6970255-05:00</RecordUpdated> </GetNSN> </ArrayOfGetNSN>