Skip to main content
POST
Create a checkout session

授权

Authorization
string
header
必填

The API key's secret (osk_…), shown once when the key is created in the console.

路径参数

eventId
string
必填

请求体

application/json
items
object[]
必填
Maximum array length: 50
email
string<email>
Maximum string length: 320
name
string
Maximum string length: 200
responses
object
redemptionCode
string
Required string length: 1 - 64
promotionCode
string
Required string length: 1 - 64
returnUrl
string
Maximum string length: 2000
locale
enum<string>
可用选项:
en,
zh-CN

响应

The session and its hosted page.

id
string
必填
url
string
必填
expiresAt
string
必填