Create a payment link
POST
/v1/payment_linksCreates a payment link.
请求参数
Body Params application/json
line_items
array [object {3}]
required
A list of items the customer is purchasing. Each line item represents an item being sold. Up to 20 line items are supported.
price
string
optional
The ID of the Price object. The ID of the Price object. One of price or price_data is required.
price_data
object
optional
Data used to generate a new Price object inline. One of price or price_data is required.
quantity
string
required
The quantity of the line item being purchased.
Example
{
"line_items": [
{
"price": "string",
"price_data": {},
"quantity": "string"
}
]
}
示例代码
Responses
OK(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
Data Schema
object {0}
Example
{}
Last modified: 2 年前