Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
New to NetSuite | REST API: Transforming Records
In NetSuite, you can create subsequent records based off parent records through the UI. For example, from a Sales Order, you can create Item Fulfillments, Bills, Payments, Invoices, or Return Authorizations by clicking the respective buttons. This feature, known as “record transformation,” can also be achieved via REST API.
Example Transformation with REST API:
Operation: POST
URL: <account_id>.suitetalk.api.netsuite.com/services/rest/record/v1/<origin_record_type>/<origin_record_internal_id>/!transform/<new_record_type>
{
"entity": 4478,
"item": {
"items": [
{
"line": 1,
"item": {"id": "21578"},
"quantity": 10,
"taxcode":1171,
"location":47,
"amount": 2000
}
]
}
}
Reference Sales Order:
Results in the UI:
You may also check our other articles on REST API here:
Expand your NetSuite knowledge by joining this month's Ask A Guru Live: PROCURE TO PAY. RSVP on this event now!
Refer a Member to the Community | Earn the Answer Accepter Badge | Vote for the contents you'd like to see
