Page 2 of 2

Re: salesOrderPOSTRequest

PostPosted: Thu May 21, 2020 10:03 pm
by Mike.Sheen
Thanks, Stuart for offering a possible work-around.

I've tested this against our own api.jiwa.com.au, and when I POST the following DTO against https://api.jiwa.com.au/SalesOrders using a note type ID which is NOT the default, it correctly creates the sales order and returns the response with the right note and note type:

Code: Select all

  "DebtorAccountNo": "1001", 
  "Notes": [
    {     
      "NoteType": {
        "NoteTypeID": "EE3BDB34-0879-472A-A28A-216C7EF85FA0",
      },
      "NoteText": "test"
    }
  ], 
}


One thing to check might be the case of your NoteTypeID - try a GET on /SalesOrders/NoteTypes and see if the case shown there matches what you are POSTing when creating the sales order.