# How to retrieve two custom fields like postal code

**URL:** <https://integration.keap.com/t/how-to-retrieve-two-custom-fields-like-postal-code/54003>\
**Category:** API Q&A\
**Created:** [October 5, 2018, 1:42pm UTC](https://integration.keap.com/t/how-to-retrieve-two-custom-fields-like-postal-code/54003 "2018-10-05T13:42:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Hilario](https://avatars.discourse-cdn.com/v4/letter/j/9e8a1a/32.png) [@John\_Hilario](https://integration.keap.com/u/John_Hilario)\
**Post date:** [October 5, 2018, 1:42pm UTC](https://integration.keap.com/t/how-to-retrieve-two-custom-fields-like-postal-code/54003/1 "2018-10-05T13:42:29Z")

</div>

Hi team, postal code has two separate fields in isoft. How can I retrieve those two fields because it only retuns one value from that two fields?

Super Thanks!

---

<div class="post-metadata">

**Author:** ![Sterling](https://sea1.discourse-cdn.com/flex019/user_avatar/integration.keap.com/sterling/32/8050_2.png) [@Sterling](https://integration.keap.com/u/Sterling)\
**Post date:** [October 5, 2018, 6:31pm UTC](https://integration.keap.com/t/how-to-retrieve-two-custom-fields-like-postal-code/54003/2 "2018-10-05T18:31:38Z")

</div>

> [@John\_Hilario](#):
>
> has two separate fields in isoft. How can I retrieve those two fields because it only retuns one value from that two fields?

Hi John, if you are requesting the contact from the contact/{contactId} rest endpoint it should return addresses that includ zip\_four and zip\_code by default. Here is the documentation for that request - [Keap REST API](https://developer.infusionsoft.com/docs/rest/#!/Contact/getContactUsingGET)

If they are actually custom fields you should be able to make the same request with the addition of ?optional\_properties=custom\_fields which returns all the customer fields by id. You can get a list of your custom fields via contacts/model to find which ones you may be interested in. Here is the documentation for the custom fields - [Keap REST API](https://developer.infusionsoft.com/docs/rest/#!/Contact/retrieveContactModelUsingGET)

---

<div class="post-metadata">

**Author:** ![John\_Hilario](https://avatars.discourse-cdn.com/v4/letter/j/9e8a1a/32.png) [@John\_Hilario](https://integration.keap.com/u/John_Hilario)\
**Post date:** [October 6, 2018, 2:17am UTC](https://integration.keap.com/t/how-to-retrieve-two-custom-fields-like-postal-code/54003/3 "2018-10-06T02:17:05Z")

</div>

@Sterling Hi thanks for your response but we are using legacy to retrieve the contacts, is that possible to get the second field from postal code and phone number?

[https://developer.infusionsoft.com/docs/xml-rpc/#contact-retrieve-a-contact](https://developer.infusionsoft.com/docs/xml-rpc/#contact-retrieve-a-contact)
