[英]Adding a Purchase Order via QuickBooks API from c# online using .NET IPP QBOV3 SDK
I am trying to post a purchase order to QuickBooks online using the c# .NET IPP QBOV3 SDK. 我正在尝试使用c#.NET IPP QBOV3 SDK将采购订单在线发布到QuickBooks。
I have managed to get Invoices posting OK, so I thought adding an purchase order, would be very similar. 我设法使发票过帐正常,所以我认为添加采购订单将非常相似。 However, this is not the case.
然而,这种情况并非如此。 (at least it doesnt seem to be - correct me if I am wrong)
(至少它似乎不是-如果我错了请纠正我)
I can not find any working c# examples of this, so was hoping someone could set me in the right direction. 我找不到任何有效的c#示例,因此希望有人可以将我设定在正确的方向。
The only question I could find on SO is - how to add purchase order with QBO rest api v3.0 我可以在SO上找到的唯一问题是- 如何使用QBO Rest API v3.0添加采购订单
However, this code just gives a "Bad request" error, which is not very helpful at all. 但是,此代码仅给出“错误请求”错误,根本不是很有帮助。
Even if someone could point me in the right direction on how I can view the JSON request I am sending, and how I can view the response would be a help. 即使有人可以向我指出如何查看正在发送的JSON请求的正确方向,以及如何查看响应也将有所帮助。
The code mentioned in the link in the question is OK. 问题链接中提到的代码可以。 The problem I had was the item itself - in the item list there is a tick box, which states if the item is sold or purchased - I had the tick box to say it was sold, silly mistake.
我遇到的问题是商品本身-在商品列表中有一个复选框,其中指出了该商品是出售还是购买的-我有一个勾选框说它已出售,这是愚蠢的错误。 (obviously should of been set to the item is purchased)
(显然应该设置为已购买的商品)
Having this ticked on, was enough to stop the PO from being created. 选中此复选框足以阻止创建PO。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.