Skip to content

Client Payments

Works with individual client payment records (NetSuite Customer Payment transactions). Each payment is returned with its total, how much of it has been applied, and an appliedto array listing the transactions it has been applied to.

Base URL

https://{{accountid}}.restlets.api.netsuite.com/app/site/hosting/restlet.nl?script=customscript_prac_api_clientpayments&deploy=customdeploy_prac_api_clientpayments_v1

HTTP: GET

Gets the list of client payments.

Required Parameters

Name Value Notes
script customscript_prac_api_clientpayments
deploy customdeploy_prac_api_clientpayments_v1

Optional Parameters

Name Value Notes
custparam_id {{integer}} Internal ID of the payment transaction. Accepts an array.
custparam_client {{integer}} Internal ID of the client. Accepts an array.
custparam_clientid {{string}} The Name/ID of the client (entity ID).
custparam_subsidiary {{integer}} Internal ID of the subsidiary.
custparam_hasunapplied {{string}} 'T' or 'F'. 'T' returns only payments with an unapplied amount; 'F' returns only fully applied payments. Omit for no filter.
custparam_lastmodifieddate {{datetime}} UTC DateTime in the format 'YYYY-MM-DDTHH24:MI:SSZ' for example: '2024-09-20T12:38:32Z'. Passing this parameter will instruct the server to retrieve all records that have been modified AFTER this date.
custparam_page {{integer}} Indicates the page to request from the server. If not specified, 1 is used.
custparam_pagesize {{integer}} Indicates how many results to bring back from the server. If not specified, the default size defined on the server is used (100).

Response Information

Results are Paged

Statuses

status status_text
A Unapproved Payment
B Not Deposited
C Deposited

Notes

  • Applying an existing payment to an invoice later does not update the payment's lastmodifieddate. To find payments that still have money available to apply, use custparam_hasunapplied=T.