问题描述
我正在使用 Xero api (Xero.Api.SDK.Core 1.0.6) 并且可以成功创建发票,但是我无法在发票上创建历史记录/注释,甚至无法查询历史记录。
>var note = await xeroApi.HistoryAndNotes.CreateNoteAsync(
HistoryAndNotesEndpointCreateType.Invoices,xeroInvoice.Id,new HistoryRecord
{
Changes = $"Created by {userName}",DateUtc = DateTime.UtcNow,Details = $"Created by {userName} in {configuration.EnvironmentName}",User = userName
});
我收到以下回复:“Xero.Api.Infrastructure.Exceptions.NotFoundException:找不到您要查找的资源”
xeroInvoice.Id 是现有发票(我可以检索)的有效 Guid。
非常感谢任何见解。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)