User Profile
Stefan Hult
49
Posts
1
Kudos
1
Solution
05-03-2024
14:38
Hi Refering to the "Subscription endpoint does not work with tenant id" post. The subscription does work now, but not as you expect. When using the Tenant id on this endpoint, it seams to work, but it is separated from the data located to the customer. If you use the GET with the "old" token method the subscription shows up. The token method, give you nothing. If you use the POST, the subscription will be posted, and is visible with the token method. But not with the tenant method. And further more, the subscription created with the tenant method don't work, no webhook is sent.
... View more
11-12-2023
17:35
Hi During December we have noticed several invoices with wrong status. We use the API to add invoices and release them. We also use the API to add payments and release them. We now have four invoices with the same error. As you can see, the status of the invoice is Open, but the payment is closed. We raised this with the support team who said that it is an error linked to the API. This look like a bug that you have to control so it does't grow, for the reason that it is not possible to adjust the error in the GUI, it must be handled by Visma staff. The payment is created: 12/8/2023, 8:15:25.5516745 AM It is release at: 12/8/2023, 8:30:13.5666124 AM CustomerID: 3954011
... View more
23-11-2023
14:33
This integration is running with the old authentication. The company ID is 4300704. But we have got the same error on another integration, running the new authentication. Sorry to say, I have no any saved data to share with you. /Stefan
... View more
23-11-2023
08:49
Hi Yildirim This is the information we send for one of the integrations: Request URI: /controller/api/v1/shipment/4300704/action/addSOLine API Client Id: None Financial ERP Company ID: 4700659 Payload: { "orderType": "SO", "orderNumber": "4300704", "orderLineNumber": 30, "inventoryId": "2828694" } Last time the error occured: 2023-11-21 11:13:22.8627182
... View more
21-11-2023
13:55
For several of our integrations we get an IOException as below. The error does not occur all the time but from time to time. The integration can be working for a whole week and then it start trowing errors and then working normal again. This is specific for PostShipment, but i occures for other endpoints as well. Do you have an idea of what can have caused it, and if we can come around the error? Result: |PostShipment| Error occured while connecting to the service when trying to get response code (IOException) Exception: Amesto.VismaNetApi.VismaNetInternalErrorException: Error occured while connecting to the service when trying to get response code (IOException)
... View more
30-10-2023
08:30
Thanks for you kind help Yildirim The Parters service could not answer but referred to you. I also know that it is possible to use Visma.Net to synchronise employees and code sections. But this customer is using Expense with no connection to any ERP system. That's why I wrote that it is standalone. But then I guess there is no way besides those that Visma uses themselves to synchronise their business systems with Expense. You can close the case.
... View more
26-10-2023
13:28
Hi We have a customer running Expense standalone. They want to import employees via an API, but lack the ability to do so via the standard API. Is there any other way to do this, besides using the file import? /Stefan
... View more
19-10-2023
16:48
We have found the Error. It has nothing to do with the new authentication. It was just a coincidence that at the same time as we changed the integration, the consultant switched on the "Inter Branch Transactions". Consider this a bug report, that "CustomerPayment" stops working when you switch on "Inter Branch Transactions".
... View more
19-10-2023
11:42
Hi, We have an integration that create payments of customer invoices. With the old login, it works as it should. The integration user is part of the restriction management and has full authorisation. The integration has now been switched to Visma Connect authentication and has therefore stopped working with following error message. Error: Inserting 'Customer payment' record raised at least one error. Please review the errors.\r\nError: Cash account '15492' cannot found in the system. Check whether you have access rights to this object.\r\n We have the same error on all brances and with different cash account. The common denominator seems to be the restriction/access rights. The invoices can be paid via GUI. Is there a user we can add to the restriction? We use the customerPayment endpoint and this is an example of what we send: { "type": {"value": "Payment"}, "hold": {"value": false}, "customer": {"value": "KONTANT"}, "paymentMethod": {"value": "09"}, "cashAccount": {"value": "1910 13"}, "paymentAmount": {"value": 750.0000}, "invoiceText": {"value": "Tacdis"}, "branch": {"value": "113"}, "ordersToApply": [], "paymentLines": [{ "operation": "Insert", "documentType": {"value": "Invoice"}, "refNbr": {"value": "39001245"}, "amountPaid": {"value": 750.0000} } ] }
... View more
01-09-2023
17:05
Hi On Sales order, it is possible to enter the start and stop date for accruals, as you can see on the picture below. I can't find it in the API documentation, and when i test it (with the same field names as in CustomerInvoices), it dosen't work. Can you let me know if the fields are really missing, or if I have missed something 🙂
... View more
14-08-2023
08:41
Hi Any news about the problem. I tested it today and it is still the same. The customer starts to panic. The application handles customer payments and imports about 500 a day. They can't handle it manually. Is there any more information needed to troubleshoot?
... View more
10-08-2023
16:12
Thanks Yildrim These are not new attributes, has been used for several years now.
... View more
10-08-2023
13:48
Hi One of our customers has got problems with an integration that has been in operation for over a year now. In the code, it retrieves a customer with a special attribute value. We send the following url and get a response 200 back, but with a blank body. API/controller/api/v1/customer?attributes={"OLDCUSTNO":"4510008922"} These suddenly apply to almost all customers. When tested of 1000 customers we got a hit on 80 of them! This is what the attribute looks like on the customer record. "attributes": [ { "id": "NETS", "value": "945643725" }, { "id": "OLDCUSTNO", "value": "4510008922" } ], Any suggestions?
... View more
03-07-2023
11:41
Hi We have noticed a great new feature in the GUI, page PO505000. It creates purchase orders for all sales orders at the same time. The question now is, will it be implemented as an action in the API as well?
... View more
09-05-2023
10:10
Hi There is no documentation in Swagger about "erp-api-background" in Version 3. Nevertheless, we have tried it but it does not work. Is it supposed to be missing or is it going to be added later? /Stefan
... View more
09-02-2023
11:22
Any news on the non-functioning Swagger? /Stefan
... View more
09-01-2023
16:34
Hi Refering to "Webhook received multiple times" We have exactly the same problem as Anders at Taventus. Sometimes when the customer confirm a shipment on a Sales Order, Visma sends us two identical webhooks. In the GUI we can only see one webhook has been sent. I have tested this on different companies with the same result. What I notice is that the error is intermittent. I can't find the reason why sometimes we get one webhook and sometimes two. Just to give some example, I performed a test just before I sent this message. This is the only event I have: I created two sales order for the same customer and the same item. I shipped both of them and confirmed. From the first one I got two webhooks, and for the second one I got one webhook. This is the first confirmation, with the two webhooks and the messages from Visma GUI: [{"notificationId":"22d61db4-3070-417f-b858-1271d7d2627d","contextId":"4011658","event":"shipment_changed","relativeResourceUri":"api/v1/shipment/000028","resourceUri":"https://integration.visma.net/API/controller/api/v1/shipment/000028","status":"Confirmed","timeStamp":638088761818270000}] [{"notificationId":"22d61db4-3070-417f-b858-1271d7d2627d","contextId":"4011658","event":"shipment_changed","relativeResourceUri":"api/v1/shipment/000028","resourceUri":"https://integration.visma.net/API/controller/api/v1/shipment/000028","status":"Confirmed","timeStamp":638088761818270000}] {"EntityId":"1d8ce3c5-6266-4557-90b9-6f6f9161eae5","NotificationId":"22d61db4-3070-417f-b858-1271d7d2627d","Event":"Shipment_Status_Changed","DocumentStatus":"Confirmed","TimeStamp":"638088761818270000","EntityLocation":"api/v1/shipment/000028"} And the second one: [{"notificationId":"2309d12e-c45c-49e2-8643-04d10dc2e14b","contextId":"4011658","event":"shipment_changed","relativeResourceUri":"api/v1/shipment/000029","resourceUri":"https://integration.visma.net/API/controller/api/v1/shipment/000029","status":"Confirmed","timeStamp":638088762659670000}] {"EntityId":"e0bd2389-a439-4167-aeea-76603bac0945","NotificationId":"2309d12e-c45c-49e2-8643-04d10dc2e14b","Event":"Shipment_Status_Changed","DocumentStatus":"Confirmed","TimeStamp":"638088762659670000","EntityLocation":"api/v1/shipment/000029"} And this is the details from Webhook.site: Can you please look into case again, I'm sure other partner will run into the same problem. /Stefan
... View more
30-08-2022
16:39
It Works for us. Thanks.
... View more
30-08-2022
16:11
We got the same error, but for DELETE You don't have permission to access this resource.
... View more
19-08-2022
15:40
1 Kudo
It is very useful to have overridenumberseries on several endpoints. But we have customers with POS systems where we want to import the receipt number into Visma.Net. The easiest and safest way, to avoid duplicates and to simplify searches, is to use the referenceId field for the receipt number. There is already a setting for the possibility to import manual numbers in the number series setting. What is missing is the overridenumberseries option. This applies to both CashTransaction and CashSales. /Stefan
... View more
24-05-2022
17:55
After contact with Yildirim we realise there isn't any shortcut here. This customer has a substantial number of transfer order lines and create them took a long time. We then decided to use the background functionality, and it works fine. New API feature: "erp-api-background" operation - Visma Community
... View more
20-05-2022
10:43
Hi Yildirim Thank, then we know we don't have to spend more time trying to make PUT to work. Number of transferOrderLines is between 70 -250 lines. The test we have used is on 74 lines. We have tried different timeout, 10, 20 and 50 minutes. Details will come by mail from the developer. Thanks.
... View more
18-05-2022
09:40
Hi We have now learned, that when we POST a receipt connected to a transfer order we use the following, and it works fine. Thanks Magnus. Now comes part 2, we want to use PUT to add new lines. We use the previous example and add the receipt number and the new line number. And get this error back. We have tested different combination, but it all ends up with telling us the order number is missing. Now, for those who wonder why we want to use PUT. We have discovered that if you have a transferorder with many lines, you get a TimeOut when you try to POST the receipt. What we have seen is that somewhere between 10 and 20 lines work. If you have more that that you get a TimeOut. We know for sure that if we POST a receipt of 10 lines it works. That's why we have to split the receipt and send the rest of the lines, 10 lines at a time, with a PUT. Conclusion We have two problems here. 1. Timeout in POST if a large number of lines. 2. Cant add lines to an existing receipt using PUT.
... View more
29-04-2022
14:34
Okay I sum up the conversation. What you mean, is that we can't use the action/addpurchaseorder endpoint to automatically add the transfer order and all it's lines. With other words, the same routine that works in the GUI. Instead we have to POST a receipt with all information from the transferOrder?
... View more
29-04-2022
08:34
Hi Magnus Just to be sure, what you described, isn't that step 1 and not step 2?
... View more
28-04-2022
20:29
Hi In the GUI I can connect a transferorder to a Purchase Receipts, and as you see below it works fine. If I try the same in the API it doesn't work as expected. POST https://integration.visma.net/API/controller/api/v1/PurchaseReceipt/2500189/action/addpurchaseorder { "purchaseOrders": [ { "orderNbr": "4300046" } ] } Error adding purchase orders to receipt: Open order with number 4300046 could not be found" It doesn't matter is I use the ordertype or not. I have tested different combinations, but non of them work.
... View more
25-04-2022
10:01
Hi Magnus These just got weird... First problem I followed your instructions and deleted a record and tried to Post it: DELETE https://integration.visma.net/API/controller/api/v1/discount/TEST2/1 POST https://integration.visma.net/API/controller/api/v1/discount { "discountCode": { "value": "TEST2" }, "series": { "value": "1" }, "discountBreakpoints": [ { "operation": "Insert", "lineNbr": { "value": 1 }, "pendingBreakAmount": { "value": 5 }, "pendingDate": { "value": "2022-04-25T06:40:34.062Z" }, "pendingDiscountPercent": { "value": 10 } } ] } Using the operator "Update" didn't work for me. But using "Insert" worked. But what happen?? The series is not "1" but "TEST20001"! Second problem When it comes to adding lines. Adding new lines work fine, but the result is not so good. Give you a new series instead. I can't imagine this is correct. 🙂
... View more
22-04-2022
15:27
Hi I want to change prices with the Discount endpoint. The scenario is the following. Marked in red are the information I want to change. Using this update: Gives me the anwer: "message": "VismaId: 8564dedf-1e67-4a45-8f69-49671b637b65. Handle(Visma.net.ERP.Api.AR.CommandModel.Commands.ChildCommands.UpdateCustomerDiscountLineCommand cmd) not found" And it doesn't mater if I use "pendingdiscountAmount" etc. I get the same error message. Changing the "Operator" to "Insert", gives me another error: "message": "Field 'Pending Discount Amount' cannot be updated because is not visible or editable." I get the same error if I tries to POST a new record. Any suggestions?
... View more
19-04-2022
15:46
Hi Yildrim Problem solved. We noticed now that the payment was created on an other branch than the credit note. That's why the release couldn't be done. If this is an error or not I don't know, because release can be done in the GUI. But anyway. We close this case.
... View more
14-04-2022
12:36
Hi Yildirim Yes, I have. And it works exactly as supposed. /Stefan
... View more
Activity Feed for Stefan Hult
- Posted Subscription endpoint don't work as it should on Forum in Developers Visma.net. 05-03-2024 14:38
- Posted Open Invoice with closed payment on Forum in Developers Visma.net. 11-12-2023 17:35
- Posted Svar: Recurring IOException on Forum in Developers Visma.net. 23-11-2023 14:33
- Posted Svar: Recurring IOException on Forum in Developers Visma.net. 23-11-2023 08:49
- Posted Recurring IOException on Forum in Developers Visma.net. 21-11-2023 13:55
- Posted Svar: Expense API on Forum in Developers Visma.net. 30-10-2023 08:30
- Posted Expense API on Forum in Developers Visma.net. 26-10-2023 13:28
- Posted Svar: Visma Connect authentication and use of restrictions on Forum in Developers Visma.net. 19-10-2023 16:48
- Posted Visma Connect authentication and use of restrictions on Forum in Developers Visma.net. 19-10-2023 11:42
- Posted Missing termsstart and -stop date on Forum in Developers Visma.net. 01-09-2023 17:05
- Posted Re: Attribute in customers on Forum in Developers Visma.net. 14-08-2023 08:41
- Posted Re: Attribute in customers on Forum in Developers Visma.net. 10-08-2023 16:12
- Posted Attribute in customers on Forum in Developers Visma.net. 10-08-2023 13:48
- Kudoed Re: New function in PO505000 - Process All for Yıldırım. 03-07-2023 12:55
- Posted New function in PO505000 - Process All on Forum in Developers Visma.net. 03-07-2023 11:41
- Posted Missing "erp-api-background" in V3 on Forum in Developers Visma.net. 09-05-2023 10:10
- Posted Svar: Visma.Net API Swagger page not showing on Forum in Developers Visma.net. 09-02-2023 11:22
- Kudoed Re: Webhook received multiple times when shipment is confirmed for Yıldırım. 11-01-2023 10:25
- Posted Webhook received multiple times when shipment is confirmed on Forum in Developers Visma.net. 09-01-2023 16:34
- Kudoed Re: Transfer orders and receipts, part 2 for Yıldırım. 08-11-2022 15:14