现在我使用 PHP SDK 创建/更新发票,还使用支付 API 支付。
但在某些情况下,即使发票被标记为已付款,我也需要编辑订单,但我无法找到方法。
谁能告诉我我该怎么做?
正如它在 API 参考(https://developer.xero.com/documentation/api/accounting/invoices/#post-invoices)中所说:
When can't an invoice be updated?
An invoice can't be updated if:
* it has been fully paid
* it has part-payments or credit notes applied to it
* it is in a locked period
所以不,一旦它完全支付,你就不能更新它。