Add Customer using API via POSTER REST Client

Dear Experts,

Using the REST Client ‘Postman’ I am able to do this.

But I am getting the error message ‘TypeError: Expected String or Buffer’ when trying to create a customer using the Poster tool. Please guide me what went wrong?

URL: http://5.xxx.xxx.xxx/api/resource/Customer

Content Body:

data={
“customer_name”: “Hari113”,
“customer_group”:“Commercial”,
“customer_type”: “Company”,
“territory”: “India”
}

Headers:

Content-Type : application/json
Accept: application/json

@nshari.sap add to the end of your URL, …/Customer?data={“customer_name”: “Hari113” …}

2 Likes

Great! It works! Thank you very much!

@max_morais_dmm
When it comes to solving advanced code questions for the forum users, You are on fire this morning :slight_smile:
Much Respect.

1 Like

@System19 thanks! I’m so glad!

1 Like