Hi I'm trying to unapply a payment from all lines ...
# integrations
s
Hi I'm trying to unapply a payment from all lines and as far as I'm aware, the following SOAP request should do it:
Copy code
<record xmlns:xsi="<http://www.w3.org/2001/XMLSchema-instance>"
    xmlns:xsd="<http://www.w3.org/2001/XMLSchema>"
    xmlns:q1="urn:<http://customers_2021_1.transactions.webservices.netsuite.com|customers_2021_1.transactions.webservices.netsuite.com>" xsi:type="q1:CustomerPayment" internalId="98799"
    xmlns="urn:<http://core_2021_1.platform.webservices.netsuite.com|core_2021_1.platform.webservices.netsuite.com>">
    <q1:applyList replaceAll="true" xsi:type="q1:CustomerPaymentApplyList" />
</record>
According to: https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_N3443838.html#bridgehead_3705430117 I just get:
Copy code
<writeResponse>
        <platformCore:status isSuccess="false" xmlns:platformCore="urn:core_2021_1.platform.webservices.netsuite.com">
          <platformCore:statusDetail type="ERROR">
            <platformCore:code>USER_ERROR</platformCore:code>
            <platformCore:message>All lines of sublist applyList have to be specified when replace All is requested.</platformCore:message>
          </platformCore:statusDetail>
        </platformCore:status>
        <baseRef internalId="98799" type="customerPayment" xsi:type="platformCore:RecordRef" xmlns:platformCore="urn:core_2021_1.platform.webservices.netsuite.com"/>
      </writeResponse>
Any ideas?
I can get NetSuite to remove all apply list by including 1 apply entry for $0, but I need a valid doc, though I was hoping to avoid having to find a doc ID just to do the unapply.
Copy code
<q1:applyList>
          <q1:apply>
            <q1:apply>true</q1:apply>
            <q1:doc>98802</q1:doc>
            <q1:amount>0</q1:amount>
          </q1:apply>
        </q1:applyList>