Start a new topic

php api to list subscription

We are integrating your api in our project. But after configuring the chargeBee environment, we call ChargeBee_Subscription::all() it returns the object instead of json data. Is is right or something is wrong with me?

1 Comment

Hi Pravin,


The API calls return a JSON object as response, from which you would be able to access the relevant elements.


For example, for the list subscriptions API call, if your variable is called $create_asset_ids, you can access the subsription object element using $create_asset_ids->subscription(); 


You can find the sample API call and response here


Let us know if you need more clarification. 

Login or Signup to post a comment