0

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

4

1 回答 1

1

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

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

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

示例响应:

[{
    "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
}

]

于 2021-07-14T22:25:27.250 回答