Discussions

Ask a Question

Refresh Tokens

We have an SSO using the out of the box ipart and process that is working with 20.2 and was working with 20.3 until the recent August changes to the refresh token. I understand that it is only good for 1 hour and can be invalidated when the cache is cleared. What would cause the cache to be cleared? Also, can you use the refresh token more than once?

'https://yourorgsite.com/api/LegacyOrder/_execute' Invoice - what to provide for legacyOrderStageInvoiceProcessingData?

Dear all, could someone point me to the correct object definition please? https://developer.imis.com/reference/executesmlegacyorder#invoice { "$type": "Asi.Soa.Core.DataContracts.GenericExecuteRequest, Asi.Contracts", "OperationName": "Invoice", "EntityTypeName": "LegacyOrder", "Parameters": { "$type": "System.Collections.ObjectModel.Collection`1[[System.Object, mscorlib]], mscorlib", "$values": [ { "$type": "Asi.Soa.Commerce.DataContracts.Order.LegacyOrderStageInvoiceProcessingData", "$value": "legacyOrderStageInvoiceProcessingData Value" } ] }, "ParameterTypeName": { "$type": "System.Collections.ObjectModel.Collection`1[[System.String, mscorlib]], mscorlib", "$values": [ "Asi.Soa.Commerce.DataContracts.Order.LegacyOrderStageInvoiceProcessingData" ] }, "UseJson": false } What needs to go into the legacyOrderStageInvoiceProcessingData object? Any help is much appreciated. Thank you! Alexander

membership trends over time

I believe there are no reports in the system where you can get information on what your membership numbers have done over time. How on earth can you run a membership system if you can't see trends. Am I missing something??

ComboOrder for product order and update UD field

Hello! Anyone knows how to update the UD fields for orderlines when creating order using ComboOrder?

REST API Public User with Access to Info

Hello, I'm concerned about this situation: I just created a Public User in Imis and didn't change any permission to it. I found that using the following script from the browser console, this new Public User (after I logged in with his credentials in Rise) could do many listings like the one below. Could you help me understand why ? I need to let him just read information, but I'd like to know how to block Public Users from reading information. jQuery.ajax("https://mytest-imis123.com/imis/api/Party", { type : "get", contentType: "application/json", headers: {"RequestVerificationToken": document.getElementById("__RequestVerificationToken").value}, success: function(data){console.log(data);} }) Thank you !

I Need Help On PersonData Update Operations

I tried to use the minimum data for testing the update operations on "PersonData". I am using REST API. I have tried all possible ways that I can think of. But I got no result. In the example below, I tried to update the "InformalName". This end point was used: https://{baseURL}/api/Party/{PartyId} Method used: client = new HttpClient(); client.PutAsync(uri, httpContent) This was sent to the server: { "$type": "Asi.Soa.Membership.DataContracts.PersonData, Asi.Soa.Membership.Contracts", "PersonName": { "$type": "Asi.Soa.Membership.DataContracts.PersonNameData, Asi.Soa.Membership.Contracts", "FirstName": "TestFirstName", "InformalName": "William", "LastName": "TestLastName", "NamePrefix": "Mr.", "FullName": "Mr. TestFirstName TestLastName" }, "SortIsOverridden": false, "PartyId": "9413326", "Id": "9413326" } Unable to update the target party data! StatusCode: 400, ReasonPhrase: 'Validation error', Version: 1.1, Content: System.Net.Http.StreamContent, Headers: { Pragma: no-cache Cache-Control: no-cache Server: Microsoft-IIS/10.0 Server: Microsoft-IIS/10.0 X-AspNet-Version: 4.0.30319 X-Powered-By: ASP.NET X-Powered-By: ASP.NET X-Frame-Options: sameorigin Content-Security-Policy: frame-ancestors 'self' Strict-Transport-Security: max-age=31536000 Date: Wed, 17 Nov 2021 20:47:42 GMT Content-Length: 583 Content-Type: text/plain; charset=utf-8 Expires: -1 }

IQA List in Directory API 2017

Hi all, I am trying to return a list of IQA's in a particular directory and am just wondering what API I should be using to return the IQA list? Cheers

iMIS Payment Token setup for Recurring Payments.

I am working on setting a payment token, however as soon as I add the PaymentToken data I get a 400 Bad Response. I believe AutoPay is setup with the account as when I query api/AutoPayAccount I get data returned. iMIS version: 20.2.66.1216 iMIS URL: slswa.imiscloud.com `"Payments":{ "$type":"Asi.Soa.Commerce.DataContracts.RemittanceDataCollection, Asi.Contracts", "$values":[ { "$type":"Asi.Soa.Commerce.DataContracts.RemittanceData, Asi.Contracts", "Amount":{ "$type":"Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts", "Amount":0.01, "Currency":{ "$type":"Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts", "CurrencyCode":"AUD", "DecimalPositions":2, "ExtensionData":{ "$type":"System.Runtime.Serialization.ExtensionDataObject, System.Runtime.Serialization" } }, "IsAmountDefined":true }, "PaymentMethod":{ "$type":"Asi.Soa.Commerce.DataContracts.PaymentMethodData, Asi.Contracts", "PaymentMethodId":"CASH", "PaymentType":"CASH", "GatewayAccountId":"" }, "PaymentToken":{ "$type":"Asi.Soa.Commerce.DataContracts.AutoPayAccountData, Asi.Contracts", "AccountType":"Undefined", "IsAvailableToDisable":false, "IsDuplicateToken":false, "Payer":{ "$type":"Asi.Soa.Commerce.DataContracts.AccountPayerInformationData, Asi.Contracts", "PayerId":"240199" }, "PaymentMethodIsReadOnly":false, "PaymentTokenId": "1234123", "Status": "active" }, "PayorParty":{ "$type":"Asi.Soa.Commerce.DataContracts.CustomerPartyData, Asi.Contracts", "PartyId":"240199" }, "ReferenceNumber":"240199" } ] }`

Alternative to EntityManger FindSingle function

We are upgrading a iMIS 2015 Q4 (ver. 20.2.26.3109) site to iMIS 2017 (ver. 20.2.66.1198). Some custom panels that were created no longer work in 2017. The code --------------------- var em = new Asi.Soa.ClientServices.EntityManager("Manager"); //Set TnC and PP Accepted for individual var p_info = new GenericEntityData { EntityTypeName = "FF_COMPANY_INFO" }; var fnd = new CriteriaData("PartyId", OperationData.Equal, ContactID); QueryData q = new QueryData(); q.EntityTypeName = "FF_COMPANY_INFO"; q.Criteria.Add(fnd); p_info = (Asi.Soa.Core.DataContracts.GenericEntityData)em.FindSingle(q); p_info["TNCS_ACCEPTED"] = "True"; p_info["PP_ACCEPTED"] = "True"; ------------------------------------- The FindSingle function has been deprecated for the Asi.Soa.ClientServices.EntityManager object, and we do not know what is used to replace it. The Find function is not compatible with the Asi.Soa.Core.DataContracts.GenericEntityData object, which the FindSingle result was in 2015. Ant ideas how this code can be altered to work in 2017?

Get current cart

Hi, We have some cart api calls and recently ran into issues where more than one cart is returned. In this particular example, it was an orphaned cart from over a month ago that was the extra, so we know we can filter out older carts based on date updated in our calls. However, is there a more accurate way to tell which cart is the one currently being referenced in our user session when we are logged in to our website? We are mostly asking this question to ensure we are getting the correct cart, especially if you have multiple carts in the same day. Kind regards, Julie