使用xero api的发票ID在我的网站上获取发票?

时间:2017-08-12 06:22:52

标签: php xero-api

我正在使用xero生成发票,现在我想在php中使用xero发票ID获取发票,我的代码是...........

$nik = $xero->load('Accounting\\Invoice')
      ->where('InvoiceID', $outwardRecord->xero_invoice_id)
       or 
      ->where('InvoiceID', \XeroPHP\Models\Accounting\Invoice::InvoiceID)
      ->execute();

但是给出了错误

Fatal error: Undefined class constant 'InvoiceID' in /var/w

请指导我如何使用invoiceId获取发票,如何理解我的问题。

谢谢!

0 个答案:

没有答案
相关问题