Trying to edit shipcarrier using rest api

Greetings Everyone, I am trying to edit the field-

Field ID: shipcarrier
This field displays the carrier associated with the customer, if specified, or your default shipping carrier. You can select a different carrier.

but I can’t edit the field using rest api, I get a 204 code and a message saying unknown field shipcarrier, this field doesn’t exist for record instance. I am new to netsuite and am confused as to what’s causing it
I am sending the patch request in this format, I have tried numerous combinations but to no avail. NetsuiteInternalid is the internal id for the Sales order

const payload = {
shipcarrier: {
id: shippingMethod.toLowerCase(), // For example: “ups”
refName: shippingMethod.toUpperCase() // For example: “UPS”
},
};

console.log(“payload from ship route”, payload);

await axios.patch(
`${BASE_URL}/record/v1/salesOrder/${netsuiteInternalId}`,
payload,
{
headers: {
Authorization: `Bearer ${accessToken}`,
Accept: “application/json”,
“Content-Type”: “application/json”,
},
}
);

Any guidance regarding this will be sincerely appreciated, Thank you

Rookie Asked on August 11, 2025 in How To's.
Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   SuiteMigration   Become a Sponsor