---
title: "SalesOrder endpoint returned 500 Internal Server Error instead of 400 Bad Request"
description: "The POST SalesOrder endpoint now returns the correct 400 Bad Request error instead of the incorrect 500 Internal Server Error when you try to create a sales order with a…"
lang: en
languages:
  en: https://docs.vismasoftware.no/visma-net-erp/release-notes/2022-11-01-salesorder-endpoint-returned-500-internal-server-error-instead-of-400-bad/index.md
lastmod: 2022-11-01
---

> Documentation index: https://docs.vismasoftware.no/visma-net-erp/llms.txt


# SalesOrder endpoint returned 500 Internal Server Error instead of 400 Bad Request

Last modified November 1, 2022

2022-11-01


Label: api:sales-order


Version: 9.20



The POST SalesOrder endpoint now returns the correct 400 Bad Request error instead of the incorrect 500 Internal Server Error when you try to create a sales order with a previously used sales order number.



---

[View this page](https://docs.vismasoftware.no/visma-net-erp/release-notes/2022-11-01-salesorder-endpoint-returned-500-internal-server-error-instead-of-400-bad/)
