Error From API : Verkooporder heeft nog gekoppelde inkooporders

Hi Team, We've got this error message "Verkooporder heeft nog gekoppelde inkooporders" from Snelstart API when trying to update a sales order with the below request. Request: { "relatie": { "Id": "9339770e-d08f-4b3b-accb-a32ee8ca1343" }, "procesStatus": "Werkbon", "nummer": 212210, "omschrijving": " **", "id": "026a8ee9-9700-4df6-aeba-8bd4c1e99819", "datum": "2021-08-20T00:00:00Z", "verkooporderBtwIngaveModel": "Exclusief", "betalingskenmerk": "", "memo": "", "afleveradres": { "straat": "Wilhelminasingel 45", "postcode": "7741HE", "plaats": "Coevorden", "contactpersoon": "", "land": { "Id": "5e00b414-8ac8-43bf-b3cb-59d67fa4a7a1" } }, "factuuradres": { "straat": "Lauwers 17", "postcode": "9405 BL", "plaats": "Assen", "contactpersoon": "", "land": { "Id": "5e00b414-8ac8-43bf-b3cb-59d67fa4a7a1" } }, "regels": [ { "artikel": { "Id": "bca01489-e327-44c2-81f1-9e788124b89e" }, "omschrijving": "Euromotion handdoekrol Eco, cell. verl. 140 mtr x 23,3 cm, 6 rol p/pak (45)", "stuksprijs": 40.8, "aantal": 2.0, "kortingsPercentage": 0.0, "extraRegelVelden": [ { "veldNummer": 1, "omschrijving": "Voorraad", "waarde": "0" }, { "veldNummer": 2, "omschrijving": "Service", "waarde": "0" } ] } ], "verkoopordersjabloon": { "Id": "13f82f49-fc7e-4889-94f4-b10a26972b86" }, "factuurkorting": 0.0, "extraHoofdVelden": [ { "veldNummer": 1, "omschrijving": "Route week", "waarde": "" }, { "veldNummer": 2, "omschrijving": "Route bestemming", "waarde": "" }, { "veldNummer": 3, "omschrijving": "Referentie", "waarde": "I.1.21.04305" }, { "veldNummer": 4, "omschrijving": "Aanvrager", "waarde": "Melissa Plas" } ] } Response: [{"errorCode":"VOR-0014","message":"Verkooporder heeft nog gekoppelde inkooporders","details":null}] Can you please help us what is the cause of this error and what needs to be done to solve it. With Kind Regards, Ankit

Comments

  •  
    Hello Ankit. The issue in this case is that you are trying to change a verkooporder while an Invoice/inkooporder has been attatched to it. The only way to solve this error is to delete or detatch the inkoop/Invoice order that has been attatched to the verkoop order. This is something the client has to do themselves.
    Posted by Hidden Wed, 25 Aug 2021 10:17:24 GMT


You're not signed in. Please sign-in to report an issue or post a comment.