2013-10-10 24 views
1

快速预订在线基本账户我已经引用了新的OSR并尝试将发票添加到快速预订在线基本账户,但没有成功。请注意,我在XML为产品添加正确的列表ID和customer.But将下面的XML响应我,QBXML:添加发票到QBOE App/QBXML

<?xml version="1.0" ?> 
<?qbxml version="6.0"?> 
<QBXML> 
    <SignonMsgsRq> 
     <SignonTicketRq> 
      <ClientDateTime>2013-10-10T07:42:51</ClientDateTime> 
      <SessionTicket>********</SessionTicket> 
      <Language>English</Language> 
      <AppID>**********</AppID> 
      <AppVer>1</AppVer> 
     </SignonTicketRq> 
    </SignonMsgsRq> 

    <QBXMLMsgsRq onError="stopOnError"> 
    <InvoiceAddRq requestID="2"> 
     <InvoiceAdd> 
     <CustomerRef> 
    <ListID>15</ListID> 
      <FullName>vivek patel</FullName> 
     </CustomerRef> 
     <TxnDate>2010-10-10</TxnDate> 
     <RefNumber>1234</RefNumber> 
     <BillAddress> 
      <Addr1>Baroda</Addr1> 
      <City>Baroda</City> 
      <State>AL</State> 
      <PostalCode>123456789</PostalCode> 
      <Country>US</Country> 
     </BillAddress> 
     <PONumber></PONumber> 
     <Memo></Memo> 
     <InvoiceLineAdd> 
      <ItemRef> 
      <ListID>8</ListID> 
      <FullName>Test Service</FullName> 
      </ItemRef> 
      <Desc>Test Service</Desc> 
      <Quantity>1</Quantity> 
      <Rate>20</Rate> 
     </InvoiceLineAdd> 
     </InvoiceAdd> 
    </InvoiceAddRq> 
    </QBXMLMsgsRq> 
</QBXML>HTTP/1.1 100 Continue 

HTTP/1.1 100 Continue 

HTTP/1.1 200 OK 
Date: Thu, 10 Oct 2013 13:05:05 GMT 
Server: Apache/1.3.41 (Unix) mod_ssl/2.8.31 OpenSSL/0.9.8r ApacheJServ/1.1.2 
Content-Type: text/plain 
Transfer-Encoding: chunked 

<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?> 
<!DOCTYPE QBXML PUBLIC "-//INTUIT//DTD QBXML QBO 6.0//EN" "http://apps.quickbooks.com/dtds/qbxmlops60.dtd"> 
<QBXML> 
<SignonMsgsRs> 
    <SignonTicketRs statusCode="0" statusSeverity="INFO"> 
    <ServerDateTime>2013-10-10T13:05:07</ServerDateTime> 
    <SessionTicket>*********</SessionTicket> 
    </SignonTicketRs> 
</SignonMsgsRs> 
<QBXMLMsgsRs> 
    <InvoiceAddRs requestID="2" statusCode="530" statusMessage="A field that is not supported was included in the request. The remainder of the request was processed normally, but the unsupported field was ignored." statusSeverity="Warning"> 
    <InvoiceRet> 
    <TxnID>15</TxnID> 
    <TimeCreated>2013-10-10T06:05:06</TimeCreated> 
    <TimeModified>2013-10-10T06:05:06</TimeModified> 
    <EditSequence>0</EditSequence> 
    <TxnNumber>15</TxnNumber> 
    <CustomerRef> 
    <ListID>15</ListID> 
    <FullName>vivek patel</FullName> 
    </CustomerRef> 
    <ARAccountRef> 
    <ListID>54</ListID> 
    <FullName>Accounts Receivable (A/R)</FullName> 
    </ARAccountRef> 
    <TxnDate>2010-10-10</TxnDate> 
    <RefNumber>1234</RefNumber> 
    <BillAddress> 
    <Addr1>Baroda</Addr1> 
    <City>Baroda</City> 
    <State>AL</State> 
    <PostalCode>123456789</PostalCode> 
    <Country>US</Country> 
    </BillAddress> 
    <ShipAddress> 
    <Addr1>Baroda</Addr1> 
    <Addr2>Baroda2</Addr2> 
    <City>Baroda3</City> 
    <State>AL</State> 
    <PostalCode>123456789</PostalCode> 
    <Country>US</Country> 
    </ShipAddress> 
    <DueDate>2010-11-09</DueDate> 
    <Subtotal>20.00</Subtotal> 
    <SalesTaxPercentage>0</SalesTaxPercentage> 
    <AppliedAmount>0.00</AppliedAmount> 
    <BalanceRemaining>20.00</BalanceRemaining> 
    <IsPaid>false</IsPaid> 
    <IsToBePrinted>false</IsToBePrinted> 
    <InvoiceLineRet> 
    <TxnLineID>1</TxnLineID> 
    <ItemRef> 
     <ListID>8</ListID> 
     <FullName>Test Service vivek</FullName> 
    </ItemRef> 
    <Desc>Test Service vivek</Desc> 
    <Quantity>1</Quantity> 
    <Rate>20</Rate> 
    <Amount>20.00</Amount> 
    <IsTaxable>false</IsTaxable> 
    </InvoiceLineRet> 
    </InvoiceRet> 
    </InvoiceAddRs> 
</QBXMLMsgsRs> 
</QBXML> 

回答

3

该响应消息:

<InvoiceAddRs requestID="2" statusCode="530" statusMessage="A field that is not supported was included in the request. The remainder of the request was processed normally, but the unsupported field was ignored." statusSeverity="Warning"> 

手段几乎正是它说,它手段。

请求成功 - 您的发票已成功添加。

但是,您应该知道(因此警告)您使用了QuickBooks Online版本不支持的字段。如果您在OSR看(确保检查OE复选框,取消美国的复选框,并设置为6.0 QuickBooks的在线),你会发现,QuickBooks的在线确实支持这一领域:

  • PONumber

因此,它告诉你该字段不受支持。

+0

非常感谢您的帮助。它已成功完成。 但它会在我们的在线快速帐户中添加没有收到付款的发票。 “InvoiceAdd”中是否有任何属性或其他方法来使付款等发票收到? –

+0

就像在QuickBooks GUI中一样,付款是QuickBooks API中的一个*完全独立的事务*。如果您想添加发票,您可以执行InvoiceAdd。如果您想要添加收到的付款,请执行ReceivePaymentAdd。 –

+0

非常感谢您的帮助。我成功地将数据从网站推送到快速预订。 –

相关问题