我如何使用 AvaTax API 查询 "api/v2/companies" 的过滤器来查找特定的公司 ID 或其他数据点?

How do I use filters to an AvaTax API query "api/v2/companies" to find a specific Company Id or other data points?

我正在尝试了解如何通过对 AvaTax API 查询“[=16”使用过滤器来设置 AvaTax API (RESTful) 查询=]" 我想知道账户ID和其他公司属性是什么?是否有关于此主题的 Avalara 文档?

有关 AvaTax REST 中过滤的 Avalara 文档可在此处找到: https://developer.avalara.com/avatax/filtering-in-rest/

您尝试构建的请求示例如下:

https://sandbox-rest.avatax.com/**api/v2/companies**?$filter=companyCode="*{your公司代码}*

响应示例:

[{
    "id": 26903,
    "accountId": 11000123456,
    "sstPid": "",
    "companyCode": "MyCompanyCode",
    "name": "MyCompanyName",
    "isDefault": false,
    "defaultLocationId": 0,
    "isActive": true,
    "taxpayerIdNumber": "987654321",
    "IsFein": false,
    "hasProfile": true,
    "isReportingEntity": true,
    "defaultCountry": "US",
    "baseCurrencyCode": "USD",
    "roundingLevelId": "Line",
    "warningsEnabled": false,
    "isTest": false,
    "inProgress": false,
    "createdDate": "2008-09-04T22:17:24.98",
    "createdUserId": 3902,
    "modifiedDate": "2008-09-04T22:17:24.98",
    "modifiedUserId": 3902
}

]