Can I get order list by campaign id from API?

15 views
Skip to first unread message

zion...@gmail.com

unread,
Nov 1, 2018, 8:44:15 PM11/1/18
to PocketMath API
Seems this API can get all the orders, /v3/orders.json

But how can I get the orders list related with one campaign?

myk...@pocketmath.com

unread,
Nov 1, 2018, 9:42:43 PM11/1/18
to PocketMath API
Hi,

You can call `/v3/campaigns/{campaign_id}.json` endpoint. The response includes campaign details together with list of orders.
You can iterate that list to find out order ids.
Having order ids you can fetch order details through `/v3/orders/{order_id}.json` endpoint.

Hope this answers your question.

Regards,
Myk.
Reply all
Reply to author
Forward
0 new messages