POST/v1/split-sessions
Create a split session
Creates a split session and its payment link. Share payment_url with the people who pay.
范围: split_sessions:write
参数
| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
| Idempotency-Key | header | string | 是 | Makes the request safe to repeat: the same key returns the first response (header Idempotent-Replayed: true). The same key with a different request is refused with 409 idempotency_key_reused. |
请求体
| 名称 | 类型 | 必填 | 说明 | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| amount | integer | 是 | min > 0, max 999999999999 | ||||||||||||||||||||||||
| currency | string | 是 | pattern ^[A-Z]{3}$ | ||||||||||||||||||||||||
| participants | integer | array<object> | 否 | |||||||||||||||||||||||||
字段
| |||||||||||||||||||||||||||
| order | object | 是 | |||||||||||||||||||||||||
字段
| |||||||||||||||||||||||||||
| return_url | string | 否 | max length 2048 | ||||||||||||||||||||||||
| cancel_url | string | 否 | max length 2048 | ||||||||||||||||||||||||
| expires_in | integer | 否 | min 600, max 518400 | ||||||||||||||||||||||||
响应 201
| 名称 | 类型 | 必填 | 说明 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| split_session | object | 是 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
字段
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||