简体   繁体   English

使用.NET IPP QBOV3 SDK从c#在线通过QuickBooks API添加采购订单

[英]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.

相关问题 使用.NET IPP QBOV3 SDK在线将发票添加到快速簿 - Adding invoice to quickbooks online using .NET IPP QBOV3 SDK QuickBooks Online(QBO)通过C#中的v2 IPP .NET SDK写入发票上的自定义字段 - QuickBooks Online (QBO) write to Custom Fields on Invoice via v2 IPP .NET SDK in C# 使用.NET c#IPP数据服务SDK创建新的QuickBooks Bill时所需的属性 - Required Properties when using .NET c# IPP Data Service SDK to create new QuickBooks Bill Quickbooks Online Api SDK c# - 有没有办法使用 api 为账单创建和更新隐藏的自定义字段 - Quickbooks Online Api SDK c# - Is there a way to create and update hidden custom field for bill with use api 从 C# 在 Quickbooks Online 中创建客户 - Creating Customer in Quickbooks Online from C# 使用IPP .NET SDK for QuickBooks v3.0的SalesItemLineDetail上没有单价吗? - No UnitPrice available on SalesItemLineDetail using IPP .NET SDK for QuickBooks v3.0? Quickbooks 在线集成 c# - Quickbooks Online integration c# 将Quickbooks IPP API从旧版QBD v3转换为QBO - Convert Quickbooks IPP API from legacy QBD v3 to QBO 获取问题 QuickBooks 客户备注列表 => QuickBooks Desktop SDK for .NET C# - Getting Issue QuickBooks Customer Notes List => QuickBooks Desktop SDK for .NET C# IPP .NET c#SDK允许查询过滤器,但这不会减少有效负载吗? - IPP .NET c# SDK allows query filters, but this does not reduce payload?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM