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 | نعم | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
الحقول
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||