REST SaveQuoteLine - Error when creating a new QuoteLine

lock
push_pin
done
Besvarat
1

Hello,

When I try to create a new QuoteLine a get:

"Message": "Object reference not set to an instance of an object.",
 
I'm using Postman and .Net and I get the samme error.

First I get a new QuoteLine using /Agents/Quote/CreateQuoteLine with

{
    "QuoteAlternativeId": "9",
    "ERPProductKey": "SUO_1"
 
as body.
 
When I copy the Json and add it as body in /Agents/Quote/SaveQuoteLine and POST the request I get the error.
 
I've tried to modifed the Json to just include a couple of fields, but I get the same result.
 
What am I doing wrong?

 

5. dec. 2023 | 03:18 em

Allt Svar (1)

It's now solved. I missed

"QuoteLine": {

}
 
property in the Json.
7. dec. 2023 | 10:42 fm

Lägg till svar