With asynchronous requests, your client application sends a request to SOAP web services, where it is placed in a processing queue and handled asynchronously with other requests. Your client application does not wait for a response but goes on to other work. After a job is submitted, a job Id is returned in the SOAP web services response. Your client application can then check on the status and result of the request by referencing the job Id.
You can use the checkAsyncStatus and getAsyncResult operations to track asynchronous requests.
Request
<soapenv:Envelope
xmlns:xsd='http://www.w3.org/2001/XMLSchema'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/'
xmlns:platformCore='urn:core_2021_2.platform.webservices.netsuite.com'
xmlns:listRel='urn:relationships_2021_2.lists.webservices.netsuite.com'
xmlns:listAcct='urn:accounting_2021_2.lists.webservices.netsuite.com'
xmlns:platformMsgs='urn:messages_2021_2.platform.webservices.netsuite.com'>
<soapenv:Header>
<tokenPassport xsi:type='platformCore:TokenPassport'>
<account xsi:type='xsd:string'>{{accountId}}</account>
<consumerKey xsi:type='xsd:string'>{{consumerKey}}</consumerKey>
<token xsi:type='xsd:string'>{{tokenId}}</token>
<nonce xsi:type='xsd:string'>{{nonce}}</nonce>
<timestamp xsi:type='xsd:long'>{{timestamp}}</timestamp>
<signature algorithm='HMAC_SHA256' xsi:type='platformCore:TokenPassportSignature'>{{signature}}</signature>
</tokenPassport>
</soapenv:Header>
<soapenv:Body>
<getAsyncResult xsi:type='platformMsgs:GetAsyncResultRequest'>
<jobId xsi:type='xsd:string'>ASYNCWEBSERVICES_TSTDRV2782962_080120231326469820838822226_7</jobId>
<pageIndex xsi:type='xsd:int'>1</pageIndex>
</getAsyncResult>
</soapenv:Body>
</soapenv:Envelope>
Response
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
<platformMsgs:documentInfo
xmlns:platformMsgs="urn:messages_2021_2.platform.webservices.netsuite.com">
<platformMsgs:nsId>ASYNCWEBSERVICES_TSTDRV2782962_080120231326469820838822226_7</platformMsgs:nsId>
</platformMsgs:documentInfo>
</soapenv:Header>
<soapenv:Body>
<getAsyncResultResponse
xmlns="">
<platformMsgs:asyncResult xsi:type="AsyncAddListResult"
xmlns:platformMsgs="urn:messages_2021_2.platform.webservices.netsuite.com">
<platformMsgs:writeResponseList>
<platformMsgs:writeResponse>
<platformCore:status isSuccess="true"
xmlns:platformCore="urn:core_2021_2.platform.webservices.netsuite.com">
<platformCore:statusDetail>
<platformCore:afterSubmitFailed>false</platformCore:afterSubmitFailed>
</platformCore:statusDetail>
</platformCore:status>
<platformMsgs:baseRef internalId="127" type="customer" xsi:type="platformCore:RecordRef"
xmlns:platformCore="urn:core_2021_2.platform.webservices.netsuite.com"/>
</platformMsgs:writeResponse>
<platformMsgs:writeResponse>
<platformCore:status isSuccess="true"
xmlns:platformCore="urn:core_2021_2.platform.webservices.netsuite.com">
<platformCore:statusDetail>
<platformCore:afterSubmitFailed>false</platformCore:afterSubmitFailed>
</platformCore:statusDetail>
</platformCore:status>
<platformMsgs:baseRef internalId="28" type="employee" xsi:type="platformCore:RecordRef"
xmlns:platformCore="urn:core_2021_2.platform.webservices.netsuite.com"/>
</platformMsgs:writeResponse>
</platformMsgs:writeResponseList>
</platformMsgs:asyncResult>
</getAsyncResultResponse>
</soapenv:Body>
</soapenv:Envelope>