Hi team,
Hope you are doing well.
I have a list of questions related to the topic:
- Could you please give us an end-point to retrieve all AR Accounts from NetSuite?
- How we can filter only AR Accounts from the response (using an end-point)?
- In case the customer has more than 1 AR Account in the NetSuite system, how we can identify the default (primary) one? (in case, if the customer has such settings in the NetSuite system)
- When we have an AR Account, how do we have to add it to the SOAP request? (you can see the details belove)
line with AR Account:
<ns8:arAcct xmlns:ns9="urn:core_2020_1.platform.webservices.netsuite.com" internalId="####" type="account" xsi:type="ns9:RecordRef" />
Request:
<add xmlns="urn:messages_2020_1.platform.webservices.netsuite.com">
<record xsi:type="ns8:CustomerPayment" externalId="Yaypay-1267-1522-f81fc0210988863b" xmlns:ns8="urn:customers_2020_1.transactions.webservices.netsuite.com">
<ns8:customer xsi:type="ns9:RecordRef" type="customer" internalId="1542" xmlns:ns9="urn:core_2020_1.platform.webservices.netsuite.com"/>
<ns8:currency xsi:type="ns10:RecordRef" type="currency" internalId="1" xmlns:ns10="urn:core_2020_1.platform.webservices.netsuite.com"/>
<ns8:payment xsi:type="xsd:double">12.0</ns8:payment>
1
<ns8:tranDate xsi:type="xsd:dateTime">2022-04-20T19:43:47.000Z</ns8:tranDate>
<ns8:paymentMethod xsi:type="ns11:RecordRef" type="paymentMethod" internalId="1" xmlns:ns11="urn:core_2020_1.platform.webservices.netsuite.com"/>
<ns8:memo xsi:type="xsd:string">Yaypay-1267-1522-f81fc0210988863b</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 xsi:type="ns12:RecordRef" type="account" internalId="191" xmlns:ns12="urn:core_2020_1.platform.webservices.netsuite.com"/>
<ns8:applyList xsi:type="ns8:CustomerPaymentApplyList" replaceAll="true">
<ns8:apply xsi:type="ns8:CustomerPaymentApply">
<ns8:doc xsi:type="xsd:long">12155</ns8:doc>
<ns8:line xsi:type="xsd:long">0</ns8:line>
2
<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">12.0</ns8:amount>
</ns8:apply>
<ns8:apply xsi:type="ns8:CustomerPaymentApply">
<ns8:doc xsi:type="xsd:long">12156</ns8:doc>
<ns8:line xsi:type="xsd:long">0</ns8:line>
2
<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">100.0</ns8:amount>
</ns8:apply>
</ns8:applyList>
</record>
</add>
</soapenv:Body>
Do we have to put the line with AR Account to point 1 or to point 2? (points 1 and 2 you can see in the request)
In case two invoices have different AR Accounts how to put them in the request?
I hope you are able to provide us with some full SOAR request examples with AR Account (if we have one invoice) and full SOAR request examples with AR Accounts (if we have a few invoices).
Many thanks for the advice.