HomeGuidesAPI ReferenceChangelogDiscussions
GuidesiMIS ProfessionaliMIS EnterpriseClient SupportLog In
Discussions

Discussions

Ask a Question
Back to All

Create Event Registration options with Pricing Group via REST API

Hello,

We are looking to creating Events via the iMIS REST API, which would include setting up different Registration options with various Pricing Group information. For example, having different pricing policies for members and non-members (default) or even having custom Pricing Group defined.

From RiSE website there are always two Pricing Group out of the box on any event: Default and Members

When we query the ItemPrice endpoint it always returns only one line, for example: api/ItemPrice?ItemId=ANNCONF/1DAY

{
    "$type": "Asi.Soa.Core.DataContracts.PagedResult`1[[Asi.Soa.Commerce.DataContracts.ItemPriceData, Asi.Contracts]], Asi.Contracts",
    "Items": {
        "$type": "System.Collections.Generic.List`1[[Asi.Soa.Commerce.DataContracts.ItemPriceData, Asi.Contracts]], mscorlib",
        "$values": [
            {
                "$type": "Asi.Soa.Commerce.DataContracts.ItemPriceData, Asi.Contracts",
                "ItemPriceId": "ANNCONF/1DAY:Standard:00000000-0000-0000-0000-000000000000:USD",
                "Item": {
                    "$type": "Asi.Soa.Commerce.DataContracts.ItemSummaryData, Asi.Contracts",
                    "ItemId": "ANNCONF/1DAY"
                },
                "PriceSheet": {
                    "$type": "Asi.Soa.Commerce.DataContracts.PriceSheetSummaryData, Asi.Contracts",
                    "Description": "",
                    "Name": "",
                    "PriceSheetId": "Standard"
                },
                "Currency": {
                    "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                    "CurrencyCode": "USD",
                    "DecimalPositions": 2
                },
                "SalesUom": {
                    "$type": "Asi.Soa.Commerce.DataContracts.UomSummaryData, Asi.Contracts",
                    "UomId": "00000000-0000-0000-0000-000000000000",
                    "Name": "",
                    "Description": ""
                },
                "DefaultPrice": {
                    "$type": "Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts",
                    "Amount": 200.0000,
                    "Currency": {
                        "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                        "CurrencyCode": "USD",
                        "DecimalPositions": 2
                    }
                },
                "IncomeAccount": {
                    "$type": "Asi.Soa.Commerce.DataContracts.FinancialAccountData, Asi.Contracts",
                    "GLAccount": {
                        "$type": "Asi.Soa.Commerce.DataContracts.GLAccountData, Asi.Contracts",
                        "GLAccountCode": ""
                    }
                },
                "SpecialPriceRules": {
                    "$type": "Asi.Soa.Commerce.DataContracts.SpecialPriceRuleDataCollection, Asi.Contracts",
                    "$values": [
                        {
                            "$type": "Asi.Soa.Commerce.DataContracts.SpecialPriceRuleData, Asi.Contracts",
                            "SpecialPriceRuleId": "NM:EarlyFee",
                            "Name": "NM:EarlyFee",
                            "Description": "Non-Member",
                            "EndDate": "2023-03-01T00:00:00",
                            "Amount": {
                                "$type": "Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts",
                                "Amount": 175.0000,
                                "Currency": {
                                    "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                                    "CurrencyCode": "USD",
                                    "DecimalPositions": 2
                                }
                            }
                        },
                        {
                            "$type": "Asi.Soa.Commerce.DataContracts.SpecialPriceRuleData, Asi.Contracts",
                            "SpecialPriceRuleId": "NM:LateFee",
                            "Name": "NM:LateFee",
                            "Description": "Non-Member",
                            "BeginDate": "2023-05-03T00:00:00",
                            "EndDate": "0001-01-01T00:00:00",
                            "Amount": {
                                "$type": "Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts",
                                "Amount": 250.0000,
                                "Currency": {
                                    "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                                    "CurrencyCode": "USD",
                                    "DecimalPositions": 2
                                }
                            }
                        },
                        {
                            "$type": "Asi.Soa.Commerce.DataContracts.Pricing.LegacyPriceRuleData, Asi.Contracts",
                            "RuleCustomerType": "NM"
                        }
                    ]
                }
            }
        ]
    },
    "Offset": 0,
    "Limit": 100,
    "Count": 1,
    "TotalCount": 0,
    "NextPageLink": null,
    "HasNext": false,
    "NextOffset": 0
}

This looks similar to a question asked before: Create Event RegistrationOptions with the API

Is there additional information available on this subject? Or should we contact [email protected] about an api enhancement?

Thank you for your consideration.