The Feedback Option object
Attributes
- id string Unique identifier for the object.
- object string, value is "billing.feedback_option" String representing the object’s type. Objects of the same type share the same value.
- description string An arbitrary string attached to the object. Often useful for displaying to users.
- livemode boolean If the object exists in live mode, the value is
true. If the object exists in test mode, the value isfalse. - status enum The feedback option’s status. Possible enum values
activeThe feedback option is active and available for use.inactiveThe feedback option has been deactivated and is no longer available for use. - status _ transitions object Set of key-value pairs indicating when the feedback option transitioned to a given status.
The Feedback Option object
{ "id": "fo_1MowQVLkdIwHu7ixeRlqHVzs", "object": "billing.feedback_option", "description": "Too expensive", "livemode": false, "status": "active", "status_transitions": { "deactivated_at": null }}
Create a feedback option
POST / v1 / billing / feedback_options
Creates a new feedback option.
Parameters
- description string Required The text of the feedback option, which customers see when canceling. Maximum 100 characters. The maximum length is 100 characters.
Returns
Returns the newly created feedback option object.
Response
{ "id": "fo_1MowQVLkdIwHu7ixeRlqHVzs", "object": "billing.feedback_option", "description": "Too expensive", "livemode": false, "status": "active", "status_transitions": { "deactivated_at": null }}
Update a feedback option
POST / v1 / billing / feedback_options /:id
Updates the description of an existing feedback option.
Parameters
- id string Required The ID of the feedback option to update.
- description string The text of the feedback option, which customers see when canceling. Maximum 100 characters. The maximum length is 100 characters.
Returns
Returns the updated feedback option object.
Response
{ "id": "fo_1MowQVLkdIwHu7ixeRlqHVzs", "object": "billing.feedback_option", "description": "Too expensive for my needs", "livemode": false, "status": "active", "status_transitions": { "deactivated_at": null }}
