to get a personalized navigation.
to get a personalized navigation.
Invoice object
{
"currencyId":{"value":"SEK"},
"customerRefNumber":{"value":"Stefan Sundström"},
"externalReference":{"value":"Fredrik Janrud"},
"invoiceLines":[
{
"description":{"value":"???"},
"quantity":{"value":1.0},
"unitPriceInCurrency":{"value":1534200.0},
"accountNumber":{"value":"3031"},
"subaccount":[
{"segmentId":1,"segmentValue":"00"},
{"segmentId":2,"segmentValue":"0000001"},
{"segmentId":3,"segmentValue":"00000000001"},
{"segmentId":4,"segmentValue":"000"}
]
}],
"customerNumber":{"value":"49999"},
"documentDate":{"value":"2023-10-16T00:00:00"},
"financialPeriod":{"value":"202310"},
"invoiceText":{"value":"Detta är en testkommentar"},
"branchNumber":{"value":"1"}
}
what's wrong?
Solved! Go to Solution.
Hi,
You are missing the operation on the invoiceLine:
"operation": "Insert",
Please include it in your payload and try again.
Thank you.
Ok, thank you.
Now is another ERROR, but segments exist with this ID and value I pass with the object.
{ "message": "VismaId: 47d95459-d0e5-47c9-a871-7efe35050131. Error creating document. Error: Uppdrag/ÄTA of SubID do not exist." }
object
I notices that accounting details get errors if I want to create a new customer invoice in visma. Uppdarg/ÄTA subaccount should be 11 characters in length. Could this be the cause of the error I'm getting?
Please have a look at this article:
If you look at the object what I want to send is (see image from 15.04 time). Subaccount is on Visma. Error comes in response. Error comes in response if I don't send subaccount.
I think there is something wrong with Visma company. I have no problem importing the same data to another Visma company.
Can't open link
The link has been updated: https://community.visma.com/t5/Knowledge-base-in-Developers/xxx-of-SubAccount-can-t-be-found/ta-p/27...
Copyright © 2022 Visma.com. All rights reserved.