• Venue and event management in the cloud

How Can We Help?


Events: Get Allowed Catalogue Items Without Tree Structure

In this article


Get Allowed Catalogue Items

POST /v2/event/get/allowedCatl

This API returns the list of catalogue items that are allowed to be added in an event.  If the Event contains Venue Bookings, then Catalogue items associated to the corresponding Venues, as defined by Admin, are returned. If the Event does not contain any Venue Bookings, all the Catalogue items are returned.


Parameters

EventNumber    Integer

The number of an Event for which allowed catalogue items are to be fetched.

CatalogueType   String

Name of the Catalogue Type. The allowed values are 'Venues', 'VenueRates', 'Charges', 'PaymentRequest', 'PaymentReceived', 'Credits', 'Bonds', 'EventDetails', 'Food', 'Beverage', 'Inventory', 'Packages'.

TreeStructureResponse Boolean

If "true" then in response the groups are also considered as an item, else group will be considered as a group only.

{
   "EventNumber": 2508,
   "CatalogueType": "Food",
   "TreeStructureResponse": true
}
        
Response:
        {
    "result": [
        {
            "Position": 13,
            "Groups": [
                {
                    "Position": 1,
                    "Groups": [],
                    "Inactive": false,
                    "Items": [
                        {
                            "Formula": {
                                "FormulaReportString": "( Unit Price * Qty ) + 200 ",
                                "Id": 100001261,
                                "CustomFormulaFields": [
                                    {
                                        "FieldValue": "0.00",
                                        "FieldName": "Unit Price",
                                        "FieldType": "Currency"
                                    },
                                    {
                                        "FieldValue": "1",
                                        "FieldName": "Qty",
                                        "FieldType": "Numeric"
                                    }
                                ],
                                "Name": "formula"
                            },
                            "TaxType": {
                                "Id": 27,
                                "Name": "GST - Standard 10%"
                            },
                            "UnitCost": 0,
                            "UnitPrice": 140,
                            "CatalogueType": "Food",
                            "FinancialComments": "",
                            "Id": 100231706,
                            "CreditOrDebit": "Debit",
                            "CatalogueComments": "",
                            "Name": "SeedChilditem3"
                        }
                    ],
                    "Id": 100059731,
                    "Name": "SeedParentSubGroup"
                }
            ],
            "Inactive": false,
            "Items": [
                {
                    "Formula": {
                        "FormulaReportString": "( Unit Price * Qty ) + 200 ",
                        "Id": 100001261,
                        "CustomFormulaFields": [
                            {
                                "FieldValue": "0.00",
                                "FieldName": "Unit Price",
                                "FieldType": "Currency"
                            },
                            {
                                "FieldValue": "1",
                                "FieldName": "Qty",
                                "FieldType": "Numeric"
                            }
                        ],
                        "Name": "formula"
                    },
                    "TaxType": {
                        "Id": 27,
                        "Name": "GST - Standard 10%"
                    },
                    "UnitCost": 0,
                    "UnitPrice": 120,
                    "CatalogueType": "Food",
                    "FinancialComments": "",
                    "Id": 100231704,
                    "CreditOrDebit": "Debit",
                    "CatalogueComments": "Comments",
                    "Name": "SeedChilditem1"
                },
                {
                    "Formula": {
                        "FormulaReportString": "( Unit Price * Qty ) + 200 ",
                        "Id": 100001261,
                        "CustomFormulaFields": [
                            {
                                "FieldValue": "0.00",
                                "FieldName": "Unit Price",
                                "FieldType": "Currency"
                            },
                            {
                                "FieldValue": "1",
                                "FieldName": "Qty",
                                "FieldType": "Numeric"
                            }
                        ],
                        "Name": "formula"
                    },
                    "TaxType": {
                        "Id": 27,
                        "Name": "GST - Standard 10%"
                    },
                    "UnitCost": 0,
                    "UnitPrice": 150,
                    "CatalogueType": "Food",
                    "FinancialComments": "",
                    "Id": 100231705,
                    "CreditOrDebit": "Debit",
                    "CatalogueComments": "",
                    "Name": "SeedChilditem2"
                }
            ],
            "Id": 100059730,
            "Name": "SeedParentGroup"
        },
        {
            "Position": 14,
            "Groups": [],
            "Inactive": false,
            "Items": [
                {
                    "Formula": {
                        "FormulaReportString": "( Unit Price * Qty ) + 20 ",
                        "Id": 100000893,
                        "CustomFormulaFields": [
                            {
                                "FieldValue": "0.00",
                                "FieldName": "Unit Price",
                                "FieldType": "Currency"
                            },
                            {
                                "FieldValue": "1",
                                "FieldName": "Qty",
                                "FieldType": "Numeric"
                            }
                        ],
                        "Name": "Seed TestFormula5"
                    },
                    "TaxType": {
                        "Id": 100006426,
                        "Name": "GST - Exempt"
                    },
                    "UnitCost": 0,
                    "UnitPrice": 40,
                    "CatalogueType": "Food",
                    "FinancialComments": null,
                    "Id": 100172526,
                    "CreditOrDebit": "Debit",
                    "CatalogueComments": "",
                    "Name": "Seed FoodGroupitem6"
                }
            ],
            "Id": 100045386,
            "Name": "Seed FoodGroup6"
        }
    ],
    "success": true
}