POST/v1/split-sessions
Create a split session
Creates a split session and its payment link. Share payment_url with the people who pay.
Scope: split_sessions:write
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| Idempotency-Key | header | string | Yes | 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. |
Request body
| Name | Type | Required | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| amount | integer | Yes | min > 0, max 999999999999 | ||||||||||||||||||||||||
| currency | string | Yes | pattern ^[A-Z]{3}$ | ||||||||||||||||||||||||
| participants | integer | array<object> | No | |||||||||||||||||||||||||
Fields
| |||||||||||||||||||||||||||
| order | object | Yes | |||||||||||||||||||||||||
Fields
| |||||||||||||||||||||||||||
| return_url | string | No | max length 2048 | ||||||||||||||||||||||||
| cancel_url | string | No | max length 2048 | ||||||||||||||||||||||||
| expires_in | integer | No | min 600, max 518400 | ||||||||||||||||||||||||
Response 201
| Name | Type | Required | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| split_session | object | Yes | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Fields
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||