to get a personalized navigation.
to get a personalized navigation.
Has something changed in the API recently?
I can no longer create "TR" orders.
SalesOrdApi just return 500 "Internal Server Error" without message.
VismaNetApi returns "'Destination warehouse' cannot be empty."
I can't find Destination warehouse in Swagger and the Idea to add it is still open.
Same code worked 2 weeks ago.
SalesOrderApi
POST: https://salesorder.visma.net/api/v3/SalesOrders
Headers: {
Accept: application/json
Authorization: <hidden>
Accept-Encoding: gzip Accept-Encoding: deflate
Request-Context: appId=cid-v1:72b1579a-9e83-44d4-b964-8b83e2853ccd
Request-Id: |69aee49e69c625d9114b764d86d1b7ed.389ae70310f70584.
traceparent: 00-69aee49e69c625d9114b764d86d1b7ed-389ae70310f70584-00
Content-Type: application/json; charset=utf-8
Content-Length: 291
}
{
"type": "TR",
"date": "2023-03-08T07:00:00",
"description": "23247",
"status": "Hold",
"customer": {
"id": "10003"
},
"orderLines": [
{
"inventoryId": "017092000",
"quantity": 1.0,
"warehouseId": "1",
"subaccount": {
"1": "00"
}
},
{
"inventoryId": "008456000",
"quantity": 1.0,
"warehouseId": "1",
"subaccount": {
"1": "00"
}
}
]
}
Response: 500 Internal Server Error
Headers: {
Date: Thu, 09 Mar 2023 10:30:28 GMT
Connection: keep-alive
apigw-requestid: BglCZgQrAi0EJrQ=
Content-Length: 0
}
VismaNetApi
POST: https://integration.visma.net/API/controller/api/v2/salesorder
Headers: {
Accept: application/json
Authorization: <hidden>
Accept-Encoding: gzip Accept-Encoding: deflate
Request-Context: appId=cid-v1:72b1579a-9e83-44d4-b964-8b83e2853ccd
Request-Id: |8e4e4e8700207121bbff8ab808ac205a.ce06f9725f4d6eee.
traceparent: 00-8e4e4e8700207121bbff8ab808ac205a-ce06f9725f4d6eee-00
Content-Type: application/json; charset=utf-8
Content-Length: 525
}
{
"lines": [
{
"subaccount": [
{
"segmentId": 1,
"segmentValue": "00"
}
],
"operation": "Insert",
"inventoryNumber": {
"value": "017092000"
},
"warehouse": {
"value": "1"
},
"quantity": {
"value": 1.0
}
},
{
"subaccount": [
{
"segmentId": 1,
"segmentValue": "00"
}
],
"operation": "Insert",
"inventoryNumber": {
"value": "008456000"
},
"warehouse": {
"value": "1"
},
"quantity": {
"value": 1.0
}
}
],
"orderType": {
"value": "TR"
},
"hold": {
"value": true
},
"date": {
"value": "2023-03-08T07:00:00"
},
"customer": {
"value": "10003"
},
"description": {
"value": "23247"
}
}
Response: 400 Bad Request
Headers: {
Date: Thu, 09 Mar 2023 10:43:09 GMT
Server: Apache/2.4.52 Server: (Debian) Server: OpenSSL/1.1.1n
Strict-Transport-Security: max-age=31536000; includeSubDomains Strict-Transport-Security: max-age=31536000; includeSubDomains
ipp-request-id: 2d8260f7-ef4e-4481-8bd3-123dd7069afb
X-Content-Type-Options: application/json
Pragma: no-cache
X-Handled-By: Visma-PX.Export/AuthenticationManagerModule
Referrer-Policy: origin-when-cross-origin
VnfInstanceId: ERP_SE_DEMO_0017
Cache-Control: no-cache
X-XSS-Protection: 1;mode=block
Set-Cookie: <crumbs>; path=/; secure; expires=Wed, 08-Mar-2023 10:43:04 GMT; HttpOnly
Connection: close
Transfer-Encoding: chunked
Content-Type: application/json; charset=utf-8
Expires: -1
}
{"message":"Error: Inserting 'Sales order' record raised at least one error. Please review the errors.\r\nError: 'Destination warehouse' cannot be empty.\r\n"}
The v3 of salesOrder does not currently support TR orders, it will be supported in future versions.
At the moment I don't have an ETA to provide for when this might be implemented.
Thank you for your patience.
Can't you restore the older version where it did work, at least in V2?
(or even better, add the "Destination Warehouse" property)
I must also say the error reporting in V3 is really bad.
Have now had two difference cases where it just returns "internal server error" without any message.
Hello, we'll investigate it and get back to you with information asap.
Copyright © 2022 Visma.com. All rights reserved.