list_subitems


GET /list_subitems

To get the TOTAL COUNT of list of subitems for search criteria.

Use this method FIRST to determine how many total records there are for the given criteria.

After you call this method, then call the method below, and pass the required paging parameters.

/list_subitems?token=XXXXX

field description
token Credentials provided by Powersoft that allow access to the API

Returns

			{
				"api_response": {
					"response_code": "1",
					"response_msg": "OK",
					"response_id": ""
				},
				"total_count_list_subitems": 63
			}
		

GET /list_subitems

To get a list of all subitems.

/list_subitems?token=XXXXX&page_number=1&page_size=10

field description
token Credentials provided by Powersoft that allow access to the API
page_number The page number in the entire list. eg Page 1
page_size The number of rows to return. eg 10 rows

Returns

			{
            "api_response": {
                "response_code": "1",
                "response_msg": "OK",
                "response_id": ""
            },
            "list_subitems": [
                {
                    "parent_item_code_365": "WINES-06",
                    "parent_item_name": "1 EXQUISITE LEYDA SAUVIGNON BLANC A",
                    "subitem_code_365": "WINE-GLASS",
                    "subitem_name": "GLASS OF WINE",
                    "quantity": 3.00,
                    "with_charge": false,
                    "print_on_invoice": false,
                    "show_in_modifiers": true,
                    "allow_remove": true, 
                    "vat_code_365": "019",
                    "vat_percent": 19.0000,
                    "price_excl_1": 4.2000,
                    "price_incl_1": 5.0000,
                    "price_excl_2": 0.0000,
                    "price_incl_2": 0.0000,
                    "price_excl_3": 0.0000,
                    "price_incl_3": 0.0000,
                    "price_excl_4": 0.0000,
                    "price_incl_4": 0.0000,
                    "price_excl_5": 0.0000,
                    "price_incl_5": 0.0000,
                    "price_excl_6": 0.0000,
                    "price_incl_6": 0.0000,
                    "price_excl_7": 0.0000,
                    "price_incl_7": 0.0000,
                    "price_excl_8": 0.0000,
                    "price_incl_8": 0.0000,
                    "price_excl_9": 0.0000,
                    "price_incl_9": 0.0000,
                    "price_excl_10": 0.0000,
                    "price_incl_10": 0.0000
                },
                {
                    "parent_item_code_365": "100NEWITEM",
                    "parent_item_name": "100 NEW ITEM",
                    "subitem_code_365": "103-G006-031-7/8",
                    "subitem_name": "non storable test",
                    "quantity": 1.00,
                    "with_charge": false,
                    "print_on_invoice": false,
                    "show_in_modifiers": true,
                    "allow_remove": true,
                    "vat_code_365": "019",
                    "vat_percent": 19.0000,
                    "price_excl_1": 30.1700,
                    "price_incl_1": 35.9000,
                    "price_excl_2": 21.0000,
                    "price_incl_2": 24.9900,
                    "price_excl_3": 15.1300,
                    "price_incl_3": 18.0000,
                    "price_excl_4": 27.1500,
                    "price_incl_4": 32.3100,
                    "price_excl_5": 0.0000,
                    "price_incl_5": 0.0000,
                    "price_excl_6": 0.0000,
                    "price_incl_6": 0.0000,
                    "price_excl_7": 13.9900,
                    "price_incl_7": 16.6500,
                    "price_excl_8": 0.0000,
                    "price_incl_8": 0.0000,
                    "price_excl_9": 0.0000,
                    "price_incl_9": 0.0000,
                    "price_excl_10": 39.4900,
                    "price_incl_10": 46.9900
                }
            ]
         }
		

GET /list_subitems

To get a list of subitems for an item.

/list_subitems?token=XXXXX&item_code_365=MAINITEM

field description
token Credentials provided by Powersoft that allow access to the API
item_code_365 The 365 item code

Returns

            {
            "api_response": {
                "response_code": "1",
                "response_msg": "OK",
                "response_id": ""
            },
            "list_subitems": [
                {
                    "parent_item_code_365": "MAINITEM",
                    "parent_item_name": "MAIN ITEM",
                    "subitem_code_365": "CHILDITEM",
                    "subitem_name": "CHILD ITEM",
                    "quantity": 4.00,
                    "with_charge": false,
                    "print_on_invoice": false,
                    "show_in_modifiers": true,
                    "allow_remove": true,
                    "vat_code_365": "019",
                    "vat_percent": 19.0000,
                    "price_excl_1": 0.0000,
                    "price_incl_1": 0.0000,
                    "price_excl_2": 0.0000,
                    "price_incl_2": 0.0000,
                    "price_excl_3": 0.0000,
                    "price_incl_3": 0.0000,
                    "price_excl_4": 0.0000,
                    "price_incl_4": 0.0000,
                    "price_excl_5": 0.0000,
                    "price_incl_5": 0.0000,
                    "price_excl_6": 0.0000,
                    "price_incl_6": 0.0000,
                    "price_excl_7": 0.0000,
                    "price_incl_7": 0.0000,
                    "price_excl_8": 0.0000,
                    "price_incl_8": 0.0000,
                    "price_excl_9": 0.0000,
                    "price_incl_9": 0.0000,
                    "price_excl_10": 0.0000,
                    "price_incl_10": 0.0000
                }
            ]
        }