deal/status api usage

23 views
Skip to first unread message

Vamsi

unread,
Mar 1, 2011, 8:11:41 PM3/1/11
to MerchantCircle API
I have a requirement where in I need to check the status of the deals.
For this purpose I am using the new api deal/status using HTTP POST

The JSON String I am sending is {"deals":[["coupon",3,413453],
["coupon",3,413444]]} as the value of "batch"

Set the content-type to application/x-www-form-urlencoded

In the above, 413453 and 414444 are the "id"s of the deals I received.

With the above, I am getting the response as HTTP/1.1 417 Expectation
Failed

Am I missing anything here?

Thanks,
Vamsi

Greg Melton

unread,
Mar 2, 2011, 11:06:29 PM3/2/11
to merchantc...@googlegroups.com, Vamsi
Is the request method a POST?

Greg Melton

unread,
Mar 2, 2011, 11:20:42 PM3/2/11
to merchantc...@googlegroups.com, Vamsi
Sorry, I just read your message, again.

POST is correct. The content-type shouldn't matter.

Not sure what would cause this.

Be aware: we rate limit requests per second in addition to daily requests. You should keep it at 1 per second.

Try, removing the 3 from the lists: {"deals":[["coupon",413453],["coupon",413444]]}

If you want to add the deal_id as recorded in your system: {"deals":[["coupon",413453,id],["coupon",413444,id]]}

We'll return: {"deals":[["coupon",413453,id,status],["coupon",413444,id,status]]}

Let me know if you try this and are still having issues.

-greg
Reply all
Reply to author
Forward
0 new messages