1

我已经引用了新的 OSR 并尝试将发票添加到快速预订在线基本帐户但没有成功。请注意,我在 XML 中为产品和客户添加了正确的列表 ID。但它会在 XML 下方回复我,

<?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>
4

1 回答 1

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 复选框,取消选中 US 复选框,并将 QuickBooks Online 设置为 6.0),您会注意到 QuickBooks Online 不支持此字段:

  • 订单号

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

于 2013-10-10T14:12:27.420 回答