Update a payment link
POST
/v1/payment_links/idUpdates a payment link.
请求参数
Body Params application/json
active
boolean
optional
Whether the payment link’s url is active. If false, customers visiting the URL will be shown a page saying that the link has been deactivated.
line_items
array [object {2}]
optional
A list of items the customer is purchasing. Each line item represents an item being sold. Up to 20 line items are supported.
id
string
required
The ID of an existing line item on the payment link.
quantity
string
optional
The quantity of the line item being purchased.
Example
{
"active": true,
"line_items": [
{
"id": "string",
"quantity": "string"
}
]
}
示例代码
Responses
OK(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
Data Schema
object {0}
Example
{}
Last modified: 1 年前