incorrect contact coming back when getting contact by hubspotutk cookie
Feb 10, 2020 5:40 PM
Our application uses the ecommerce bridge API, and we're finding that contacts upserted through it are not properly retrievable using the standard API call to get a contact by the value in the hubspotutk cookie.
Here are the steps to recreate:
1. Contact record gets upserted through a PUT call to: https://api.hubapi.com/extensions/ecomm/v2/sync/messages?
2. API call is made to https://api.hubapi.com/contacts/v1/contact/utk/redacted/profile?hapikey=redacted
3. Visiting profile url returned by #2 (https://app.hubspot.com/contacts/redacted/contact/redacted) leads to a Hubspot page with the following error message: All who wander are not lost.
4. Making a call to
/contacts/v1/contact/vid/:vid/profile using the vid returned in #2 yields a json payload that has is-contact: false in it, and none of the expected properties (email, etc.) are present.
5. Meanwhile, the contact that was originally upserted in step 1 can be found in the Hubspot admin panel, but it has a different contact id.
Any thoughts? What am I missing?