Discussions
TaskQueue endpoints not functioning
Good afternoon,
It appears that the Task Queue section of the API is not currently functional. Can someone please confirm?
Thanks,
Korey
Posted by Korey Dickens about 16 hours ago
Cancel Renewal via API
Hello,
We're trying to allow members to change their member type or category using a custom form and would then like to rebill them using the API. However because they may need a new billing cycle, I need to cancel the renewal or reverse their invoice first. I've tried a few of the reversal operations on api/Invoice/\_execute but all the ones I've tried return an "OperationNotAvailable" error. Is there a way to use the same functionality as the Cancel Renewal button on the member profile through the API?
Thanks!
Posted by null 2 days ago
REST API flowdown
Hello,
We have an integration to update iMIS using the REST API.
It is all working well, except for one issue: when the CO_ID for an office changes information flows down from the CO_ID (the association) to the office (e.g. phone, fax and address).
The office is a company in iMIS and linked to an association a company in iMIS.
Originally, we had a problem with the company name flowing down to the office, but were able to resolve that with the FlowDownInstituteName set to false, which addressed the issue.
It does not appear FlowDownInstituteName stops other flows like we are getting with phone, fax and address.
Are their other REST API or iMIS Set-up options to prevent this flow when the CO_ID changes?
Thanks Nick
EMS version 20.3.180.315
Posted by Nick Srdarev 4 days ago
Public user API call to /api/Subscription/~Id|ItemId returns a 403
I'm getting a 403 (Forbidden) response trying to call the /Subscription endpoint as a public user. Works for a full user. The root call to /Subscription works (doesn't error) but doesn't return anything. I assume this is by design? A public user can't call that endpoint to get billing details - and subsequently we can't update it (as the public user)? Makes sense, just looking for confirmation, I can't seem to find which endpoints work for which security levels. Thanks.
Posted by Jake Bound 4 days ago
Creating Pricing Groups
Making a POST call to /api/PriceSheetGroup/ returns back a required PriceSheetId
If I attempt to POST to /api/PriceSheet/ I get back a 500 error. Below is a sample body request.
```json
{
"$type": "Asi.Soa.Commerce.DataContracts.PriceSheetData, Asi.Contracts",
"PriceSheetGroups": {
"$type": "Asi.Soa.Commerce.DataContracts.PriceSheetGroupDataCollection, Asi.Contracts",
"$values": [
{
"$type": "Asi.Soa.Commerce.DataContracts.PriceSheetGroupData, Asi.Contracts",
"Group": {
"$type": "Asi.Soa.Membership.DataContracts.GroupSummaryData, Asi.Contracts",
"GroupId": "CHAPT/EAST"
}
}
]
},
"Description": "Product grouping price",
"Name": "Test Pricing 3",
"PriceCustomerType": "3"
}
```
Works fine if I do a PUT with PriceSheetId but can't seem to create a new price sheet. Any special trick to this?
Tested on 20.3.180.315
Posted by Nicholas B Wimsatt 9 days ago
JSON payload needed to insert data into EventProductExtension
Hello everyone,
I'm feeling my way around here- looking to insert data into the EventProductExtension table with the API so I'm looking for any assistance with the JSON payload / syntax that can be provided.
Similarly, I have a custom table (vBoSpecialActivities) I need to insert data into - any insight into that syntax - or maybe it's similar - would be apprecaited!
Thanks so much for pointing me in the right direction here!
\-Robert
Posted by Dr. Robert Spangler 9 days ago
Generate invoices parameters with iMIS REST API
Looking at the [Executes a LegacyOrder operation](https://developer.imis.com/reference/executelegacyorder) endpoint we can use the [Invoice](https://developer.imis.com/reference/executelegacyorder#invoice) operation.
What are the different parameters available there? Looking at iMIS RiSE website we found a couple of options:
[block:image]
{
"images": [
{
"image": [
"https://files.readme.io/018f98b-image.png",
null,
"Generate invoices"
],
"align": "left"
}
]
}
[/block]
For example:
- Send options: Email, Print, or Do not send
- Print the template attachment only
How do we set those options with the iMIS REST API?
Kinds regards,
Molivouth.
Posted by Molivouth Boulom 9 days ago
POST to panel: Unable to cast object of type
From the documentation: <https://developer.imis.com/reference/postpanelsourcedata-1>
I am trying to post to my panel, I took the "$type" from either the documentation or from the GET request returned from my panel. I have tried a few different variations and still get a similar error:
System.InvalidCastException: Unable to cast object of type 'Asi.Soa.Core.DataContracts.GenericExecuteRequest' to type 'Asi.Soa.Core.DataContracts.GenericEntityData'.
at Asi.Services.Core.EntityServiceToCommonServiceAdapter`1.Add(Object dataContract)
at Asi.Services.Core.EntityServiceToCommonServiceAdapter`1.AddAsync(Object dataContract)
at Castle.Proxies.Invocations.ICommonServiceAsync_AddAsync.InvokeMethodOnTarget()
at Castle.DynamicProxy.AbstractInvocation.Proceed()
at Asi.Shared.Aspects.AsyncInterceptor.\<>c**DisplayClass2_0\`1.<Intercept2Async>b**0()
at Asi.Shared.Aspects.CacheAspect.<InterceptAsync>d**5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Asi.Services.Core.Interceptors.CommonSecurityAspect.<InterceptAsync>d**1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Asi.Shared.Aspects.PerformanceAspect.<InterceptAsync>d**3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Asi.ImisService.Controllers.CommonServiceController.<Post>d**14.MoveNext()
<br />
<br />
<br />
Next my request:
<br />
const settings = {
async: true,
crossDomain: true,
url: 'https\://.ca/api/Comments',
method: 'POST',
headers: {
accept: 'application/json',
'content-type': 'application/json',
"RequestVerificationToken": document.getElementById("\_\_RequestVerificationToken").value
},
processData: false,
data: JSON.stringify({
"$type": "Asi.Soa.Core.DataContracts.GenericExecuteRequest, Asi.Contracts",
"Properties":
{
"$type": "Asi.Soa.Core.DataContracts.GenericEntityData, Asi.Contracts",
```
"$values":
[{
"$type": "Asi.Soa.Core.DataContracts.IdentityData, Asi.Contracts",
"Name": "ID",
"Value": "79887"
},
{
"$type": "Asi.Soa.Core.DataContracts.GenericPropertyData, Asi.Contracts",
"Name": "DateTime",
"Value": "2012-06-12T16:16:29.013"
},
{
"$type": "Asi.Soa.Core.DataContracts.GenericPropertyData, Asi.Contracts",
"Name": "Body",
"Value": "The addendum to the article is that the Supreme Court of Canada has granted leave to appeal the Federal Court of Appeal’s."
},
{
"$type": "Asi.Soa.Core.DataContracts.GenericPropertyData, Asi.Contracts",
"Name": "Link",
"Value": "www.google.ca/en/newsletters/canadian_tax_focus/2012/2/120508"
},
{
"$type": "Asi.Soa.Core.DataContracts.GenericPropertyData, Asi.Contracts",
"Name": "SubmittedID",
"Value": "79887"
},
{
"$type": "Asi.Soa.Core.DataContracts.GenericPropertyData, Asi.Contracts",
"Name": "User",
"Value": "Adriana Escalante"
}]
}
```
})}
jQuery.ajax(settings).done(function (response) {
console.log(response);
});
<br />
Thank you in advance for your help.
Regards,
Adriana E
Posted by null 24 days ago
Cancelling orders with iMIS REST API
Is it possible to [cancel order](https://help.imis.com/enterprise/features/commerce/orders/cancelling_orders.htm) using iMIS REST API?
Would that operation be missing from [LegacyOrder](https://developer.imis.com/reference/executelegacyorder) endpoint?
Please advise. Thank you.
Posted by Molivouth Boulom about 1 month ago
Arbitrary Cart Charges
Hello,
We are in need of applying a surcharge to the cart dependant on a few things which we will calculate. There seems to be no path within iMIS to allow us to charge a user a dynamic, not predefined cost.
I have found a few old conversations asking this: <https://developer.imis.com/v20.3.44/discuss/604fa3fa0b7ce000183a3c13>
According to this discussion, the solution of updating the comboorder and adding "IsUnitPriceOverridden": true, to the line item works, but I don't think it actually does.
If you try to update a members cart using this method, and try to checkout, it results in the error "Insufficient permissions to override item price"
This makes sense, we wouldn't want members being able to manually set prices to something _lower_ in their cart and checkout. I am just confused why this is being offered as the solution, the only way to have the cart accept an order like this is to be logged in as a staff member, which defeats the purpose as they could just override the price manually anyway.
I feel like a solution could be to allow users to checkout with overridden prices **only if** the manual price is higher than the items default price (fixes the surcharge use case perfectly)
I am wondering what a solution is to adding dynamic charges to a users cart?
Thankyou,
Posted by Cody Partington about 1 month ago