to get a personalized navigation.
to get a personalized navigation.
In the new SalesOrder api, I face the same issue as in the case described here , having to provide the correct subaccount array on orderlines.
If we look at the "old" integration.visma.net api, there is no need to include subaccount on orderlines. This should still be optional in the new api, and when omited, the orderline should inherrit the the default subaccont set on that inventroy in Visma.net. Just like it works today.
From what I can see today, one have to either :
- specify the subaccount in a settings-file or such.
This will fail as soon as one changes the subaccount dimentions in Visma.net
- do a GET on inventory to get the subaccount of an inventory to set on orderlines
- do a GET using the integration.visma.net api to get subaccount from there.
It's not always one wish to set subaccount, and thats why I still want it to be optional.
Solved! Go to Solution.
We have now deployed a fix for this, could you please retest now and check that it works.
At our side it seams to be working correct now!
Could you please provide Financials ERP Company IDs where you're using POST - SalesOrder Service API ?
I trying with ERP ID 1303428
Can you provide the POST JSON used in the 1303428-DEMO Mer Sweden AB
Here it is.
{
"type": "HI",
"description": "Anläggnings-ID: 123456789012345678\n\nUppsäkring: Nej\n\nSkattereduktion för grön teknik: Nej\n\n",
"customer": {
"id": "500851",
"order": "REF-123",
"refNo": "TEST_123_456",
"locationId": "500914"
},
"print": {
"descriptionOnInvoice": false,
"noteOnInternalDocuments": false,
"noteOnExternalDocuments": false
},
"shipping": {
"residentialDelivery": false,
"saturdayDelivery": false,
"insurance": false
},
"billing": {
"contact": {
"name": "InvoiceCustomerName",
"phone1": "10736301480",
"email": "InvoiceCustomer@Invoice.se"
},
"address": {
"line1": "Gatan 1 Invoice",
"postalCode": "25111",
"city": "Staden Invoice",
"countryId": "SE"
}
},
"orderLines": [{
"inventoryId": "4125101-01",
"unitOfMeasure": "STYCK",
"quantity": 1.0,
"unitCost": 0.0,
"unitPrice": 4800.0,
"discountPercent": 0.0,
"discountAmount": 0.0,
"hasManualDiscount": false,
"operation": "Issue"
}
]
}
Hi, this is still not fixed. I just tried with this:
However, If one includes the subaccount, then it works:
We are having the same issue, and when specifiying the subaccount on the rows it goes throw.
Hi,
We'll inform the development team, and get back to you when we have more information.
Thank you.
Hi, that's true, as long as company setup allows such as oriented with the Segment (Subaccount) validation & default values.
Hello Rene,
could you retry your transaction and inform us accordingly ?
Hello Rene,
we confirm your report that SalesOrder Service API doesn't seem fetching the default subaccount values when those are not provided in the POST Json, even though the Subaccount is set as "nullable" in the model (NewSalesOrderCommand).
This has been reported to the Sales Order Service API team, we'll keep you informed.
Copyright © 2022 Visma.com. All rights reserved.