TrakIT API‎ > ‎Pending API‎ > ‎

Get Item

The below API is used to get Item.


Request: GET

Signature: /api/mobile/GetItem?Token={Login_Token}&ItemCode={Item_Code}


Sample: /api/mobile/GetItem?Token=VomYEMiECFFyAQ3==&ItemCode=FERT

Response: 

{
    "Code": 1,
    "Info": "",
    "RowsAffected": 0,
    "Scalar": null,
    "Identity": 0,
    "RetInfo": [
        {
            "Type": "Field",
            "Name": "Code",
            "Value": "FERT",
            "Active": true,
            "IsEditable": false,
            "Code": "ITEMCODE",
            "DataType": "Text",
            "Remarks": null,
            "MultiSelect": null,
            "ListValues": null
        },
        {
            "Type": "Field",
            "Name": "Name",
            "Value": "Organic Soil 1",
            "Active": true,
            "IsEditable": false,
            "Code": "NAME",
            "DataType": "Text",
            "Remarks": null,
            "MultiSelect": null,
            "ListValues": null
        },
        {
            "Type": "Field",
            "Name": "Unit",
            "Value": "Bags",
            "Active": true,
            "IsEditable": false,
            "Code": "UNIT",
            "DataType": "Text",
            "Remarks": null,
            "MultiSelect": null,
            "ListValues": "Pieces;Kilograms;Pounds;Tons;Litres;Gallons;Rolls;Tins;Cans;Bags;Sets;Pallets;Boxes;Packs;Bottles;Bundles;Pairs"
        },
        {
            "Type": "Field",
            "Name": "Weight",
            "Value": "33331.000",
            "Active": true,
            "IsEditable": false,
            "Code": "WEIGHT",
            "DataType": "Number",
            "Remarks": null,
            "MultiSelect": null,
            "ListValues": null
        },
        {
            "Type": "Field",
            "Name": "Volume",
            "Value": "888.000",
            "Active": true,
            "IsEditable": false,
            "Code": "VOLUME",
            "DataType": "Number",
            "Remarks": null,
            "MultiSelect": null,
            "ListValues": null
        },
        {
            "Type": "Field",
            "Name": "HS Code",
            "Value": "jkjkj",
            "Active": true,
            "IsEditable": false,
            "Code": "HSCODE",
            "DataType": "Text",
            "Remarks": null,
            "MultiSelect": null,
            "ListValues": null
        },
        {
            "Type": "Field",
            "Name": "GTIN",
            "Value": "iuiuiouo",
            "Active": true,
            "IsEditable": false,
            "Code": "GTIN",
            "DataType": "Text",
            "Remarks": null,
            "MultiSelect": null,
            "ListValues": null
        },
        {
            "Type": "Field",
            "Name": "Shelf Life",
            "Value": "30",
            "Active": true,
            "IsEditable": false,
            "Code": "SHELFLIFE",
            "DataType": "Number",
            "Remarks": null,
            "MultiSelect": null,
            "ListValues": null
        },
        {
            "Type": "Field",
            "Name": "Description",
            "Value": "xads",
            "Active": true,
            "IsEditable": false,
            "Code": "DESCRIPTION",
            "DataType": "Text",
            "Remarks": null,
            "MultiSelect": null,
            "ListValues": null
        },
        {
            "Type": "Data",
            "Name": "PIN",
            "Value": "568,567,978.00",
            "Active": true,
            "IsEditable": true,
            "Code": "PIN",
            "DataType": "Number",
            "Remarks": "",
            "MultiSelect": null,
            "ListValues": "5,657,567.00;568,567,978.00;967.00;456.00;3,456,234,647.00;586,798,769.00"
        },
        {
            "Type": "Data",
            "Name": "Item Expiry Date",
            "Value": "13:15, 03 Apr 2019",
            "Active": true,
            "IsEditable": true,
            "Code": "IEDATE",
            "DataType": "Date",
            "Remarks": "",
            "MultiSelect": null,
            "ListValues": null
        },
        {
            "Type": "Data",
            "Name": "Brands",
            "Value": "H & M\nHUSH PUPPIES",
            "Active": true,
            "IsEditable": true,
            "Code": "BRAND",
            "DataType": "Text",
            "Remarks": "",
            "MultiSelect": "3",
            "ListValues": "Mark & Spencer;H & M;PE;MAX;HUSH PUPPIES;456546"
        },
        {
            "Type": "Data",
            "Name": "34444444445",
            "Value": "",
            "Active": true,
            "IsEditable": true,
            "Code": "3444444445",
            "DataType": "Number",
            "Remarks": "",
            "MultiSelect": null,
            "ListValues": "345,345.000"
        }
    ]
}


Things to know about this API:
    • Token - You can use Login API to get token displayed under Info

    • ItemCode - You can use Get Item List API to get  ItemCode

    • Definition of each attribute for Field:

    • Attribute  Description
      Name Name of the field
      Value Current value stored in it
      Active It is a Boolean field. All the fields will be default True
      IsEditable It is a Boolean field. It will be True if the user has access to Update action. It will be by default False  where code is ENTITYID
      Code Unique code assigned to the Field
      DataType It will be by Text or Boolean
      Remarks It will be by default null
      MultiSelect It will be by default null
      ListValues If ListValues has some values, then it is single select list
      AutoComplete

    • Definition of each attribute for Data:

    • Attribute  Description
      Name Name of the field
      Value Current value stored in it
      Active It is a Boolean field.
      IsEditable It is a Boolean field. It will be True if the user has access to Update Entity Data action.
      Code Unique code assigned to the Data
      DataType Possible values will be Text, Date, Number, Currency and HyperLink
      Remarks Current remarks store in it.
      MultiSelect Possible values are null or greater than 0.

      • When MultiSelect is Null and ListValues is also Null, then it can be a Text or Numeric Field
      • When MultiSelect is Null and ListValues has some list in it, then it is Single Select
      • When MultiSelect is greater than 0 and ListValues has some list in it, then it is Multi Select

      ListValues It will have a list in case of Single Select Or Multi Select
      AutoComplete


    Comments