Comments are additional information that you can add to your resources. Comments can be added to provide context for any operation that was performed.
When you make an API call on any resource, for example, Subscriptions -> Change term end, you can add more context to that operation by calling the comments API as a follow up call.
Besides the user generated comments, Chargebee also generates "System" comments when a change for a resource happens at the backend. These comments are all read-only.
{
"added_by": "full_access_key_v1",
"created_at": 1517505963,
"entity_id": "__test__KyVnHhSBWm65N2rx",
"entity_type": "subscription",
"id": "cmt___test__KyVnHhSBWm69N2s4",
"notes": "This is a test comment",
"object": "comment",
"type": "user"
}Create a new comment for an entity. The newly added comment will be shown in the web interface as well.
Retrieve a comment for an entity identified by comment ID.
Retrieve the list of comments sorted by the recent ones on the top.
If you want to retrieve the list of comments for an entity, for example, subscription you can filter them by passing the entity type and unique identifier for that entity, for example, subscription ID.
Delete a comment for an entity identified by comment ID.
Only the comments that are added via Admin console and API can be deleted. Chargebee generated "System" comments cannot be deleted.