Hello Team,
I created a request to NetSuite to push a payment.
Here an example of the request:
<soapenv:Body>
<add xmlns="urn:messages_2020_1.platform.webservices.netsuite.com">
<record xmlns:ns8="urn:customers_2020_1.transactions.webservices.netsuite.com" externalId="" xsi:type="ns8:CustomerPayment">
<ns8:arAcct xmlns:ns9="urn:core_2020_1.platform.webservices.netsuite.com" internalId="835" type="account" xsi:type="ns9:RecordRef" />
<ns8:customer xmlns:ns10="urn:core_2020_1.platform.webservices.netsuite.com" internalId="25269" type="customer" xsi:type="ns10:RecordRef" />
<ns8:currency xmlns:ns11="urn:core_2020_1.platform.webservices.netsuite.com" internalId="1" type="currency" xsi:type="ns11:RecordRef" />
<ns8:payment xsi:type="xsd:double">1.0</ns8:payment>
<ns8:tranDate xsi:type="xsd:dateTime">2021-07-02T13:49:23.078Z</ns8:tranDate>
<ns8:memo xsi:type="xsd:string"></ns8:memo>
<ns8:chargeIt xsi:type="xsd:boolean">false</ns8:chargeIt>
<ns8:ccApproved xsi:type="xsd:boolean">true</ns8:ccApproved>
<ns8:undepFunds xsi:type="xsd:boolean">false</ns8:undepFunds>
<ns8:account xmlns:ns12="urn:core_2020_1.platform.webservices.netsuite.com" internalId="877" type="account" xsi:type="ns12:RecordRef" />
<ns8:applyList replaceAll="true" xsi:type="ns8:CustomerPaymentApplyList">
<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>
</ns8:applyList>
</record>
</add>
</soapenv:Body>
</soapenv:Envelope>
--------------------------------------------------------------------
But, NetSuite returns the following error message:
platformCore:statusDetail type="ERROR">
<platformCore:code>USER_ERROR</platformCore:code>
<platformCore:message>Unable to find a matching line for sublist apply with key: [doc,line] and value: [473882,0].</platformCore:message>
</platformCore:statusDetail>
Could you clarify what is the reason?
Or maybe what are possible reasons that can trigger this error message?