Retrieving phone numbers in the response from GET contacts

SOLVED
Highlighted
Occasional Visitor

Retrieving phone numbers in the response from GET contacts

I'm not receiving the phone_number in the response message from the contacts endpoint in your v3 api.  Is there any reason why that isn't exposed to me and is there a way to expose that if required?  

 

My ConstantContact Entry 

Screen Shot 2018-11-04 at 10.13.53 PM.png

The corresponding API Response

{"contact_id":"ce....","email_address":{"address":"remmington@steele.com","permission_to_send":"implicit","created_at":"2018-11-04T22:13:46-05:00","updated_at":"2018-11-04T22:13:46-05:00","opt_in_source":"Account","opt_in_date":"2018-11-04T22:13:46-05:00","confirm_status":"off"},"first_name":"Remmington","last_name":"Steele","job_title":"private investigator","company_name":"British Parliament","update_source":"Account","create_source":"Account","created_at":"2018-11-04T22:13:45-05:00","updated_at":"2018-11-04T22:13:45-05:00"}

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Moderator

Re: Retrieving phone numbers in the response from GET contacts

Hi @DomD0,

 

Thank you for reaching out to Constant Contact's API Support.

 

When using the v3 API please keep in mind that certain parts of the contact profile are considered a sub resource and need to be called specifically to see that data. The phone number is one of those resources. I do not see your call so I cannot say if you are requesting the phone number sub resource or not.

 

Here is a link to the sub resource section of our documentation for reference. https://v3.developer.constantcontact.com/api_guide/contacts_subresources.html


Regards,
Jimmy D.
Tier II API Support Engineer

View solution in original post

2 REPLIES 2
Highlighted
Moderator

Re: Retrieving phone numbers in the response from GET contacts

Hi @DomD0,

 

Thank you for reaching out to Constant Contact's API Support.

 

When using the v3 API please keep in mind that certain parts of the contact profile are considered a sub resource and need to be called specifically to see that data. The phone number is one of those resources. I do not see your call so I cannot say if you are requesting the phone number sub resource or not.

 

Here is a link to the sub resource section of our documentation for reference. https://v3.developer.constantcontact.com/api_guide/contacts_subresources.html


Regards,
Jimmy D.
Tier II API Support Engineer

View solution in original post

Highlighted
Occasional Visitor

Re: Retrieving phone numbers in the response from GET contacts

I wasn’t aware of the subresouexd documentation. I’m certain this will resolve my issue. Thanks!
Developer Portal

View API documentation, code samples, get your API key.

Visit Page

Register for our "Making Sense of Online Marketing for Retail" Webinar

Join us on Thursday, August 13th at 2pm ET for a free webinar where we'll discuss how to incorporate online marketing into your retail store.

Read More
Featured