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: