This error is usually from your "Store cart summary in database" server behavior.
It usually means that your OrderReferenceID column is set a a number in the database and you are passing in a value that includes text.
You can correct the problem by identifying that field in your database as type varchar and then updating the store cart summary in database and updating the column type from number to text.