Discussions

Ask a Question

Using IMIS forms calls REST what's the best practice for error handling

Using IMIS forms calls REST what's the best practice recommended if the rest call fails? Support believed the recommendation is that developers should be using the Circuit Breaker pattern with API calls, i.e. they give up after x failures and do not spam the API however this would result in missing data.
ANSWERED

Possible to convert a user from public to full user via REST ?

Hi. Saw this old question from two years ago: <https://developer.imis.com/discuss/60259a3cf5e149002512a1f4> Hoping things have changed...is it now possible!?
ANSWERED

Possible to convert a user from public to full user via REST ?

Hi. Saw this old question from two years ago: <https://developer.imis.com/discuss/60259a3cf5e149002512a1f4> Hoping things have changed...is it now possible!?
ANSWERED

ComboOrder object for Cart Post API call

For the cart data post data the below shown properties are required in the post object: { "$type": "Asi.Soa.Commerce.DataContracts.CartData, Asi.Contracts", "CartId": "4fa583e9-4adf-4180-8f82-226fa87a5ec1", "UserId": "12838", "ComboOrder": { ... }, "UpdateInformation": { ... } } Inside the cart object ComboOrder object is also required, and ComboOrder contains large number of different properties, so is there any article/example available which shows how to populate the ComboOrder object for Cart?
ANSWERED

For latest collection of endpoints used to access the iMIS RESTful interface through POSTMAN

I am using the endpoints collections which is provided here - <https://github.com/Advsol/iMISRESTCollection>. The version is 20.3.44. But, it seems like the collection is an old version of the end points. So, can anyone please provide the latest collection of end points collection for using it through POSTMAN?

Processing Cash Payment after posting Batch

I'll explain my scenario here. What I'm looking to do is apply a payment to the batch and only apply the payment to the member's dues balance if the batch has been posted. I created a batch using the /api/BatchSummary endpoint creating an empty batch. Then in my /api/ComboOrder call I specify a cash amount in payments and list my newly created batch in the AdditionalAttributes section. The body of the ComboOrder goes like this. { "$type": "Asi.Soa.Commerce.DataContracts.ComboOrderData, Asi.Contracts", "Currency": { "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts", "CurrencyCode": "USD", "DecimalPositions": 2, "ExtensionData": { "$type": "System.Runtime.Serialization.ExtensionDataObject, System.Runtime.Serialization" } }, "Order":{}, "Invoices": { "$type": "Asi.Soa.Commerce.DataContracts.InvoiceSummaryDataCollection, Asi.Contracts", "$values": \[] // InvoiceSummary Results go here. }, "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, //Payment amount "Currency": { "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts", "CurrencyCode": "USD", "DecimalPositions": 2, "ExtensionData": { "$type": "System.Runtime.Serialization.ExtensionDataObject, System.Runtime.Serialization" } }, "IsAmountDefined": true }, "PaymentToken": "", "PaymentTokenSummary": "", "PaymentMethod": { "$type": "Asi.Soa.Commerce.DataContracts.PaymentMethodData, Asi.Contracts", "Name": "Main Checking Account", "PaymentMethodId": "CASH", "PaymentType": "Cash", "Message": "Cash" }, "PayorParty": { "$type": "Asi.Soa.Commerce.DataContracts.CustomerPartyData, Asi.Contracts", "PartyId": "" // ID }, "ReferenceNumber": "", // Comment Check number "Message": "Cash", "Note":"Sequence Number Goes Here" }] }, "AdditionalAttributes": { "$type": "Asi.Soa.Core.DataContracts.GenericPropertyDataCollection, Asi.Contracts", "$values": [ { "$type": "Asi.Soa.Core.DataContracts.GenericPropertyData, Asi.Contracts", "Name": "BatchId", "Value": $scope.DataStore.BatchNum } ] } } Once the POST ComboOrder has been called it inserts the member payment to the batch like I expect it would but it also marks the payment in the Dues balance on the member's record. 1. Is there a way to apply the payment only to the batch in ComboOrder? OR 2. Can I add payment entries into a Batch using one of the Batch endpoints? Thanks, appreciate any advice.
ANSWERED

Updating CsContact.StateSenate/StateHouse in the REST API?

Wondering if this is possible - I did a GET on /api/CsContact?EntityId={id}, I modified the StateHouse value: ```json { "$type": "Asi.Soa.Core.DataContracts.GenericPropertyData, Asi.Contracts", "Name": "StateSenate", "Value": "025" }, ``` and then PUT the payload back, but my modification to that field did not persist. Is it possible to modify that field through the API/CsContact endpoint? This is 20.3.136.136.
ANSWERED

Can you lock a user account in the REST API?

Hi - I know we're able to unlock an account in the API, but wondering if it's possible to lock an account? Thanks!
ANSWERED

REST ContentItem error 20.3.136.136

Hello, Developing REST logic which works in 2017 fine /api/ContentItem?ContentKey=${contentKey}&ContentItemKey=${contentItemKey}\` this helps get "Settings" (entered in ipart configure) In cloud (20.3.136.136) test of same logic get error {$type: 'System.Web.Http.HttpError, System.Web.Http', Message: 'Authorization has been denied for this request.'} (had a good bearer token - other API calls worked) Looking at the documentation 20.3.135 appears API call has changed from 2017, which probably creating this error. Cloud uses only one parameter <https://yourorgsite.com/api/ContentItem/{ContentItemId}> Reviewed the SDK documentation and could not see how to get the ContentItemId. also, while investigating tried this API to get a list of contentItems, but got 404 error? <https://demoaisp21.imiscloud.com/api/ContentItem> get 404 - Not found ASI tech support has reported this as a defect - <https://support.imis.com/hc/en-us/requests/236127> Is there example and/or information on how to get the configure settings in cloud (assuming "Returns a ContentItem by id"?). Need to run the ipart display page based on configure settings. Thanks Nick
ANSWERED

Deleting an address for a user with addressId

Hi, We're trying to delete an address for a user with the addressId we get from the GET /Party endpoint. We're trying to use this endpoint in particular - [https://{{URL}}/api/Address/:AddressId] with the DELETE operation. We're getting a 401 Unauthorized error when trying to delete with a RequestVerificationToken and a 500 internal server error when trying to delete with the bearer token. Is there anything we need to be aware of when deleting addresses using REST? Thanks, Ram Devarapu