# Response Mapping the response from an API Call

**URL:** <https://connective.celigo.com/t/response-mapping-the-response-from-an-api-call/751>\
**Category:** Integrator.io\
**Tags:** mapper, netsuite\
**Created:** [June 3, 2022, 6:04am UTC](https://connective.celigo.com/t/response-mapping-the-response-from-an-api-call/751 "2022-06-03T06:04:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anekporwal842](https://avatars.discourse-cdn.com/v4/letter/a/46a35a/32.png) [@anekporwal842](https://connective.celigo.com/u/anekporwal842)\
**Post date:** [June 3, 2022, 6:04am UTC](https://connective.celigo.com/t/response-mapping-the-response-from-an-api-call/751/1 "2022-06-03T06:04:06Z")

</div>

```
Hello,To give you a gist of my flow, I am sending some data from a record to an API.When the data is processed and a success_id is sent from the API.I want to store that success id in the record.How can I do the Response Mapping?Let's take for example:The response from an API looks like this.{"success_id" : "12345"}
```

```
Now in the Response Mapping, should the Mappings be like?success_id -> success_id (Data flow to Netsuite)(or)data[0].sucess_id -> success_id 

![5301043caa20740200000001-85b7842366ae478a9d6445ca97160eb8.png|760x333](upload://6MrbwHmvxle1qBMgJD4XSYipQof.png)

Any help would be appreciated.
```

---

<div class="post-metadata">

**Author:** ![scotthenderson](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/scotthenderson/32/6780_2.png) [@scotthenderson](https://connective.celigo.com/u/scotthenderson)\
**Post date:** [June 5, 2022, 4:54pm UTC](https://connective.celigo.com/t/response-mapping-the-response-from-an-api-call/751/2 "2022-06-05T16:54:29Z")

</div>

There are a couple ways to accomplish this.

Most APIs will return an 'id' type field when importing new data, and we have a field in the import itself to configure this, and then you can simply reference the 'id' field in your response mapping. Hopefully the following pics will help illustrate this.

 ![5301043caa20740200000001-59fee11568d24a7bb414889804a48b19.png](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/5/5220ad4a528529550e8ba474d9103087db83901b.png)

 ![5301043caa20740200000001-f3711b57b11b40b782856887f244f321.png](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/1/12ec5f9adcc67ed1c261aaa7d62a8471d16c604c.png)

---

<div class="post-metadata">

**Author:** ![scotthenderson](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/scotthenderson/32/6780_2.png) [@scotthenderson](https://connective.celigo.com/u/scotthenderson)\
**Post date:** [June 5, 2022, 4:57pm UTC](https://connective.celigo.com/t/response-mapping-the-response-from-an-api-call/751/3 "2022-06-05T16:57:36Z")

</div>

The other option is to use the '\_json' field in the response mapping. The '\_json' field is basically a container variable that we use to store all the response fields that were returned by any API for a successful request. You can access any field that the API returns.

 ![5301043caa20740200000001-d161022ec8b843f3b65a42786691143c.png](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/c/c8634dc7db288ce52cae759b4d429bb65e2a5578.png)

---

<div class="post-metadata">

**Author:** ![anekporwal842](https://avatars.discourse-cdn.com/v4/letter/a/46a35a/32.png) [@anekporwal842](https://connective.celigo.com/u/anekporwal842)\
**Post date:** [June 5, 2022, 9:52pm UTC](https://connective.celigo.com/t/response-mapping-the-response-from-an-api-call/751/4 "2022-06-05T21:52:40Z")

</div>

Hello Scott,  
Thank you for taking out your time & replying to me.  
I have used \_json field for mapping response data from API call.  
No luck the data is neither showing in the Debug Connections nor updating.

---

<div class="post-metadata">

**Author:** ![scotthenderson](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/scotthenderson/32/6780_2.png) [@scotthenderson](https://connective.celigo.com/u/scotthenderson)\
**Post date:** [June 6, 2022, 12:36am UTC](https://connective.celigo.com/t/response-mapping-the-response-from-an-api-call/751/5 "2022-06-06T00:36:21Z")

</div>

I recommend getting help from support. This should be very easy to solve, and most likely there is a path that is not getting set correctly.
