Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

By default  "productPurchaseFactorType": "PurchaseUnitsPerProductUnit" will be added 

Create Product (only required fields)

...

{
  "productNumber": "Unique Number",
  "productData": {
    "productName": "product API73",
    "productGroupsAndCategories": {
      "productCategories": [
        "VISPI1806",
        "zainkazmii/hzkazmi01"
      ]
  },
     "productMeasurements": {
      "length": 40,
      "width": 0,
      "height": 0,
      "weight": 0
    },
    "transportMeasurements": {
      "length": 50,
      "width": 0,
      "height": 0,
      "weight": 0
    }
  },
  
  "productPrices": [
    {
      "salesUnit": {
        "quantity": 1,
        "unit": "ST"
      },
      "calculateSalesUnits": false,
      "productPriceListRows": [
        {
          "priceList": "300178",
          "numberSalesUnits": 1,
          "price": 100,
          "vatPercent": 25,
          "currency": "DKK"
        }
      ]
    }
  ],
  "productWarehouses": [
    {
      "warehouse": "DWarehouse",
      "inventoryManagementSource": "XLOG"
    }
  ],
  "productSuppliers": [
    {
      "supplierAgreement": "1 Enkelt Blomst",
      "supplierAgreementNumber": 700697
    }
  ]
}

Create BOM Product

{
  "productNumber": "BOM23432",
  "productData": {
    "productName": "product API73",
    "productServices": {
      "supplyMode": "BillOfMaterials"
    },
  
    "productGroupsAndCategories": {
      "productCategories": [
        "VISPI1806",
        "zainkazmii/hzkazmi01"
      ]
    },
    "productMeasurements": {
      "length": 30,
      "width": 0,
      "height": 0,
      "weight": 0
    },
    "transportMeasurements": {
      "length": 20,
      "width": 0,
      "height": 0,
      "weight": 0
    },
    "productTransportDetails": {
      "unNumber": "4343",
      "customsClass": "343242342",
      "customsCommodityCode": "3432432",
      "ean": "4324343544343"
    },
    "internalProductNumber": "32432434",
    "manufacturer": null,
     "billOfMaterials": [
      {
        "productNumber": "00.223",
        "quantity": 1,
        "unit": "ST",
        "sortOrder": 0,
        "partOfPricePercent": 0.2
      },
      {
        "productNumber": "0000090",
        "quantity": 1,
        "unit": "ST",
        "sortOrder": 0,
        "partOfPricePercent": 99.8
      }
    ]
  },
  "productPrices": [
    {
      "salesUnit": {
        "quantity": 1,
        "unit": "ST"
      },
      "calculateSalesUnits": false,
      "productPriceListRows": [
        {
          "priceList": "300178",
          "numberSalesUnits": 1,
          "price": 100,
          "vatPercent": 25,
          "currency": "DKK"
        }
      ]
    }
  ],
  "productWarehouses": [
    {
      "warehouse": "DWarehouse",
      "inventoryManagementSource": "XLOG"
    }
  ],
  "productSuppliers": [
    {
      "supplierAgreement": "1 Enkelt Blomst",
      "supplierProductNumber": "7777674643",
      "supplierAgreementNumber": 700697
    }
  ]
}

Create Product with main product fields

...