有没有办法使用qbsdk和qbxml离线从Quickbooks中删除客户?

时间:2015-09-30 07:36:58

标签: quickbooks qbxml

我想使用该客户的ListId从quickbooks中删除特定客户。在那种情况下,我的qbxml请求是什么?

1 个答案:

答案 0 :(得分:1)

您可以使用ListDelRq从QuickBooks中删除列表类型的内容(Customers,Items,Vendors等)。

请参阅OSR以获取完整语法:

您的请求将如下所示:

?xml version="1.0" encoding="utf-8"?>
<?qbxml version="9.0"?>
  <QBXML>
    <QBXMLMsgsRq onError="stopOnError">
      <ListDelRq>
        <!-- ListDelType may have one of the following values: Account, BillingRate, Class, Currency, Customer, CustomerMsg, CustomerType, DateDrivenTerms, Employee, InventorySite, ItemDiscount, ItemFixedAsset, ItemGroup, ItemInventory, ItemInventoryAssembly, ItemNonInventory, ItemOtherCharge, ItemPayment, ItemSalesTax, ItemSalesTaxGroup, ItemService, ItemSubtotal, JobType, OtherName, PaymentMethod, PayrollItemNonWage, PayrollItemWage, PriceLevel, SalesRep, SalesTaxCode, ShipMethod, StandardTerms, ToDo, UnitOfMeasureSet, Vehicle, Vendor, VendorType, WorkersCompCode -->
      <ListDelType>ENUMTYPE</ListDelType>
      <ListID>IDTYPE</ListID>
    </ListDelRq>
  </QBXMLMsgsRq>
</QBXML>