Quickbooks在线版 - 从网站推送数据,在线快速阅读,快速在线提取数据,在网站上显示

时间:2013-10-05 05:30:38

标签: php quickbooks-online qbxml

我正在使用keith palmer的PHP devkit推送数据快速预订QBXML的在线基本帐户。

我已经在“PRODUCTION”模式下创建了QBOE应用,并成功获取了应用ID,应用登录和连接票。但我陷入了QBXML。它会让我回答空白。

调用后,

$resp = $Gateway->qbxml($xml);
print($Gateway->lastRequest());
print($Gateway->lastResponse());

我的输出如下,但不会在快速在线基本账户中提取任何数据。

<?qbxml version="6.0"?>
<QBXML>
    <SignonMsgsRq>
        <SignonDesktopRq>
            <ClientDateTime>2013-10-04T12:49:04</ClientDateTime>
            <ApplicationLogin>********************</ApplicationLogin>
            <ConnectionTicket>********************</ConnectionTicket>
            <Language>English</Language>
            <AppID>************</AppID>
            <AppVer>1</AppVer>
        </SignonDesktopRq>
    </SignonMsgsRq>
</QBXML>HTTP/1.1 200 OK
Date: Fri, 04 Oct 2013 06:13:21 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>
  <SignonDesktopRs statusCode="2000" statusMessage="Application agent not found **************" statusSeverity="ERROR">
   <ServerDateTime>2013-10-04T06:13:47</ServerDateTime>
  </SignonDesktopRs>
</SignonMsgsRs>
</QBXML>

需要一些帮助。如果有人知道出了什么问题。?

要将销售订单添加到我网站上的快速预订在线基本帐户,我使用此网址中的qbxml“http://www.consolibyte.com/docs/index.php/QbXML_for_Adding_a_Sales_Order”并收到类似的错误。以下是我的代码,

<?xml version="1.0" ?>
<?qbxml version="6.0"?>
<QBXML>
    <SignonMsgsRq>
        <SignonTicketRq>
            <ClientDateTime>2013-10-09T07:39:09</ClientDateTime>
            <SessionTicket>******</SessionTicket>
            <Language>English</Language>
            <AppID>****My App Id****</AppID>
            <AppVer>1</AppVer>
        </SignonTicketRq>
    </SignonMsgsRq>

    <QBXMLMsgsRq onError="stopOnError">
        <SalesOrderAddRq requestID="1">
            <SalesOrderAdd>
                <CustomerRef>
                    <FullName>vivek patel</FullName>
                </CustomerRef>
                <TxnDate>2013-10-09</TxnDate>
                <RefNumber>23112628110</RefNumber>
                <BillAddress>
                    <Addr1>Pam  Barker</Addr1>
                    <Addr2>500 Kirts Boulevard</Addr2>
                    <Addr3/>
                    <City>Troy</City>
                    <State>Mi</State>
                    <PostalCode>48084</PostalCode>
                    <Country>US</Country>
                </BillAddress>
                <ShipAddress>
                    <Addr1/>
                    <Addr2>7322 Southwest Freeway </Addr2>
                    <Addr3>Ste, 170</Addr3>
                    <City>Houston</City>
                    <State>TX</State>
                    <PostalCode>77074</PostalCode>
                    <Country>US</Country>
                </ShipAddress>
                <ItemSalesTaxRef>
                    <FullName>Out of State</FullName>
                </ItemSalesTaxRef>
                <SalesOrderLineAdd>
                    <ItemRef>
                        <FullName>Series 01 (20 Labels) </FullName>
                    </ItemRef>
                    <Desc>Series 01 (20 Labels) </Desc>
                    <Quantity>1</Quantity>
                    <Amount>9.95</Amount>
                </SalesOrderLineAdd>
            </SalesOrderAdd>
        </SalesOrderAddRq>
    </QBXMLMsgsRq>
</QBXML>HTTP/1.1 100 Continue

HTTP/1.1 100 Continue

HTTP/1.1 200 OK
Date: Wed, 09 Oct 2013 13:03:51 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-09T13:03:49</ServerDateTime>
   <SessionTicket>V1-95-Q0zql4yqpal0scxpwbbcjv:816233885</SessionTicket>
  </SignonTicketRs>
 </SignonMsgsRs>
 <QBXMLMsgsRs>
  <SalesOrderAddRs requestID="1" statusCode="1030" statusMessage="Not supported" statusSeverity="Error"/>
 </QBXMLMsgsRs>
</QBXML>

需要帮助。在我们制作用于添加销售订单的QBXML代码之前,我们必须提供产品。如果是这样,那么当我使用QBXML添加产品时,它会给我同样的错误,如上所述。 我将此网址http://www.consolibyte.com/wiki/doku.php/quickbooks_qbxml_iteminventoryadd称为产品添加。

请问ID =“1”是否是唯一的ID? 什么是

<RefNumber>23112628110</RefNumber> 

代表QBXML?是否有任何可用于QBXML属性描述的参考。

请提供一些帮助。

1 个答案:

答案 0 :(得分:0)

此错误:

  

SignonDesktopRs statusCode =“2000”statusMessage =“申请代理商   找不到 * ** * ** “statusSeverity =”ERROR“

表示您的App ID,App Login,Connection Ticket或注册设置不正确。

您的应用注册的设置是什么?它是否已注册为PRODUCTION,QBOE应用程序?