WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

API for Invoice list by subscription_id #399

@circuitmamu

Description

@circuitmamu

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:

  1. GET https://dashboard.razorpay.com/merchant/api/live/invoices?subscription_id=sub_id_here&count=100
  2. 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions