Update a price option

Updates the unit price, billing interval, trial period, or custom attributes on an existing price option.

PUT

Headers

string

The Bearer token for authentication.

string

The user agent of the request. Must contain at least two identifiers separated by a space.

string

The content type of the request.

Parameters

string

The ID of the plan to update.

string

The ID of the option to update.

Request Body

application/json
string

Detailed description about the option.

float

Price per unit.

number

The number of days for each billing interval. (e.g. 30 for monthly or 365 for yearly)

object

Custom key-value pairs that can be used for option specific features.

Response Body

application/json
boolean

Indicates that the request was successful.

string

A descriptive message regarding the result.