Apologies if this is supposed to be the ion category but we are trying to create and update draft orders via SX API REST Service using the https://mingle-ionapi.inforcloudsuite.com url. The path I am using for straight order creation is /SX/web/sxapirestservice/sxapiOEFullOrderMntV6. With straight order creation I am able to override a line item price by using "unitCost": but I can't figure out how to get a discount percentage to go through. The only thing we could find said to use these three lines together but that isn't working
"pricecd": "10" | |
|---|
"priceclty": "LP" | |
"pricetype": "CLR" | |
I've attached the full request if that will help. the 4th product is the one I was trying to create with a discount.
We also are trying to update draft orders already created and it will let us add new products to the order or even replace one product with another but we can't figure out how to completely delete a product from the order. For example if I try to go from the 4 products listed in the request above and just remove one then it will continue to have 4 line items on the order/quote. We are trying to delete the product line via code like this:
{
"sxLineNo": "0001",
"actionType": "D"
},
for each line that needs to be deleted and the following for the order api information (action and transaction type)
"sxt_orderV4": {
"sxt_orderV4": [
{
"addontype3": "$",
"addonno3": "2",
"addonamt3": 0,
"addontype2": "$",
"addonno2": "88",
"addonamt2": 0,
"addontype1": "$",
"addonno1": "1",
"addonamt1": 0,
"shipVia": "AAFG-Grand Logist",
"transType": "QU",
"actionType": "ServiceOrder"
}
]
},
Does anyone know what the correct request would be so that it propably accepts discount percentages and product/line deletion requests?
Thanks!