-1

是什么导致 V3 中的 SyncError 以及如何解决它?如果是验证相关,为什么API无法处理?最后,有没有给 QBD 用户的提示?

4

1 回答 1

2

您需要使用 V2 API 解决此问题。

与同步过程相关的 PFB 链接

https://developer.intuit.com/docs/0025_quickbooksapi/0050_data_services/v2/0500_quickbooks_windows/0300_sync_manager

https://developer.intuit.com/docs/0025_quickbooksapi/0050_data_services/v2/0500_quickbooks_windows/0400_data_synchronization

要知道哪个对象处于错误状态,请参考

https://developer.intuit.com/docs/0025_quickbooksapi/0050_data_services/v2/0500_quickbooks_windows/0100_calling_data_services/0015_retrieving_objects

您可能还想知道为什么这些对象处于错误状态。为此,请参阅状态 API。前任 -

<?xml version="1.0" encoding="UTF-16"?>
<CustomerQuery ErroredObjectsOnly="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.intuit.com/sb/cdm/v2">
</CustomerQuery>

https://developer.intuit.com/docs/0025_quickbooksapi/0050_data_services/v2/0500_quickbooks_windows/0600_object_reference/syncstatus

<SyncStatusRequest ErroredObjectsOnly="true" xmlns="http://www.intuit.com/sb/cdm/v2">
    <NgIdSet>
        <NgId>1527022</NgId>
        <NgObjectType>Invoice</NgObjectType>
    </NgIdSet>
    <StartCreatedTMS>1986-02-05T14:51:18.038+05:30</StartCreatedTMS>
    <EndCreatedTMS>2015-11-05T14:51:18.038+05:30</EndCreatedTMS>
</SyncStatusRequest>

您可以使用 API Explorer 尝试所有这些调用。 https://developer.intuit.com/apiexplorer?apiname=V2QBD

在 V3 中,尚不支持上述 API。V3 支持的实体和操作 - https://developer.intuit.com/docs/0025_quickbooksapi/0050_data_services/v3/030_entity_services_reference/0500_v3_supported_entities_and_operations

谢谢

于 2013-09-10T12:56:25.740 回答