Hello Team,
I use the following request to push the payment to NetSuite:
-----------------
<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="3873"/>
<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">33.0</ns8:payment>
<ns8:tranDate xsi:type="xsd:dateTime">2021-08-19T19:09:04.000Z</ns8:tranDate>
<ns8:paymentMethod type="paymentMethod" xsi:type="ns11:RecordRef" internalId="16" 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="false"/>
</record>
</add>
</soapenv:Body>
---------------------------------
NetSuite returns the following working:
<platformCore:statusDetail type="WARN"><platformCore:code>WARNING</platformCore:code><platformCore:message>Are you sure you want to enter an unapplied payment for this customer?</platformCore:message>
But despite the error message, NetSuite creates a payment.
However, the user cannot apply this payment to the Invoice in NetSuite.
How we should change the request so that the user will be able to apply this payment to the Invoice in NetSuite?