Contacts batch archive API is not working

Hi,

We are using Hubspot Contacts batch archive API in one of our development. When we are using this API we are seeing unexpected error response and not able to understand the issue. Can anyone let me know what the issue is here. Please find below the screenshot of the API call for your reference.

Thanks,

VKH2

@VKH2 - I’m not sure you can use the idProperty approach with this API. I only see documentation for this use of email etc. IDs for contact record read operations. You may have to use an array of cotact HubSpot ID strings.

Steve

Hi Steve,

Thank you for the reply. I modified and tried with the same payload as mentioned in the official documentation but am still getting the same response. Not sure if the issue is in the way i am sending the payload. Can you let me know. Also please help me to understand the error response we are getting.

Thanks,

VKH2

I believe you need to use the numeric HubSpot oobject id string rather than the email address in the parameters.

Steve

Hi Steve,

Thanks for the reply. I see what you mean, we need to provide contact id for the contacts batch archive API to work.

But the payload with email was working earlier(attached below). Can you let me know if there was a change in the api payload. This payload has started breaking recently.

payload : {“inputs”:[{“id”:“test1@test.com”},{“id”:“test2@test.com”}],“properties”:{}}

Thanks,

VKH2