Hello @battk
I need you help.
I send a request to NetSuite so that to create a payment.
-<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:customer type="customer" xsi:type="ns9:RecordRef" xmlns:ns9="urn:core_2020_1.platform.webservices.netsuite.com" internalId="58595"/>
<ns8:currency type="currency" xsi:type="ns10:RecordRef" internalId="1" xmlns:ns10="urn:core_2020_1.platform.webservices.netsuite.com"/>
<ns8:payment xsi:type="xsd:double">5</ns8:payment>
<ns8:tranDate xsi:type="xsd:dateTime">2021-10-14T202701.000Z</ns8:tranDate>
<ns8:paymentMethod type="paymentMethod" xsi:type="ns11:RecordRef" internalId="2" xmlns:ns11="urn:core_2020_1.platform.webservices.netsuite.com"/>
<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">true</ns8:undepFunds>
-<ns8:applyList xsi:type="ns8:CustomerPaymentApplyList" replaceAll="true">
-<ns8:apply xsi:type="ns8:CustomerPaymentApply">
<ns8:doc xsi:type="xsd:long">523085</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:disc xsi:type="xsd:double">0.0</ns8:disc>
<ns8:amount xsi:type="xsd:double">5154.57</ns8:amount>
</ns8:apply>
</ns8:applyList>
</record>
</add>
</soapenv:Body>
</soapenv:Envelope>
But NetSuite returns the following error message:
Unable to find a matching line for sublist apply with key: [doc,line] and value: [523085,0]
In the request I send all data that added on the UI for payment.
Could you clarify, what is the reason of this error message?