sdk - How to modify an invoice in quickbooks using qbxml and qbsdk13 in c#? -
i have done invoicemodquery
<?xml version="1.0" ?> <?qbxml version="6.0"?> <qbxml> <qbxmlmsgsrq onerror="stoponerror"> <invoicemodrq requestid="1"> <invoicemod> <txnid>79-1442638826</txnid> <editsequence>1442638826</editsequence> <customerref> <listid>80000004-1442638803</listid> <fullname>chris evans</fullname> </customerref> <txndate>2015-09-19</txndate> <refnumber>5461</refnumber> <invoicelinemod> <itemref> <listid>8000000a-1442469770</listid> <fullname>item 1</fullname> </itemref> <quantity>1</quantity> <rate>100.00</rate> </invoicelinemod> <invoicelinemod /> <invoicelinemod> <itemref> <listid>8000000b-1442469788</listid> <fullname>item 2</fullname> </itemref> <quantity>1</quantity> <rate>200.00</rate> </invoicelinemod> </invoicemod> </invoicemodrq> </qbxmlmsgsrq> </qbxml>
when send request sdk error saying quickbooks couldnot parse provided xml. please suggest going wrong.
for starters, need provide valid xml quickbooks process it. request above not valid xml.
it's not valid xml because of hyphens have in request (i'm guessing copy/pasted somewhere put dashes in):
-<qbxml> -<qbxmlmsgsrq onerror="stoponerror"> -<invoicemodrq requestid="1">
remove hyphens, , try again.
you should consider copy/pasting xml xml validator tool found online, have showed errors.
Comments
Post a Comment