Properly using Erp.BO.QuoteSvc /CreateOrder() method

Hey fellow Epi users!

I’m currently building a web interface that will pass a PO number to a Quote, and then call the Quote’s /CreateOrder service to convert the quote to an order.

I would like to know what the bare minimum values are, that I need to pass in the body, in order to get this to convert a quote to order.

I’m currently passing:

{
  "ds": {
    "QuoteHed": [
      {
   
        "Company": "SSW",
        "QuoteNum": 26320	
      }
    ]
  }
}

But get:

{
  "HttpStatus": 400,
  "ReasonPhrase": "REST API Exception",
  "ErrorMessage": "Quote records not found. Cannot create order.",
  "ErrorType": "Ice.BLException",
  "ErrorDetails": [
    {
      "Message": "Quote records not found. Cannot create order.",
      "Type": "Error",
      "Program": "Erp.Services.BO.Quote.dll",
      "Method": "createOrderInternal",
      "ColumnNumber": 17,
      "LineNumber": 9649
    }
  ]
}

I am 100% sure the quote exists in the the DB.

Any tips on what all needs to be passed in this request would be appreciated!

Always start by running a trace of the command you want manually, this will let you know what the Epicor client calls to get the job done. Also search for the Trace Utility tool to make it even easier.

1 Like