OK I was given some JSON CODE By a third party API provider he says it wont post. How do I test it for him?????
I ran swagger Post sales order and put the json code in the body box (after doing a login)
and it says No debtorid?? If I just put the debtorid, in the debtorid field in Post sales order, it creates a sales order fine?
{
"DebtorID" : "00000000060000000003",
"AccountNo" : "AZENG",
"OrderNo": "43784",
"SOReference": "LUCY",
"DeliveryAddress1": "The Music Store
1234 Fake Street",
"DeliveryAddress2": "",
"DeliveryAddressAddressee": "",
"DeliveryAddressSuburb": "Sydney",
"DeliveryAddressState": "NSW",
"DeliveryAddressPostcode": "2000",
"DeliveryAddressCountry": "Au",
"InitiatedDate": "2017/08/29",
"Notes": [
{ "NoteText": "Deliver To:", }
,
{ "LineNo": "0", "NoteText": "816 RRP-30-5 138.44", }
,
{ "LineNo": "1", "NoteText": "816 RRP-30-10 4.69", }
,
{ "LineNo": "2", "NoteText": "1016 RRP-30-5 543.49", }
,
{ "LineNo": "3", "NoteText": "216 RRP-30-5 71.94", }
],
"Lines": [
{ "PartNo": "0000TESTTAGNEW", "QuantityOrdered": "1", "UnitCost": "", }
,
{ "PartNo": "00010002", "QuantityOrdered": "1", "UnitCost": "4.69", }
,
{ "PartNo": "00010104", "QuantityOrdered": "1", "UnitCost": "", }
,
{ "PartNo": "0000TESTTAGNEW", "QuantityOrdered": "2", "UnitCost": "71.94", }
]
}