Deposit

A deposit record exposes a deposit to REST web services.

In NetSuite, record deposits to your bank accounts to capture customer payments and other monies received in the course of doing business. By recording funds deposited, you can accurately track income. For information about working with this record in the UI, see Deposits.

This record:

The REST API Browser includes information about the field names and field types of the deposit record, and about the HTTP methods, request parameters, and operations available to this record. For details, see the REST API Browser’s deposit reference page.

For information about using the REST API Browser, see The REST API Browser.

Usage Notes

The To Be Printed field is not exposed to REST web services.

In both the UI and in REST web services, the Exchange Rate field is a create-time-only field that is used to specify the initial exchange rate with respect to the base currency. After the initial exchange rate value is set, this value does not get updated to reflect real-time exchange rates.

Record ID

The record ID for the deposit REST record is deposit.

Code Samples

The following code samples show how to work with the deposit record.

Getting OpenAPI Metadata from the Metadata Catalog

              GET https://123456.suitetalk.api.netsuite.com/services/rest/record/v1/metadata-catalog?select=deposit 

            

Creating a Deposit with Other Deposit and Cash Back Lines

              POST https://123456.suitetalk.api.netsuite.com/services/rest/record/v1/deposit
{ "account": { "id": "1" }, "cashback": { "items": [ { "account": { "id": "10" }, "amount": 18.46 } ] }, "other": { "items": [ { "account": { "id": "97" }, "amount": 178.24, "entity": { "id": "107" }, "paymentMethod": { "id": "1" } } ] }
} 

            

Adding a Deposit Other Line

              PATCH https://123456.suitetalk.api.netsuite.com/services/rest/record/v1/deposit/{{depositId}} { "other": { "items": [ { "account": { "id": "10" }, "amount": 78.5, "entity": { "id": "69" }, "memo": "Deposit Other MEMO", "paymentMethod": { "id": "5" } } ] }
} 

            

Replacing a Deposit Cashback Sublist

              PATCH https://123456.suitetalk.api.netsuite.com/services/rest/record/v1/deposit/{{depositId}}?replace=cashback { "cashback": { "items": [ { "account": { "id": "97" }, "amount": 12.0, "memo": "Cashback item of new sublist" } ] }
} 

            

Creating a Deposit with Payment Lines

              POST https://123456.suitetalk.api.netsuite.com/services/rest/record/v1/deposit { "account": { "id": "1" }, "payment": { "items": [ { "deposit": true, "id": 379 }, { "deposit": true, "id": 380 } ] }
} 

            

Adding a Deposit Payment Line

              PATCH https://123456.suitetalk.api.netsuite.com/services/rest/record/v1/deposit/{{depositId}} { "payment": { "items": [ { "deposit": true, "id": 381 } ] }
} 

            

Getting a Deposit by ID

              GET https://123456.suitetalk.api.netsuite.com/services/rest/record/v1/deposit/{{depositId}} 

            

Removing a Deposit by ID

              DELETE https://123456.suitetalk.api.netsuite.com/services/rest/record/v1/deposit/{{depositId}} 

            

Related Topics

REST Web Services Supported Records
SuiteTalk REST Web Services Overview and Setup
Working with Records
NetSuite Record Structure
The REST API Browser

General Notices