Discussions
Include Cancellation Fee when creating Event through API
I created a cancellation Fee using the iMIS interface, I then made a get request to pull the event to see how that cancellation fee is defined in the object. This is what I found
"AddOnFees": {
"$type": "Asi.Soa.Events.DataContracts.EventAddOnFeeDataCollection, Asi.Contracts",
"$values": [
{
"$type": "Asi.Soa.Commerce.DataContracts.AddOnFeeData, Asi.Contracts",
"AddOnFeeId": "{{EventID}}/_CANCEL",
"Name": "Cancellation fee",
"Description": "",
"AddOnItem": {
"$type": "Asi.Soa.Commerce.DataContracts.ItemSummaryData, Asi.Contracts",
"Description": "",
"ItemClass": {
"$type": "Asi.Soa.Commerce.DataContracts.ItemClassSummaryData, Asi.Contracts",
"ItemClassId": "MEETING",
"Name": "Event Function"
},
"ItemCode": "{{EventID}}/_CANCEL",
"ItemId": "{{EventID}}/_CANCEL",
"Name": "Cancellation fee"
}
}
]
},
so I added that to my payload when creating Event but it still does not create that cancellation fee. Is there a subsequent call I need to make to have this created once the event is created?
Hello Brent,
If you are modifying an existing event, remove the key "AddOnFeeId" within your payload in order to create cancellation items. It will be generated for you.
If you are creating a new event, remove the key "EventFunctionId" and the key "AddOnFeeId".
Thank you Shelby, I can't believe that all along that just removing that one key would be the answer, but it was.
Hello Shelby, I am not sure if you know why this is or not but once I got the Cancellation fee working the "Main" registration option pricing is no longer added. Is there a reason why it is no longer added. Workflow I have is to create the Event with one call and then add this pricing after the fact with separate calls. It's the only way I could get that working originally but that is no longer working anymore now that the cancellation fee is working.
NVM, looks like after I was Creating the event the EventID i was getting back was for the cancellation and thus it was creating itemPrices for the cancellation instead of the Main. I have corrected this and it is now working. Thank you again.
ο»Ώ