当更新QuickBooks的API错误 [英] QuickBooks API error when updating

查看:231
本文介绍了当更新QuickBooks的API错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用QuickBooks的API同步了我公司与该工作簿的项目列表中的产品列表。我已经通过OAuth的系统已经到能够使读/写请求的API,但总是得到一个错误,同时尝试更新的对象。

I'm attempting to use the QuickBooks API to sync up my company's product list with the workbook's item list. I have gotten through the OAuth system to be able to make read/write requests to the API, but always get an error while attempting to update an object.

这是我一直使用的引用是<一个href=\"https://ipp.developer.intuit.com/0010_Intuit_Partner_Platform/0050_Data_Services/0500_QuickBooks_Windows/0100_Calling_Data_Services/0020_Updating_an_Object\"相对=nofollow>此处,并在同一文档检索到,我已经能够使用就好了一个对象的引用。这是我要送中的 XML。我一直在调整的XML几个小时,现在没有结果。

The reference that I have been using is here, and within the same documentation is a reference to retrieving an object that I have been able to use just fine. This is the XML that I'm sending. I have been tweaking the XML for a few hours now to no avail.

这是我得到的是错误信息 QB项目名称已经存在ERI = 420962215 。这ERI是我的境界ID。它看起来像QuickBooks的认为我想补充一个新的项目,当我试图修改现有的。如果我省略了名称字段或离开它空,它给了我一个错误也是如此。

The error message that I get is "QB item name already exists ERI=420962215". That ERI is my realm ID. It seems like QuickBooks thinks I am trying to add a new item, when I'm trying to modify an existing one. If I omit the name field or leave it null, it gives me an error as well.

这是我试图修改的项​​目是在QuickBooks中创建,然后通过的QuickBook的同步管理器同步。然后,我验证我的应用程序到该工作簿,并已能够很容易地读取数据。我只有一个问题,当我试图写。我还没有尝试创建或删除对象,因为我一直在拖延更新了。

The item that I am attempting to modify was created in QuickBooks, then synced through QuickBook's Sync Manager. I then authenticated my app to that workbook and have been able to read data easily. I only have an issue when I attempt to write. I have yet to try creating or deleting an object since I've been stalling out on updating.

我想只是建立在我公司的网站一个简单的形式保存时将达到API和更新的数据,但我找不到解决这个错误的方法。

I am trying to just set up a simple form on my company's site that will hit the API and update data when saving, but I can't find a way around this error.

任何帮助将大大AP preciated。我开始对周五的麻烦,觉得我只是在圈子里旋转了。我发现了一个QuickBooks的/ PHP库,并试图通过寻找,看是否能找到有用的信息,但它是一个有点太大,我找到了我一直在寻找,因为我认为错误只是一些不正确的XML。

Any help would be greatly appreciated. I began to have trouble on Friday and feel like I'm just spinning in circles now. I found a QuickBooks / PHP library and tried looking through it to see if I could find useful information, but it was a bit too large for me to locate what I was looking for, since I think the error is just some incorrect XML.

我也跟着更新基准内的所有方向,只是无法取得进展。我已经双重和三重检查我的身份验证的工作,该URL是正确的,那我送POST和GET不和我的XML在该示例中显示的XML相匹配。

I have followed all the directions within the update reference and just can't make progress. I've double and triple checked that my authentication works, that the URL is correct, that I'm sending POST and not GET and that my XML matches the XML shown in that example.

更新2012-03-15

看来问题是,API是不能够更新被通过的QuickBooks创建一个项目。自从项目都有一个ID和一个idDomain,这表明,如果它是通过API(NG)或QuickBooks的(QB)制成。一个例子ID / idDomain是1 / QB或2556587 / NG。

It seems the problem is that the API is not able to update an item that was created through QuickBooks. Ever item has an id and an idDomain, which indicates if it was made through the API (NG) or Quickbooks (QB). An example id/idDomain would be 1/QB or 2556587/NG.

每当我这样做,我能够完全更新是通过API制成的产品,却没有一个通过的Quickbooks的。展望<一后href=\"https://ipp.developer.intuit.com/0010_Intuit_Partner_Platform/0050_Data_Services/0500_QuickBooks_Windows/0100_Calling_Data_Services/0020_Updating_an_Object\"相对=nofollow>支持的对象引用,我注意到,项目集更新/创建被列为测试版。

Whenever I was doing this, I was able to perfectly update an item that was made through the API, but not one made through Quickbooks. After looking into the Supported Object Reference, I noticed that item assembly update/create is listed as beta.

推荐答案

看来,我在写的更新是正确的。我无法更新通过API在QuickBooks中所做的项目。我可以读QuickBooks中制成的物品,我可以创建项目,我可以编辑通过API制成的物品,但编辑通过API在QuickBooks制成的产品返回此错误。

It seems that what I wrote in the update is correct. I am not able to update items that were made in quickbooks through the API. I can read items made in quickbooks, I can create items and I can edit items made through the API, but editing an item made in quickbooks through the API returns this error.

这篇关于当更新QuickBooks的API错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆