Recurly: fetch invoice_coupon_redemption_history with one call per invoice instead of time-windowed requests
AnsweredWhich connector?:
Recurly
Additional details:
Connector name: Recurly
Table name: invoice_coupon_redemption_history
Endpoint: GET /invoices/{invoice_id}/coupon_redemptions (https://recurly.com/developers/api/v2021-02-25/index.html#operation/list_invoice_coupon_redemptions)
During historical syncs, the connector calls this endpoint in 15-day begin_time/end_time windows for each invoice, starting from the connector's default historical start date (2009-01-01). That comes to several hundred API calls per invoice.
The endpoint is scoped to a single invoice and returns only that invoice's coupon redemptions, usually none or one. One call per invoice, without time windows, returns the same data.
Impact: the number of calls grows as invoices × windows. Even a small Recurly site with a few hundred invoices needs well over 100,000 calls, which uses up Recurly's API rate limit for hours. Sites with many invoices can't realistically sync this table, so it has to be disabled. With one call per invoice, the call count would match the number of invoices.
-
Official comment
Hi Ishita,
Thank you for bringing this to our attention. We have added your request to our backlog and will prioritize it based on demand and impact. We understand the importance of optimizing API calls and will share updates as we progress.
Best regards,
Sanjeevv Maniram
Please sign in to leave a comment.
Comments
1 comment