chargebee / chargebee-dotnet

.NET library for the Chargebee API.

Home Page:https://apidocs.chargebee.com/docs/api?lang=dotnet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MetaData is not available on subscription

dampee opened this issue · comments

There is no way to access the meta data stored on a subscription after you do a

var subscription = ChargeBee.Models.Subscription.Retrieve(subscriptionId).Request();

Could this be added?

Kind regards

Hi @dampee
We added MetaData field in v1.6.0.
you can access metadata with GetJToken function as below.

FOR PCv1:
subscription.GetJToken("meta_data");
OR
subscription.MetaData

FOR PCv2:
subscription.GetJToken("metadata");
OR
subscription.Metadata

Please reopen if you are not able to access it in this way or have other questions.