简体   繁体   中英

I am getting a 400 error when using QuickBooks API

I am going off the accepted answer from this post: Connecting an ASP.NET application to QuickBooks Online Edition

I am getting a 400 error when making the connection thru C#. I have read that this might be because of an XML error. Here is my XML:

<?xml version="1.0"?>
<?qbxml version="6.0"?>
<QBXML>
    <SignonMsgsRq>
        <SignonDesktopRq>
            <ClientDateTime>2013-04-12T15:54:18</ClientDateTime>
            <ApplicationLogin>MY APP LOGIN</ApplicationLogin>
            <ConnectionTicket>MY CONNECTION TICKET</ConnectionTicket>
            <Language>English</Language>
            <AppID>MY APP ID</AppID>
            <AppVer>1</AppVer>
        </SignonDesktopRq>
    </SignonMsgsRq>
</QBXML>

I am not seeing any issues with the XML. Yes I am substituting my actual applicationLogin,ConnectionTicket, and AppID. Am I missing something?

I found the issue, I didn't have the application setup correctly in the QB portal. I recreated it with the correct settings and that took care of my problem.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM