Deposit Application
NetSuite exposes the deposit application record to REST web services. A deposit application transaction applies a customer deposit against an invoice after the order is complete. For details, see Applying a Customer Deposit.
The REST API Browser includes information about the field names and field types of the deposit application record. It also includes information about the HTTP methods, request parameters, and operations available to this record. For details, see the REST API Browser’s depositApplication reference page.
For information about using the REST API Browser, see The REST API Browser.
Record ID
The record ID for the deposit application REST record is depositApplication.
Subrecords
The deposit application record has a list of depositApplicationApplyLine and accountingBookDetail subrecords.
Prerequisite
Before you work with deposit applications, enable the A/R feature.
Lines on the apply sublist are not identified by line numbers, but by the doc field as a key with the line as a secondary key. The line represents the transaction line ID, not the number of line on the sublist.
Also, note that you can create a deposit application only by transformation. See Creating a Deposit Application.
Code Samples
Creating a Deposit Application
POST https://123456.suitetalk.api.netsuite.com/services/rest/record/v1/customerDeposit/<depositId>/!transform/depositApplication
{ "apply": { "items": [ { "doc": {"id": 261}, "apply": true } ] }
}
Updating a Deposit Application
PATCH https://123456.suitetalk.api.netsuite.com/services/rest/record/v1/depositapplication/{id}
{ "memo": "UPDATED TEST"
}