My Products
Help
SitterIT
CONTRIBUTOR ***

Error setting SalesPersonId when creating new SalesOrder

by SitterIT

When trying to send salespersonid creating an order in V3, I recieve error 400 - bad request.

 

This Id exists in Vn and works great using the old endpoint. (https://integration.visma.net/API-index/)

I've tried with some of the other salespersons, but getting the same error.

 

SitterIT_0-1685617735387.png

SitterIT_2-1685617948361.png

 

 

 

4 REPLIES 4
SitterIT
CONTRIBUTOR ***

by SitterIT

{
"type": "AI",
"date": "2023-06-01T00:00:00+02:00",
"requestOn": "2023-06-02T00:00:00+02:00",
"description": "Gävle sjukhus, Förråd Arbetsterapi",
"customer": {
"id": "L1460",
"order": "LGX001054325",
"refNo": "Öhneskog, Pia"
},
"print": {},
"shipping": {},
"orderLines": [
{
"inventoryId": "8126",
"unitOfMeasure": "STYCK",
"quantity": 1.0,
"discountPercent": 0.0,
"discountAmount": 0.0,
"hasManualDiscount": false,
"operation": "Issue"
},
{
"inventoryId": "42003",
"unitOfMeasure": "KRT",
"quantity": 1.0,
"discountPercent": 0.0,
"discountAmount": 0.0,
"hasManualDiscount": false,
"operation": "Issue"
}
],
"salesPersonID": "P401"

}

SitterIT
CONTRIBUTOR ***

by SitterIT

It's urgent. All orders fail on import if one sets this value. Please don't shut down the old endpoint yet. Extend the grace period due to these types of errors. We had rollback to old version of the integration due to this.

by Magnus Johnsen

Hi,

It's been reported to the development team. 

The old endpoints are not getting deprecated yet: Move of breaking change Due date for Sales order v1 and v2

Thank you.

by Magnus Johnsen (Updated ‎01-06-2023 14:06 by Magnus Johnsen VISMA )

Hi, we'll look into it and get back to you.

Could you please send us the full JSON so that we can pass it on to the development team?

Thank you