---
title: "paymentRef only possible to set for certain order types"
description: "Earlier, when creating an order (POST), there was no validation of the paymentRef field, and you could set a value for this field even for order types for which this is not allowed."
lang: en
languages:
  en: https://docs.vismasoftware.no/visma-net-erp/release-notes/2023-05-16-paymentref-only-possible-to-set-for-certain-order-types/index.md
lastmod: 2023-05-16
---

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


# paymentRef only possible to set for certain order types

Last modified May 16, 2023

2023-05-16


Label: api:new-sales-order


Version: 9.47



Earlier, when creating an order (POST), there was no validation of the paymentRef field, and you could set a value for this field even for order types for which this is not allowed. This has now been fixed, and you can set a value for paymentRef only for certain order types.



---

[View this page](https://docs.vismasoftware.no/visma-net-erp/release-notes/2023-05-16-paymentref-only-possible-to-set-for-certain-order-types/)
