Question

Is there a way to update a sales order which is already created before?

I use C# and qbxml, but I couldn't find any XML statement or link about that. Is it possible or not?

Was it helpful?

Solution

I finally found the answer. Well, in order to update/modify a sales order, we need to use the "SalesOrderModRq" option.

Here is my example:

<?qbxml version="11.0"?>
<QBXML>
    <QBXMLMsgsRq onError="stopOnError">
        <SalesOrderModRq>
            <SalesOrderMod>
                <TxnID>1407-1346251803</TxnID>
                <EditSequence>1354787709</EditSequence>

                <SalesOrderLineMod>
                    <TxnLineID>1409-1346251803</TxnLineID>
                    <ItemRef>
                        <FullName>Item</FullName>
                    </ItemRef>
                    <Desc>Item Description</Desc>
                    <Quantity>5</Quantity>
                    <Rate>10.00</Rate>
                    <Amount>50.00</Amount>
                    <IsManuallyClosed>false</IsManuallyClosed>
                </SalesOrderLineMod>
            </SalesOrderMod>
        </SalesOrderModRq>
    </QBXMLMsgsRq>
</QBXML>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top