Using Epicor REST API to create a salesOrder but getting date format error

I’m trying to POST an order from a CRM shopping website but keeping getting this error of date format. I’m using the “Erp.BO.SalesOrderSvc” service to create the order.

Here’s the error I’m getting

{
  error: {
    code: '',
    message: 'The request is invalid.',
    innererror: {
      message: "entity : Cannot convert a value to target type 'Edm.Decimal' because of conflict between input format string/number and parameter 'IEEE754Compatible' false/true.\r\n",
      type: '',
      stacktrace: ''
    }
  }
}

Below is my PayLoad

{
  Company: '',
  PONum: 'xxxxxxxxxxx',
  OrderNum: '65526dfcs',
  CustNum: 68233432,
  CurrencyCode: 'USD',
  OrderDate: '2022-06-28T15:48:17.289Z',
  OrderStatus: 'completed',
  TotalDiscount: '0.00',
  CCTotal: '2665.00',
  ShipToAddressList: 'address.',
  ShipToContactName: 'xxxxxx',
  CustomerName: 'xxx',
  EnableCreditCard: true,
  ECCPaymentMethod: 'goe',
  OrderDtls: [
    {
      Company: 'xxx',
      OrderNum: '65526',
      OrderLine: 4,
      PartNum: 'xxxx',
      SellingQuantity: 2,
      UnitPrice: 820
    }
  ]
}

Isn’t this supposed to be an integer?

Don’t worry about that; I’m just using a demo payload for the question.
The only issue I’m having is the date format error.

What version of Epicor are you on?

Don’t worry :slightly_smiling_face:. I found where the issue is coming from. I was passing some values as strings when they were supposed to be integers.
Like the order number, CCTotal and Discount.

Thanks.