My Products
Help
Anonymous
Not applicable

Error changing status for Visma Project Management invoice using Visma Severa Public Rest API

by Anonymous

Hi, I try to change status for an invoice using Visma Severa Public Rest API method Patch â€‹/v0.2​/invoices​/{guid} Update (Patch) an invoice or a part of it (doc: Visma Severa Public Rest API Documentation), but I get this error message in the response: 

{"error":{"httpStatusCode":400,"type":"InvalidParameter","details":[{"message":"The value 'ccb02d37-7db0-de12-ee7f-3d0063aee987' is invalid for target location.","location":{"type":"RequestBody","name":"status"}}]}}. 

 

I send this in the request:

[{"op":"replace","path":"/status","value":"ccb02d37-7db0-de12-ee7f-3d0063aee987"}]

 

I can make the status change in Visma PM manually without any error.

 

Any tips?

2 REPLIES 2
Anonymous
Not applicable

by Anonymous

Thanks 🙂

by Magnus Johnsen

Hi,

This part of the forum handles the Visma.Net Financials API, for help regarding Severa/Project Management, please contact: severa.support@visma.com

 

Thank you.