These docs are for v20.3.44. Click to read the latest docs for v20.3.186.

Discussions

Ask a Question
Back to All

LegacyBIlling endpoint Parameters

Hello I am trying to run some individual rebills through the api, and I've read this post, https://developer.imis.com/discuss/608f556d40271e0038e8bb3c as well as a few others that are related. However I cant seem to get the parameters correct, and I keep getting a 400 bad request with the following body,

{
"$type": "System.Web.Http.HttpError, System.Web.Http",
"Message": "LegacyBilling does not support these Execute parameters"
}

Here is the url I am POSTING to
https://client.imiscloud.com/iMISService/api/LegacyBilling/_execute
and here is the post body,

{
"$type": "Asi.Soa.Core.DataContracts.GenericExecuteRequest, Asi.Contracts",
"OperationName": "RunIndividual",
"EntityTypeName": "LegacyBilling",
"Parameters": {
"$type": "System.Collections.ObjectModel.Collection1[[System.Object, mscorlib]], mscorlib", "$values": [ { "$type": "Asi.Soa.Commerce.DataContracts.LegacyBillingData, Asi.Contracts", "IsRebill": true, "IsRenewal": false, "AdditionalOption":{ "$type":"Asi.Soa.Commerce.DataContracts.BillingAdditionalOptionsData, Asi.Contracts", "$values":[] }, "BillingCycleId": "POC Dues", "IndividualBillingPartyId": "29547", "BillingRunName" : "rebill", "RunDate" : "2021-06-23T00:00:00+01:00", "EffectiveDate" : "2021-06-1T00:00:00+01:00", "BeginRebillDate" : "2021-06-1T00:00:00+01:00", "EndRebillDate" : "2022-05-31T00:00:00+01:00", "ChapterCode":"", "BatchId": "210623-1" } ] }, "UseJson":false, "ParameterTypeNames":{ "$type":"System.Collections.ObjectModel.Collection1[[System.String, mscorlib]], mscorlib",
"$values":[
"Asi.Soa.Commerce.DataContracts.LegacyBillingData"
]
},
"RequestCulture": ""
}

I've tried various parameters and mix and matches, with no luck. Can anyone else see what I am missing? I put the swagger json in a parser as well, and as far as I can tell I have all the required elements.

imis cloud version, #20.3.98.52366
using the manager account