Versions Compared

Key

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

...

CREATE (POST) requests

Create Inventory :

VARIABLES:

...

METHOD:

createInventory

NOTE:

  • method returns the Inventory that has been created, kindly check the end of the page for the available fields on Inventory model

  • some categories will require model ( foriegn_id) field

  • some categories also have a default value for 'Cost of Sales Inc’

more information to this is added at the end of the page

...

category_id -  required field ( check possible values at the end of this post)

...

Code Block
{
    "data": {
        "InventoryPricings": [
            {
                "id": "24399",
                "inventory_id": "29505",
                "supplier_id": "293",
                "code": "ET Solar ET-M572190",
                "unit_price": 2,
                "markup_value": 12,
                "markup_is_percentage": "1",
                "unit_of_measure_string": "/ kW Solar PV",
                "unit_of_measure": "2",
                "item_variation_suffix": "",
                "spare_qty": 0,
                "quantity": 0
            },
            {
                "id": "15459",
                "inventory_id": "29505",
                "supplier_id": null,
                "code": "ET-M572190",
                "unit_price": 200,
                "markup_value": 12,
                "markup_is_percentage": "1",
                "unit_of_measure_string": "/ item",
                "unit_of_measure": "0",
                "item_variation_suffix": "",
                "spare_qty": 0,
                "quantity": 0
            }
        ]
    }
}


IMPORTANT DATA :

INVENTORY MODEL:

Image AddedImage Added

CATEGORY VALUES 


1 Mounting

...

23 Battery Isolator

24 Energy Management

25 Discount

26 Contractor install kits

27 Safety & access equipment

CATEGORIES THAT REQUIRE BRAND AND MODEL:

...

13 Miscellaneous

6 Monitoring

1 Mounting

CATEGORIES THAT THE DEFAULT VALUE FOR COST OF SALES IS FALSE:

9 Labour

10 Difficulty surcharges

11 Travel/Freight

12 Administrative

13 Miscellaneous

15 Warranty

18 Subsidy

25 Discount