Inventory Upload

This API adds/update Parts in the Inventory system.

WebMethod

  • GJZJ7J – required

Option

  • scan – error scan only
  • update – Upload Inventory/Parts
  • Template – Get upload template

CompanyCode

  • required

SubledgerCode

  • required

CreateCategoryCode

Create a PartsCategory code for you if needed.

  • default = false

errorsFound

  • returned result (read-only)

recordsProcessed

  • returned result (read-only)

pdfReport

  • default = false

pdfReportOut (applicable if pdfReport=true)

  • base64 encoded pdf (read-only)

Inventory

FieldDescription
PartNumberrequired 15 char. max
Description35 char. max
CategoryCoderequired 10 char. max
StockingItemY | N | A | O | I
• Y – Yes
• N – No (default)
• A – Assembly
• O – Obsolete
• I – Inactive
MinStock99999 max
MaxStock99999 max
QtyOnHand99999 max
SellingPrice99999 max
CostPrice99999 max
BinNo10 char. max
SuppliedBy10 char. max
PerUnitCodeE|C|M|D|T|B|Y|F|G|S|R|L|Q|O|P|A|K|Z
• E - Each
• C - 100
• M - 1000
• D - 12
• T - Case 24
• B - Bag
• Y - Yard
• F - Feet
• G - Gallon
• S - Sq ft
• R - Roll
• L - Litre
• Q - Quart
• O
• P - Pint
• A - Pound
• K - Kilo
• Z - Meter
DateLastOrdereddefault=today
DateLastSolddefault=today
Soldto
TypeofPartF|R|L|Y|N
• F – Finished Good
• R – Rough-in Part
• L – Lab Item
• Y – Returnable
• N – Non-Returnable
CostingMethodS|A
• S - Standard
• A - Average
Comment27 char. max
AltPartNumber25 char. max
SupercededPart25 char. max
UPC999999999999 max
UOMCode3 char. max
AverageCost99999.999 max
DefaultJobCostItem10 char. max
DefaultJobCostType10 char. max
DefaultWOCostType10 char. max
PriceUpdateCode16 char. max
Print1LabelPer999999 max
DefaultCostTakeoff1|2|3|4
• 1 – Std
• 2 – Avg
• 3 – Selling
• 4 – Supl Cost
SubCategoryCode10 char. max
UsePartsCostingInTakeoffUse Parts Master Costing in Takeoff Charge Parts
Boolean (default = false)
PreferredSupplier1|2|3|4|5
SupplierCost[]
FieldDescription
Idx1|2|3|4|5
SupplierCode10 char. max
CostPrice99999.999 max
PartNo30 char. max
DiscountPercentage99.99
QuantityOnHand[]
FieldDescription
WarehouseCode5 char. max
• must be a valid warehouse code
Count99999.99 max
{
        "WebMethod": "GJZJ7J",
        "Option": "template",
        "CompanyCode": "01",
        "SubledgerCode": "",
        "CreateCategoryCode": false,
        "pdfReport": false,
        "Parts": [{
               "PartNumber": "",
               "Description": "",
               "CategoryCode": "",
               "StockingItem": "",
               "MinStock": 0,
               "MaxStock": 0,
               "QtyOnHand": 0,
               "SellingPrice": 0,
               "CostPrice": 99999.999,
               "BinNo": "",
               "SuppliedBy": "",
               "PerUnitCode": "",
               "DateLastOrdered": "1970-01-01T00:00:00Z",
               "DateLastSold": "1970-01-01T00:00:00Z",
               "Soldto": "",
               "TypeofPart": "",
               "CostingMethod": "",
               "Comment": "",
               "AltPartNumber": "",
               "SupercededPart": "",
               "UPC": "",
               "UOMCode": "",
               "AverageCost": -9999999.99,
               "PreferredSupplier": "",
               "DefaultJobCostItem": "",
               "DefaultJobCostType": "",
               "DefaultWOCostType": "",
               "SubCategoryCode": "",
               "PriceUpdateCode": "",
               "Print1LabelPer": 999999,
               "DefaultCostTakeoff": 4,
               "UsePartsCostingInTakeoff":false,
               "SupplierCost": [{
                      "Idx": 5,
                      "SupplierCode": "",
                      "CostPrice": 99999.99,
                      "PartNo":"",
                      "DiscountPercentage": 99.99
               }],
               "QuantityOnHand": [{
                      "WarehouseCode": "",
                      "Count": -9999999.99
               }]
        }]
}

example

{
           "WebMethod": "GJZJ7J",
           "Option": "scan",
           "CompanyCode": "01",
           "SubledgerCode": "AR",
           "Parts": [{
                  "PartNumber": "003",
                  "Description": "Dual Pressure Control",
                  "CategoryCode": "ELEC",
                  "StockingItem": "Y",
                  "MinStock": 1,
                  "MaxStock": 5,
                  "QtyOnHand": 25,
                  "SellingPrice": 120,
                  "CostPrice": 25,
                  "BinNo": "BIN9999999",
                  "SuppliedBy": "ABC03",
                  "PerUnitCode": "O",
                  "SupplierCost": [{
                          "Idx": 3,
                          "SupplierCode": "XYZ",
                          "CostPrice": 5999.999,
                          "PartNo":"XYZ-005",
                          "DiscountPercentage": 55.55
                  },
                  {
                          "Idx": 5,
                          "SupplierCode": "QWERTY",
                          "CostPrice": 3999.999,
                          "PartNo":"Q-003",
                          "DiscountPercentage": 33.33
                  }],
                  "QuantityOnHand": [{
                          "WarehouseCode": "MAIN",
                          "Count": 100
                  },
                  {
                          "WarehouseCode": "TRUCK",
                          "Count": 75
                  }]
           }]
}

result with error

{
        "errorsFound": 1,
        "WebMethod": "GJZJ7J",
        "Option": "scan",
        "pdfReport": false,
        "CompanyCode": "01",
        "SubledgerCode": "AR",
        "CreateCategoryCode": false,
        "errors": ["Category ELEC is missing"],
        "recordsProcessed": 1
}

successful result

{
        "errorsFound": 0,
        "WebMethod": "GJZJ7J",
        "Option": "scan",
        "CompanyCode": "01",
        "SubledgerCode": "AR",
        "pdfReport": false,
        "Parts": [{
               "PartNumber": "003",
               "Description": "Dual Pressure Control",
               "CategoryCode": "ELEC",
               "StockingItem": "Y",
               "MinStock": 1,
               "MaxStock": 5,
               "QtyOnHand": 25,
               "SellingPrice": 120,
               "CostPrice": 25,
               "BinNo": "BIN9999999",
               "SuppliedBy": "ABC03",
               "PerUnitCode": "O",
               "SupplierCost": [{
                      "Idx": 3,
                      "SupplierCode": "XYZ",
                      "CostPrice": 5999.999,
                      "PartNo":"XYZ-005",
                      "DiscountPercentage": 55.55
               },
               {
                      "Idx": 5,
                      "SupplierCode": "QWERTY",
                      "CostPrice": 3999.999,
                      "PartNo":"Q-003",
                      "DiscountPercentage": 33.33
               }],
               "QuantityOnHand": [{
                      "WarehouseCode": "MAIN",
                      "Count": 100
               },
               {
                      "WarehouseCode": "TRUCK",
                      "Count": 75
               }]
        }],
        "recordsProcessed": 1
}