You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ee51392
Browse filesBrowse the repository at this point in the historyBrowse files
ks-release-bot
committed
chore(release): regenerate ksapi v2.4.2 from ks-backend
[[Back to top]](#)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to Model list]](../README.md#documentation-for-models)[[Back to README]](../README.md)
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
One confirmed payment, as shown in the tenant's billing history. Backs in-app receipts: CN payments have no provider-hosted invoice (``invoice_url`` is NULL) — the frontend renders a receipt from these fields. Stripe payments link the hosted invoice.
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
External payment platform a subscription or payment is linked to. ``STRIPE`` serves North America; ``PING_PP`` (Ping++, a mainland-China payment aggregator fronting Alipay + WeChat Pay) serves China. Rows with no external billing linkage (free / admin-issued / synthetic fall-back subscriptions) carry NULL instead of a value.
4
+
5
+
## Enum
6
+
7
+
*`STRIPE` (value: `'STRIPE'`)
8
+
9
+
*`PING_PP` (value: `'PING_PP'`)
10
+
11
+
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
Copy file name to clipboardExpand all lines: docs/ChangeSubscriptionRequest.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,17 @@
1
1
# ChangeSubscriptionRequest
2
2
3
-
Body for ``POST /v1/tenants/{tenant_id}/subscriptions``.
3
+
Body for ``POST /v1/tenants/{tenant_id}/subscriptions``. For a priced plan, ``interval`` and ``billing_system`` are required (``channel`` too for Ping++); the response carries the provider checkout to complete. For the free plan they are ignored — the downgrade is applied immediately (unbilled tenants) or scheduled for period end (billed tenants).
**channel** | **str** | Ping++ payment channel chosen in the UI (e.g. 'alipay_pc_direct', 'wx_pub_qr'). Required when billing_system=PING_PP. | [optional]
14
+
**channel_extra** | **Dict[str, object]** | Channel-specific Ping++ charge `extra` parameters (success_url, product ids, ... — see the Ping++ charge API for the chosen channel). Passed through verbatim; amounts are always resolved server-side. | [optional]
What the client must do next after a subscription-change request.
4
+
5
+
## Enum
6
+
7
+
*`REDIRECT` (value: `'REDIRECT'`)
8
+
9
+
*`CREDENTIAL` (value: `'CREDENTIAL'`)
10
+
11
+
*`SCHEDULED` (value: `'SCHEDULED'`)
12
+
13
+
*`APPLIED` (value: `'APPLIED'`)
14
+
15
+
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
0 commit comments