Availability of APIs to fetch Invoices and Credit Notes for a Subscription ID
Hi Razorpay Team,
While working with subscriptions, I noticed that on the Razorpay Dashboard, when clicking on a subscription ID, it triggers two API calls to load related data in a side panel:
GET https://dashboard.razorpay.com/merchant/api/live/invoices?subscription_id=sub_id_here&count=100
GET https://dashboard.razorpay.com/merchant/api/live/creditnote?subscription_id=sub_id_here&status[]=processed&status[]=partially_processed
These endpoints appear to retrieve:
- All invoices associated with the given subscription ID
- All credit notes with specific statuses for the same subscription
Question
- ๐น Are these or equivalent endpoints available in the public API and supported through the Razorpay PHP SDK?
- ๐น If yes, could you please guide me on how to access them using the PHP package?
- ๐น If not, is there a recommended workaround to fetch all invoices and credit notes for a subscription?
Use Case
We're trying to replicate the same data views from the Dashboard inside our own internal tools using the official Razorpay PHP SDK but unfortunately I can't find such API methods or endpoint in public API.
Thanks in advance for your support!
Availability of APIs to fetch Invoices and Credit Notes for a Subscription ID
Hi Razorpay Team,
While working with subscriptions, I noticed that on the Razorpay Dashboard, when clicking on a subscription ID, it triggers two API calls to load related data in a side panel:
GET https://dashboard.razorpay.com/merchant/api/live/invoices?subscription_id=sub_id_here&count=100GET https://dashboard.razorpay.com/merchant/api/live/creditnote?subscription_id=sub_id_here&status[]=processed&status[]=partially_processedThese endpoints appear to retrieve:
Question
Use Case
We're trying to replicate the same data views from the Dashboard inside our own internal tools using the official Razorpay PHP SDK but unfortunately I can't find such API methods or endpoint in public API.
Thanks in advance for your support!