Hello Team,
We try to push a payment from our application to NetSuite via API, but NetSuite returns the following error:
<platformCore:message>Unable to find a matching line for sublist apply with key: [doc,line] and value: [473882,0].</platformCore:message>
The part of the request:
<ns8:apply xsi:type="ns8:CustomerPaymentApply">
<ns8:doc xsi:type="xsd:long">473882</ns8:doc>
<ns8:line xsi:type="xsd:long">0</ns8:line>
<ns8:type xsi:type="xsd:string">invoice</ns8:type>
<ns8:currency xsi:type="xsd:string">USD</ns8:currency>
<ns8:amount xsi:type="xsd:double">1.0</ns8:amount>
</ns8:apply>
Data that we use to push a payment:
Account -> 1060 Undeposited Funds
Payment Method -> Credit Card Visa
The payment was applied to the Invoice.
Our Customer repeated the same payment in NetSuite with the identical parameters. In NetSuite, the Customer created a payment without an error.
Could you please clarify what is the reason of the error? And how to eliminate it?