Skip to main content
Solved

REST API: Sales Order cannot be created. Getting a Document number (NEW) error.

  • June 6, 2025
  • 4 replies
  • 59 views

Forum|alt.badge.img+2

I’m getting the following error when I try to create a Sales Order:

Document cannot be saved. Document number (<NEW>) equals to the New Number Symbol of a Numbering Sequence. Please change document number.

This doesn’t make sense since I want the system to set the Sales Order Nbr so I need to use <NEW> for the Order Nbr.  Is this a configuration issue?

Best answer by bpgraves

I think it’s the configuration because the Sales Orders gets created when I include a Sales Order Nbr that isn’t “<NEW>”.

4 replies

Forum|alt.badge.img+7
  • Captain II
  • June 6, 2025

When you’re creating a new order, just give the OrderType but don’t include OrderNbr in your json.


jinin
Pro I
Forum|alt.badge.img+11
  • Pro I
  • June 9, 2025

Hi ​@bpgraves ,

As ​@Django  mentioned, please do not include the OrderNbr in the request. If you're still facing the issue, kindly share the order request.

{

    "CustomerId": {

        "Value": "1001151"

    },

    "OrderType": {

        "Value": "SO"

    },

"Details": [

      {

         "InventoryID": {

            "Value": "20984"

         },

         "UnitPrice": {

            "Value": 200

         },
         "OrderQty": {

            "Value": 1

         }
}

}


Forum|alt.badge.img+2
  • Author
  • Semi-Pro I
  • Answer
  • June 9, 2025

I think it’s the configuration because the Sales Orders gets created when I include a Sales Order Nbr that isn’t “<NEW>”.


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • June 9, 2025

Thank you for sharing your solution with the community ​@bpgraves!