Update a price
POST
/v1/prices/{id}Updates the specified price by setting the values of the parameters passed. Any parameters not provided are left unchanged.
请求参数
Path Params
id
string
required
Body Params application/json
active
boolean
optional
Whether the price can be used for new purchases. Defaults to true.
metadata
string
optional
Set of key-value pairs that you can attach to an object.
nickname
string
optional
A brief description of the price, hidden from customers.
lookup_key
string
optional
A lookup key used to retrieve prices dynamically from a static string. This may be up to 200 characters.
Example
{
"active": true,
"metadata": "string",
"nickname": "string",
"lookup_key": "string"
}
示例代码
Responses
OK(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
Data Schema
object {0}
Example
{}
Last modified: 2 年前