I am sending a quote via the SalesQuotes API using CURL post.
I am getting a ["http_code"]=> int(201) reply.
But I am not seeing the quote being recorded anywhere.
Here is my payload:
- Code: Select all
"Type": "string",
"StaffUserName": "Admin",
"StaffTitle": "WEB GUY",
"StaffFirstName": "BRUCE",
"StaffSurname": "EVANS",
"InvoiceInitDate": "2023-04-12T14:04:16",
"OrderNo": "AWC_6433617071681258948",
"DebtorID": "abcabcabcabvcccccc",
"DebtorAccountNo": "123123123",
"DebtorName": "Abu Web Commerce",
"DebtorEmailAddress": "[email protected]",
"DeliveryAddress1": "1here",
"DeliveryAddress2": "2 there",
"DeliveryAddressSuburb": "Adel",
"DeliveryAddressState": "SA",
"DeliveryAddressPostcode": "",
"DeliveryAddressCountry": "Australia",
"Lines": [{
"ItemNo": 0,
"QuoteLineID": "na",
"InventoryID": "4982d66f54f443089b07",
"PartNo": "na",
"Description": "ADVANCE CAT CHICKEN",
"QuantityOrdered": 1,
"UnitCost": 52,
"LineTotal": 52
},{
"ItemNo": 0,
"QuoteLineID": "na",
"InventoryID": "9abc5172851040d18871",
"PartNo": "na",
"Description": "ADVANCE ADULT ALL BREED CHICKEN & SALMON WET DOG FOOD",
"QuantityOrdered": 1,
"UnitCost": 51,
"LineTotal": 51
}]}
Not sure what I am doing wrong.
Any advice?
Also does a quote go into a SO_Main table with the status of '0' until it is finalised?
Cheers