---
title: "Wrong response status 500 when creating shipment via POST endpoint /controller/api/v2/salesorder/{saleOrderNumber}/action/createShipment"
description: "When you try to create a shipment for a specific sales order with not all lines available in stock and option “Ship only when complete”, you will no longer get the incorrect error…"
lang: en
languages:
  en: https://docs.vismasoftware.no/visma-net-erp/release-notes/2022-11-01-wrong-response-status-500-when-creating-shipment-via-post-endpoint-controller/index.md
lastmod: 2022-11-01
---

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


# Wrong response status 500 when creating shipment via POST endpoint /controller/api/v2/salesorder/{saleOrderNumber}/action/createShipment

Last modified November 1, 2022

2022-11-01


Label: api:sales-order


Version: 9.20



When you try to create a shipment for a specific sales order with not all lines available in stock and option "Ship only when complete", you will no longer get the incorrect error response status 500, but a 409 (Conflict) with descriptive message instead.



---

[View this page](https://docs.vismasoftware.no/visma-net-erp/release-notes/2022-11-01-wrong-response-status-500-when-creating-shipment-via-post-endpoint-controller/)
