User Profile
JohanFriedrichsen
35
Posts
4
Kudos
0
Solutions
03-02-2025
13:45
3 Kudos
When will it be possible to start using the new base-URL? Our developer tried it now and it doesn't seem active as it is now.
... View more
20-01-2025
14:06
Yes, but the API doesn't say which numbering sequence each order type uses. The SalesOrdertype endpoint gives very limited information:
... View more
17-01-2025
13:48
In SalesOrder v3 it is no longer possible to post an order a with supplied orderId if the order type is configured with automatic numbering. In previous versions it was possible to do this and the API did not use the orderId in those circumstances but in v3 the operation fails. How can we find out if an order type has automatic numbering? We can't find a link between the order type and the NumberSequence.
... View more
16-01-2025
11:13
I've read previous posts about problems with subaccounts but it seems that a validation error has returned? 1. The segmented key SUBACCOUNT is configured to "Allow Adding New Values On The Fly" 2. The first segment is set to be validated and the configured values are 0 and 1 3. Configured segment values On a stock item it is possible to manually set "Sales Sub" to for example "1-55" without any problem. If we try to create a sales order the above item without specifying the subaccount in the payload the following error is received: "Subaccount segment values not found: SegmentId: 2 and Value 55" If we try to create a sales order and the payload specifies: "subaccount":{ "1":"1", "2":"55") then we get another error: "The value '55' is not valid for SegmentId 2". Same meaning but different wording. If 55 is added as a values for segment 2 then it will work so it seems that the subaccount values are validated via the v3 API even if the segmented key doesn't specify validation and should accept values on the fly.
... View more
10-12-2024
09:19
According to the documentation for /api/v3/SalesOrders/{type}/{orderId} the financialInformation should contain an invoiceId for the invoice created for the order. However, we don't get that information using v3 (invoiceId, invoiceDate or duedate). Getting the same order using v1/v2 produces the information under the shipping section.
... View more
07-11-2024
13:04
Prior to v3 when an orderline was Marked for PO the corresponding source was automatically picked up from the inventory item. The same thing happens when an order line is manually marked in the UI. In v3 the source is a mandatory which requires the integration to know more information that is actually already in the system. Is this intended?
... View more
07-11-2024
09:56
During migration to SalesOrder v3 we have come across some behavioural changes that might require customer intervention before code is released. It is therefor imperative that we understand the correct intended behaviour. Question: Some of the order lines sometimes miss a value in the tax category field when creating a v3 order. It seems to occur when the item is missing an item class. If the same order is created manually in the UI then it receives the correct tax category. Is this intentional?
... View more
21-08-2024
11:45
19/6: It was communicated that the deadline was EXTENDED to 31/3 2025 20/8: New deadline is communicated that is again 31/12 2024 (3 months SHORTER than last communicated) So the planning that was made based on the 19/6 communication means that not only did we loose 2 months of possible work during the summer but we also have a shorter time fram until deadline? Does this mean that the timeframe can be even shorter?
... View more
20-08-2024
15:46
Is it correct that the due date for the removal of the Sales Order endpoints have changed AGAIN? Back to 31st of December 2024?
... View more
19-01-2024
14:55
When POST:ing a new SalesOrder the enpoint is just responding with a successful HTTP-response. If the integration needs to access the created order you are uinstructed to GET it using the address in the location-header. At a couple of instances the Visma API has had problems so the GET has resulted in a 502 response. This makes it impossible to know if the order was created correctly. The request is to include the created object in the POST resonse body to eliminate the need for the extra GET request.
... View more
19-01-2024
12:40
That is what we are trying to do but in the cases where the API-response is 502 we'll get a problem. Since customers want to to take advantage of the automations in Visma.net we need to know about the actual order created. Would it be possible to include the created object in the response in the v3 version of the API? That would give us the information needed without an extra API-call.
... View more
15-01-2024
11:20
I have done some more digging and here is the problem: When we create an order we need some information about the created order to continue working with it. However, the order POST just responds with a 201 but no order payload so we need to manually fetch the new order to get the information that we need. On this occation (5:th of january at 12:24) the POST was successful but a GET to the location header address from the POST resulted in a 502 Bad Gateway. That was seen as an incomplete POST and therefor the order was sent again resulting in a duplicate order. So technically it wasn't the API that created the duplicate but since the POST didn't respond with the created order (which is the most common way) it lead to the error. From what I can see in the SalesOrder documentation the POST still doesn't contain a response payload so this logical problem can continue to come up in the future. How should this be handled in the best way?
... View more
08-01-2024
10:35
Hi I can see that there has been a few threads about the "502 Bad gateway" reponse before. Our problem isn't the response itself but the fact that the response doesn't reflect what is actually happening in the back end: We try to send orders, get the 502 response but it seems like the order is created anyway. The problem here is that the response is treated as unsuccessful and therefor we try to send the order again which leads to duplicates in Visma.net. We need to be able to rely on the response and not have to double check everything. Is this behaviour somthing that will change once we transition to the SalesOrder-API?
... View more
22-11-2023
14:46
When will the Sales Order Service API be available for interactive authentication?
... View more
03-11-2023
09:16
More information: 3 customers have tried this week and they have all failed with the same message. It worked last week for at least 1 customer.
... View more
03-11-2023
08:43
Some of our users get an error page during the Oauth-flow using the new authentication. It is only for some of the users so the application should be configured correctly. The debugger says: "Message - Unhandled exception: Failed to update tenant consent for user xxx" Last week other users were able to authenticate using the same app and they haven't reported any problems. How to proceed?
... View more
16-08-2023
08:21
Correction: the problem occurs with SalesOrder but not with SalesOrderv2 It is the contacts that are affected. If "overrideContact" = false is combined with additional values (see below) on the first SO for a customer these values will be used on this SO and every consecutive SO, regardless of if it is created via API or manually. "soBillingContact": { "value": { "overrideContact": { "value": false }, "name": { "value": "Billing Contact" }, "attention": {}, "email": { "value": "billing.contact@mail.com" }, "phone1": {}, "phone2": {}, "fax": {} } }, It can be argued that override and extra values shouldn't be used at the same time but there is nothing stopping it (tehcnically or in the docs). The effects are also very problematic since it will affect every future SO. Regarding the use of v1 over v2: we had prior to this no urgent reason to move to v2 since the focus was on the initial SalesOrderService timeline. But since that has been pushed we have to rethink what we need to do.
... View more
27-06-2023
09:04
No, there is no technical reason. I believe that my collegue have verified this behaviour manually with v2 also.
... View more
22-06-2023
14:55
HTTP POST to https://integration.visma.net/API/controller/api/v1/salesorder {
"orderType": {
"value": "SO"
},
"orderNumber": {
"value": "007-75"
},
"customerVATZone": {
"value": "01"
},
"soBillingContact": {
"value": {
"overrideContact": {
"value": false
},
"name": {
"value": "Kajsa Testar"
},
"attention": {},
"email": {
"value": "external.accounts@sharespine.com"
},
"phone1": {
"value": "0000000000"
},
"phone2": {},
"fax": {}
}
},
"soBillingAddress": {
"value": {
"overrideAddress": {
"value": false
},
"addressLine1": {
"value": "PB adress"
},
"addressLine2": {},
"postalCode": {
"value": "45132"
},
"city": {
"value": "Uddevalla"
},
"county": {},
"countryId": {
"value": "SE"
}
}
},
"soShippingContact": {
"value": {
"overrideContact": {
"value": false
},
"name": {
"value": "Kajsa Testar"
},
"attention": {},
"email": {},
"phone1": {
"value": "0000000000"
},
"phone2": {},
"fax": {}
}
},
"soShippingAddress": {
"value": {
"overrideAddress": {
"value": false
},
"addressLine1": {
"value": "PB adress"
},
"addressLine2": {},
"postalCode": {
"value": "45132"
},
"city": {
"value": "Uddevalla"
},
"county": {},
"countryId": {
"value": "SE"
}
}
},
"date": {
"value": "2023-05-09T10:45:39.000"
},
"shipVia": {
"value": "DHL"
},
"branchNumber": {
"value": "1 "
},
"printDescriptionOnInvoice": {
"value": false
},
"printNoteOnExternalDocuments": {
"value": false
},
"printNoteOnInternalDocuments": {
"value": false
},
"note": {
"value": "."
},
"currency": {
"value": "SEK"
},
"customer": {
"value": "10990"
},
"status": {
"value": "open"
},
"hold": {
"value": false
},
"lines": [
{
"operation": "Insert",
"warehouse": {
"value": "2"
},
"inventoryNumber": {
"value": "test123"
},
"lineDescription": {
"value": "En mycket fin testprodukt"
},
"quantity": {
"value": 1.0
},
"unitPrice": {
"value": 15.2
}
}
]
}
... View more
22-06-2023
07:53
In our current order integration we have an option that controls the overrideContact flag. Regardless of that setting is true or false we are sending contact details on the order if those are available in the order source (I don't have the reason why this is done). The result if we create an order with overrideContact: false is that the order is created with the supplied contact details even though the contact shouldn't be overridden. The bigger problem is that the next order you create for the same customer will also inherit the same details even if the order is done manually via the GUI. 1. Is it intended that supplied contact details takes precedence over the override flag? If so this needs to be documented. 2. It can be argued that you shouldn't send both details and override: false but it isn't documented that you can't. It would be OK if it only affected the current order but since it also affects future orders it feels that the API should handle it better. 3. Does the SalesOrder service handle this type of behaviour better?
... View more
12-04-2023
10:34
When will the new removal date be communicated? We would like to plan our customer communication so that it will include both required authentication changes and information about the sales order changes.
... View more
05-04-2023
14:10
We're planning an authentication upgrade of 60+ customers in preparation of moving to the SalesOrder service. However, there seem to be more and more issues where the "solution" is to use the old auth model or v1/v2 endpoints. This seems a bit strange sine the communicated deadline is now less than 2 months away. With multiple customers affected we need to be sure that we can have clear communication with them regarding when things need to change. As it seem right now this is not a production ready implementation.
... View more
31-03-2023
07:20
If we want to build a Single-Page Application (SPA) that handles orders how would we go about it given that the order api can only be accessed using client-credential-auth?
... View more
20-03-2023
08:28
Ok, but the Sales Order Service API should today contain features that cover the endpoints that are going to be removed in June?
... View more
15-03-2023
17:40
Do you have a list of parameters that have changed name so that it is possible to verify that we have 100% feature coverage? Example from Finance-API (GET /controller/api/v1/salesorder/{orderType}/{orderNbr}): "printDescriptionOnInvoice": true, "printNoteOnExternalDocuments": true, "printNoteOnInternalDocuments": true Service: "print": { "descriptionOnInvoice": true, "noteOnInternalDocuments": true, "noteOnExternalDocuments": true } Service respons has different structure and parameter names which makes it very easy to miss missing features.
... View more
15-03-2023
17:35
Is all of the features of the SalesOrder service implemented so that it should be possible to migrate from the old to the new? It is vital that we know that the support is there before we dig to deep. Time is flying quickly and since we have multple customers that are affected by these changes (due to the new auth etc) we need to inform and implement our changes well before the deprication date.
... View more
15-03-2023
17:02
1 Kudo
In this response (https://community.visma.com/t5/Forum-in-Developers-Visma-net/Problem-with-scopes-in-Visma-App-Store/m-p/560932/highlight/true#M3207) it is stated that you are working on unifying the SalesOrder and Financial-API tokens. - Is this something that will be done before the endpoint deprication? Would save a lot of work. - Is there a reason why the interactive token isn't valid for the SalesOrder service?
... View more
29-11-2022
13:54
Any updates on this question? We would like to be able to get the next delivery date as a parameter on the inventory item itself. Would that be possible?
... View more
14-09-2022
09:34
When calling the GET /controller/api/v1/attribute the documentation states that the response should include a lastModifiedDateTime. However, we only receive this: {
"attributeID":"ARF",
"description":"arf",
"controlType":"Text",
"internal":false,
"details":[],
"metadata":{
"totalCount":18,
"maxPageSize":1000
}
} Is it a bug or some sort of setting that needs to be set?
... View more
14-09-2022
08:58
Any update on this? We have more customer related information but it isn't something that is suitable to post in an open forum.
... View more
Activity Feed for JohanFriedrichsen
- Got a Kudo for Re: Important: End of VNI and transition to Azure API Management. 31-03-2025 09:31
- Got a Kudo for Re: Important: End of VNI and transition to Azure API Management. 03-03-2025 13:09
- Got a Kudo for Re: Important: End of VNI and transition to Azure API Management. 25-02-2025 11:15
- Posted Re: Important: End of VNI and transition to Azure API Management on News in Developers Visma.net. 03-02-2025 13:45
- Posted Re: Find order type numbering sequence? on Forum in Developers Visma.net. 20-01-2025 14:06
- Posted Find order type numbering sequence? on Forum in Developers Visma.net. 17-01-2025 13:48
- Posted Error in subaccount validation on Forum in Developers Visma.net. 16-01-2025 11:13
- Posted No invoiceId on shipped order on Forum in Developers Visma.net. 10-12-2024 09:19
- Posted Mark for PO in v3 on Forum in Developers Visma.net. 07-11-2024 13:04
- Posted V3 order line missing tax category on Forum in Developers Visma.net. 07-11-2024 09:56
- Posted Svar: [Release Notes] - Visma.Net API 10.14.0 - 20-08-2024 on News in Developers Visma.net. 21-08-2024 11:45
- Posted Svar: [Release Notes] - Visma.Net API 10.14.0 - 20-08-2024 on News in Developers Visma.net. 20-08-2024 15:46
- Posted Return created object in POST response body on Ideas in Developers Visma.net. 19-01-2024 14:55
- Posted Svar: 502 Bad gateway response but order is created anyway on Forum in Developers Visma.net. 19-01-2024 12:40
- Posted Svar: 502 Bad gateway response but order is created anyway on Forum in Developers Visma.net. 15-01-2024 11:20
- Posted 502 Bad gateway response but order is created anyway on Forum in Developers Visma.net. 08-01-2024 10:35
- Posted Interactive use of Sales Order Service? on Forum in Developers Visma.net. 22-11-2023 14:46
- Posted Svar: VISMA net shows error page during OAuth flow on Forum in Developers Visma.net. 03-11-2023 09:16
- Posted VISMA net shows error page during OAuth flow on Forum in Developers Visma.net. 03-11-2023 08:43
- Posted Re: OverrideContact: false gives incorrect details on Forum in Developers Visma.net. 16-08-2023 08:21