Example: Create Sales Invoice

 
 var reqJson = {
   Customer: {
     //Id: null,
     Name: 'FirstCustomer Inc',
     RegNo: '1122334455',
     NotTDCustomer: false,
     VatRegNo: '11223344',
     CurrencyCode: 'EUR',
     PaymentDeadLine: 7,
     OverDueCharge: 0,
     RefNoBase: 1,
     Address: 'Merimiehenkatu 31',
     CountryCode: 'FI',
     County: 'Finland',
     City: 'Helsinki',
     PostalCode: '',
     PhoneNo: '6548765',
     PhoneNo2: '',
     HomePage: '',
     Email: 'customermail@gmail.com',
   },
   DocDate: '20170113131239',
   DueDate: '20170125131239',
   InvoiceNo: '123',
   RefNo: '222',
   DepartmentCode: '',
   ProjectCode: '',
   InvoiceRow: [
     {
       Item:
         {
           Code: 1234567,
           Description: 'Bag of goldflakes',
           Type: 3,
           UOMName: 'kg',
         },
       Quantity: '2',
       Price: '1000',
       DiscountPct: 0,
       DiscountAmount: 0,
       TaxId: '665f01a4-357a-4a6b-a565-2f17e6e1da13',
       LocationCode: 1,
     },
   ],
   TotalAmount: 2000,
   RoundingAmount: 0,
   TaxAmount: [{ TaxId: '665f01a4-357a-4a6b-a565-2f17e6e1da13', Amount: 400 }],
   HComment: '',
   FComment: '',
 };