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.