请帮助我如何调用XERO OverPayments API 将多付款项分配给发票
我正在使用下面的代码段,但它给了我500错误
$ new_payment = array(
"Invoice" => array(
"InvoiceID" => $invoice_details->xero_id,
),
"OverpaymentID"=>$overpayment_xero_id,
"Amount" => $amount,
"Date" => date('Y-m-d'),
);
$ this-> xero->超额付款($ new_payment);
我错了,请指导我谢谢