EXPORT_CONTACTS return 400 with valid listId

Occasional Participant

EXPORT_CONTACTS return 400 with valid listId

Am I missing anything? It looks identical to the POST request in the documentation. DEBUG [main] 13 Sep 2012 20:22:26,385 headers:sendRequestHeader:273 - >> POST /ws/customers/username/activities HTTP/1.1 DEBUG [main] 13 Sep 2012 20:22:26,385 headers:sendRequestHeader:276 - >> Content-Length: 222 DEBUG [main] 13 Sep 2012 20:22:26,385 headers:sendRequestHeader:276 - >> Content-Type: application/x-www-form-urlencoded DEBUG [main] 13 Sep 2012 20:22:26,386 headers:sendRequestHeader:276 - >> Host: api.constantcontact.com DEBUG [main] 13 Sep 2012 20:22:26,386 headers:sendRequestHeader:276 - >> Connection: Keep-Alive DEBUG [main] 13 Sep 2012 20:22:26,386 headers:sendRequestHeader:276 - >> Cookie: BIGipServerP2_Sonoa_API=92148746.20480.0000; BIGipServerProdAPI=189142026.6695.0000 DEBUG [main] 13 Sep 2012 20:22:26,387 headers:sendRequestHeader:276 - >> Cookie2: $Version=1 DEBUG [main] 13 Sep 2012 20:22:26,387 headers:sendRequestHeader:276 - >> Authorization: Basic xxxx DEBUG [main] 13 Sep 2012 20:22:26,388 wire:wire:77 - >> "activityType=EXPORT_CONTACTS&fileType=CSV&exportOptDate=true&exportOptSource=true&exportListName=true&sortBy=DATE_DESC&columns=STATE&listID=http%3A%2F%2Fapi.constantcontact.com%2Fws%2Fcustomers%2Fusername%2Flists%2F2" DEBUG [main] 13 Sep 2012 20:22:26,590 wire:wire:63 - << "HTTP/1.1 400 Bad Request[\r][\n]"

1 REPLY 1
Employee

Hi,

 

It was a needle in a haystack, indeed.  Where you specified ListId, you had "ListID" instead of "ListId."  I reproduced the 400 error you got in my own account with your request as it was, then changed the case of that ending d (it must be lowercase), and got a 201 created status afterward.

 

If you change the case of the d on your side, that should solve the issue.  Let me know if you still have any issues.

 

 

Best Regards,

Shannon W.

API Support Specialist

Developer Portal

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

Visit Page