https://netsuiteprofessionals.com logo
#integrations
Title
# integrations
m

Muhammad Hafiz

03/30/2022, 4:48 AM
How to get response code 200 instead of 204? I have created API to post new customer in postman and it return with 204 - no content. Can I change it so the post return with 200 and internalID from the customer that I recently created. Thank you for any help
b

battk

03/30/2022, 5:08 AM
it sounds like you are using rest web services
in which case you cant change the response code
though you can get the internal id from the headers
m

Muhammad Hafiz

03/30/2022, 5:12 AM
yes I am using Rest web services. How to get the internalID from the headers?
b

battk

03/30/2022, 5:12 AM
what headers are in your response
m

Muhammad Hafiz

03/30/2022, 5:18 AM
It look like this
b

battk

03/30/2022, 5:22 AM
the location header contains the url path to the record
along with the internal id
m

Muhammad Hafiz

03/30/2022, 5:24 AM
Like this?
b

battk

03/30/2022, 6:40 AM
yes
m

Muhammad Hafiz

03/30/2022, 10:48 AM
oke, thank you Mr Battk for your help