Page 1 of 1

Sales Order REST API

PostPosted: Tue May 15, 2018 6:38 pm
by minhhieu106
Hi Mike,

I try to create New Credit Note but it always create Sales Order type.

Image

Below is the JSON with "CreditNote":true:

Code: Select all
{
   "DebtorID":"0000000061000000001V",
   "CreditNote":true,
   "InitiatedDate":"2018-04-13T00:00:00",
   "OrderNo":"STS00004",
   "SOReference":10000000000000307,
   "Lines":[ 
      { 
         "PartNo":"01140008",
         "QuantityOrdered":2.00000,
         "DiscountedPercentage":0.0,
         "DiscountedPrice":100.00000,
         "TaxRate":{ 
            "RecID":"GST02000000000000000",
            "Rate":10.00000
         }
      }
   ],
   "Payments":[ 
      { 
         "PaymentRef":"BankTransfer",
         "AmountPaid":-220.00000
      }
   ]
}


Please advise how to create Credit Note

Thanks,
Hieu

Re: Sales Order REST API  Topic is solved

PostPosted: Wed May 16, 2018 5:41 pm
by Mike.Sheen
Hi Hieu,

I can confirm this is a bug - logged as DEV-6619.

I couldn't find a work-around - the fault is within the sales order business logic deserialisation.

Mike.