Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
Don’t miss your chance to meet our SuiteGurus—NetSuite Support professionals and subject matter experts with extensive experience in select product areas, including OneWorld, Advanced & Basic Accounting, Supply Chain Management, Receivables & Payables, CRM, Account Administration, and the SuiteCloud Platform. Full Conference attendees can prebook exclusive 30-minute one-on-one sessions for your product questions.
Spots are limited! Register through your Agenda Builder and find SuiteGuru under Agenda Enhancements.
NSC | Sample REST Request to Apply Invoices to Customer Payment
Scenario
User would like to create a Customer Payment that will automatically apply the Invoices (via REST requests)
Solution
This sample REST request shows how to create the Apply To sublist on the Invoices, by specifying the line number, amount, the apply boolean and the document number (Invoice Internal ID)
HTTP method: POST
URL: {{COMPANY_URL}}/services/rest/record/v1/customerpayment/
Sample REST Request:
Spoiler Spoiler Warning ▲▼
{
"account": {
"id": "2"
},
"customer": {
"id": "1"
},
"payment": 45,
"apply": {
"items": [
{
"doc": {
"apply": true,
"id": "3772",
"line":"0"
},
"due": 45,
"amount": 45
}
]
}
}
Note: A customer payment applies it to the appropriate invoice or cash sale only, decreasing the amount due and tracking income.
Richard James Uri - SuiteCloud | WMS Tech | SuiteCommerce Advanced
----
- New to NetSuite
- Explore the NSC Webinars Category
- Join our poll and share your ideas! We want to know what you think. Don't forget to comment and make your voice heard!
- Expand your NetSuite knowledge by joining this month's Ask A Guru Live about Basic Accounting. RSVP on this event now!